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 );
|
2024-07-15 06:07:25 +00:00
|
|
|
border: var( --border-width-base ) solid var( --border-color-base );
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-medium );
|
2024-07-25 01:53:51 +00:00
|
|
|
box-shadow: var( --box-shadow-drop-xx-large );
|
2024-05-28 02:47:46 +00:00
|
|
|
transform: scale( 0 );
|
|
|
|
contain: content;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-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 );
|
2024-07-01 00:41:31 +00:00
|
|
|
color: var( --color-emphasized );
|
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 {
|
2024-07-01 00:41:31 +00:00
|
|
|
background-color: var( --background-color-button-quiet--hover );
|
2023-07-07 19:26:31 +00:00
|
|
|
|
|
|
|
.citizen-ui-icon::before {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2024-07-01 00:41:31 +00:00
|
|
|
background-color: var( --background-color-button-quiet--active );
|
2023-07-07 19:26:31 +00:00
|
|
|
|
|
|
|
.citizen-ui-icon::before {
|
2024-06-30 05:04:30 +00:00
|
|
|
opacity: var( --opacity-icon-base--selected );
|
2023-07-07 19:26:31 +00:00
|
|
|
}
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-18 21:14:24 +00:00
|
|
|
.mw-portlet {
|
2021-01-27 19:52:49 +00:00
|
|
|
// Hide selected item
|
|
|
|
.selected {
|
2024-07-03 18:41:14 +00:00
|
|
|
.sr-only;
|
2021-01-27 19:52:49 +00:00
|
|
|
}
|
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-05-10 16:55:20 +00:00
|
|
|
}
|
2024-06-25 16:47:07 +00:00
|
|
|
|
2024-06-27 22:21:28 +00:00
|
|
|
// HACK: Restore view button on revision page (#845)
|
|
|
|
// There are no good way to target revision page
|
|
|
|
.action-view {
|
|
|
|
&:has( .diff ),
|
|
|
|
&:has( .mw-revision ) {
|
|
|
|
#ca-view {
|
2024-07-06 03:58:17 +00:00
|
|
|
position: relative;
|
2024-06-27 22:21:28 +00:00
|
|
|
width: auto;
|
|
|
|
height: auto;
|
2024-07-06 03:58:17 +00:00
|
|
|
overflow: initial;
|
2024-07-06 03:59:04 +00:00
|
|
|
clip-path: unset;
|
2024-07-06 03:58:17 +00:00
|
|
|
white-space: unset;
|
2024-06-27 22:21:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|