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;
|
|
|
|
flex-direction: column;
|
2021-01-29 16:47:33 +00:00
|
|
|
align-items: center;
|
|
|
|
background-color: var( --background-color-overlay );
|
|
|
|
transform: translate3d( 0, -100%, 0 );
|
2021-01-16 00:56:59 +00:00
|
|
|
transform-origin: 0 0;
|
2021-01-29 18:21:11 +00:00
|
|
|
transition: @transition-transform-quick;
|
2021-01-19 20:56:42 +00:00
|
|
|
user-select: none;
|
2021-01-16 00:56:59 +00:00
|
|
|
will-change: transform; // help with performance
|
|
|
|
|
|
|
|
&-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;
|
|
|
|
will-change: unset;
|
|
|
|
}
|
|
|
|
}
|
2021-01-16 00:56:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-button {
|
2021-01-19 20:56:42 +00:00
|
|
|
position: absolute;
|
|
|
|
z-index: 8;
|
2021-01-16 00:56:59 +00:00
|
|
|
width: var( --width-button-corner );
|
|
|
|
height: var( --height-header );
|
|
|
|
|
|
|
|
&-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-01-16 00:56:59 +00:00
|
|
|
margin: ~'calc( ( var( --height-header ) - var( --size-icon ) ) / 2 ) var( --padding-page )';
|
|
|
|
place-content: center;
|
|
|
|
|
|
|
|
&-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;
|
|
|
|
width: 100%;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
padding: var( --height-header ) var( --padding-page ) 20px var( --padding-page );
|
2021-01-16 00:56:59 +00:00
|
|
|
border-bottom: 1px solid var( --border-color-base );
|
|
|
|
}
|
2020-06-07 05:30:54 +00:00
|
|
|
|
2021-03-05 16:37:27 +00:00
|
|
|
&-logo {
|
|
|
|
.mw-logo-icon {
|
|
|
|
width: auto;
|
|
|
|
height: 80px;
|
|
|
|
}
|
|
|
|
|
|
|
|
img.mw-logo-wordmark {
|
|
|
|
width: auto;
|
|
|
|
height: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-03 20:47:32 +00:00
|
|
|
&-search {
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
|
|
&-input {
|
|
|
|
width: 200px;
|
|
|
|
padding: 8px;
|
|
|
|
background: var( --background-color-dp-03 );
|
|
|
|
border-radius: @border-radius-small;
|
|
|
|
text-align: center;
|
|
|
|
transition: @transition-background-quick;
|
2021-02-03 21:04:35 +00:00
|
|
|
.boxshadow(1);
|
2021-02-03 20:47:32 +00:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background: var( --background-color-dp-08 );
|
|
|
|
outline: 0;
|
2021-02-03 21:04:35 +00:00
|
|
|
.boxshadow(3);
|
2021-02-03 20:47:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-19 20:56:42 +00:00
|
|
|
&-menu {
|
2021-01-29 19:54:42 +00:00
|
|
|
display: flex;
|
2021-01-16 00:56:59 +00:00
|
|
|
overflow: auto;
|
2021-01-29 19:54:42 +00:00
|
|
|
max-width: var( --width-layout );
|
|
|
|
flex-wrap: wrap;
|
2021-02-20 20:23:59 +00:00
|
|
|
justify-content: center;
|
2021-01-19 20:56:42 +00:00
|
|
|
font-size: @ui-menu-text;
|
2021-01-16 00:56:59 +00:00
|
|
|
overscroll-behavior: contain;
|
|
|
|
|
2021-01-27 20:05:31 +00:00
|
|
|
h3 {
|
2021-01-29 18:10:46 +00:00
|
|
|
font-size: 16px;
|
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-01-29 16:55:58 +00:00
|
|
|
border-radius: @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 );
|
|
|
|
transition: @transition-opacity-quick;
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-29 16:47:33 +00:00
|
|
|
|
2021-01-29 19:54:42 +00:00
|
|
|
.mw-portal {
|
|
|
|
width: 240px;
|
|
|
|
margin-top: 20px;
|
2021-01-29 16:47:33 +00:00
|
|
|
}
|
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-01-11 16:45:52 +00:00
|
|
|
border-radius: @border-radius-large;
|
2020-06-07 05:30:54 +00:00
|
|
|
transform-origin: 4px 0;
|
|
|
|
transition: @transition-transform-quick, @transition-background-quick, @transition-opacity-quick;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-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-02-20 20:23:59 +00:00
|
|
|
// Portal width (240px) * 2 + Magic (4px)
|
|
|
|
@media ( min-width: 484px ) {
|
|
|
|
#mw-drawer-menu {
|
|
|
|
justify-content: left; // Portals won't get center when there is more than one col
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-02-03 21:11:17 +00:00
|
|
|
max-width: 1200px; // 240px * 5
|
2021-01-29 16:47:33 +00:00
|
|
|
}
|
|
|
|
}
|