2022-05-10 00:23:42 +00:00
|
|
|
.citizen-drawer {
|
|
|
|
&__card {
|
2022-11-01 00:34:00 +00:00
|
|
|
padding: var( --space-xs ) 0;
|
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;
|
2023-07-06 04:55:42 +00:00
|
|
|
padding: var( --space-sm ) var( --space-md ) var( --space-md );
|
2021-07-30 18:05:25 +00:00
|
|
|
border-bottom: 1px solid var( --border-color-base );
|
2022-09-30 21:40:30 +00:00
|
|
|
gap: var( --space-md );
|
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-09-30 21:40:30 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-11-01 00:34:00 +00:00
|
|
|
gap: var( --space-xxs );
|
2022-09-30 21:40:30 +00:00
|
|
|
|
2022-04-23 05:06:07 +00:00
|
|
|
.mw-logo-wordmark {
|
|
|
|
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 {
|
2022-11-07 22:46:08 +00:00
|
|
|
--size-icon: 1rem;
|
2021-07-30 17:48:57 +00:00
|
|
|
display: grid;
|
2022-05-10 00:23:42 +00:00
|
|
|
max-width: 92vw;
|
|
|
|
justify-content: center;
|
2023-07-06 04:55:42 +00:00
|
|
|
padding: var( --space-xs );
|
2022-05-10 00:23:42 +00:00
|
|
|
font-size: 0.875rem; // TODO: Make this a variable
|
2023-07-06 20:39:04 +00:00
|
|
|
gap: var( --space-sm );
|
2022-05-10 00:23:42 +00:00
|
|
|
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;
|
2023-07-06 04:55:42 +00:00
|
|
|
padding: var( --space-xs ) var( --space-md ); // 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
|
|
|
&:hover {
|
|
|
|
.menu-item-link-hover;
|
|
|
|
}
|
2020-06-07 05:30:54 +00:00
|
|
|
|
2021-01-16 00:56:59 +00:00
|
|
|
&:active {
|
|
|
|
.menu-item-link-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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|