mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-21 04:02:53 +00:00
7b35e6b1e8
Creates a dark mode launch banner, (copied from the MinervaNue skin) to announce the launch of dark-mode for Vector 2022. The banner itself is not invoked anywhere by default, but will be invoked through CentralNotice as a banner as part of a launch campaign. To invoke the banner manually, execute the following in the dev console: ``` mw.loader.using( 'skins.vector.DarkModeLaunchBanner', function( require ) { require( 'skins.vector.DarkModeLaunchBanner')(); } ); ``` Bug: T370303 Change-Id: I1ca4aab8c302ef418bc1d12dde0d80c96c3b8d4f
10 lines
268 B
Plaintext
10 lines
268 B
Plaintext
@import 'mediawiki.skin.variables.less';
|
|
|
|
.skin-vector-launch-image {
|
|
background: url( dark-mode-banner.svg ) no-repeat 0 0;
|
|
background-size: 100%;
|
|
width: ~'calc(100% + @{spacing-300})';
|
|
margin: -@spacing-100 -@spacing-150 0 -@spacing-150;
|
|
aspect-ratio: 2 / 1;
|
|
}
|