2021-03-02 22:16:24 +00:00
|
|
|
@import '../variables.less';
|
|
|
|
|
2021-03-03 01:55:13 +00:00
|
|
|
.client-js {
|
|
|
|
.section {
|
|
|
|
&-heading {
|
|
|
|
cursor: pointer;
|
|
|
|
// So that double clicking won't highlight everything
|
|
|
|
user-select: none;
|
2021-03-02 22:16:24 +00:00
|
|
|
|
2021-03-03 01:55:13 +00:00
|
|
|
&--collapsed {
|
|
|
|
.section-toggle {
|
|
|
|
transform: rotate3d( 1, 0, 0, 180deg );
|
|
|
|
}
|
2021-03-02 22:16:24 +00:00
|
|
|
|
2021-03-03 01:55:13 +00:00
|
|
|
.mw-headline {
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
}
|
|
|
|
}
|
2021-03-02 22:16:24 +00:00
|
|
|
|
2021-03-03 01:55:13 +00:00
|
|
|
.mw-headline {
|
|
|
|
transition: @transition-opacity-quick;
|
2021-03-03 00:32:55 +00:00
|
|
|
|
2021-03-03 01:55:13 +00:00
|
|
|
&:hover {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
2021-03-03 00:32:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-03 01:55:13 +00:00
|
|
|
&-toggle {
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
margin-right: 10px;
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 18px;
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
transition: @transition-opacity-quick, @transition-transform-quick;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
2021-03-02 22:16:24 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 01:55:13 +00:00
|
|
|
// Fix button alignment
|
|
|
|
&-heading,
|
|
|
|
&-subheading {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-04-27 18:43:02 +00:00
|
|
|
|
|
|
|
// Right-align the editsection
|
|
|
|
.mw-headline {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2021-03-03 01:55:13 +00:00
|
|
|
}
|
2021-03-02 22:16:24 +00:00
|
|
|
|
2021-03-03 01:55:13 +00:00
|
|
|
&-collapsible {
|
|
|
|
&--collapsed {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-03-02 22:16:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.skin-citizen-dark {
|
|
|
|
.section-toggle {
|
|
|
|
filter: invert( 1 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hide toggle when client is noscript
|
|
|
|
.client-nojs {
|
2021-03-03 01:55:13 +00:00
|
|
|
.section {
|
|
|
|
&-toggle {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-03-02 22:16:24 +00:00
|
|
|
}
|
|
|
|
}
|
2021-03-03 18:08:37 +00:00
|
|
|
|
|
|
|
// Fix hover state on touch devices
|
|
|
|
@media ( hover: none ) {
|
|
|
|
.client-js .section {
|
|
|
|
&-heading .mw-headline,
|
|
|
|
&-toggle {
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-heading--collapsed .mw-headline {
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|