| 1 |
@import '../../minerva.less/minerva.variables.less'; |
| 2 |
@import '../../minerva.less/minerva.mixins.less'; |
| 3 |
|
| 4 |
.mw-notification, |
| 5 |
.toast { |
| 6 |
font-size: @font-size-minerva-small; |
| 7 |
padding: 0.9em 1em; |
| 8 |
background-color: @background-color-toast-notification; |
| 9 |
// the text should be white in both modes |
| 10 |
color: @color-inverted-fixed; |
| 11 |
margin: 0 10% 20px; |
| 12 |
width: 80%; |
| 13 |
text-align: center; |
| 14 |
border-radius: @border-radius-base; |
| 15 |
|
| 16 |
// Toast notification error state |
| 17 |
// |
| 18 |
// When the toast message needs to convey that an error has occurred add the error class |
| 19 |
// |
| 20 |
// Markup: |
| 21 |
// <div class="toast visible error"> |
| 22 |
// An error occurred. |
| 23 |
// </div> |
| 24 |
&.mw-notification-type-error { |
| 25 |
background-size: 24px; |
| 26 |
background-position: 16px 50%; |
| 27 |
background-repeat: no-repeat; |
| 28 |
padding-left: 5%; |
| 29 |
width: 75%; |
| 30 |
border: 0; // FIXME: this is needed because a global .error adds border |
| 31 |
} |
| 32 |
|
| 33 |
.oo-ui-iconElement-icon { |
| 34 |
// Fix icon placement in post-edit notifications (T336001) |
| 35 |
display: block; |
| 36 |
} |
| 37 |
|
| 38 |
a { |
| 39 |
color: @color-inverted-fixed; |
| 40 |
text-decoration: underline; |
| 41 |
} |
| 42 |
} |
| 43 |
|
| 44 |
.mw-notification-area { |
| 45 |
z-index: @z-index-over-overlay; |
| 46 |
position: fixed; |
| 47 |
bottom: 0; |
| 48 |
width: 100%; |
| 49 |
} |
| 50 |
|
| 51 |
.mw-notification, |
| 52 |
.drawer { |
| 53 |
display: block; |
| 54 |
visibility: hidden; |
| 55 |
/* we can't determine the actual size of the drawer in CSS, so this is |
| 56 |
* an estimate; it doesn't have to be exact because it's used only for |
| 57 |
* the sliding animation, not for hiding the drawer */ |
| 58 |
transform: translate( 0, 100px ); |
| 59 |
bottom: 0; |
| 60 |
opacity: 0; |
| 61 |
transition: transform @transition-duration-medium, opacity @transition-duration-medium, visibility @transition-duration-medium; |
| 62 |
|
| 63 |
&.visible, |
| 64 |
&.mw-notification-visible { |
| 65 |
visibility: visible; |
| 66 |
opacity: 1; |
| 67 |
transform: translate( 0, 0 ); |
| 68 |
} |
| 69 |
} |