Debian Codegraph @

skins/Vector/skinStyles/mediawiki.notification.less

raw
1 @import '../resources/skins.vector.styles/variables.less';
2
3 /* mediawiki.notification */
4
5 .mw-notification-area {
6 font-size: @font-size-notification;
7 // Center the notification area with a maximum width.
8 // We can't center .mw-notification-area-overlay as that would break position:fixed.
9 width: 100%;
10 box-sizing: border-box;
11 left: 50%;
12 transform: translateX( -50% );
13
14 .vector-feature-limited-width-clientpref-1 & {
15 max-width: ( @max-width-page-container / @font-size-notification );
16 }
17 }
18
19 .mw-notification-area-layout {
20 top: 3.5em;
21 }
22
23 .mw-notification {
24 border: @border-base;
25 border-radius: @border-radius-base;
26 box-shadow: 0 2px 2px 0 rgba( 0, 0, 0, 0.25 );
27 // As the notification area was centered and given variable width, restore
28 // the fixed width of notifications here. Matches .mw-notification-area
29 // rule in core.
30 width: 20em;
31 box-sizing: border-box;
32 margin-left: auto;
33 }
34
35 .vector-sticky-header-enabled .mw-notification-area {
36 transition: @transition-sticky-header;
37 }
38
39 /**
40 * When the sticky header is open in modern Vector,
41 * and the notification bar is also open, the notification
42 * should be moved so that it doesn't obstruct the sticky header
43 */
44 .vector-sticky-header-visible .mw-notification-area-overlay > .mw-notification-area-floating {
45 transform: translate( -50%, @height-header );
46 }