2018-05-19 18:17:31 +00:00
|
|
|
@import '../../minerva.less/minerva.variables';
|
|
|
|
@import '../../minerva.less/minerva.mixins';
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
// 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;
|
2018-04-20 08:51:22 +00:00
|
|
|
-webkit-tap-highlight-color: rgba( 0, 0, 0, 0.2 );
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
line-height: @contentLineHeight;
|
|
|
|
// Deal with long links (bug 60387)
|
|
|
|
word-wrap: break-word;
|
2018-06-28 20:21:05 +00:00
|
|
|
|
|
|
|
/* Emulate Center - from mediawiki.skinning/elements.css */
|
|
|
|
.center {
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
> *,
|
|
|
|
.thumb {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
}
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
2017-09-28 14:23:45 +00:00
|
|
|
@media all and ( max-width: @width-breakpoint-mobile - 1 ) {
|
2017-07-12 15:12:40 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2018-02-05 19:17:54 +00:00
|
|
|
@media all and ( min-width: @width-breakpoint-tablet ) {
|
2017-07-12 15:12:40 +00:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|