2024-04-19 18:43:49 +00:00
|
|
|
// Hide indicator when client is noscript
|
|
|
|
// FIXME: On rare occasion, indicator can appear without the .citizen-sections-enabled class, not sure why
|
|
|
|
.citizen-section-indicator,
|
|
|
|
.client-nojs.citizen-sections-enabled .citizen-section-indicator {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-12-09 19:48:17 +00:00
|
|
|
.citizen-sections-enabled {
|
2023-09-10 23:00:52 +00:00
|
|
|
.citizen-section {
|
2021-03-03 01:55:13 +00:00
|
|
|
&-heading {
|
|
|
|
cursor: pointer;
|
|
|
|
// So that double clicking won't highlight everything
|
2023-05-23 16:47:26 +00:00
|
|
|
-webkit-user-select: none;
|
2021-03-03 01:55:13 +00:00
|
|
|
user-select: none;
|
2021-03-02 22:16:24 +00:00
|
|
|
|
2021-03-03 01:55:13 +00:00
|
|
|
&--collapsed {
|
2023-09-10 23:00:52 +00:00
|
|
|
.citizen-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,
|
|
|
|
.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,
|
|
|
|
.mw-heading h1,
|
|
|
|
.mw-heading h2 {
|
2023-07-07 20:36:27 +00:00
|
|
|
transition: var( --transition-hover );
|
|
|
|
transition-property: 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 {
|
2024-04-19 18:43:49 +00:00
|
|
|
display: block;
|
2024-04-19 18:45:09 +00:00
|
|
|
order: -2;
|
2022-11-08 17:27:58 +00:00
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
2023-08-07 21:20:40 +00:00
|
|
|
margin-right: var( --space-sm );
|
2021-03-03 01:55:13 +00:00
|
|
|
cursor: pointer;
|
2023-07-07 20:36:27 +00:00
|
|
|
transition: var( --transition-hover );
|
|
|
|
transition-property: transform;
|
2021-03-02 22:16:24 +00:00
|
|
|
}
|
|
|
|
|
2021-03-03 01:55:13 +00:00
|
|
|
// Fix button alignment
|
|
|
|
&-heading,
|
2023-09-10 23:19:31 +00:00
|
|
|
&-collapsible > h3,
|
|
|
|
&-collapsible > h4,
|
|
|
|
&-collapsible > h5,
|
|
|
|
&-collapsible > h6 {
|
2021-03-03 01:55:13 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-04-27 18:43:02 +00:00
|
|
|
|
|
|
|
// Right-align the editsection
|
|
|
|
.mw-headline {
|
|
|
|
flex-grow: 1;
|
2023-06-20 19:02:15 +00:00
|
|
|
order: -1;
|
2022-04-27 18:43:02 +00:00
|
|
|
}
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-03 18:08:37 +00:00
|
|
|
// Fix hover state on touch devices
|
|
|
|
@media ( hover: none ) {
|
2023-09-10 23:00:52 +00:00
|
|
|
.citizen-sections-enabled .citizen-section {
|
2021-03-03 18:08:37 +00:00
|
|
|
&-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 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|