2020-08-10 21:40:06 +00:00
|
|
|
//
|
|
|
|
// Default layout for Modern Vector.
|
|
|
|
//
|
|
|
|
|
2020-08-17 22:08:22 +00:00
|
|
|
@margin-horizontal-sidebar-button-icon: 12px;
|
|
|
|
|
2020-08-10 21:40:06 +00:00
|
|
|
body {
|
|
|
|
// General background/foreground color definition as one exception to the rule.
|
|
|
|
background-color: @background-color-base;
|
|
|
|
color: @color-base;
|
|
|
|
// Vertical scrollbar always visible.
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-body,
|
|
|
|
.parsoid-body {
|
|
|
|
direction: ltr;
|
|
|
|
padding: @padding-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-body {
|
|
|
|
// Will be removed when we limit content width (T246420).
|
|
|
|
/* Border on top, left, and bottom side */
|
|
|
|
border: @border-width-base @border-style-base @border-color-content;
|
|
|
|
border-right-width: 0;
|
|
|
|
/* Merge the border with tabs' one (in their background image) */
|
|
|
|
margin-top: -@border-width-base;
|
|
|
|
|
|
|
|
.firstHeading {
|
|
|
|
/* Change the default from mediawiki.skinning CSS to let indicators float into heading area */
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-08 23:20:58 +00:00
|
|
|
.mw-header {
|
|
|
|
// A min-height is set to account for projects where no icon is set.
|
|
|
|
min-height: @height-logo-icon;
|
2020-08-10 21:40:06 +00:00
|
|
|
margin: @margin-top-header 0 @margin-bottom-header;
|
|
|
|
padding: @padding-vertical-header @padding-horizontal-header;
|
|
|
|
// Vertical centering of header elements (IE>=11), requires flex.
|
|
|
|
// Non-flex fallback for IE<=9: float rule on the child elements.
|
|
|
|
.flex-display();
|
2020-09-01 12:28:39 +00:00
|
|
|
flex-wrap: wrap;
|
2020-08-10 21:40:06 +00:00
|
|
|
// https://caniuse.com/#search=align-items
|
|
|
|
align-items: center;
|
|
|
|
z-index: @z-index-header;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Searchbox */
|
|
|
|
#p-search {
|
|
|
|
float: left;
|
|
|
|
margin: 0.5em 0.5em 0 0.5em;
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Main column */
|
|
|
|
.mw-body,
|
|
|
|
#mw-data-after-content,
|
|
|
|
#left-navigation,
|
|
|
|
.mw-footer {
|
|
|
|
margin-left: @width-grid-column-one;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Content */
|
|
|
|
.mw-indicators {
|
|
|
|
float: right;
|
|
|
|
z-index: @z-index-indicators;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-body-content {
|
|
|
|
position: relative;
|
|
|
|
z-index: @z-index-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide, but keep accessible for screen-readers */
|
|
|
|
#mw-navigation h2 {
|
|
|
|
position: absolute;
|
|
|
|
top: -9999px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Navigation Containers */
|
2020-09-08 23:20:58 +00:00
|
|
|
.mw-article-toolbar-container {
|
|
|
|
// Clear the floats on #left-navigation and #right-navigation.
|
|
|
|
.mixin-clearfix();
|
|
|
|
}
|
|
|
|
|
|
|
|
#left-navigation {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
2020-08-10 21:40:06 +00:00
|
|
|
#right-navigation {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
2020-07-07 22:52:12 +00:00
|
|
|
#p-personal {
|
2020-08-10 21:40:06 +00:00
|
|
|
li {
|
2020-10-09 20:55:24 +00:00
|
|
|
// Some extensions e.g. Echo may change the height of list items
|
|
|
|
// If that's the case we want to ensure all other elements are vertically aligned consistently.
|
|
|
|
vertical-align: middle;
|
2020-08-10 21:40:06 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-17 22:08:22 +00:00
|
|
|
#mw-sidebar-button {
|
2020-09-01 12:28:39 +00:00
|
|
|
float: left; // Browser: IE9 support - button as flex-child fallback.
|
2020-08-17 22:08:22 +00:00
|
|
|
margin-left: -@margin-horizontal-sidebar-button-icon;
|
|
|
|
margin-right: @margin-horizontal-sidebar-button-icon; // Accidentally the same.
|
|
|
|
}
|
|
|
|
|
2020-09-08 23:20:58 +00:00
|
|
|
#mw-panel {
|
|
|
|
position: absolute;
|
2020-08-10 21:40:06 +00:00
|
|
|
left: 0;
|
|
|
|
width: @width-grid-column-one;
|
|
|
|
.box-sizing( border-box );
|
|
|
|
margin-top: @margin-top-sidebar;
|
|
|
|
padding-left: @padding-left-sidebar;
|
|
|
|
z-index: @z-index-sidebar;
|
|
|
|
}
|