2023-10-05 20:33:10 +00:00
|
|
|
@import '../resources/skins.vector.styles/variables.less';
|
2014-08-07 11:38:34 +00:00
|
|
|
|
|
|
|
/* mediawiki.notification */
|
|
|
|
|
2017-04-10 15:07:45 +00:00
|
|
|
.mw-notification-area {
|
2019-09-26 23:43:42 +00:00
|
|
|
font-size: @font-size-notification;
|
2023-10-25 12:23:16 +00:00
|
|
|
// Center the notification area with a maximum width.
|
|
|
|
// We can't center .mw-notification-area-overlay as that would break position:fixed.
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
max-width: @max-width-page-container / @font-size-notification;
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX( -50% );
|
2017-04-10 15:07:45 +00:00
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2017-04-10 15:07:45 +00:00
|
|
|
.mw-notification-area-layout {
|
2023-01-26 21:03:32 +00:00
|
|
|
top: 3.5em;
|
2017-04-10 15:07:45 +00:00
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2017-04-10 15:07:45 +00:00
|
|
|
.mw-notification {
|
2020-04-23 21:41:05 +00:00
|
|
|
border: @border-base;
|
|
|
|
border-radius: @border-radius-base;
|
2017-04-10 12:22:04 +00:00
|
|
|
box-shadow: 0 2px 2px 0 rgba( 0, 0, 0, 0.25 );
|
2023-10-25 12:23:16 +00:00
|
|
|
// As the notification area was centered and given variable width, restore
|
|
|
|
// the fixed width of notifications here. Matches .mw-notification-area
|
|
|
|
// rule in core.
|
|
|
|
width: 20em;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin-left: auto;
|
2017-04-10 15:07:45 +00:00
|
|
|
}
|
2021-12-07 19:41:46 +00:00
|
|
|
|
|
|
|
.vector-sticky-header-enabled .mw-notification-area {
|
|
|
|
transition: @transition-sticky-header;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* When the sticky header is open in modern Vector,
|
|
|
|
* and the notification bar is also open, the notification
|
|
|
|
* should be moved so that it doesn't obstruct the sticky header
|
|
|
|
*/
|
2022-05-05 20:54:20 +00:00
|
|
|
.vector-sticky-header-visible .mw-notification-area-overlay > .mw-notification-area-floating {
|
2023-10-25 12:23:16 +00:00
|
|
|
transform: translate( -50%, @height-header );
|
2021-12-07 19:41:46 +00:00
|
|
|
}
|