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;
|
|
|
|
}
|
|
|
|
|
2024-05-06 18:14:28 +00:00
|
|
|
.citizen-section-heading,
|
|
|
|
.mw-editsection {
|
|
|
|
--size-icon: 1.125rem;
|
|
|
|
}
|
|
|
|
|
2024-10-16 20:17:32 +00:00
|
|
|
.citizen-section {
|
|
|
|
&-heading {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-03-02 22:16:24 +00:00
|
|
|
|
2024-10-16 20:17:32 +00:00
|
|
|
.mw-headline {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2021-03-02 22:16:24 +00:00
|
|
|
|
2024-10-16 20:17:32 +00:00
|
|
|
:is( .mw-headline, h1, h2, h3, h4, h5, h6 ) {
|
|
|
|
transition: var( --transition-hover );
|
|
|
|
transition-property: opacity;
|
2021-03-03 00:32:55 +00:00
|
|
|
|
2024-10-16 20:17:32 +00:00
|
|
|
@media ( hover: pointer ) {
|
2021-03-03 01:55:13 +00:00
|
|
|
&:hover {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2024-06-30 05:04:30 +00:00
|
|
|
opacity: var( --opacity-icon-base--selected );
|
2021-03-03 01:55:13 +00:00
|
|
|
}
|
2021-03-03 00:32:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-25 18:06:52 +00:00
|
|
|
&:has( + .citizen-section[ hidden ] ) {
|
2024-10-16 20:17:32 +00:00
|
|
|
.citizen-section-indicator {
|
|
|
|
transform: rotate3d( 1, 0, 0, 180deg );
|
|
|
|
}
|
|
|
|
|
|
|
|
:is( .mw-headline, h1, h2, h3, h4, h5, h6 ) {
|
|
|
|
color: var( --color-subtle );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.citizen-sections-enabled {
|
|
|
|
.citizen-section {
|
|
|
|
&-heading {
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
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;
|
2024-05-06 18:14:28 +00:00
|
|
|
width: var( --size-icon );
|
|
|
|
height: var( --size-icon );
|
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 18:08:37 +00:00
|
|
|
}
|
|
|
|
}
|