MinervaNeue/resources/skins.minerva.content.styles/main.less
jdlrobson 4389b67989 Explicitly use LESS variable for breakpoint defined in mediawiki ui
$wgResourceLoaderLESSVars is deprecated. Let's not use it anymore.

Change-Id: If28ab6884668700bc46533c8e2c377f17e6be696
Depends-On: Ib9f843147db4473ce5590741e0fb490384b0007e
Bug: T171365
2018-02-06 22:23:32 +00:00

65 lines
1.2 KiB
Plaintext

@import 'minerva.variables';
@import 'minerva.mixins';
// Content formatting and typography
//
// Our content is predominately text, hence visual hierarchy must be clear.
//
// Styleguide 1.
html {
// prevent font scaling in landscape in Safari
-webkit-text-size-adjust: none;
font-size: 100% * @fontScalingFactor;
}
@bodyLineHeight: 1.4;
body {
font-family: @fontFamily;
line-height: @bodyLineHeight;
color: @colorGray2;
background: #fff;
}
.content {
line-height: @contentLineHeight;
// Deal with long links (bug 60387)
word-wrap: break-word;
}
@media all and ( max-width: @width-breakpoint-mobile - 1 ) {
body {
font-size: 0.8em;
}
.content {
margin: 0 12px;
}
}
.client-js {
.collapsible-block {
display: none;
&.open-block {
display: block;
}
}
}
.nomobile {
// No mobile should trump any other class. e.g. .content table { display: table; }
display: none !important;
}
@media all and ( min-width: @width-breakpoint-tablet ) {
.client-js {
// Avoid flash of unstyled content for tablet users while JavaScript is loading
// onclick attribute is removed by the toggling code.
[onclick] + .collapsible-block {
display: block;
}
}
}