mediawiki-skins-Vector/resources/skins.vector.js/limitedWidthToggle.less
Jon Robson 0eb8811e7a Limited width toggle
* Introduce a generalized feature toggle system that uses user
preferences or localStorage for anons (right now the latter is out
of scope but will be explored in a follow up)
* Feature flagged to VisualEnhancementNext for now, given the dependency
on icon size

Bug: T319449
Change-Id: I7343a3f38b720411d5ef5f3414f25f475b0bb84a
2022-11-01 16:29:43 +00:00

26 lines
727 B
Plaintext

.vector-limited-width-toggle {
display: none;
}
// Note on certain pages the control will have no effect e.g. Special:RecentChanges
// Defining this at 1600px was a product decision so do not change it
// (more context at https://phabricator.wikimedia.org/T319449#8346630)
@media ( min-width: 1600px ) {
.vector-feature-visual-enhancement-next-enabled .vector-limited-width-toggle {
display: block;
position: fixed;
bottom: 8px;
right: 8px;
&:before {
background-image: url( images/fullscreen.svg );
}
}
.vector-feature-visual-enhancement-next-enabled.vector-feature-limited-width-content-disable {
.vector-limited-width-toggle:before {
background-image: url( images/fullscreen-close.svg );
}
}
}