Add support for CWs in comments
This commit is contained in:
@ -226,13 +226,12 @@ aside {
|
||||
}
|
||||
|
||||
details {
|
||||
box-shadow: var(--edge-highlight);
|
||||
border-radius: var(--rounded-corner);
|
||||
background-color: var(--fg-muted-1);
|
||||
padding: 1rem;
|
||||
|
||||
summary {
|
||||
cursor: pointer;
|
||||
box-shadow: var(--edge-highlight);
|
||||
border-radius: var(--rounded-corner);
|
||||
background-color: var(--fg-muted-1);
|
||||
padding: 1rem;
|
||||
color: var(--fg-muted-5);
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
@ -262,18 +261,30 @@ details {
|
||||
margin-block-end: 0;
|
||||
}
|
||||
|
||||
&[open] summary {
|
||||
&::before {
|
||||
transform: scaleY(-1);
|
||||
}
|
||||
&[open] {
|
||||
box-shadow: var(--edge-highlight);
|
||||
border-radius: var(--rounded-corner);
|
||||
background-color: var(--fg-muted-1);
|
||||
padding: 1rem;
|
||||
|
||||
& ~ * {
|
||||
animation: details-open var(--transition);
|
||||
summary {
|
||||
box-shadow: none;
|
||||
border-radius: 0;
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
|
||||
@keyframes details-open {
|
||||
from {
|
||||
transform: translateY(-1rem);
|
||||
opacity: 0;
|
||||
&::before {
|
||||
transform: scaleY(-1);
|
||||
}
|
||||
|
||||
& ~ * {
|
||||
animation: details-open var(--transition);
|
||||
|
||||
@keyframes details-open {
|
||||
from {
|
||||
transform: translateY(-1rem);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user