mediawiki-skins-MinervaNeue/skinStyles/mobile.startup/drawers.less
jdlrobson 7280d255c0 Dev: Prep for storybook
* Remove ambiguity in imports - say the file extension
'less' for all instances of variables and mixins.
* Separate toast styles from drawer styles so they can be
imported separately
* associate header-action selector with its parent
(.overlay-header) not parent's parent (.overlay) so it can be imported
and rendered without the Overlay.

Change-Id: Ib7e19a440ba095d6424d35305fb41d643ca9764c
2019-08-21 12:20:26 -07:00

41 lines
878 B
Plaintext

@import '../../minerva.less/minerva.variables.less';
@import '../../minerva.less/minerva.mixins.less';
.drawer {
background-color: @colorGray15;
// needed for Android 4.x
position: absolute;
// needed for MSIE 9 (Windows Phone 7)
width: 100%;
}
// Basic toast notification
//
// Toast must have visible class to be shown
//
// Markup:
// <div class="toast visible">
// Notification for user.
// </div>
//
// Styleguide 3.1.
.mw-notification,
.toast,
.drawer {
.box-sizing( border-box );
position: fixed;
bottom: 0;
left: 0;
right: 0;
box-shadow: 0 -1px 8px 0 rgba( 0, 0, 0, 0.35 );
word-wrap: break-word;
// needs to be higher than for overlays to show on top of overlays
z-index: @z-indexOverOverlay;
// don't use visibility: hidden in old browsers that don't support animations
display: none;
&.visible, &.mw-notification-visible {
display: block;
}
}