2022-05-10 00:23:42 +00:00
|
|
|
.citizen-drawer {
|
|
|
|
&__card {
|
2022-09-29 23:12:56 +00:00
|
|
|
.citizen-header-card( left );
|
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-09-29 23:12:56 +00:00
|
|
|
justify-content: center;
|
|
|
|
padding: var( --header-button-size ) 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;
|
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 );
|
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-09-29 23:12:56 +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;
|
2022-09-30 01:25:57 +00:00
|
|
|
// Sometimes long wiki name will wrap when the menu is too small
|
|
|
|
white-space: nowrap;
|
2022-04-23 05:06:07 +00:00
|
|
|
}
|
|
|
|
}
|
2021-02-20 20:23:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-29 23:12:56 +00:00
|
|
|
@media ( min-width: @width-breakpoint-desktop ) {
|
|
|
|
.citizen-drawer {
|
|
|
|
&__header {
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|