2019-08-08 20:01:03 +00:00
|
|
|
@import '../../minerva.less/minerva.variables.less';
|
|
|
|
|
|
|
|
.drawer {
|
2024-02-01 17:33:08 +00:00
|
|
|
background-color: var( --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-04-29 21:08:34 +00:00
|
|
|
box-shadow: 0 -1px 8px 0 @box-shadow-color-base;
|
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;
|
|
|
|
|
|
|
|
&.visible, &.mw-notification-visible {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|