2015-11-30 18:32:01 +08:00
|
|
|
details {
|
|
|
|
position: relative;
|
2023-12-05 20:56:17 +08:00
|
|
|
|
|
|
|
.topic-body .cooked &,
|
2024-03-13 11:15:12 +08:00
|
|
|
.d-editor-preview,
|
|
|
|
&.details__boxed {
|
2023-12-05 20:56:17 +08:00
|
|
|
background-color: var(--primary-very-low);
|
|
|
|
padding: 0.25rem 0.75rem;
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
|
|
|
&:not([open]) {
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:focus-within {
|
|
|
|
background-color: var(--d-hover);
|
|
|
|
}
|
2023-12-05 19:52:00 +08:00
|
|
|
}
|
|
|
|
|
2023-12-05 20:56:17 +08:00
|
|
|
aside.quote .title,
|
|
|
|
blockquote,
|
|
|
|
code {
|
|
|
|
background-color: rgba(var(--primary-rgb), 0.05);
|
|
|
|
}
|
2023-12-05 19:52:00 +08:00
|
|
|
}
|
2015-11-30 18:32:01 +08:00
|
|
|
}
|
|
|
|
|
2024-03-13 11:15:12 +08:00
|
|
|
details.details__boxed {
|
|
|
|
summary {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-30 18:32:01 +08:00
|
|
|
details > *,
|
|
|
|
details .lightbox-wrapper {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-03-12 00:51:16 +08:00
|
|
|
details,
|
|
|
|
summary {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2023-12-05 19:52:00 +08:00
|
|
|
summary {
|
|
|
|
> p {
|
|
|
|
margin-block: 0;
|
|
|
|
padding-block: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-30 18:32:01 +08:00
|
|
|
summary:first-of-type {
|
|
|
|
cursor: pointer;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
summary:before {
|
2018-06-08 17:49:31 +08:00
|
|
|
content: "\25BA";
|
|
|
|
margin-right: 0.25em;
|
2015-11-30 18:32:01 +08:00
|
|
|
}
|
|
|
|
|
2019-03-09 07:07:22 +08:00
|
|
|
details[open] > *,
|
|
|
|
details[open] .lightbox-wrapper {
|
2016-04-07 03:44:29 +08:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2015-11-30 18:32:01 +08:00
|
|
|
details[open] > summary:before,
|
2018-06-08 17:49:31 +08:00
|
|
|
details.open > summary:before {
|
|
|
|
content: "\25BC";
|
2015-11-30 18:32:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
details[open] > summary:first-of-type ~ *,
|
2018-06-08 17:49:31 +08:00
|
|
|
details.open > summary:first-of-type ~ * {
|
2015-11-30 18:32:01 +08:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* hide native indicator */
|
|
|
|
summary::-webkit-details-marker {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-12-05 20:56:17 +08:00
|
|
|
.topic-body .cooked,
|
|
|
|
.d-editor-preview {
|
|
|
|
.elided {
|
|
|
|
background-color: unset;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
&:not([open]) {
|
|
|
|
//specificity needed to overrule non-elided
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:focus-within {
|
|
|
|
background-color: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
summary:hover {
|
|
|
|
background: var(--d-hover);
|
|
|
|
}
|
2023-12-05 19:52:00 +08:00
|
|
|
}
|
|
|
|
|
2023-12-05 20:56:17 +08:00
|
|
|
&[open] {
|
|
|
|
background: var(--primary-very-low);
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
summary {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2023-12-05 19:52:00 +08:00
|
|
|
}
|
|
|
|
|
2023-12-05 20:56:17 +08:00
|
|
|
summary:before {
|
|
|
|
content: "" !important;
|
|
|
|
display: none;
|
2023-12-05 19:52:00 +08:00
|
|
|
}
|
|
|
|
|
2023-12-05 20:56:17 +08:00
|
|
|
summary {
|
|
|
|
@include unselectable;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
text-align: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
color: var(--primary-medium);
|
|
|
|
background: var(--primary-very-low);
|
|
|
|
width: min-content;
|
|
|
|
line-height: 1;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:focus-within {
|
|
|
|
color: var(--primary);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2023-12-05 19:52:00 +08:00
|
|
|
}
|
2016-03-12 00:51:16 +08:00
|
|
|
}
|
|
|
|
}
|