mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-14 11:15:33 +00:00
3cea6d4132
This change scopes the styles related to the Zebra update by wrapping the imports in a top-level feature flag selector, i.e .vector-feature-zebra-design-enabled { @import "./screen.less" } To account for this extra selector, ampersands are added wherever the html element is targeted in the affected files. This applies to both zebra enabled and disabled files. getDefaultModules() is used in SkinVector22.php to conditionally load the new skins.vector.zebra.styles module when the feature is enabled. Bug: T332600 Change-Id: I5e673df383ff31f296010f982e4188c82f095590
28 lines
874 B
Plaintext
28 lines
874 B
Plaintext
/**
|
|
* Vector Zebra stylesheets
|
|
* NOTE: The skins.vector.zebra.styles module is intended to hold
|
|
* styles that are in-development under a feature flag.
|
|
* This module should be folded back into skins.vector.styles after
|
|
* the feature flag as been removed.
|
|
*/
|
|
|
|
@import 'mediawiki.mixins.less';
|
|
@import '../common/variables.less';
|
|
@import './mixins.less';
|
|
|
|
@media screen {
|
|
.vector-feature-zebra-design-enabled {
|
|
@import './layouts/screen.less';
|
|
@import './layouts/zebra.less';
|
|
@import './layouts/toc/pinned.less';
|
|
@import './layouts/toc/unpinned.less';
|
|
@import './components/Dropdown.less';
|
|
@import './components/MainMenu.less';
|
|
@import './components/PinnableElement.less';
|
|
@import './components/PinnableHeader.less';
|
|
@import './components/PageTools.less';
|
|
@import './components/TableOfContents.less';
|
|
@import './components/StickyHeader.less';
|
|
}
|
|
}
|