mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-26 08:35:42 +00:00
64df4fde20
Remove JavaScript that collapses tabs and replace with an easier to maintain breakpoint based solution. Tabs will now collapse below the tablet breakpoint Note: In the case of mw.util.addPortletLink, to add items to the `views` menu, these will not be collapsed into the more menu and must now be explicitly added to both menus, ie. if the window is resized these will hide and not appear in the more menu. However, when mw.util.addPortletLink attempts to add to `views` menu when there is not available space, we will redirect those links to the more (`cactions`) dropdown menu. Bug: T306229 Change-Id: I34ace0aeb3e23d8f6a8c5a8680bb492f37e343ad
27 lines
490 B
Plaintext
27 lines
490 B
Plaintext
@import '../../common/variables.less';
|
|
|
|
.mw-article-toolbar-container {
|
|
.mw-portlet-views {
|
|
display: none;
|
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.vector-more-collapsible-item {
|
|
display: none;
|
|
|
|
@media ( max-width: @width-breakpoint-tablet ) {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
// Make sure pcactions is displayed (even if .emptyPortlet present)
|
|
.mw-portlet-cactions {
|
|
@media ( max-width: @width-breakpoint-tablet ) {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|