2014-08-07 11:38:34 +00:00
|
|
|
/*
|
|
|
|
* Any rules which should not be flipped automatically in right-to-left situations should be
|
|
|
|
* prepended with @noflip in a comment block.
|
|
|
|
*
|
|
|
|
*/
|
2020-01-09 22:11:00 +00:00
|
|
|
@import '../../variables.less';
|
2019-10-25 20:46:51 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
2014-08-07 11:38:34 +00:00
|
|
|
|
|
|
|
/* Framework */
|
|
|
|
html {
|
2019-09-18 22:26:38 +00:00
|
|
|
font-size: @font-size-root;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
2018-12-02 22:40:28 +00:00
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
html,
|
|
|
|
body {
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2019-09-26 22:48:15 +00:00
|
|
|
font-family: @font-family-sans;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
2018-12-02 22:40:28 +00:00
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
body {
|
2019-09-26 21:12:01 +00:00
|
|
|
background-color: @background-color-secondary;
|
2019-11-18 22:36:25 +00:00
|
|
|
overflow-y: scroll;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Content */
|
2017-04-11 18:25:51 +00:00
|
|
|
.mw-body,
|
|
|
|
.parsoid-body {
|
2019-09-26 21:12:01 +00:00
|
|
|
background-color: @background-color-base;
|
|
|
|
color: @color-base;
|
2019-09-28 06:24:34 +00:00
|
|
|
padding: @padding-content;
|
2017-04-11 18:25:51 +00:00
|
|
|
direction: ltr;
|
|
|
|
}
|
|
|
|
|
2019-06-20 17:55:55 +00:00
|
|
|
.mw-body {
|
2014-08-07 11:38:34 +00:00
|
|
|
/* Border on top, left, and bottom side */
|
2019-09-28 07:25:09 +00:00
|
|
|
border: @border-width-base @border-style-base @border-color-content;
|
2014-08-07 11:38:34 +00:00
|
|
|
border-right-width: 0;
|
|
|
|
/* Merge the border with tabs' one (in their background image) */
|
2019-09-28 07:25:09 +00:00
|
|
|
margin-top: -@border-width-base;
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2017-03-05 17:42:53 +00:00
|
|
|
// h1's can exist outside of mw-body-content so some heading styles
|
|
|
|
// need to be defined in mw-body as well
|
|
|
|
& h1,
|
|
|
|
&-content h1,
|
|
|
|
&-content h2 {
|
2014-08-07 11:38:34 +00:00
|
|
|
margin-bottom: 0.25em;
|
|
|
|
padding: 0;
|
2019-09-27 04:25:59 +00:00
|
|
|
font-family: @font-family-serif;
|
|
|
|
line-height: @line-height-heading;
|
2015-06-11 21:21:25 +00:00
|
|
|
|
2019-09-26 22:48:15 +00:00
|
|
|
// Fallback heading font for scripts which render poorly in `@font-family-serif`.
|
|
|
|
// See T73240
|
2015-06-11 21:21:25 +00:00
|
|
|
&:lang( ja ), /* See T65817 */
|
|
|
|
&:lang( he ), /* See T65843 and T65844 */
|
|
|
|
&:lang( ko ) { /* See T65827 */
|
2019-09-26 22:48:15 +00:00
|
|
|
font-family: @font-family-sans--fallback;
|
2015-06-11 21:21:25 +00:00
|
|
|
}
|
2018-05-24 11:01:05 +00:00
|
|
|
|
|
|
|
/* Burmese (Myanmar) language headlines would be cropped with set `line-height` */
|
|
|
|
/* See T193270 */
|
|
|
|
&:lang( my ) {
|
|
|
|
line-height: normal;
|
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
2017-03-05 17:42:53 +00:00
|
|
|
& h1,
|
|
|
|
&-content h1 {
|
2019-09-27 17:49:02 +00:00
|
|
|
font-size: @font-size-heading-1;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
2017-03-05 17:42:53 +00:00
|
|
|
|
|
|
|
.firstHeading {
|
|
|
|
/* Change the default from mediawiki.skinning CSS to let indicators float into heading area */
|
|
|
|
overflow: visible;
|
|
|
|
}
|
2020-04-08 02:01:32 +00:00
|
|
|
|
|
|
|
.mw-indicators {
|
|
|
|
font-size: @font-size-base;
|
|
|
|
line-height: @line-height-base;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-indicator {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2017-03-05 17:42:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-body-content {
|
2019-09-26 23:43:42 +00:00
|
|
|
font-size: @font-size-base;
|
2020-03-27 03:12:12 +00:00
|
|
|
// Support IE 9-11, Trident cuts values 2 digits after decimal point.
|
|
|
|
// `calc` enables to set correct calculation in place again. See T102364.
|
|
|
|
font-size: calc( 1em ~'*' unit( @font-size-base ) );
|
2019-09-27 04:25:59 +00:00
|
|
|
line-height: @line-height-base;
|
2017-03-05 17:42:53 +00:00
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0.5em 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
margin-top: 1em;
|
2015-05-23 12:07:14 +00:00
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
|
|
|
|
h2 {
|
|
|
|
margin-top: 1em;
|
2019-09-26 23:43:42 +00:00
|
|
|
font-size: @font-size-heading-2;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
margin-top: 0.3em;
|
|
|
|
margin-bottom: 0;
|
|
|
|
padding-bottom: 0;
|
2019-09-27 04:25:59 +00:00
|
|
|
line-height: @line-height-base;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
2019-09-26 23:43:42 +00:00
|
|
|
font-size: @font-size-heading-3;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h3,
|
|
|
|
h4 {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2019-09-26 23:43:42 +00:00
|
|
|
font-size: @font-size-reset; // Reset.
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.toc h2 {
|
2019-09-26 22:48:15 +00:00
|
|
|
font-family: @font-family-sans;
|
2019-09-26 23:43:42 +00:00
|
|
|
font-size: @font-size-reset; // Reset.
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-12 11:14:37 +00:00
|
|
|
/* Allow edit sections outside of mw-body-content (T160269) */
|
|
|
|
.mw-editsection,
|
|
|
|
.mw-editsection-like {
|
2019-09-26 22:48:15 +00:00
|
|
|
font-family: @font-family-sans;
|
2017-03-12 11:14:37 +00:00
|
|
|
}
|
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
/* Hide empty portlets */
|
2019-10-23 22:11:30 +00:00
|
|
|
.emptyPortlet {
|
2015-06-23 21:31:24 +00:00
|
|
|
display: none;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
2019-08-06 14:06:08 +00:00
|
|
|
// No need for PNG fallback. Fallback is browser default (a smaller, also black, circle).
|
2019-04-08 06:08:38 +00:00
|
|
|
.list-style-image( 'images/bullet-icon.svg' );
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
2015-06-23 21:31:24 +00:00
|
|
|
pre,
|
|
|
|
.mw-code {
|
2019-09-27 04:25:59 +00:00
|
|
|
line-height: @line-height-code;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Site Notice (includes notices from CentralNotice extension) */
|
|
|
|
#siteNotice {
|
2019-09-26 23:43:42 +00:00
|
|
|
font-size: @font-size-site-notice;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
2020-02-28 20:06:33 +00:00
|
|
|
|
|
|
|
.mw-jump-link:not( :focus ) {
|
|
|
|
.mixin-screen-reader-text;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Head */
|
|
|
|
#mw-page-base {
|
|
|
|
background-position: bottom left;
|
|
|
|
.vertical-gradient( @background-color-base, @background-color-secondary, 50%, 100% );
|
|
|
|
}
|