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;
|
2023-04-09 13:49:29 +00:00
|
|
|
background-color: @background-color-toast-notification;
|
2024-05-13 21:53:31 +00:00
|
|
|
// the text should be white in both modes
|
|
|
|
color: @color-inverted-fixed;
|
2017-07-12 15:12:40 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2023-05-04 19:51:20 +00:00
|
|
|
.oo-ui-iconElement-icon {
|
|
|
|
// Fix icon placement in post-edit notifications (T336001)
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
a {
|
2024-05-24 18:04:58 +00:00
|
|
|
color: @color-inverted-fixed;
|
2019-07-31 23:28:27 +00:00
|
|
|
text-decoration: underline;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-notification-area {
|
2024-01-31 15:06:56 +00:00
|
|
|
z-index: @z-index-over-overlay;
|
2017-07-12 15:12:40 +00:00
|
|
|
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
|
|
|
|
2024-07-27 05:52:33 +00:00
|
|
|
&.visible,
|
|
|
|
&.mw-notification-visible {
|
2020-01-07 21:27:29 +00:00
|
|
|
visibility: visible;
|
|
|
|
opacity: 1;
|
2022-05-16 16:55:54 +00:00
|
|
|
transform: translate( 0, 0 );
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
}
|