2022-05-10 00:23:42 +00:00
|
|
|
.citizen-drawer {
|
|
|
|
z-index: 102; // Higher than z-index-overlay from WMUI
|
2021-01-16 00:56:59 +00:00
|
|
|
|
2022-05-10 00:23:42 +00:00
|
|
|
&__card {
|
2021-01-19 20:56:42 +00:00
|
|
|
position: absolute;
|
2022-05-10 00:23:42 +00:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
overflow: auto;
|
|
|
|
max-height: ~'calc(100vh - var( --margin-header ) * 2 )';
|
|
|
|
margin: var( --margin-header ) var( --padding-header );
|
|
|
|
overscroll-behavior: contain;
|
|
|
|
user-select: none;
|
|
|
|
will-change: transform;
|
|
|
|
.citizen-card();
|
|
|
|
.citizen-card-hide( 0 0 );
|
2020-06-07 05:30:54 +00:00
|
|
|
}
|
|
|
|
|
2022-05-10 00:23:42 +00:00
|
|
|
&__header {
|
2021-02-03 20:47:32 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-05-10 00:23:42 +00:00
|
|
|
padding: var( --size-button--header ) var( --padding-page ) 0.8rem; // TODO: Replace with space token
|
2021-07-30 18:05:25 +00:00
|
|
|
border-bottom: 1px solid var( --border-color-base );
|
2022-05-10 00:23:42 +00:00
|
|
|
gap: 1.25rem;
|
2021-01-16 00:56:59 +00:00
|
|
|
}
|
2020-06-07 05:30:54 +00:00
|
|
|
|
2022-05-10 00:23:42 +00:00
|
|
|
// Keep aspect ratio
|
|
|
|
&__logo img {
|
|
|
|
width: auto;
|
|
|
|
height: 3rem;
|
2022-04-23 05:06:07 +00:00
|
|
|
}
|
2021-03-05 16:37:27 +00:00
|
|
|
|
2022-05-10 00:23:42 +00:00
|
|
|
&__siteinfo {
|
2022-04-23 05:06:07 +00:00
|
|
|
.mw-logo-wordmark {
|
2022-05-10 00:23:42 +00:00
|
|
|
margin-top: 0.375rem;
|
2022-04-23 05:06:07 +00:00
|
|
|
color: var( --color-base--emphasized );
|
|
|
|
font-size: 1.5rem;
|
2021-03-05 16:37:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-10 00:23:42 +00:00
|
|
|
&__menu {
|
2021-07-30 17:48:57 +00:00
|
|
|
display: grid;
|
2022-05-10 00:23:42 +00:00
|
|
|
max-width: 92vw;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 0.625rem 0.625rem 1.25rem 0.625rem; // TODO: Replace with space token
|
|
|
|
font-size: 0.875rem; // TODO: Make this a variable
|
|
|
|
gap: 0.625rem; // TODO: Replace with space token
|
|
|
|
grid-template-columns: repeat( auto-fit, 15rem );
|
2021-01-27 20:05:31 +00:00
|
|
|
|
2021-01-16 00:56:59 +00:00
|
|
|
a {
|
|
|
|
.menu-item-link;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2022-05-10 00:23:42 +00:00
|
|
|
padding: 0.625rem 1.25rem; // TODO: Make this a variable
|
2021-05-27 14:35:21 +00:00
|
|
|
border-radius: var( --border-radius--small );
|
2022-05-10 00:23:42 +00:00
|
|
|
gap: 1rem; // TODO: Replace with space token
|
2020-06-07 05:30:54 +00:00
|
|
|
|
2021-01-16 00:56:59 +00:00
|
|
|
&:after {
|
|
|
|
.resource-loader-list-icon;
|
|
|
|
display: block;
|
|
|
|
background-size: contain;
|
|
|
|
opacity: var( --opacity-icon-base );
|
2022-05-01 23:14:17 +00:00
|
|
|
transition: @transition-opacity;
|
2021-01-16 00:56:59 +00:00
|
|
|
}
|
2020-06-07 05:30:54 +00:00
|
|
|
|
2021-01-16 00:56:59 +00:00
|
|
|
&:hover {
|
|
|
|
.menu-item-link-hover;
|
2020-06-07 05:30:54 +00:00
|
|
|
|
2021-01-16 00:56:59 +00:00
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
2020-06-07 05:30:54 +00:00
|
|
|
}
|
2021-01-16 00:56:59 +00:00
|
|
|
}
|
2020-06-07 05:30:54 +00:00
|
|
|
|
2021-01-16 00:56:59 +00:00
|
|
|
&:active {
|
|
|
|
.menu-item-link-active;
|
2021-01-14 17:20:15 +00:00
|
|
|
|
2021-01-16 00:56:59 +00:00
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
2020-06-07 05:30:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-10 00:23:42 +00:00
|
|
|
// Checkbox hack
|
|
|
|
#citizen-drawer__checkbox:checked {
|
2022-05-10 15:15:34 +00:00
|
|
|
~ .citizen-drawer__card {
|
2022-05-10 00:23:42 +00:00
|
|
|
.citizen-card-show;
|
2021-02-03 20:52:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-10 00:23:42 +00:00
|
|
|
// Wait for first paint before animating
|
2021-03-13 17:43:28 +00:00
|
|
|
.citizen-animations-ready {
|
2022-05-10 00:23:42 +00:00
|
|
|
.citizen-drawer__card {
|
2022-05-02 01:23:37 +00:00
|
|
|
.citizen-card-transition();
|
2021-03-13 17:43:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-09 21:56:28 +00:00
|
|
|
.skin-citizen-dark {
|
2022-05-10 00:23:42 +00:00
|
|
|
// Icons in nav links
|
|
|
|
.citizen-drawer__menu a:after {
|
2021-01-19 20:56:42 +00:00
|
|
|
filter: invert( 1 );
|
2020-06-07 05:30:54 +00:00
|
|
|
}
|
2020-06-07 05:31:34 +00:00
|
|
|
}
|
2021-01-29 16:47:33 +00:00
|
|
|
|
2022-05-10 00:23:42 +00:00
|
|
|
@media ( max-width: @width-breakpoint-tablet ) {
|
|
|
|
.citizen-drawer {
|
|
|
|
&__card {
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
justify-content: center;
|
2021-05-07 02:36:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-07-30 17:48:57 +00:00
|
|
|
|
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
2022-05-10 00:23:42 +00:00
|
|
|
.citizen-drawer {
|
|
|
|
&__logo img {
|
|
|
|
// Bigger logo
|
|
|
|
height: 5rem;
|
2022-04-23 05:06:07 +00:00
|
|
|
}
|
|
|
|
|
2022-05-10 00:23:42 +00:00
|
|
|
&__siteinfo {
|
2022-04-23 05:06:07 +00:00
|
|
|
.mw-logo-wordmark {
|
|
|
|
font-size: 2rem;
|
|
|
|
}
|
|
|
|
}
|
2021-02-20 20:23:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 16:47:33 +00:00
|
|
|
@media ( min-width: @width-breakpoint-desktop-wide ) {
|
2022-05-10 00:23:42 +00:00
|
|
|
.citizen-drawer__menu {
|
|
|
|
max-width: 1200px; // So that it doesn't span too wide
|
2021-01-29 16:47:33 +00:00
|
|
|
}
|
|
|
|
}
|