2019-08-08 20:01:03 +00:00
|
|
|
@import '../../minerva.less/minerva.variables.less';
|
|
|
|
@import '../../minerva.less/minerva.mixins.less';
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
.mw-notification,
|
|
|
|
.toast {
|
2019-07-31 17:59:52 +00:00
|
|
|
font-size: @font-size-minerva-small;
|
2017-07-12 15:12:40 +00:00
|
|
|
padding: 0.9em 1em;
|
|
|
|
background-color: @toastNotificationColor;
|
|
|
|
color: #fff;
|
|
|
|
margin: 0 10% 20px;
|
|
|
|
width: 80%;
|
|
|
|
text-align: center;
|
2020-06-12 04:30:50 +00:00
|
|
|
border-radius: @border-radius-base;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
// Toast notification error state
|
|
|
|
//
|
|
|
|
// When the toast message needs to convey that an error has occurred add the error class
|
|
|
|
//
|
|
|
|
// Markup:
|
|
|
|
// <div class="toast visible error">
|
2020-02-11 22:24:19 +00:00
|
|
|
// An error occurred.
|
2017-07-12 15:12:40 +00:00
|
|
|
// </div>
|
|
|
|
&.mw-notification-type-error {
|
2019-04-03 02:16:46 +00:00
|
|
|
background-size: 24px;
|
2017-07-12 15:12:40 +00:00
|
|
|
background-position: 16px 50%;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
padding-left: 5%;
|
|
|
|
width: 75%;
|
|
|
|
border: 0; // FIXME: this is needed because a global .error adds border
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2020-06-12 04:23:50 +00:00
|
|
|
color: @color-base--inverted;
|
2019-07-31 23:28:27 +00:00
|
|
|
text-decoration: underline;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-notification-area {
|
|
|
|
z-index: @z-indexOverOverlay;
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2020-01-07 21:27:29 +00:00
|
|
|
.mw-notification,
|
|
|
|
.drawer {
|
|
|
|
display: block;
|
|
|
|
visibility: hidden;
|
|
|
|
/* we can't determine the actual size of the drawer in CSS, so this is
|
|
|
|
* an estimate; it doesn't have to be exact because it's used only for
|
|
|
|
* the sliding animation, not for hiding the drawer */
|
2022-05-16 16:55:54 +00:00
|
|
|
transform: translate( 0, 100px );
|
2020-01-09 00:53:45 +00:00
|
|
|
bottom: 0;
|
2020-01-07 21:27:29 +00:00
|
|
|
opacity: 0;
|
2022-05-16 16:55:54 +00:00
|
|
|
transition: transform @transition-duration-medium, opacity @transition-duration-medium, visibility @transition-duration-medium;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
2020-01-07 21:27:29 +00:00
|
|
|
&.visible, &.mw-notification-visible {
|
|
|
|
visibility: visible;
|
|
|
|
opacity: 1;
|
2022-05-16 16:55:54 +00:00
|
|
|
transform: translate( 0, 0 );
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
}
|