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.
|
|
|
|
*
|
|
|
|
*/
|
2017-01-23 14:59:47 +00:00
|
|
|
@import 'mediawiki.mixins';
|
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;
|
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,
|
|
|
|
#mw-data-after-content {
|
2014-08-07 11:38:34 +00:00
|
|
|
margin-left: 10em;
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-indicators {
|
|
|
|
float: right;
|
2019-09-26 23:43:42 +00:00
|
|
|
font-size: @font-size-base;
|
2019-09-27 04:25:59 +00:00
|
|
|
line-height: @line-height-base;
|
2017-03-05 17:42:53 +00:00
|
|
|
/* Ensure that this is displayed on top of .mw-body-content and clickable */
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-indicator {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-body-content {
|
|
|
|
position: relative;
|
2019-09-26 23:43:42 +00:00
|
|
|
font-size: @font-size-base;
|
2019-09-27 04:25:59 +00:00
|
|
|
line-height: @line-height-base;
|
2017-03-05 17:42:53 +00:00
|
|
|
z-index: 0;
|
|
|
|
|
|
|
|
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 */
|
|
|
|
div.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
|
|
|
}
|