Debian Codegraph @

skins/MinervaNeue/skinStyles/mobile.startup/drawers.less

raw
1 @import '../../minerva.less/minerva.variables.less';
2
3 .drawer {
4 background-color: @background-color-interactive-subtle;
5 // needed for Android 4.x
6 position: absolute;
7 }
8
9 // Basic toast notification
10 //
11 // Toast must have visible class to be shown
12 //
13 // Markup:
14 // <div class="toast visible">
15 // Notification for user.
16 // </div>
17 // <div class="mw-notification-area">
18 // <div class="mw-notification">Notification 1 for user.</div>
19 // <div class="mw-notification">Notification 2 for user.</div>
20 // </div>
21 .mw-notification-area,
22 .toast,
23 .drawer {
24 box-sizing: border-box;
25 position: fixed;
26 bottom: 0;
27 left: 0;
28 right: 0;
29 // don't allow notifications to cover the entire screen
30 max-height: 50%;
31 // needs to be higher than for overlays to show on top of overlays
32 z-index: @z-index-over-overlay;
33 }
34
35 .mw-notification,
36 .toast,
37 .drawer {
38 box-sizing: border-box;
39 box-shadow: @box-shadow-drop-xx-large;
40 word-wrap: break-word;
41 // don't use visibility: hidden in old browsers that don't support animations
42 display: none;
43
44 &.visible,
45 &.mw-notification-visible {
46 display: block;
47 }
48 }