2019-08-08 20:01:03 +00:00
|
|
|
@import '../../minerva.less/minerva.variables.less';
|
|
|
|
|
|
|
|
.drawer {
|
2024-06-10 20:52:01 +00:00
|
|
|
background-color: @background-color-interactive-subtle;
|
2019-08-08 20:01:03 +00:00
|
|
|
// needed for Android 4.x
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Basic toast notification
|
|
|
|
//
|
|
|
|
// Toast must have visible class to be shown
|
|
|
|
//
|
|
|
|
// Markup:
|
|
|
|
// <div class="toast visible">
|
|
|
|
// Notification for user.
|
|
|
|
// </div>
|
2023-05-04 19:51:20 +00:00
|
|
|
// <div class="mw-notification-area">
|
|
|
|
// <div class="mw-notification">Notification 1 for user.</div>
|
|
|
|
// <div class="mw-notification">Notification 2 for user.</div>
|
|
|
|
// </div>
|
|
|
|
.mw-notification-area,
|
2019-08-08 20:01:03 +00:00
|
|
|
.toast,
|
|
|
|
.drawer {
|
2022-05-16 16:55:54 +00:00
|
|
|
box-sizing: border-box;
|
2019-08-08 20:01:03 +00:00
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2023-05-04 19:51:20 +00:00
|
|
|
// don't allow notifications to cover the entire screen
|
|
|
|
max-height: 50%;
|
2019-08-08 20:01:03 +00:00
|
|
|
// needs to be higher than for overlays to show on top of overlays
|
2024-01-31 15:06:56 +00:00
|
|
|
z-index: @z-index-over-overlay;
|
2023-05-04 19:51:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-notification,
|
|
|
|
.toast,
|
|
|
|
.drawer {
|
|
|
|
box-sizing: border-box;
|
2024-06-11 20:46:30 +00:00
|
|
|
box-shadow: @box-shadow-drop-xx-large;
|
2023-05-04 19:51:20 +00:00
|
|
|
word-wrap: break-word;
|
2019-08-08 20:01:03 +00:00
|
|
|
// don't use visibility: hidden in old browsers that don't support animations
|
|
|
|
display: none;
|
|
|
|
|
2024-07-27 05:52:33 +00:00
|
|
|
&.visible,
|
|
|
|
&.mw-notification-visible {
|
2019-08-08 20:01:03 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|