2019-08-01 20:35:10 +00:00
|
|
|
@import '../../minerva.less/minerva.variables';
|
|
|
|
@import '../../minerva.less/minerva.mixins';
|
|
|
|
|
|
|
|
/* stylelint-disable no-descending-specificity */
|
|
|
|
|
2019-08-05 16:08:27 +00:00
|
|
|
.notifications-overlay {
|
|
|
|
visibility: visible;
|
2019-08-01 20:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// needs to be more specific than .overlay rules
|
|
|
|
.notifications-overlay.navigation-drawer {
|
|
|
|
right: 0;
|
|
|
|
width: auto;
|
|
|
|
box-shadow: -5px 0 0 0 rgba( 0, 0, 0, 0.3 );
|
|
|
|
}
|
|
|
|
|
|
|
|
@media all and ( min-width: @width-breakpoint-tablet ) {
|
|
|
|
@rightDrawerLeftOffset: 100% - @rightDrawerWidth;
|
|
|
|
|
|
|
|
.notifications-overlay.navigation-drawer {
|
|
|
|
left: @rightDrawerLeftOffset;
|
|
|
|
|
|
|
|
.overlay-header {
|
|
|
|
margin: 0; // T210191
|
|
|
|
width: 100%; // T218731
|
|
|
|
// T170903
|
|
|
|
max-width: none;
|
|
|
|
|
|
|
|
.cancel {
|
|
|
|
// 0 because we want to have some tappable area to the left of the icon
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-05 16:08:27 +00:00
|
|
|
.animations { // FIXME: Make animations a conditional class on the drawer itself
|
2019-08-01 20:35:10 +00:00
|
|
|
.notifications-overlay.navigation-drawer {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
// +2% to accommodate for the border/box-shadow
|
|
|
|
.transform( translate( 102%, 0 ) );
|
2019-08-05 16:08:27 +00:00
|
|
|
.transition-transform( @menu-animation-duration @menu-animation-easing; );
|
2019-08-01 20:35:10 +00:00
|
|
|
|
|
|
|
&.visible {
|
|
|
|
.transform( translate( 0, 0 ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.secondary-navigation-enabled.animations {
|
|
|
|
#mw-mf-page-center {
|
|
|
|
// override non-animated version
|
|
|
|
left: 0 !important;
|
|
|
|
}
|
|
|
|
}
|