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;
|
|
|
|
}
|
|
|
|
|
2018-10-03 05:17:48 +00:00
|
|
|
@font-size-body: 100% * @fontScalingFactor;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
body {
|
|
|
|
font-family: @fontFamily;
|
2018-10-03 05:17:48 +00:00
|
|
|
font-size: @font-size-body;
|
|
|
|
line-height: 1.4;
|
2017-07-12 15:12:40 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2018-10-03 05:17:48 +00:00
|
|
|
@font-size-body-mobile: 0.8 * @font-size-body;
|
|
|
|
|
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 {
|
2018-10-03 05:17:48 +00:00
|
|
|
font-size: @font-size-body-mobile;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.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.
|
2018-09-11 13:13:41 +00:00
|
|
|
[ onclick ] + .collapsible-block {
|
2017-07-12 15:12:40 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-10-03 05:17:48 +00:00
|
|
|
|
|
|
|
// Support iOS 9+ browsers: Enable Dynamic Type resizing, see
|
|
|
|
// http://www.interactiveaccessibility.com/blog/text-resizing-web-pages-ios-using-dynamic-type
|
|
|
|
// & T204807.
|
|
|
|
@supports ( font: -apple-system-body ) {
|
|
|
|
html {
|
|
|
|
font: -apple-system-body;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Most iOS browsers' default font size is 16px but Dynamic Type's default
|
|
|
|
// font size is 17px. We need to scale down @font-size-body and
|
|
|
|
// @font-size-body-mobile by this ratio in order to make them relative to these
|
|
|
|
// browsers' defaults again. By doing this, the default Dynamic Type text size
|
|
|
|
// will appear identical to the browser's default text size.
|
|
|
|
@dynamicTypeScalingFactor: 16 / 17;
|
|
|
|
|
|
|
|
body {
|
|
|
|
font-size: @font-size-body * @dynamicTypeScalingFactor;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media all and ( max-width: @width-breakpoint-mobile - 1 ) {
|
|
|
|
body {
|
|
|
|
font-size: @font-size-body-mobile * @dynamicTypeScalingFactor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|