You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
IsekaiWidgets/modules/ext.isekai.widgets.global.less

255 lines
5.3 KiB
Plaintext

@isekai-card-border-radius: 10px;
.isekai-thin-scrollbar {
scrollbar-width: thin;
&::-webkit-scrollbar {
width: 8px;
height: 8px;
}
&::-webkit-scrollbar-thumb {
border-radius: 0;
background: #cdcdcd;
&:hover {
background: #a6a6a6;
}
&:active {
background: #606060;
}
}
&::-webkit-scrollbar-track {
border-radius: 0;
background: transparent;
&:hover {
background: #f0f0f0;
}
}
}
.isekai-thin-scrollbar-overlap {
}
.isekai-card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 -1px 4px -1px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(53,72,91,.07);
border-radius: @isekai-card-border-radius;
margin-bottom: .5rem;
overflow: hidden;
.card-header {
padding: 0.75rem 1.25rem;
margin-bottom: 0;
background-color: #f7f7f7;
color: black;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.8rem;
border-top-left-radius: @isekai-card-border-radius;
border-top-right-radius: @isekai-card-border-radius;
box-shadow: 0 2px 4px 0px rgba(0,0,0,0.1);
.card-header-text {
font-size: 1.25rem;
flex: 1 1;
}
@media(max-width: 360px){
.card-header-text {
font-size: 1em;
}
}
.card-header-extra {
margin-left: auto;
}
}
.card-title {
padding: 0.75rem 0.8rem 0.2rem 0.8rem;
font-size: 1.25rem;
font-weight: 500;
border-bottom: 1px solid #ccc;
box-sizing: border-box;
}
.card-body {
flex: 1 1 auto;
padding: 0.25rem;
}
.card-body-fluid {
flex: 1 1 auto;
padding: 0;
}
.card-content {
padding: 0.8rem;
}
@media(max-width: 360px) {
.card-header-text {
font-size: 1rem;
}
}
}
.isekai-list {
margin: 0 !important;
padding: 0 0 0.5rem 0 !important;
list-style: none;
background-color: transparent;
.isekai-list-item {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
gap: 0.25rem;
-webkit-box-sizing: border-box;
box-sizing: border-box;
min-height: 3rem;
padding: 0 1rem;
text-decoration: none;
cursor: pointer;
border-bottom: 1px solid rgba(0,0,0,.12);
&:hover {
background-color: rgba(0,0,0,.08);
}
// &:last-of-type {
// border-bottom: none;
// }
&.active {
box-shadow: inset 4px 0 0 0 #3366cc;
}
}
a {
color: #000;
text-decoration: none;
&:hover {
color: #000;
text-decoration: none;
}
&:visited {
color: #000;
text-decoration: none;
&:hover {
color: #000;
text-decoration: none;
}
}
}
.isekai-list-item-title {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 1.5rem;
.tag {
opacity: 0.6;
font-size: 0.8rem;
padding: 2px 8px;
background-color: rgba(0, 0, 0, 0.1);
}
}
.isekai-list-item-subtitle {
opacity: 0.6;
font-size: 0.9rem;
}
.isekai-list-item-content {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
padding-top: 0.625rem;
padding-bottom: 0.625rem;
font-weight: 400;
font-size: 1rem;
line-height: 1.25rem;
}
.isekai-list-item-title~.isekai-list-item-text {
margin-top: 0.25rem;
}
.isekai-list-item-text {
font-size: 0.875rem;
opacity: 0.54;
-webkit-line-clamp: 1;
height: 1.25rem;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
}
.isekai-well {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 -1px 4px -1px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(53,72,91,.07);
border-radius: 5px;
margin-bottom: .5rem;
background-color: #fcfcfc;
padding: 0.5em 1em;
}
.skin-citizen-dark, .skin-timeless-dark {
.isekai-list {
a {
color: white;
text-decoration: none;
&:hover {
color: white;
text-decoration: none;
}
&:visited {
color: white;
text-decoration: none;
&:hover {
color: white;
text-decoration: none;
}
}
}
}
.isekai-well {
background-color: #090909;
}
.isekai-card {
background-color: #000;
.card-header {
background-color: #090909;
color: white;
}
}
}