2018-05-19 18:17:31 +00:00
|
|
|
@import '../../minerva.less/minerva.variables';
|
|
|
|
@import '../../minerva.less/minerva.mixins';
|
2017-07-12 15:12:40 +00:00
|
|
|
@import 'mediawiki.mixins';
|
|
|
|
|
|
|
|
/* stylelint-disable no-descending-specificity */
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
// Ensure overlays take up full screen
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2019-03-05 03:34:55 +00:00
|
|
|
html {
|
|
|
|
// FIXME: Still from Eric Meyer's reset, that should be better fine-grained.
|
|
|
|
font-size: 100%;
|
|
|
|
// Support Safari: Prevent font scaling in landscape
|
|
|
|
-webkit-text-size-adjust: none;
|
|
|
|
}
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
body {
|
2019-03-05 03:34:55 +00:00
|
|
|
background-color: @skinContentBgColor;
|
|
|
|
color: @colorGray2;
|
|
|
|
// Support All Browsers: Remove `margin` (normalized)
|
|
|
|
margin: 0;
|
|
|
|
// FIXME: Still from Eric Meyer's reset, that should be good to go.
|
|
|
|
line-height: 1;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
2019-03-05 03:49:32 +00:00
|
|
|
main {
|
|
|
|
// Support IE 9-11: Apply correct `display` (normalized), see T207618.
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
// FIXME: should we use .mw-body here instead?
|
|
|
|
#content {
|
|
|
|
// avoid margin collapsing (see T147956)
|
2017-08-10 17:44:48 +00:00
|
|
|
border-top: 1px solid transparent;
|
2017-07-12 15:12:40 +00:00
|
|
|
padding-bottom: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.overlay-enabled,
|
|
|
|
#content {
|
|
|
|
background-color: @skinContentBgColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-container {
|
2017-08-17 22:04:07 +00:00
|
|
|
border-bottom: 1px solid @colorGray12;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
&.header-chrome {
|
|
|
|
background-color: @chromeColor;
|
|
|
|
border: 0;
|
|
|
|
box-shadow: inset 0 -1px 3px rgba( 0, 0, 0, 0.08 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-25 15:35:23 +00:00
|
|
|
// if footer has last modified line hide it (T173545)
|
|
|
|
#footer-info-lastmod {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
.last-modified-bar {
|
2018-03-29 18:43:55 +00:00
|
|
|
a,
|
2017-07-12 15:12:40 +00:00
|
|
|
a:visited {
|
2017-08-08 09:27:37 +00:00
|
|
|
color: @colorGray5;
|
2017-07-12 15:12:40 +00:00
|
|
|
// If browser supports
|
|
|
|
&:nth-child( 2 ) {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
display: table;
|
|
|
|
width: 100%;
|
|
|
|
border-spacing: 0;
|
|
|
|
border-collapse: collapse;
|
|
|
|
height: @headerHeight;
|
|
|
|
white-space: nowrap;
|
|
|
|
// When banners are present we want to easily distinguish between them and the header so add border
|
|
|
|
border-top: 1px solid @colorGray12;
|
|
|
|
margin-top: @headerMarginTop;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
width: @headerHeight;
|
|
|
|
position: relative;
|
|
|
|
vertical-align: middle;
|
|
|
|
display: table-cell;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Menu and notifications button
|
|
|
|
> div a {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.branding-box {
|
|
|
|
width: auto;
|
|
|
|
|
2018-12-12 23:20:10 +00:00
|
|
|
// TODO: Remove `h1` after T198947 HTML changes expire from cache.
|
|
|
|
h1,
|
2018-08-08 19:16:37 +00:00
|
|
|
a {
|
2017-07-12 15:12:40 +00:00
|
|
|
margin-left: 5px;
|
|
|
|
font-size: 1em;
|
2018-08-08 19:16:37 +00:00
|
|
|
text-decoration: none;
|
|
|
|
color: @colorGray2;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
span {
|
|
|
|
line-height: 1;
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
> * {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
sup {
|
|
|
|
color: @colorGray5;
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
.beta & {
|
|
|
|
display: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .header-title {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-31 17:12:59 +00:00
|
|
|
#searchInput {
|
|
|
|
cursor: text;
|
|
|
|
}
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
.search-box,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* `.header .search-box` is needed to override table-cell rules */
|
2017-07-12 15:12:40 +00:00
|
|
|
.header .search-box {
|
|
|
|
display: none;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
2019-03-12 21:00:00 +00:00
|
|
|
/* Search */
|
2018-12-12 23:20:10 +00:00
|
|
|
.search-box .search {
|
2019-03-12 21:55:40 +00:00
|
|
|
@border-width-base: 1px;
|
2018-12-12 23:20:10 +00:00
|
|
|
@searchIconSize: 20px;
|
|
|
|
@searchIconGutter: 6px;
|
2019-03-12 21:55:40 +00:00
|
|
|
@padding-vertical-search: 8px - @border-width-base;
|
|
|
|
@padding-start-search-icon: @searchIconSize + ( 2 * @searchIconGutter ) - @border-width-base;
|
2019-03-12 21:00:00 +00:00
|
|
|
background-color: #fff; // Support Fennec, Opera Mini: Remove default background, see T38490.
|
2018-12-12 23:20:10 +00:00
|
|
|
background-position: left @searchIconGutter center;
|
|
|
|
background-repeat: no-repeat;
|
2019-04-03 02:16:46 +00:00
|
|
|
background-size: @searchIconSize;
|
2019-03-12 21:00:00 +00:00
|
|
|
// Support Safari: Get rid of rounded corners.
|
|
|
|
-webkit-appearance: none;
|
|
|
|
width: 100%;
|
|
|
|
margin-top: 0;
|
2019-03-12 21:55:40 +00:00
|
|
|
border: @border-width-base solid #fff;
|
2018-12-12 23:20:10 +00:00
|
|
|
border-radius: @borderRadius;
|
2019-03-12 21:55:40 +00:00
|
|
|
padding: @padding-vertical-search 0 @padding-vertical-search @padding-start-search-icon;
|
2018-12-12 23:20:10 +00:00
|
|
|
box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.05 );
|
2019-03-12 21:55:40 +00:00
|
|
|
// Keyboard focus is taken care of below at `.search-box .search:focus`.
|
2019-03-12 21:00:00 +00:00
|
|
|
outline: 0;
|
2019-04-03 01:44:26 +00:00
|
|
|
.transition( ~'border-color 250ms, box-shadow 250ms' );
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
2019-04-03 01:44:26 +00:00
|
|
|
// Provide focus styles only in non-JS and overlay to prevent double transition.
|
|
|
|
.client-nojs .search-box .search:focus,
|
|
|
|
.search-overlay .search-box .search:focus {
|
2019-03-12 21:55:40 +00:00
|
|
|
border-color: @colorProgressive;
|
|
|
|
box-shadow: inset 0 0 0 1px @colorProgressive, 0 1px 1px rgba( 0, 0, 0, 0.05 );
|
|
|
|
}
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
input.search {
|
|
|
|
// [T139928] Hide all pseudo-elements added to search inputs in WebKit.
|
|
|
|
&::-webkit-search-decoration,
|
|
|
|
&::-webkit-search-cancel-button,
|
|
|
|
&::-webkit-search-results-button,
|
|
|
|
&::-webkit-search-results-decoration {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
// Correct icon sizes of edit icon when using mw-ui-icon.
|
|
|
|
h1 {
|
|
|
|
.edit-page {
|
|
|
|
font-size: 1 / @fontSizeH1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
// Clear table of contents and any other floated elements in desktop Minerva.
|
2018-04-24 11:51:48 +00:00
|
|
|
clear: left;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
.edit-page {
|
|
|
|
font-size: 1 / @fontSizeH2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
.edit-page {
|
|
|
|
font-size: 1 / @fontSizeH3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.edit-page {
|
2019-02-11 20:07:47 +00:00
|
|
|
display: block;
|
2017-11-01 18:28:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.collapsible-heading .edit-page {
|
2017-07-12 15:12:40 +00:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2017-11-01 18:28:06 +00:00
|
|
|
.collapsible-heading.open-block {
|
2017-07-12 15:12:40 +00:00
|
|
|
// Restrict to child so that child section edit links do not get revealed.
|
|
|
|
.edit-page {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-01 18:28:06 +00:00
|
|
|
.mw-parser-output > h2,
|
2017-07-12 15:12:40 +00:00
|
|
|
.section-heading {
|
2017-08-10 17:44:48 +00:00
|
|
|
border-bottom: 1px solid @colorGray14;
|
2017-07-12 15:12:40 +00:00
|
|
|
margin-bottom: @headingMargin;
|
|
|
|
|
|
|
|
.indicator {
|
|
|
|
font-size: @indicatorFontSize;
|
|
|
|
margin-left: -@iconGutterWidth;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-01 18:28:06 +00:00
|
|
|
.mw-parser-output > h1,
|
|
|
|
.mw-parser-output > h2,
|
|
|
|
.mw-parser-output > h3,
|
|
|
|
.mw-parser-output > h4,
|
|
|
|
.mw-parser-output > h5,
|
2017-07-12 15:12:40 +00:00
|
|
|
.section-heading,
|
|
|
|
.in-block {
|
|
|
|
// Safari needs this. @see T106347
|
|
|
|
display: table;
|
2018-12-12 23:20:10 +00:00
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
.mw-headline {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2018-12-12 23:20:10 +00:00
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
> span {
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Toggling indicators are unusable without JavaScript
|
|
|
|
.client-nojs {
|
|
|
|
.section-heading .indicator {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#page-secondary-actions {
|
|
|
|
// Clears floating on table of contents on stub pages.
|
|
|
|
clear: both;
|
|
|
|
|
|
|
|
a {
|
|
|
|
margin: 10px 2px 2px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// This is here rather than in mainmenu.less because we want to load these rules for non-js users too
|
|
|
|
// Transparent shield hidden by default
|
|
|
|
.transparent-shield,
|
|
|
|
.navigation-drawer {
|
|
|
|
// don't use display: none because it's not animatable
|
|
|
|
position: absolute;
|
|
|
|
z-index: @z-indexBase;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
// It may be better to express these in a single class
|
|
|
|
// or think about using extend or a mixin to stay with semantic selectors
|
|
|
|
// https://css-tricks.com/the-extend-concept/
|
|
|
|
#bodyContent .panel .content,
|
|
|
|
.overlay .content-header,
|
|
|
|
.overlay .panel,
|
|
|
|
.page-list.side-list .list-thumb,
|
|
|
|
.page-list li,
|
|
|
|
.topic-title-list li,
|
|
|
|
.site-link-list li,
|
|
|
|
.previewnote p,
|
|
|
|
.pointer-overlay,
|
|
|
|
.drawer,
|
|
|
|
.successbox,
|
|
|
|
.errorbox,
|
|
|
|
.list-header,
|
|
|
|
.warningbox,
|
|
|
|
.mw-revision {
|
|
|
|
padding-left: @contentPadding;
|
|
|
|
padding-right: @contentPadding;
|
|
|
|
}
|
|
|
|
|
|
|
|
.talk-overlay .comment .comment-content,
|
|
|
|
.backtotop,
|
|
|
|
.image-list,
|
|
|
|
.pre-content,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* Form only pages e.g Special:MobileOptions */
|
2018-04-02 21:26:06 +00:00
|
|
|
#mw-content-text > form > .oo-ui-fieldLayout > .oo-ui-fieldLayout-body,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* Save button on Special:MobileOptions */
|
2017-12-01 18:52:02 +00:00
|
|
|
#mw-content-text > form > .oo-ui-widget,
|
2017-07-12 15:12:40 +00:00
|
|
|
.content,
|
|
|
|
.post-content {
|
|
|
|
margin: 0 @contentMargin;
|
|
|
|
}
|
|
|
|
|
2018-02-05 19:17:54 +00:00
|
|
|
@media all and ( min-width: @width-breakpoint-tablet ) {
|
2018-12-12 23:20:10 +00:00
|
|
|
/* FIXME: this should be one generic class name */
|
|
|
|
/* SpecialMobileEditWatchlist */
|
2017-07-12 15:12:40 +00:00
|
|
|
.page-summary-list,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* Talk overlay */
|
2017-07-12 15:12:40 +00:00
|
|
|
.topic-title-list,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* structured languages, mobile pagelists */
|
2017-07-12 15:12:40 +00:00
|
|
|
.site-link-list,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* overlays */
|
2017-07-12 15:12:40 +00:00
|
|
|
.overlay .panel,
|
2018-12-12 23:20:10 +00:00
|
|
|
/* language overlay / MobileSpecialPageFeed */
|
2017-07-12 15:12:40 +00:00
|
|
|
.list-header {
|
|
|
|
padding-left: @contentPaddingTablet;
|
|
|
|
padding-right: @contentPaddingTablet;
|
|
|
|
}
|
|
|
|
}
|