2015-11-30 18:32:01 +08:00
|
|
|
details {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
details > *,
|
|
|
|
details .lightbox-wrapper {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-03-12 00:51:16 +08:00
|
|
|
details,
|
|
|
|
summary {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2016-04-07 03:44:29 +08:00
|
|
|
details[open] > * {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2016-03-12 00:51:16 +08:00
|
|
|
.elided {
|
|
|
|
summary:before {
|
2018-06-08 17:49:31 +08:00
|
|
|
content: "" !important;
|
2018-02-09 11:59:11 +08:00
|
|
|
display: none;
|
2016-03-12 00:51:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
summary {
|
|
|
|
@include unselectable;
|
2018-02-09 11:59:11 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
text-align: center;
|
2016-03-12 00:51:16 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2018-08-06 23:44:37 +08:00
|
|
|
color: $primary-medium;
|
|
|
|
background: $primary-low;
|
|
|
|
border: 1px solid $primary-low-mid;
|
|
|
|
width: 1.5em;
|
|
|
|
line-height: 1;
|
2016-03-12 00:51:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
summary:hover {
|
2018-08-06 23:44:37 +08:00
|
|
|
color: $primary;
|
|
|
|
background: $primary-low-mid;
|
|
|
|
border-color: currentColor;
|
2016-03-12 00:51:16 +08:00
|
|
|
}
|
|
|
|
}
|