2020-06-17 00:32:01 +00:00
|
|
|
/*
|
|
|
|
* Vector's common typography rules,
|
|
|
|
* including whitespace with `margin` & `padding` and list bullets
|
|
|
|
* as part of typographic styles. Iconography wouldn't belong here.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-02-02 10:04:37 +00:00
|
|
|
@import './variables.less';
|
2020-04-09 19:16:36 +00:00
|
|
|
|
|
|
|
html {
|
|
|
|
font-size: @font-size-root;
|
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
font-family: @font-family-sans;
|
|
|
|
}
|
|
|
|
|
2020-06-17 00:32:01 +00:00
|
|
|
ul {
|
|
|
|
// `list-style-image` sits on `ul` as it inherits and we don't need to worry about `ol`.
|
|
|
|
// No need for PNG fallback. Fallback is browser default (a smaller, also black, circle).
|
2022-05-28 22:00:49 +00:00
|
|
|
list-style-image: url( images/bullet-icon.svg );
|
2020-06-17 00:32:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pre,
|
|
|
|
.mw-code {
|
|
|
|
line-height: @line-height-code;
|
2020-04-09 19:16:36 +00:00
|
|
|
}
|
|
|
|
|
2020-06-17 00:32:01 +00:00
|
|
|
.mw-jump-link:not( :focus ) {
|
|
|
|
.mixin-screen-reader-text;
|
|
|
|
}
|
|
|
|
|
2021-05-21 01:02:07 +00:00
|
|
|
/* Use unscoped selector to allow edit sections outside of .mw-body-content and .vector-body (T160269) */
|
2020-06-17 00:32:01 +00:00
|
|
|
.mw-editsection,
|
|
|
|
.mw-editsection-like {
|
|
|
|
font-family: @font-family-sans;
|
|
|
|
}
|
|
|
|
|
2021-05-21 01:02:07 +00:00
|
|
|
/* Main content area, including siteNotice, indicators, categories, firstHeading and `.vector-body`. */
|
2020-04-09 19:16:36 +00:00
|
|
|
.mw-body {
|
2020-06-17 00:32:01 +00:00
|
|
|
// h1's can exist outside of `.mw-body-content` so some heading styles
|
|
|
|
// therefore need to be defined in `.mw-body` as well.
|
2020-04-09 19:16:36 +00:00
|
|
|
& h1,
|
|
|
|
&-content h1,
|
|
|
|
&-content h2 {
|
|
|
|
margin-bottom: 0.25em;
|
|
|
|
padding: 0;
|
|
|
|
font-family: @font-family-serif;
|
|
|
|
line-height: @line-height-heading;
|
|
|
|
|
|
|
|
// Fallback heading font for scripts which render poorly in `@font-family-serif`.
|
|
|
|
// See T73240
|
|
|
|
&:lang( ja ), /* See T65817 */
|
|
|
|
&:lang( he ), /* See T65843 and T65844 */
|
|
|
|
&:lang( ko ) { /* See T65827 */
|
|
|
|
font-family: @font-family-sans--fallback;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Burmese (Myanmar) language headlines would be cropped with set `line-height` */
|
|
|
|
/* See T193270 */
|
|
|
|
&:lang( my ) {
|
|
|
|
line-height: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& h1,
|
|
|
|
&-content h1 {
|
|
|
|
font-size: @font-size-heading-1;
|
|
|
|
}
|
|
|
|
}
|
2020-04-16 18:40:39 +00:00
|
|
|
|
2021-05-21 01:02:07 +00:00
|
|
|
.vector-body {
|
2020-06-17 00:32:01 +00:00
|
|
|
font-size: @font-size-base;
|
|
|
|
// Support IE 9-11, Trident cuts values 2 digits after decimal point.
|
|
|
|
// `calc` enables to set correct calculation in place again. See T102364.
|
2020-08-27 08:27:50 +00:00
|
|
|
font-size: @font-size-base--trident-hack;
|
2020-06-17 00:32:01 +00:00
|
|
|
line-height: @line-height-base;
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
margin-top: 1em;
|
|
|
|
font-size: @font-size-heading-2;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
margin-top: 0.3em;
|
|
|
|
margin-bottom: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
line-height: @line-height-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: @font-size-heading-3;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3,
|
|
|
|
h4 {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
font-size: @font-size-reset; // Reset.
|
|
|
|
}
|
|
|
|
|
|
|
|
.toc h2 {
|
|
|
|
font-family: @font-family-sans;
|
|
|
|
font-size: @font-size-reset; // Reset.
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0.5em 0;
|
|
|
|
}
|
2020-10-19 22:23:21 +00:00
|
|
|
|
|
|
|
blockquote {
|
|
|
|
border-left: @border-start-blockquote;
|
|
|
|
padding: @padding-blockquote;
|
|
|
|
|
|
|
|
// Ensure not to inherit whitespace mashing margins on child elements.
|
|
|
|
> :first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> :last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
2020-06-17 00:32:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// External links
|
2021-11-09 05:58:57 +00:00
|
|
|
// Use of `a` element selector due to its widespread usage and for limiting generic class scope.
|
|
|
|
.mw-parser-output a.external {
|
|
|
|
background-image: url( images/external-link-ltr-icon.svg );
|
|
|
|
background-position: center right;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
padding-right: 13px;
|
2020-04-16 18:40:39 +00:00
|
|
|
}
|