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;
|
|
|
|
|
2022-07-06 20:26:21 +00:00
|
|
|
#siteSub {
|
|
|
|
font-size: 12.8px; // T311421
|
|
|
|
}
|
|
|
|
|
2020-06-17 00:32:01 +00:00
|
|
|
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
|
2022-07-19 19:25:18 +00:00
|
|
|
// Use of `a` element selector for limiting generic class scope due to `.external` widespread usage.
|
2021-11-09 05:58:57 +00:00
|
|
|
.mw-parser-output a.external {
|
2022-07-19 19:25:18 +00:00
|
|
|
// Use copy of Codex/OOUI WikimediaUI theme's 'linkExternal' icon in progressive color.
|
|
|
|
// Note that CSSJanus is flipping the `ltr` in the URL to `rtl`.
|
|
|
|
// Therefore make sure that both icons are available and up-to-date.
|
|
|
|
background-image: url( images/link-external-small-ltr-progressive.svg );
|
2021-11-09 05:58:57 +00:00
|
|
|
background-position: center right;
|
|
|
|
background-repeat: no-repeat;
|
2022-07-19 19:25:18 +00:00
|
|
|
// Equivalent of `12px` at calculation base of `14px` is `0.857em`.
|
|
|
|
background-size: 0.857em;
|
|
|
|
padding-right: 1em;
|
2020-04-16 18:40:39 +00:00
|
|
|
}
|