2021-02-02 10:04:37 +00:00
|
|
|
/**
|
|
|
|
* Layout rules divide the page into sections and how VectorComponents should be arranged in the skin.
|
|
|
|
* The rules here should only define the layout, not color or typography.
|
|
|
|
* See '../../common/' folder for latter stylesheets.
|
|
|
|
*/
|
2020-04-14 17:46:11 +00:00
|
|
|
|
|
|
|
@import 'mediawiki.mixins.less';
|
2021-02-02 10:04:37 +00:00
|
|
|
@import '../../common/variables.less';
|
2020-04-09 19:16:36 +00:00
|
|
|
|
|
|
|
body {
|
2020-05-08 01:39:22 +00:00
|
|
|
background-color: @background-color-secondary;
|
2020-04-09 19:16:36 +00:00
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-body,
|
|
|
|
.parsoid-body {
|
|
|
|
// General background/foreground color definition as one exception to the rule.
|
|
|
|
background-color: @background-color-base;
|
|
|
|
color: @color-base;
|
|
|
|
direction: ltr;
|
2020-10-30 16:57:38 +00:00
|
|
|
padding: 1em;
|
2020-04-09 19:16:36 +00:00
|
|
|
}
|
2020-04-14 17:46:11 +00:00
|
|
|
|
2020-04-16 18:40:39 +00:00
|
|
|
#p-personal {
|
|
|
|
position: absolute;
|
|
|
|
top: @top-personal-tools;
|
|
|
|
right: 0.75em;
|
|
|
|
z-index: @z-index-personal;
|
|
|
|
|
|
|
|
ul {
|
|
|
|
padding-left: 10em; /* Keep from overlapping logo */
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
float: left;
|
2021-08-24 21:34:59 +00:00
|
|
|
margin-left: 0.75em;
|
|
|
|
// `padding-top` instead of `margin-top` necessary for
|
|
|
|
// anonymous user icon position below
|
|
|
|
padding-top: 0.5em;
|
|
|
|
line-height: @line-height-nav-personal;
|
2020-04-16 18:40:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-27 18:38:14 +00:00
|
|
|
.mw-body,
|
|
|
|
#mw-data-after-content {
|
|
|
|
margin-left: 10em;
|
|
|
|
}
|
2020-04-14 17:46:11 +00:00
|
|
|
|
2020-04-09 19:16:36 +00:00
|
|
|
.mw-body {
|
2020-05-08 01:39:22 +00:00
|
|
|
// Merge the border below with tabs' one (in their background image).
|
2020-04-09 19:16:36 +00:00
|
|
|
margin-top: -@border-width-base;
|
2020-05-08 01:39:22 +00:00
|
|
|
// Border on top, left, and bottom side.
|
|
|
|
border: @border-width-base @border-style-base @border-color-content;
|
|
|
|
border-right-width: 0;
|
2020-04-09 19:16:36 +00:00
|
|
|
|
|
|
|
.firstHeading {
|
|
|
|
/* Change the default from mediawiki.skinning CSS to let indicators float into heading area */
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-27 18:38:14 +00:00
|
|
|
.mw-indicators {
|
|
|
|
z-index: @z-index-indicators;
|
|
|
|
}
|
2020-04-14 17:46:11 +00:00
|
|
|
|
2021-05-21 01:02:07 +00:00
|
|
|
.vector-body {
|
2020-04-27 18:38:14 +00:00
|
|
|
position: relative;
|
|
|
|
z-index: @z-index-base;
|
2020-09-21 12:23:48 +00:00
|
|
|
}
|
|
|
|
|
2020-04-27 18:38:14 +00:00
|
|
|
/* Head */
|
|
|
|
#mw-page-base {
|
2020-05-08 01:39:22 +00:00
|
|
|
.vertical-gradient( @background-color-base, @background-color-secondary, 50%, 100% );
|
|
|
|
background-position: bottom left;
|
2020-04-27 18:38:14 +00:00
|
|
|
height: 5em;
|
|
|
|
}
|
2020-04-14 17:46:11 +00:00
|
|
|
|
2020-04-27 18:38:14 +00:00
|
|
|
#mw-head-base {
|
|
|
|
margin-top: -5em;
|
|
|
|
margin-left: 10em;
|
|
|
|
height: 5em;
|
|
|
|
}
|
2020-04-14 17:46:11 +00:00
|
|
|
|
2020-04-27 18:38:14 +00:00
|
|
|
/* Hide, but keep accessible for screen-readers */
|
|
|
|
#mw-navigation h2 {
|
|
|
|
position: absolute;
|
|
|
|
top: -9999px;
|
|
|
|
}
|
2020-04-14 17:46:11 +00:00
|
|
|
|
2020-04-27 18:38:14 +00:00
|
|
|
#mw-head {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2020-04-14 17:46:11 +00:00
|
|
|
|
2020-04-27 18:38:14 +00:00
|
|
|
/* Navigation Containers */
|
|
|
|
#left-navigation {
|
|
|
|
float: left;
|
|
|
|
margin-left: 10em;
|
|
|
|
margin-top: 2.5em;
|
|
|
|
/* When right nav would overlap left nav, it's placed below it
|
|
|
|
(normal CSS floats behavior). This rule ensures that no empty space
|
|
|
|
is shown between them due to right nav's margin-top. Page layout
|
|
|
|
is still broken, but at least the nav overlaps only the page title
|
|
|
|
instead of half the content. */
|
|
|
|
margin-bottom: -2.5em;
|
|
|
|
}
|
2020-04-14 17:46:11 +00:00
|
|
|
|
2020-04-27 18:38:14 +00:00
|
|
|
#right-navigation {
|
|
|
|
float: right;
|
|
|
|
margin-top: 2.5em;
|
|
|
|
}
|
2020-04-14 17:46:11 +00:00
|
|
|
|
2020-07-08 12:25:34 +00:00
|
|
|
/* Search */
|
|
|
|
#p-search {
|
|
|
|
float: left;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
margin-left: 0.5em;
|
|
|
|
|
|
|
|
// FIXME: This selector requires knowledge of the internals of the search component
|
|
|
|
// and should not be used here.
|
|
|
|
form {
|
|
|
|
margin: 0.5em 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Defined as `div`.
|
|
|
|
// Provide extra element for gadgets due to `form` already carrying an `id`.
|
|
|
|
// FIXME: This selector requires knowledge of the internals of the search component
|
|
|
|
// and should not be used here.
|
|
|
|
#simpleSearch {
|
|
|
|
min-width: 5em;
|
|
|
|
// Support: IE 8, Firefox 18-, Chrome 19-, Safari 5.1-, Opera 19-, Android 4.4.4-.
|
|
|
|
width: 13.2em;
|
|
|
|
// Support: Modern browsers, responsive width.
|
|
|
|
width: 20vw;
|
|
|
|
max-width: 20em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Sidebar */
|
2020-04-27 18:38:14 +00:00
|
|
|
#mw-panel {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 10em;
|
|
|
|
left: 0;
|
|
|
|
}
|
2020-04-16 23:47:32 +00:00
|
|
|
|
2020-09-04 19:18:57 +00:00
|
|
|
// hide the heading of the first menu
|
|
|
|
#p-logo + .mw-portlet h3 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-04-27 18:38:14 +00:00
|
|
|
.mw-footer {
|
|
|
|
margin-left: 10em;
|
|
|
|
margin-top: 0;
|
2021-02-02 10:04:37 +00:00
|
|
|
padding: 0.75em;
|
2020-04-14 17:46:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Vector screen styles for high definition displays. These rules cross the above components and are
|
|
|
|
grouped together here only for the sake of the media query common to each. */
|
2020-04-27 18:38:14 +00:00
|
|
|
@media ( min-width: 982px ) {
|
2020-04-14 17:46:11 +00:00
|
|
|
.mw-body,
|
|
|
|
#mw-head-base,
|
|
|
|
#left-navigation,
|
|
|
|
#mw-data-after-content,
|
2020-04-23 22:16:28 +00:00
|
|
|
.mw-footer {
|
2020-04-14 17:46:11 +00:00
|
|
|
margin-left: 11em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-body {
|
|
|
|
padding: 1.25em 1.5em 1.5em 1.5em;
|
|
|
|
}
|
|
|
|
|
2020-04-23 22:16:28 +00:00
|
|
|
.mw-footer {
|
2020-04-14 17:46:11 +00:00
|
|
|
padding: 1.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#mw-panel {
|
|
|
|
padding-left: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#p-search {
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#p-personal {
|
|
|
|
right: 1em;
|
|
|
|
}
|
|
|
|
}
|
2021-07-29 20:51:44 +00:00
|
|
|
|
|
|
|
// Directionality styles previously provided by the deprecated `legacy` feature (T287410)
|
|
|
|
// for HTML elements which do not carry dir HTML attributes.
|
|
|
|
// These have been copied across to legacy Vector to minimize disruption caused by T287701.
|
|
|
|
// If you are reading this comment in 2022, please consider checking usage in wikitext and
|
|
|
|
// removing them both.
|
|
|
|
.mw-content-ltr {
|
|
|
|
/* @noflip */
|
|
|
|
direction: ltr;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-content-rtl {
|
|
|
|
/* @noflip */
|
|
|
|
direction: rtl;
|
|
|
|
}
|