mediawiki-skins-MinervaNeue/resources/skins.minerva.base.styles/common.less
Steph Toyofuku 5e35d585cf Fix alignment for nearby and settings items in menu, and correctly hide when JS is disabled
Removes a `display: inherit` that was causing issues with the alignment of these two items in the menu.  In addition, correctly sets display to none for jsonly-specified list items when client js is disabled and rename the class to make it more specific to the menu items

Note: this will have a visual impact as it is fixing what is currently a visual bug.  The jsonly hiding will also not work with cached content, but since it's currently broken we figured this was acceptable

Bug: T346670
Change-Id: I56d2c4fcba09d199a0fd6aad2f1621509bbfaba5
2023-12-14 21:58:39 +00:00

40 lines
1,010 B
Plaintext

@import '../../minerva.less/minerva.variables.less';
.view-border-box *,
.view-border-box {
box-sizing: border-box;
}
.client-js .mw-redirectedfrom,
/* FIXME: Use generic rule for print stylesheets */
.printfooter {
display: none;
}
// currently used to hide talk button
.hidden {
display: none !important;
}
#mw-mf-viewport { // stylelint-disable-line selector-max-id
position: relative;
height: 100%;
}
// We need to ensure the content has the chrome background - otherwise it will
// overlap the menu during the main menu reveal/hide animation
#mw-mf-page-center { // stylelint-disable-line selector-max-id
width: 100%;
min-height: 100%;
position: relative;
background-color: @background-color-light;
}
.content {
// Create a new stacking context. `transform: translateZ( 0 );` would be preferred but that
// triggers a browser bug which affects the edit cards in Visual Editor:
// https://bugs.chromium.org/p/chromium/issues/detail?id=20574
position: relative;
z-index: @z-indexBase;
}