2022-05-18 21:14:24 +00:00
|
|
|
.citizen-menu {
|
2024-04-24 23:43:17 +00:00
|
|
|
font-size: var( --font-size-small );
|
|
|
|
|
2024-05-28 02:47:46 +00:00
|
|
|
&__card {
|
|
|
|
--transform-origin-offset-start: var( --space-xs );
|
|
|
|
--transform-origin-offset-end: ~'calc( 100% - var( --space-xs ) )';
|
|
|
|
margin: var( --space-xs );
|
|
|
|
overflow: auto;
|
|
|
|
overscroll-behavior: contain;
|
|
|
|
user-select: none;
|
|
|
|
background-color: var( --color-surface-1 );
|
|
|
|
border: 1px solid var( --border-color-base );
|
|
|
|
border-radius: var( --border-radius--medium );
|
|
|
|
box-shadow: var( --box-shadow-dialog );
|
|
|
|
transform: scale( 0 );
|
|
|
|
will-change: transform;
|
|
|
|
contain: content;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
opacity: 0;
|
|
|
|
will-change: opacity;
|
|
|
|
}
|
|
|
|
|
|
|
|
.citizen-menu-checkbox-checkbox:checked ~ & {
|
|
|
|
z-index: @z-index-overlay;
|
|
|
|
transition: var( --transition-menu );
|
|
|
|
transition-property: transform;
|
|
|
|
transform: none;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
opacity: 1;
|
|
|
|
transition: var( --transition-menu );
|
|
|
|
transition-property: opacity;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-18 21:14:24 +00:00
|
|
|
&__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;
|
2024-02-27 22:21:50 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2023-02-22 19:47:32 +00:00
|
|
|
font-weight: var( --font-weight-normal );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--subtle );
|
2023-02-22 19:47:32 +00:00
|
|
|
letter-spacing: 0.05em;
|
2021-01-27 19:52:49 +00:00
|
|
|
}
|
2023-06-15 18:37:07 +00:00
|
|
|
|
2024-05-09 18:38:07 +00:00
|
|
|
&__content-list {
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
2023-07-06 04:55:42 +00:00
|
|
|
.mw-list-item {
|
|
|
|
line-height: var( --line-height-xs );
|
2023-07-06 19:00:11 +00:00
|
|
|
|
|
|
|
a {
|
2023-07-07 19:26:31 +00:00
|
|
|
display: flex;
|
2023-07-28 01:19:27 +00:00
|
|
|
gap: var( --space-sm );
|
2023-07-07 19:26:31 +00:00
|
|
|
align-items: center;
|
|
|
|
padding: var( --space-xs ) var( --space-md );
|
2023-07-06 19:00:11 +00:00
|
|
|
font-weight: var( --font-weight-medium );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base );
|
2023-07-07 20:36:27 +00:00
|
|
|
transition: var( --transition-hover );
|
2023-07-16 19:32:13 +00:00
|
|
|
transition-property: opacity;
|
2023-07-07 19:26:31 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var( --color-base--emphasized );
|
2023-08-26 00:03:38 +00:00
|
|
|
background-color: var( --background-color-quiet--hover );
|
2023-07-07 19:26:31 +00:00
|
|
|
|
|
|
|
.citizen-ui-icon::before {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
color: var( --color-base--subtle );
|
2023-08-26 00:03:38 +00:00
|
|
|
background-color: var( --background-color-quiet--active );
|
2023-07-07 19:26:31 +00:00
|
|
|
|
|
|
|
.citizen-ui-icon::before {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
|
|
|
}
|
2023-07-06 04:55:42 +00:00
|
|
|
|
2023-07-07 19:26:31 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2023-06-15 18:37:07 +00:00
|
|
|
}
|
|
|
|
}
|
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%;
|
|
|
|
content: '';
|
2023-07-10 20:56:56 +00:00
|
|
|
filter: var( --filter-invert );
|
2023-07-28 01:19:27 +00:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
background-size: contain;
|
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;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2023-07-28 01:19:27 +00:00
|
|
|
z-index: 1;
|
2023-01-26 01:20:46 +00:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2023-07-16 06:49:33 +00:00
|
|
|
opacity: 0;
|
2023-01-26 01:20:46 +00:00
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
2022-11-01 01:18:53 +00:00
|
|
|
|
2023-07-10 20:56:56 +00:00
|
|
|
a::after {
|
|
|
|
filter: var( --filter-invert );
|
2022-05-10 16:55:20 +00:00
|
|
|
}
|
|
|
|
}
|