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 {
|
2022-04-30 18:47:00 +00:00
|
|
|
.section-indicator {
|
2021-03-03 01:55:13 +00:00
|
|
|
transform: rotate3d( 1, 0, 0, 180deg );
|
|
|
|
}
|
2021-03-02 22:16:24 +00:00
|
|
|
|
2022-11-25 02:46:23 +00:00
|
|
|
.mw-headline,
|
|
|
|
/* T13555 */
|
|
|
|
.mw-heading h1,
|
|
|
|
.mw-heading h2 {
|
2021-03-03 01:55:13 +00:00
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
}
|
|
|
|
}
|
2021-03-02 22:16:24 +00:00
|
|
|
|
2022-11-25 02:46:23 +00:00
|
|
|
.mw-headline,
|
|
|
|
/* T13555 */
|
|
|
|
.mw-heading h1,
|
|
|
|
.mw-heading h2 {
|
2022-05-01 23:14:17 +00:00
|
|
|
transition: @transition-opacity;
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-30 18:47:00 +00:00
|
|
|
&-indicator {
|
2022-11-08 17:27:58 +00:00
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
2022-10-28 03:20:38 +00:00
|
|
|
margin-right: var( --space-md );
|
2021-03-03 01:55:13 +00:00
|
|
|
cursor: pointer;
|
2022-11-08 17:27:58 +00:00
|
|
|
transition: @transition-transform;
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-30 18:47:00 +00:00
|
|
|
// Hide indicator when client is noscript
|
2021-03-02 22:16:24 +00:00
|
|
|
.client-nojs {
|
2021-03-03 01:55:13 +00:00
|
|
|
.section {
|
2022-04-30 18:47:00 +00:00
|
|
|
&-indicator {
|
2021-03-03 01:55:13 +00:00
|
|
|
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,
|
2022-04-30 18:47:00 +00:00
|
|
|
&-indicator {
|
2021-03-03 18:08:37 +00:00
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-heading--collapsed .mw-headline {
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|