50 строки
984 B
SCSS
50 строки
984 B
SCSS
details {
|
|
padding: 12px;
|
|
border: 1px solid rgba(var(--center-channel-color-rgb), 0.16);
|
|
border-radius: 4px;
|
|
background-color: var(--center-channel-bg);
|
|
}
|
|
|
|
summary {
|
|
position: relative;
|
|
padding: 12px 12px 12px 28px;
|
|
margin: -12px;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
transition: background 0.15s ease-in-out;
|
|
|
|
&:hover {
|
|
background: rgba(var(--center-channel-color-rgb), 0.04);
|
|
}
|
|
|
|
&::marker {
|
|
display: none;
|
|
}
|
|
|
|
&::before {
|
|
position: absolute;
|
|
top: 16px;
|
|
left: 12px;
|
|
content: '►';
|
|
font-size: 10px;
|
|
transform: rotate(0deg);
|
|
transition: transform 0.15s ease-in-out;
|
|
}
|
|
}
|
|
|
|
details[open] {
|
|
|
|
summary {
|
|
border-bottom: 1px solid rgba(var(--center-channel-color-rgb), 0.16);
|
|
margin-bottom: 0;
|
|
|
|
&::before {
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
|
|
.row:last-child .total-count {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|