2020-06-07 05:30:54 +00:00
|
|
|
#mw-drawer {
|
2021-01-16 00:56:59 +00:00
|
|
|
position: fixed;
|
|
|
|
z-index: 4;
|
|
|
|
top: 0;
|
2021-01-29 16:47:33 +00:00
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2021-01-16 00:56:59 +00:00
|
|
|
display: flex;
|
2021-07-30 17:48:57 +00:00
|
|
|
overflow: auto;
|
2021-01-16 00:56:59 +00:00
|
|
|
flex-direction: column;
|
2021-01-29 16:47:33 +00:00
|
|
|
align-items: center;
|
2021-07-30 17:48:57 +00:00
|
|
|
margin: var( --margin-header-item ) var( --margin-header-item--corner );
|
|
|
|
overscroll-behavior: contain;
|
2021-07-31 02:13:01 +00:00
|
|
|
transform: translate3d( -110%, -110%, 0 );
|
2021-01-16 00:56:59 +00:00
|
|
|
transform-origin: 0 0;
|
2021-01-19 20:56:42 +00:00
|
|
|
user-select: none;
|
2022-04-29 01:54:54 +00:00
|
|
|
will-change: transform;
|
2021-07-30 17:48:57 +00:00
|
|
|
.citizen-card();
|
2021-01-16 00:56:59 +00:00
|
|
|
|
|
|
|
&-checkbox {
|
2020-06-07 05:30:54 +00:00
|
|
|
&:checked {
|
|
|
|
// Transform all the slices of the button into a crossmark
|
|
|
|
~ #mw-drawer-button-icon {
|
|
|
|
#mw-drawer-button-icon {
|
|
|
|
&-1 {
|
|
|
|
opacity: 0;
|
2020-08-12 16:56:03 +00:00
|
|
|
/* @noflip */
|
2020-06-07 05:30:54 +00:00
|
|
|
transform: rotate( 0deg ) scale( 0.2, 0.2 );
|
|
|
|
}
|
|
|
|
// Reflect line
|
|
|
|
&-2 {
|
2020-08-12 16:56:03 +00:00
|
|
|
/* @noflip */
|
2021-01-16 00:56:59 +00:00
|
|
|
transform: rotate( -45deg ) translate3d( -2px, 6px, 0 );
|
2020-06-07 05:30:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Hide line
|
|
|
|
&-3 {
|
2020-08-12 16:56:03 +00:00
|
|
|
/* @noflip */
|
2021-01-16 00:56:59 +00:00
|
|
|
transform: rotate( 45deg ) translate3d( -5px, -7px, 0 );
|
2020-06-07 05:30:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Show drawer
|
2021-01-16 00:56:59 +00:00
|
|
|
~ #mw-drawer {
|
2020-06-07 05:30:54 +00:00
|
|
|
transform: none;
|
|
|
|
}
|
|
|
|
}
|
2021-01-16 00:56:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-button {
|
2021-01-19 20:56:42 +00:00
|
|
|
position: absolute;
|
|
|
|
z-index: 8;
|
2021-05-04 17:27:47 +00:00
|
|
|
margin-right: var( --margin-header-item--corner );
|
|
|
|
// Need to align with page padding
|
|
|
|
margin-left: var( --margin-header-item--corner );
|
2021-01-16 00:56:59 +00:00
|
|
|
|
|
|
|
&-icon {
|
|
|
|
display: flex;
|
|
|
|
overflow: hidden;
|
|
|
|
width: var( --size-icon );
|
|
|
|
height: var( --size-icon );
|
|
|
|
flex-direction: column;
|
2021-03-04 20:08:32 +00:00
|
|
|
flex-shrink: 0;
|
2021-05-04 17:27:47 +00:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
// Don't use padding as margin is needed to hide overflow
|
|
|
|
margin: ~'calc( var( --padding-header-icon ) + var( --margin-header-item ) )' var( --padding-page );
|
2021-01-16 00:56:59 +00:00
|
|
|
|
|
|
|
&-1 {
|
|
|
|
transform-origin: 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-2 {
|
|
|
|
transform-origin: 0 100%;
|
|
|
|
}
|
|
|
|
}
|
2020-06-07 05:30:54 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
~ #mw-drawer-button-icon {
|
|
|
|
#mw-drawer-button-icon {
|
|
|
|
&-1 {
|
2021-01-16 00:56:59 +00:00
|
|
|
transform: translate3d( -50%, 0, 0 );
|
2020-06-07 05:30:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-drawer-button-icon {
|
|
|
|
&-div {
|
2021-01-12 19:31:35 +00:00
|
|
|
background-color: var( --background-color-icon--hover );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
~ #mw-drawer-button-icon {
|
|
|
|
.mw-drawer-button-icon {
|
|
|
|
&-div {
|
|
|
|
background-color: var( --background-color-icon--active );
|
2020-06-07 05:30:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-03 20:47:32 +00:00
|
|
|
&-header {
|
|
|
|
display: flex;
|
2021-07-30 18:05:25 +00:00
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
2021-02-03 20:47:32 +00:00
|
|
|
align-items: center;
|
2022-04-23 05:06:07 +00:00
|
|
|
padding: ~'calc( var( --padding-page ) + 20px )' var( --padding-page ) 15px var( --padding-page );
|
2021-07-30 18:05:25 +00:00
|
|
|
border-bottom: 1px solid var( --border-color-base );
|
2021-01-16 00:56:59 +00:00
|
|
|
}
|
2020-06-07 05:30:54 +00:00
|
|
|
|
2021-03-05 16:37:27 +00:00
|
|
|
&-logo {
|
|
|
|
.mw-logo-icon {
|
|
|
|
width: auto;
|
2022-04-23 05:06:07 +00:00
|
|
|
height: 48px;
|
2021-03-05 16:37:27 +00:00
|
|
|
}
|
2022-04-23 05:06:07 +00:00
|
|
|
}
|
2021-03-05 16:37:27 +00:00
|
|
|
|
2022-04-23 05:06:07 +00:00
|
|
|
&-siteinfo {
|
|
|
|
margin: 0 20px;
|
|
|
|
|
|
|
|
.mw-logo-wordmark {
|
|
|
|
margin-top: 5px;
|
|
|
|
color: var( --color-base--emphasized );
|
|
|
|
font-size: 1.5rem;
|
2021-03-05 16:37:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-03 20:47:32 +00:00
|
|
|
&-search {
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
|
|
&-input {
|
|
|
|
width: 200px;
|
|
|
|
padding: 8px;
|
2021-07-25 23:16:05 +00:00
|
|
|
background: var( --color-surface-1 );
|
2021-05-27 14:35:21 +00:00
|
|
|
border-radius: var( --border-radius--small );
|
2022-04-24 19:24:09 +00:00
|
|
|
box-shadow: var( --box-shadow-card );
|
2021-02-03 20:47:32 +00:00
|
|
|
text-align: center;
|
2022-05-01 23:14:17 +00:00
|
|
|
transition: @transition-background;
|
2021-02-03 20:47:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-19 20:56:42 +00:00
|
|
|
&-menu {
|
2021-07-30 17:48:57 +00:00
|
|
|
display: grid;
|
|
|
|
max-width: ~'calc( 100vw - var( --padding-page ) * 4 )';
|
|
|
|
padding: ~'calc( var(--padding-page) / 2 ) calc( var(--padding-page) / 2 ) var( --padding-page ) calc( var(--padding-page) / 2 )';
|
2021-01-19 20:56:42 +00:00
|
|
|
font-size: @ui-menu-text;
|
2021-07-30 17:48:57 +00:00
|
|
|
gap: ~'calc( var(--padding-page) / 4 )';
|
|
|
|
grid-template-columns: repeat( auto-fit, 240px );
|
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;
|
|
|
|
padding: @padding-menu-item-big;
|
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;
|
|
|
|
margin-left: @icon-padding;
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-drawer {
|
|
|
|
&-button {
|
|
|
|
&-icon {
|
|
|
|
&-div {
|
|
|
|
z-index: 5;
|
2021-01-11 16:45:52 +00:00
|
|
|
display: block;
|
2020-06-07 05:30:54 +00:00
|
|
|
width: @icon-size;
|
|
|
|
height: 2px;
|
2021-01-11 16:45:52 +00:00
|
|
|
margin: 1.5px 0;
|
2021-01-12 19:31:35 +00:00
|
|
|
background-color: var( --background-color-icon );
|
2021-05-27 14:35:21 +00:00
|
|
|
border-radius: var( --border-radius--large );
|
2020-06-07 05:30:54 +00:00
|
|
|
transform-origin: 4px 0;
|
2022-05-01 23:14:17 +00:00
|
|
|
transition: @transition-transform, @transition-background, @transition-opacity;
|
2020-06-07 05:30:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-03 20:52:25 +00:00
|
|
|
.client-nojs {
|
|
|
|
#mw-drawer-search {
|
|
|
|
// Hide search when client has no JS
|
|
|
|
// Since the function does not work without script
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-13 17:43:28 +00:00
|
|
|
.citizen-animations-ready {
|
|
|
|
#mw-drawer {
|
2022-05-01 23:14:17 +00:00
|
|
|
transition: @transition-transform;
|
2021-03-13 17:43:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-09 21:56:28 +00:00
|
|
|
.skin-citizen-dark {
|
2021-01-19 20:56:42 +00:00
|
|
|
#mw-drawer-menu a:after {
|
|
|
|
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
|
|
|
|
2021-05-07 02:36:34 +00:00
|
|
|
// RTL
|
|
|
|
.rtl {
|
|
|
|
#mw-drawer-button:hover {
|
|
|
|
~ #mw-drawer-button-icon {
|
|
|
|
#mw-drawer-button-icon-1 {
|
|
|
|
transform: translate3d( 50%, 0, 0 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-07-30 17:48:57 +00:00
|
|
|
|
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
|
|
|
#mw-drawer {
|
|
|
|
right: unset;
|
|
|
|
bottom: unset;
|
|
|
|
max-height: ~'calc(100vh - var(--margin-header-item) * 2 )';
|
2022-04-23 05:06:07 +00:00
|
|
|
align-items: flex-start;
|
|
|
|
|
|
|
|
&-header {
|
|
|
|
justify-content: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-siteinfo {
|
|
|
|
.mw-logo-wordmark {
|
|
|
|
font-size: 2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-logo {
|
|
|
|
.mw-logo-icon {
|
|
|
|
width: auto;
|
|
|
|
height: 80px;
|
|
|
|
}
|
|
|
|
}
|
2021-02-20 20:23:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 16:47:33 +00:00
|
|
|
@media ( min-width: @width-breakpoint-desktop-wide ) {
|
2021-01-29 19:54:42 +00:00
|
|
|
#mw-drawer-menu {
|
2021-07-30 17:48:57 +00:00
|
|
|
max-width: 1200px;
|
2021-01-29 16:47:33 +00:00
|
|
|
}
|
|
|
|
}
|