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.
85 lines
2.1 KiB
Plaintext
85 lines
2.1 KiB
Plaintext
.isekai-collapse {
|
|
width: 50%;
|
|
background: #fff;
|
|
margin-bottom: .5rem;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
-webkit-appearance: none;
|
|
|
|
@media screen and (max-width: 767px) {
|
|
width: 100%;
|
|
}
|
|
|
|
&.animate {
|
|
overflow-y: hidden;
|
|
will-change: height;
|
|
transition: height 250ms ease-in-out;
|
|
}
|
|
|
|
.isekai-collapse-title {
|
|
padding: 1rem;
|
|
display: block;
|
|
background-color: #f7f7f7;
|
|
padding-left: 2.2rem;
|
|
position: relative;
|
|
cursor: pointer;
|
|
color: black;
|
|
font-size: 1rem;
|
|
list-style: none;
|
|
-webkit-appearance: none;
|
|
|
|
&::before {
|
|
content: '';
|
|
border-width: 0.4rem;
|
|
border-style: solid;
|
|
border-color: transparent transparent transparent #000;
|
|
position: absolute;
|
|
top: 1.32rem;
|
|
left: 1.2rem;
|
|
transform: rotate(0);
|
|
transform-origin: 0.2rem 50%;
|
|
will-change: transform;
|
|
transition: transform 250ms ease;
|
|
}
|
|
|
|
&::marker,
|
|
&::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.isekai-collapse-content {
|
|
padding: 1em;
|
|
}
|
|
|
|
&[open] > .isekai-collapse-title:before {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
&.closing[open] > .isekai-collapse-title:before {
|
|
transform: rotate(0);
|
|
}
|
|
}
|
|
|
|
.isekai-indent > .isekai-collapse {
|
|
padding-left: 0;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
// 使用Citizen色板
|
|
.skin-citizen {
|
|
.isekai-collapse {
|
|
background: var(--color-surface-1);
|
|
|
|
.isekai-collapse-title {
|
|
background-color: var(--color-surface-2);
|
|
color: var(--color-base);
|
|
|
|
&::before {
|
|
top: 1.5rem;
|
|
border-color: transparent transparent transparent var(--color-base);
|
|
}
|
|
}
|
|
}
|
|
} |