2017-07-12 15:12:40 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
@import 'minerva.variables.less';
|
|
|
|
@import 'minerva.mixins.less';
|
|
|
|
|
|
|
|
// Reusable components
|
|
|
|
//
|
|
|
|
// Styleguide 6.
|
|
|
|
|
|
|
|
// Cloaked element
|
|
|
|
//
|
|
|
|
// Use this for elements that are clickable but not visible
|
|
|
|
// Examples: A file input who's parent is styled with an icon
|
|
|
|
// A shield that covers the entire screen and is made more opaque
|
|
|
|
// under a different circumstance
|
|
|
|
//
|
|
|
|
// Markup:
|
2017-08-16 17:56:47 +00:00
|
|
|
// <div style="width:50px; height:50px; border:1px solid red;">
|
|
|
|
// <input type="file" class="cloaked-element">
|
2017-07-12 15:12:40 +00:00
|
|
|
// </div>
|
|
|
|
//
|
|
|
|
// Styleguide 6.1.
|
|
|
|
.cloaked-element {
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.view-border-box *,
|
|
|
|
.view-border-box {
|
|
|
|
.box-sizing( border-box );
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
padding: 5px 0 5px 5px;
|
|
|
|
width: 100%;
|
|
|
|
resize: none;
|
2018-04-02 21:26:06 +00:00
|
|
|
// stylelint-disable-next-line no-descending-specificity
|
|
|
|
.box-sizing( border-box );
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// We hide the table of contents unless the user is viewing in tablet resolution or higher
|
|
|
|
.toc-mobile,
|
2017-10-31 01:11:32 +00:00
|
|
|
// 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
|
2018-03-19 00:35:47 +00:00
|
|
|
.toc,
|
2017-07-12 15:12:40 +00:00
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* stylelint-enable no-descending-specificity */
|
|
|
|
.position-fixed {
|
|
|
|
// use !important to override more specific rules (e.g. in Overlay.less)
|
|
|
|
position: fixed !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.touch-events {
|
|
|
|
:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// currently used to hide talk button
|
|
|
|
.hidden {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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 {
|
|
|
|
background-color: @chromeColor;
|
|
|
|
}
|