mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-29 00:20:51 +00:00
38ca243e39
Replacing 'mediawiki.ui/variables.less' @import with new skin-aware 'mediawiki.skin.variables.less' standard. Removing calls for 'mediawiki.skin.variables.less' in favor for 'minerva.variables.less' for consistency. Also - replacing several static values with new Codex design token featuring skin variables of `background-color`, `color`, `border-*` and `transition` categories - renaming several Less variables to variable naming standard - moving a small number of MinervaNeue specific variables into 'minderva.variables.less' file. Those should be replaced in mid-future by Codex design tokens Please note, that this patch is not replacing all values with possible Codex tokens. It's just applying them on selected categories for consistency for now to keep the patch easier reviewable. Further replacements will be done in follow-up patches. Bump MediaWiki core required version to >= v1.41.0. Bug: T319381 Bug: T332541 Depends-On: I98c8cc27527533e2efb3b987ee34bc403e988b75 Change-Id: I86c5a35377541a784552c29456e0b8b507b3ee9c
63 lines
1.5 KiB
Plaintext
63 lines
1.5 KiB
Plaintext
@import '../../minerva.less/minerva.variables.less';
|
|
@import '../../minerva.less/minerva.mixins.less';
|
|
|
|
.mw-notification,
|
|
.toast {
|
|
font-size: @font-size-minerva-small;
|
|
padding: 0.9em 1em;
|
|
background-color: @background-color-toast-notification;
|
|
color: @color-inverted;
|
|
margin: 0 10% 20px;
|
|
width: 80%;
|
|
text-align: center;
|
|
border-radius: @border-radius-base;
|
|
|
|
// 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">
|
|
// An error occurred.
|
|
// </div>
|
|
&.mw-notification-type-error {
|
|
background-size: 24px;
|
|
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 {
|
|
color: @color-inverted;
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
.mw-notification-area {
|
|
z-index: @z-indexOverOverlay;
|
|
position: fixed;
|
|
bottom: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.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 */
|
|
transform: translate( 0, 100px );
|
|
bottom: 0;
|
|
opacity: 0;
|
|
transition: transform @transition-duration-medium, opacity @transition-duration-medium, visibility @transition-duration-medium;
|
|
|
|
&.visible, &.mw-notification-visible {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
transform: translate( 0, 0 );
|
|
}
|
|
}
|