2022-05-18 21:14:24 +00:00
|
|
|
.citizen-menu {
|
|
|
|
&__heading {
|
2023-02-22 19:47:32 +00:00
|
|
|
display: block;
|
2023-07-06 04:55:42 +00:00
|
|
|
padding: var( --space-xs ) var( --space-md );
|
2023-02-22 19:47:32 +00:00
|
|
|
margin: 0;
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
font-size: inherit;
|
|
|
|
font-weight: var( --font-weight-normal );
|
|
|
|
letter-spacing: 0.05em;
|
2021-01-27 19:52:49 +00:00
|
|
|
}
|
2023-06-15 18:37:07 +00:00
|
|
|
|
2023-07-06 04:55:42 +00:00
|
|
|
.mw-list-item {
|
|
|
|
line-height: var( --line-height-xs );
|
|
|
|
}
|
|
|
|
|
2023-06-15 18:37:07 +00:00
|
|
|
a {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
2022-05-18 21:14:24 +00:00
|
|
|
}
|
2021-01-27 19:52:49 +00:00
|
|
|
|
2022-11-01 01:18:53 +00:00
|
|
|
// FIXME: This should not be here
|
|
|
|
.citizen-ui-icon {
|
2022-11-03 22:30:41 +00:00
|
|
|
display: block;
|
2022-11-01 15:23:17 +00:00
|
|
|
width: var( --size-icon );
|
|
|
|
height: var( --size-icon );
|
2022-12-06 20:29:49 +00:00
|
|
|
contain: strict;
|
2022-11-01 01:18:53 +00:00
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&::before {
|
2022-11-01 01:18:53 +00:00
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: contain;
|
|
|
|
content: '';
|
2022-11-02 03:01:52 +00:00
|
|
|
opacity: var( --opacity-icon-base );
|
2022-11-01 01:18:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-26 01:20:46 +00:00
|
|
|
/**
|
|
|
|
* Invisible checkbox covering the menu button.
|
|
|
|
*/
|
2023-01-26 01:25:40 +00:00
|
|
|
.citizen-menu-checkbox {
|
2023-01-26 01:20:46 +00:00
|
|
|
// Has to be visible to be focusable
|
|
|
|
&-checkbox {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
// HACK: Fake focus styles
|
|
|
|
&:focus {
|
|
|
|
& + .citizen-header__button,
|
2023-01-26 01:25:40 +00:00
|
|
|
& + .citizen-menu-checkbox-button {
|
2023-01-26 01:20:46 +00:00
|
|
|
outline: 2px solid var( --color-primary );
|
|
|
|
outline-offset: 1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-button {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
// Icons have to use span inside label elements
|
|
|
|
> span:not( .citizen-ui-icon ) {
|
|
|
|
.mixin-screen-reader-text;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-18 21:14:24 +00:00
|
|
|
.mw-portlet {
|
2021-01-27 19:52:49 +00:00
|
|
|
// Hide selected item
|
|
|
|
.selected {
|
|
|
|
.mixin-screen-reader-text;
|
|
|
|
}
|
2020-06-10 02:12:04 +00:00
|
|
|
|
2021-01-27 19:52:49 +00:00
|
|
|
// Hide empty menu
|
2022-11-14 21:21:19 +00:00
|
|
|
&-empty {
|
2021-01-27 19:52:49 +00:00
|
|
|
display: none !important;
|
|
|
|
}
|
2020-06-10 02:12:04 +00:00
|
|
|
}
|
2022-05-10 16:55:20 +00:00
|
|
|
|
|
|
|
.skin-citizen-dark {
|
2023-02-28 21:59:36 +00:00
|
|
|
.citizen-ui-icon::before {
|
2022-11-01 01:18:53 +00:00
|
|
|
filter: invert( 1 );
|
|
|
|
}
|
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
.mw-portlet a::after {
|
2022-05-10 16:55:20 +00:00
|
|
|
filter: invert( 1 );
|
|
|
|
}
|
|
|
|
}
|