mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 03:08:12 +00:00
15323b3d63
No more using the TableOfContents component in MobileFrontend. It's just creating more work for us. The end result is exactly the same - we can make a table of contents using the checkbox hack rule and CSS that looks identical to the current table of contents. For now, this change can only be tested on Minerva desktop. I2ea1c23bc86871e2a095c4c6674a08ff2f04b160 is the patch that goes for the jugular and applies this to mobile Minerva. It's important we merge the two together to avoid disruption to this feature, as currently MobileFrontend strips the table of contents from core from the HTML using the MobileFormatter. Change-Id: I720e62a578f0c7a14f4b5a698004471c85e54bc8
118 lines
2.3 KiB
Plaintext
118 lines
2.3 KiB
Plaintext
/*
|
|
A file for css that optimises the Minerva skin on larger devices.
|
|
*/
|
|
|
|
@import '../../../minerva.less/minerva.variables.less';
|
|
@import '../../../minerva.less/minerva.mixins.less';
|
|
|
|
@media screen and ( min-width: @width-breakpoint-tablet ) {
|
|
.client-js {
|
|
#searchIcon {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.header {
|
|
.branding-box {
|
|
width: @brandingBoxWidth;
|
|
}
|
|
|
|
.search-box {
|
|
display: table-cell;
|
|
width: auto;
|
|
|
|
.search {
|
|
width: @searchBoxWidth;
|
|
}
|
|
}
|
|
}
|
|
|
|
// FIXME: Have a class that identifies all of these selectors
|
|
.pre-content,
|
|
/* Form only pages e.g. Special:MobileOptions */
|
|
#mw-content-text > form,
|
|
.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.
|
|
figure,
|
|
.thumb {
|
|
max-width: @width-breakpoint-tablet - @contentMargin;
|
|
|
|
&.mw-halign-left,
|
|
&.tleft {
|
|
/* @noflip */
|
|
float: left;
|
|
/* @noflip */
|
|
clear: left;
|
|
/* @noflip */
|
|
margin-right: 1.4em;
|
|
}
|
|
|
|
&.mw-default-size,
|
|
&.mw-halign-right,
|
|
&.tright {
|
|
/* @noflip */
|
|
float: right;
|
|
/* @noflip */
|
|
clear: right;
|
|
/* @noflip */
|
|
margin-left: 1.4em;
|
|
}
|
|
}
|
|
|
|
table {
|
|
caption {
|
|
background: inherit; // T170344
|
|
}
|
|
|
|
tbody {
|
|
display: table-row-group;
|
|
}
|
|
}
|
|
}
|
|
|
|
.last-modified-bar {
|
|
background-color: transparent;
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
font-size: 1em;
|
|
}
|
|
}
|
|
|
|
@media screen and ( min-width: @width-breakpoint-desktop ) {
|
|
.banner-container,
|
|
/* FIXME: Generic header class needed me-thinks! */
|
|
.header,
|
|
.page-header-bar,
|
|
.overlay-header,
|
|
/* FIXME: Generic content class needed? */
|
|
.content,
|
|
.overlay-content,
|
|
.content-unstyled,
|
|
.pre-content,
|
|
.post-content,
|
|
/* Form only pages e.g. Special:MobileOptions */
|
|
#mw-content-text > form,
|
|
/* FIXME: remove need for id selector */
|
|
#mw-mf-page-center .pointer-overlay {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
width: 90%;
|
|
max-width: @contentMaxWidthTablet;
|
|
}
|
|
|
|
.header {
|
|
// Make sure the main menu and secondary button icon images are aligned
|
|
// with the content.
|
|
max-width: @contentMaxWidthTablet + 2 * @iconGutterWidth;
|
|
}
|
|
}
|