MinervaNeue/resources/skins.minerva.base.styles/common.less
jdlrobson a3efca1582 Remove unnecessary skins.minerva.base.styles
* truncated-text is only used in MainMenu, last modified bar,
 a few special pages
Making this a mixin and limiting it to mobile.startup skinStyles
and mobile.special.styles thus makes sense
* cloaked-element is only ever added by Skin.js in mobile.startup
* position-fixed is only ever added by Skin.js

Change-Id: Iaf7061e9dda87eb25c963f8a281175af08f358e5
2018-07-26 01:18:00 +00:00

56 lines
1.3 KiB
Plaintext

@import 'mediawiki.mixins.less';
@import '../../minerva.less/minerva.variables';
@import '../../minerva.less/minerva.mixins';
.view-border-box *,
.view-border-box {
.box-sizing( border-box );
}
textarea {
padding: 5px 0 5px 5px;
width: 100%;
resize: none;
// stylelint-disable-next-line no-descending-specificity
.box-sizing( border-box );
}
// We hide the table of contents unless the user is viewing in tablet resolution or higher
.toc-mobile,
// Table of contents as provided by parser has no styling, this is a temporary measure until we are able
// to commit more time to Minerva on desktop
.toc,
// We also need a more specific rule for tablet non-JS users who will load skins.minerva.tablet.styles
.client-nojs .toc-mobile,
.client-js .mw-redirectedfrom,
// FIXME: Use generic rule for print stylesheets
.printfooter,
.jsonly {
display: none;
}
/* TODO: Fix specificity */
/* stylelint-disable no-descending-specificity */
.client-js .jsonly {
display: inherit;
}
// currently used to hide talk button
.hidden {
display: none !important;
}
#mw-mf-viewport {
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 {
width: 100%;
position: relative;
background-color: @chromeColor;
z-index: @z-indexBase;
}