mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-04 12:09:30 +00:00
e5bf8adad7
* Update classes to use clientpref-1 and clientpref-0 suffix for limited width I've limited this to the only client preference for now to reduce risk. * For cached HTML retain existing CSS rules, and continue saving a cookie * Migrate cookie if found for newly generated pages. This will be to ensure the old cookie and new cookie are in sync (this should be a one time operation) Depends-On: I1e635f843ac9b2f248b1f7618134598e80291b38 Bug: T341641 Change-Id: I120f8f7114b33d2cfbd1c3c57ebf41f8b2d7fec4
11 lines
532 B
Plaintext
11 lines
532 B
Plaintext
@import '../resources/common/variables.less';
|
|
|
|
// FIXME: Remove -enabled when cache has cleared.
|
|
.vector-feature-limited-width-clientpref-1 #wikiPreview,
|
|
.vector-feature-limited-width-enabled #wikiPreview {
|
|
// @max-width-content-container is defined in ems, so the final width depends on font-size,
|
|
// but this element is nested in an element with a different font-size. Divide by the
|
|
// current font-size to get the intended result (as if font-size wasn't changed).
|
|
max-width: @max-width-content-container / @font-size-base;
|
|
}
|