2023-10-02 18:15:06 +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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
html {
|
|
|
|
font-size: @font-size-root;
|
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
font-family: @font-family-sans;
|
|
|
|
}
|
|
|
|
|
2024-05-17 15:28:20 +00:00
|
|
|
ul {
|
|
|
|
// Overrides default sublist styling due to lists being used in some talk pages (i.e. russian wiki)
|
|
|
|
// https://phabricator.wikimedia.org/T364865#9802562
|
|
|
|
list-style-type: disc;
|
|
|
|
}
|
|
|
|
|
2023-10-02 18:15:06 +00:00
|
|
|
pre,
|
|
|
|
.mw-code {
|
|
|
|
line-height: @line-height-code;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-jump-link:not( :focus ) {
|
|
|
|
.mixin-screen-reader-text;
|
|
|
|
.user-select( none );
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Use unscoped selector to allow edit sections outside of .mw-body-content and .vector-body (T160269) */
|
|
|
|
.mw-editsection,
|
|
|
|
.mw-editsection-like {
|
|
|
|
font-family: @font-family-sans;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Main content area, including siteNotice, indicators, categories, firstHeading and `.vector-body`. */
|
|
|
|
.mw-body {
|
|
|
|
// h1's can exist outside of `.mw-body-content` so some heading styles
|
|
|
|
// therefore need to be defined in `.mw-body` as well.
|
2024-01-29 18:37:00 +00:00
|
|
|
h1,
|
|
|
|
.mw-heading1,
|
2023-10-02 18:15:06 +00:00
|
|
|
&-content h1,
|
2022-10-13 22:21:20 +00:00
|
|
|
&-content .mw-heading1,
|
|
|
|
&-content h2,
|
|
|
|
&-content .mw-heading2 {
|
2023-10-02 18:15:06 +00:00
|
|
|
font-family: @font-family-serif;
|
|
|
|
line-height: @line-height-xx-small;
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:lang( ckb ) { /* See T306317 */
|
|
|
|
font-family: 'Scheherazade', @font-family-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Burmese (Myanmar) language headlines would be cropped with set `line-height` */
|
|
|
|
/* See T193270 */
|
|
|
|
&:lang( my ) {
|
|
|
|
line-height: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-29 18:37:00 +00:00
|
|
|
h1,
|
|
|
|
.mw-heading1,
|
2022-10-13 22:21:20 +00:00
|
|
|
&-content h1,
|
|
|
|
&-content .mw-heading1 {
|
2023-10-02 18:15:06 +00:00
|
|
|
font-size: @font-size-heading-1;
|
|
|
|
}
|
|
|
|
|
2022-10-13 22:21:20 +00:00
|
|
|
.mw-heading2,
|
2023-10-02 18:15:06 +00:00
|
|
|
h2 {
|
|
|
|
font-size: @font-size-heading-2;
|
|
|
|
}
|
|
|
|
|
2022-10-13 22:21:20 +00:00
|
|
|
.mw-heading3,
|
2023-10-02 18:15:06 +00:00
|
|
|
h3,
|
2022-10-13 22:21:20 +00:00
|
|
|
.mw-heading4,
|
2023-10-02 18:15:06 +00:00
|
|
|
h4,
|
2022-10-13 22:21:20 +00:00
|
|
|
.mw-heading5,
|
2023-10-02 18:15:06 +00:00
|
|
|
h5,
|
2022-10-13 22:21:20 +00:00
|
|
|
.mw-heading6,
|
2023-10-02 18:15:06 +00:00
|
|
|
h6 {
|
2024-01-29 18:37:00 +00:00
|
|
|
// Additional bottom padding isnt necessary because only the h2 has an underline
|
2023-10-02 18:15:06 +00:00
|
|
|
padding-bottom: 0;
|
|
|
|
line-height: @line-height-base;
|
|
|
|
}
|
|
|
|
|
2024-01-29 18:37:00 +00:00
|
|
|
.mw-heading2,
|
|
|
|
h2,
|
|
|
|
.mw-heading3,
|
|
|
|
h3,
|
|
|
|
.mw-heading4,
|
|
|
|
h4,
|
|
|
|
.mw-heading5,
|
|
|
|
h5,
|
|
|
|
.mw-heading6,
|
|
|
|
h6 {
|
|
|
|
// Headings should have extra spacing from its siblings, which is a
|
|
|
|
// <p> element most of the time. In this case, spacing from the heading
|
|
|
|
// the <p> is sufficient. However, we to account for cases
|
|
|
|
// where the previous sibling element doesnt have any spacing
|
|
|
|
margin: 0.25em 0 0.25em 0;
|
|
|
|
}
|
|
|
|
|
2022-10-13 22:21:20 +00:00
|
|
|
.mw-heading3,
|
2023-10-02 18:15:06 +00:00
|
|
|
h3 {
|
|
|
|
font-size: @font-size-heading-3;
|
|
|
|
}
|
|
|
|
|
2022-10-13 22:21:20 +00:00
|
|
|
.mw-heading3,
|
2023-10-02 18:15:06 +00:00
|
|
|
h3,
|
2022-10-13 22:21:20 +00:00
|
|
|
.mw-heading4,
|
2023-10-02 18:15:06 +00:00
|
|
|
h4 {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2022-10-13 22:21:20 +00:00
|
|
|
.mw-heading4,
|
2023-10-02 18:15:06 +00:00
|
|
|
h4,
|
2022-10-13 22:21:20 +00:00
|
|
|
.mw-heading5,
|
2023-10-02 18:15:06 +00:00
|
|
|
h5,
|
2022-10-13 22:21:20 +00:00
|
|
|
.mw-heading6,
|
2023-10-02 18:15:06 +00:00
|
|
|
h6 {
|
|
|
|
font-size: @font-size-reset; // Reset.
|
|
|
|
}
|
|
|
|
|
2024-02-20 19:15:05 +00:00
|
|
|
// On Talk:Test?dtenable=0 h2 is inside mw-heading which results in larger than
|
|
|
|
// expected font size since @font-size-heading-2 is defined in ems (T357929).
|
|
|
|
// TODO: Consider switching font-sizes to rems instead of ems to remove these styles.
|
2024-04-04 17:05:42 +00:00
|
|
|
.mw-heading1 h1,
|
2024-02-20 19:15:05 +00:00
|
|
|
.mw-heading2 h2,
|
|
|
|
.mw-heading3 h3,
|
|
|
|
.mw-heading4 h4,
|
|
|
|
.mw-heading5 h5,
|
|
|
|
.mw-heading6 h6 {
|
|
|
|
margin-top: 0;
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
|
2023-10-02 18:15:06 +00:00
|
|
|
p {
|
2024-05-28 17:34:18 +00:00
|
|
|
margin: 0.5em 0 1em 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
p + ul,
|
|
|
|
p + ol,
|
|
|
|
p + table,
|
|
|
|
p + dl,
|
|
|
|
p + blockquote {
|
|
|
|
// Inline elements should have 0.5em total top spacing
|
|
|
|
// Use negative margin to account for 1em bottom margin on paragraphs
|
|
|
|
// This will not work for floated elements
|
|
|
|
margin-top: -0.5em;
|
2023-10-02 18:15:06 +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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-11 16:30:33 +00:00
|
|
|
// T335625 - Move siteSub into common.less to prevent it from being feature-flagged
|
|
|
|
// and overriding on-wiki modifications.
|
|
|
|
#siteSub {
|
|
|
|
font-size: unit( @font-size-small, rem ); // T311421
|
|
|
|
// By default the sitesub (i.e. tagline) is hidden as it was hidden in Vector legacy but site styles can reveal.
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vector-body {
|
|
|
|
font-size: var( --font-size-medium );
|
|
|
|
line-height: var( --line-height-medium );
|
|
|
|
}
|