mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 03:08:12 +00:00
73a95866bc
Animate the notifications menu over the content instead of the content over the menu. Try to trim unnecessary CSS. Bug: T206354 Bug: T226125 Change-Id: I08f65798ef41da3c7c48fb5c65e31c6a3dd71af1
57 lines
1.2 KiB
Plaintext
57 lines
1.2 KiB
Plaintext
@import '../../minerva.less/minerva.variables';
|
|
@import '../../minerva.less/minerva.mixins';
|
|
|
|
/* stylelint-disable no-descending-specificity */
|
|
|
|
.notifications-overlay {
|
|
visibility: visible;
|
|
}
|
|
|
|
// 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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.animations { // FIXME: Make animations a conditional class on the drawer itself
|
|
.notifications-overlay.navigation-drawer {
|
|
display: block;
|
|
|
|
// +2% to accommodate for the border/box-shadow
|
|
.transform( translate( 102%, 0 ) );
|
|
.transition-transform( @menu-animation-duration @menu-animation-easing; );
|
|
|
|
&.visible {
|
|
.transform( translate( 0, 0 ) );
|
|
}
|
|
}
|
|
}
|
|
|
|
.secondary-navigation-enabled.animations {
|
|
#mw-mf-page-center {
|
|
// override non-animated version
|
|
left: 0 !important;
|
|
}
|
|
}
|