2017-07-12 15:12:40 +00:00
|
|
|
/*
|
|
|
|
A file for css that optimises the Minerva skin on larger devices.
|
|
|
|
*/
|
|
|
|
|
2019-01-11 00:28:25 +00:00
|
|
|
@import '../../../minerva.less/minerva.variables';
|
|
|
|
@import '../../../minerva.less/minerva.mixins';
|
2017-07-12 15:12:40 +00:00
|
|
|
@paddingVertical: 1.4em;
|
|
|
|
|
2018-02-05 19:17:54 +00:00
|
|
|
@media screen and ( min-width: @width-breakpoint-tablet ) {
|
2017-07-12 15:12:40 +00:00
|
|
|
.client-js {
|
|
|
|
#searchIcon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
.branding-box {
|
|
|
|
width: @brandingBoxWidth;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-box {
|
|
|
|
display: table-cell;
|
|
|
|
width: auto;
|
|
|
|
|
|
|
|
.search {
|
|
|
|
width: @searchBoxWidth;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toc-mobile {
|
|
|
|
// Reset the rule for mobile mode (but not for .client-nojs)
|
2018-04-24 11:51:48 +00:00
|
|
|
display: table;
|
2017-07-12 15:12:40 +00:00
|
|
|
visibility: visible;
|
|
|
|
position: relative;
|
|
|
|
font-size: 1.3em;
|
|
|
|
margin: 1em 0;
|
|
|
|
border: solid 1px transparent;
|
|
|
|
|
|
|
|
> h2 {
|
|
|
|
visibility: hidden;
|
|
|
|
font-family: @fontFamily;
|
|
|
|
font-size: @tocFontSize;
|
|
|
|
font-weight: bold;
|
|
|
|
border-bottom: 0;
|
|
|
|
padding: @paddingVertical / 2 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// FIXME: Have a class that identifies all of these selectors
|
|
|
|
.pre-content,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* Form only pages e.g. Special:MobileOptions */
|
2017-11-29 19:53:30 +00:00
|
|
|
#mw-content-text > form,
|
2017-07-12 15:12:40 +00:00
|
|
|
.content,
|
|
|
|
.post-content {
|
|
|
|
max-width: @contentMaxWidthTablet;
|
|
|
|
margin: 0 @contentPaddingTablet;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
// Classes added by thumbnails
|
|
|
|
// e.g. [[File:Scholars mate animation.gif|frame|left|"[[Scholar's mate]]"]]
|
|
|
|
// We use @noflip because we still want .tleft to be on the left and
|
|
|
|
// .tright to be on the right in RTL languages.
|
2017-07-27 20:50:49 +00:00
|
|
|
figure,
|
2017-07-12 15:12:40 +00:00
|
|
|
.thumb {
|
2018-05-01 19:10:08 +00:00
|
|
|
max-width: @width-breakpoint-tablet - @contentMargin;
|
2017-07-27 20:50:49 +00:00
|
|
|
|
|
|
|
&.mw-halign-left,
|
2017-07-12 15:12:40 +00:00
|
|
|
&.tleft {
|
|
|
|
/* @noflip */
|
|
|
|
float: left;
|
|
|
|
/* @noflip */
|
|
|
|
clear: left;
|
|
|
|
/* @noflip */
|
|
|
|
margin-right: 1.4em;
|
|
|
|
}
|
|
|
|
|
2017-07-27 20:50:49 +00:00
|
|
|
&.mw-default-size,
|
|
|
|
&.mw-halign-right,
|
2017-07-12 15:12:40 +00:00
|
|
|
&.tright {
|
|
|
|
/* @noflip */
|
|
|
|
float: right;
|
|
|
|
/* @noflip */
|
|
|
|
clear: right;
|
|
|
|
/* @noflip */
|
|
|
|
margin-left: 1.4em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
caption {
|
2017-08-24 17:59:21 +00:00
|
|
|
background: inherit; // T170344
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
2018-12-12 23:20:10 +00:00
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
tbody {
|
|
|
|
display: table-row-group;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.last-modified-bar {
|
|
|
|
background-color: transparent;
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-28 14:23:45 +00:00
|
|
|
@media screen and ( min-width: @width-breakpoint-desktop ) {
|
2017-07-12 15:12:40 +00:00
|
|
|
.banner-container,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* FIXME: Generic header class needed me-thinks! */
|
2017-07-12 15:12:40 +00:00
|
|
|
.header,
|
|
|
|
.page-header-bar,
|
|
|
|
.content-header,
|
|
|
|
.overlay-header,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* FIXME: Generic content class needed? */
|
2017-07-12 15:12:40 +00:00
|
|
|
.content,
|
|
|
|
.overlay-content,
|
|
|
|
.content-unstyled,
|
|
|
|
.pre-content,
|
|
|
|
.post-content,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* Form only pages e.g. Special:MobileOptions */
|
2017-11-29 19:53:30 +00:00
|
|
|
#mw-content-text > form,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* FIXME: remove need for id selector */
|
2017-07-12 15:12:40 +00:00
|
|
|
#mw-mf-page-center .pointer-overlay {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2018-10-26 06:33:28 +00:00
|
|
|
width: 90%;
|
2018-10-31 18:20:53 +00:00
|
|
|
max-width: @contentMaxWidthTablet;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
// Make sure the main menu and secondary button icon images are aligned
|
|
|
|
// with the content.
|
|
|
|
max-width: @contentMaxWidthTablet + 2 * @iconGutterWidth;
|
|
|
|
}
|
|
|
|
}
|