2019-08-01 20:35:10 +00:00
|
|
|
// Component of ui.less
|
|
|
|
// FIXME: Move to components/
|
2019-08-08 20:01:03 +00:00
|
|
|
@import '../../minerva.less/minerva.variables.less';
|
|
|
|
@import '../../minerva.less/minerva.mixins.less';
|
2019-08-01 20:35:10 +00:00
|
|
|
|
|
|
|
/* stylelint-disable no-descending-specificity */
|
|
|
|
|
|
|
|
// .menu
|
|
|
|
#mw-mf-page-left {
|
2019-08-05 20:41:12 +00:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
min-width: 275px;
|
|
|
|
|
|
|
|
@media screen and ( min-width: @width-breakpoint-tablet ) {
|
|
|
|
min-width: @width-breakpoint-mobile;
|
|
|
|
}
|
|
|
|
// It should always be possible to dismiss the menu by tapping outside of it.
|
|
|
|
max-width: 80%;
|
|
|
|
z-index: @z-indexDrawer;
|
2019-08-01 20:35:10 +00:00
|
|
|
// Add vertical scrollbar as needed.
|
|
|
|
overflow-y: auto;
|
2019-08-05 20:41:12 +00:00
|
|
|
background-color: @primaryNavBackgroundColor;
|
|
|
|
.transform( translate( -100%, 0 ) );
|
2019-08-01 20:35:10 +00:00
|
|
|
|
|
|
|
ul {
|
|
|
|
padding-bottom: 22px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.primary-navigation-enabled {
|
2019-08-05 20:41:12 +00:00
|
|
|
overflow: hidden;
|
|
|
|
// Necessary to disable scrolling on Android and iOS devices.
|
|
|
|
touch-action: none;
|
2019-08-01 20:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.animations {
|
|
|
|
// .menu
|
|
|
|
#mw-mf-page-left {
|
2019-08-05 20:41:12 +00:00
|
|
|
.transition( transform @menu-animation-duration @menu-animation-easing; );
|
2019-08-01 20:35:10 +00:00
|
|
|
}
|
|
|
|
|
2019-08-05 20:41:12 +00:00
|
|
|
&.primary-navigation-enabled {
|
2019-08-01 20:35:10 +00:00
|
|
|
// .menu
|
|
|
|
#mw-mf-page-left {
|
2019-08-05 20:41:12 +00:00
|
|
|
.transform( translate( 0, 0 ) );
|
2019-08-01 20:35:10 +00:00
|
|
|
}
|
|
|
|
|
2019-08-05 20:41:12 +00:00
|
|
|
.transparent-shield {
|
|
|
|
visibility: visible;
|
|
|
|
opacity: 0.5;
|
2019-08-01 20:35:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-05 20:41:12 +00:00
|
|
|
|
|
|
|
// Special:MobileMenu
|
|
|
|
.navigation-full-screen {
|
|
|
|
// .menu
|
|
|
|
#mw-mf-page-left {
|
|
|
|
max-width: none;
|
|
|
|
transform: none;
|
|
|
|
}
|
|
|
|
}
|