„Szerkesztő:Pompos Balázs/common.css” változatai közötti eltérés
Új oldal, tartalma: „→Don't display some stuff on the main page: .page-Main_Page #deleteconfirm, .page-Main_Page #t-cite, .page-Main_Page #footer-info-lastmod, .action-view.page-Main_Pa…” |
Nincs szerkesztési összefoglaló |
||
| 32. sor: | 32. sor: | ||
#mw-footer #copyright { | #mw-footer #copyright { | ||
display: block; | display: block; | ||
} | |||
@import 'mediawiki.mixins'; | |||
// Colours | |||
@text: #013; | |||
@background: #fff; | |||
@background2: #f3f3f3; | |||
@background3: #fcfcfc; | |||
@background-dark: #777; | |||
@background-dark2: #555; | |||
@text-inverse: #fff; | |||
@link: @blue; | |||
@link-red: @red; | |||
@grey: #ccc; | |||
@grey-bright: #eee; | |||
@grey-dark: #666; | |||
@red: #d44; | |||
@red-bright: #f55; | |||
@red-dark: #900; | |||
@green: #3b7; | |||
@green-bright: #4c8; | |||
@green-dark: #396; | |||
@blue: #08d; | |||
@blue-bright: #2af; | |||
@blue-dark: #069; | |||
@link: @blue; | |||
@link-red: @red; | |||
// Flair | |||
// Fonts are chosen for consistent metrics, not necessarily overall prettiness. | |||
// This will NEED fixes for different languages. | |||
@fonts: 'Helvetica Neue', 'Nimbus Sans', 'Helvetica', 'Arial', sans-serif; | |||
@fonts-secondary: 'Linux Libertine', 'Times New Roman', serif; | |||
// Based on information on https://wiki.archlinux.org/index.php/Metric-compatible_fonts | |||
@fonts-monospace: 'Consolas', 'Courier', 'Nimbus Mono', 'Liberation Mono', 'Courier New', monospace; | |||
@border: 0.2em; | |||
@radius: 0.2em; | |||
@font-size: 0.95em; | |||
// Widths | |||
// Remember to also update skin.json (and possibly mobile.js) if you change these | |||
// For some reason doing @mobile-width + 1px doesn't seem to actually work, | |||
// so we need both for each thing | |||
@mobile-width: 850px; | |||
@desktop-small-floor: 851px; | |||
@desktop-small-width: 1099px; | |||
@desktop-mid-floor: 1100px; | |||
@desktop-mid-width: 1339px; | |||
@desktop-large-floor: 1340px; | |||
// The max-width for the content | |||
@content-width: 100em; | |||
@content-padding: 2em; | |||
@column-left-size: 14em; | |||
@column-right-size: 16em; | |||
@fixed-header-height: 3.125em; | |||
@color-height: 0.35em; | |||
// Miscellaneous functions | |||
// To hide objects, but keep them accessible for screen-readers | |||
.hidden() { | |||
position: absolute; | |||
top: -9999px; | |||
left: 0; | |||
} | |||
// Icons - hides labels, but keep them accessible for screen-readers | |||
.icon() { | |||
text-indent: -99999px; | |||
border: 0; | |||
background-color: transparent; | |||
background-repeat: no-repeat; | |||
} | |||
.box() { | |||
background: @background3; | |||
border: solid @grey-bright; | |||
border-width: 1px 1px @border; | |||
padding: 1.25em 1.75em; | |||
box-shadow: 0 1px 2px 1px rgba( 0, 0, 0, 0.02 ); | |||
} | |||
// Icons for the page actions menus | |||
.ca-icon() { | |||
.icon; | |||
display: inline-block; | |||
width: 20px; | |||
height: 20px; | |||
box-sizing: border-box; | |||
margin-bottom: -0.5em; | |||
} | |||
// Navigation column blocks | |||
.nav-block() { | |||
.box(); | |||
overflow: auto; | |||
padding: 1.5em 1.5em 0; | |||
margin: 1em 0; | |||
line-height: 1.1; | |||
ul, | |||
li { | |||
list-style: none; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
h3 { | |||
font-weight: normal; | |||
font-size: 1em; | |||
margin: 0.25em 0 0.75em 0; | |||
padding-bottom: 0.15em; | |||
border-bottom: solid 2px @grey; | |||
} | |||
ul { | |||
margin-bottom: 2em; | |||
} | |||
li { | |||
margin: 0 0 0.35em; | |||
} | |||
} | |||
.column-right() { | |||
width: @column-right-size; | |||
float: right; | |||
clear: right; | |||
padding-left: 1em; | |||
box-sizing: border-box; | |||
.sidebar-chunk { | |||
.nav-block(); | |||
} | |||
} | |||
.column-left() { | |||
width: @column-left-size; | |||
float: left; | |||
clear: left; | |||
padding-right: 1em; | |||
box-sizing: border-box; | |||
.sidebar-chunk { | |||
.nav-block(); | |||
} | |||
} | |||
// Dropdowns | |||
.dropdown-header() { | |||
cursor: pointer; | |||
margin-bottom: -1em; | |||
padding-bottom: 1em; | |||
&:after { | |||
display: inline-block; | |||
content: ''; | |||
width: 22px; | |||
height: 12px; | |||
.background-image-svg( 'images/arrow-down-grey.svg', 'images/arrow-down-grey.png' ); | |||
background-position: center center; | |||
background-repeat: no-repeat; | |||
} | |||
} | |||
.dropdown-menu( @direction: right ) { | |||
.nav-block(); | |||
background: @background; | |||
box-shadow: 0 2px 3px 1px rgba( 0, 0, 0, 0.05 ); | |||
position: absolute; | |||
padding: 20px 2em 0; | |||
margin: 0; | |||
min-width: 9.153em; | |||
top: 2.95em; | |||
@{direction}: -1em; | |||
overflow: visible; | |||
z-index: 3; | |||
} | |||
// Categories on bottom of page | |||
.categories-bottom() { | |||
#catlinks-sidebar { | |||
display: none; | |||
} | |||
#catlinks { | |||
margin: 0 @content-padding; | |||
padding: 1.5em 0 0.5em; | |||
li { | |||
border-left: 0; | |||
} | |||
div { | |||
margin: 0 0 0.35em; | |||
} | |||
} | |||
} | |||
/* | |||
* PREFERENCES AND FIELDSET STUFF | |||
*/ | |||
#preftoc { | |||
margin: 0 0 1em; | |||
padding: 0; | |||
list-style: none; | |||
clear: both; | |||
li { | |||
display: inline; | |||
margin-right: 1em; | |||
&.selected a { | |||
color: @text; | |||
border-bottom: solid @border @blue; | |||
} | |||
} | |||
} | |||
#preferences { | |||
margin: 0; | |||
clear: both; | |||
min-height: 400px; | |||
.prefsection { | |||
border: 0; | |||
padding: 0; | |||
margin: 0; | |||
box-shadow: none; | |||
} | |||
.mainLegend { | |||
display: none; | |||
} | |||
.preferences-login { | |||
clear: both; | |||
margin-bottom: 1.5em; | |||
} | |||
.mw-email-not-authenticated .mw-input, | |||
.mw-email-none .mw-input { | |||
display: block; | |||
padding: 0.25em 0.5em; | |||
} | |||
input[ type='checkbox' ], | |||
input[ type='radio' ] { | |||
margin-left: 0; | |||
} | |||
} | |||
.mw-prefs-buttons { | |||
margin-top: 1em; | |||
} | |||
td.mw-input, | |||
td.mw-label { | |||
vertical-align: middle; | |||
} | |||
fieldset { | |||
.box; | |||
line-height: 1.3em; | |||
margin: 1em 0; | |||
background: @background; | |||
legend { | |||
padding: 0.5em 1.25em; | |||
background: @background; | |||
font-weight: bold; | |||
color: @blue-dark; | |||
} | |||
} | |||
label { | |||
padding-left: 0.5em; | |||
} | |||
.mw-input label { | |||
padding: 0; | |||
margin-right: 1em; | |||
} | |||
.mw-label { | |||
padding-right: 0.5em; | |||
} | |||
.mw-submit { | |||
padding-top: 2em; | |||
} | |||
.htmlform-tip { | |||
font-size: 85%; | |||
color: @text; | |||
line-height: 1.2em; | |||
padding: 1em 0; | |||
} | |||
/* | |||
* | |||
* FORM STUFF | |||
* | |||
*/ | |||
/* pile of bad hacks to try to catch all the different ones */ | |||
input[ name='target' ], | |||
input[ name='user' ], | |||
input[ name='mime' ], | |||
input[ size$='0' ], | |||
input[ type='text' ], | |||
input[ type='checkbox' ], | |||
input[ type='radio' ], | |||
input#wpTemplateSandboxPage, | |||
input.mw-summary, | |||
input.mw-input, | |||
.mw-input input, | |||
textarea, | |||
.mw-ui-input-inline, | |||
.mw-ui-input, | |||
#searchInput { | |||
box-sizing: border-box; | |||
padding: 0.25em 0.35em; | |||
border: solid 1px @grey; | |||
margin: 0.5em 0; | |||
box-shadow: inset 0 1px 1px 1px rgba( 0, 0, 0, 0.05 ); | |||
font-size: 1em; | |||
min-height: 30px; | |||
font-family: @fonts; | |||
} | |||
select { | |||
padding: 0.25em; | |||
margin: 0.5em 0; | |||
} | |||
input[ type='checkbox' ], | |||
input[ type='radio' ] { | |||
margin-left: 1em; | |||
min-height: 0; | |||
} | |||
input[ type='checkbox' ] { | |||
border-radius: 2px; | |||
} | |||
input[ type='radio' ] { | |||
border-radius: 8px; | |||
} | |||
.mw-ui-button.mw-ui-progressive, | |||
.mw-ui-button.mw-ui-progressive:active, | |||
.mw-ui-button.mw-ui-progressive.mw-ui-checked, | |||
input[ type='submit' ], | |||
input[ type='button' ], | |||
button { | |||
padding: 0.25em 1em 0.1em 1em; | |||
border: solid 1px @grey; | |||
border-bottom-width: @border; | |||
text-shadow: 0 -1px 0 @grey; | |||
box-sizing: border-box; | |||
border-radius: @radius; | |||
background: @background; | |||
color: @text; | |||
min-height: 30px; | |||
box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.05 ); | |||
&:active { | |||
background-color: @grey-bright; | |||
} | |||
&:hover { | |||
background-color: @grey-bright; | |||
} | |||
} | |||
textarea { | |||
width: 100%; | |||
resize: vertical; | |||
box-sizing: border-box; | |||
line-height: 1.3em; | |||
font-family: @fonts-monospace; | |||
} | |||
textarea#wpTextbox1 { | |||
border-color: @grey; | |||
} | |||
div.editOptions { | |||
padding: 1.25em 1.75em; | |||
padding: 1em; | |||
border: solid @grey; | |||
border-width: 0 1px @border; | |||
background: @background2; | |||
.mw-summary label { | |||
padding-left: 0; | |||
} | |||
input#wpSummary { | |||
box-sizing: border-box; | |||
width: 100%; | |||
} | |||
label { | |||
margin-right: 1.5em; | |||
} | |||
// For Extension:TemplateSandbox and the like | |||
fieldset, | |||
legend { | |||
background: inherit; | |||
border: 0; | |||
box-shadow: none; | |||
padding: 0; | |||
margin-top: 2em; | |||
} | |||
} | |||
/* Extension:TemplateSandbox stuff */ | |||
.mw-templatesandbox-page label { | |||
padding: 0; | |||
} | |||
#wpTemplateSandboxPreview { | |||
margin-left: 0.5em; | |||
} | |||
/* Recent changes and watchlist options */ | |||
.rcoptions hr, | |||
#mw-watchlist-options hr { | |||
clear: both; | |||
} | |||
.rcoptions #namespace, | |||
#mw-watchlist-options .namespaceselector { | |||
margin-right: 2em; | |||
} | |||
/* Watchlist */ | |||
#mw-watchlist-options { | |||
label { | |||
padding: 0 1em 0 0; | |||
} | |||
input[ type='submit' ] { | |||
margin: 0 0 0 4em; | |||
} | |||
} | |||
/* Related changes hacks */ | |||
.mw-special-Recentchangeslinked { | |||
.rcoptions { | |||
input[ type='submit' ] { | |||
float: right; | |||
margin: 0 0 0 4em; | |||
} | |||
td.mw-label.mw-target-label { | |||
vertical-align: top; | |||
padding-top: 0.75em; | |||
} | |||
input[ name='target' ] { | |||
float: left; | |||
} | |||
} | |||
#showlinkedto { | |||
clear: left; | |||
float: left; | |||
} | |||
label[ for='showlinkedto' ] { | |||
padding: 0.4em; | |||
float: left; | |||
} | |||
} | |||
.skin-timeless .oo-ui-windowManager-modal > .oo-ui-dialog, | |||
.skin-timeless .ve-ui-overlay-global { | |||
z-index: 101; | |||
} | |||
body > .oo-ui-windowManager, | |||
.oo-ui-defaultOverlay { | |||
z-index: 101; | |||
font-size: 0.95em; | |||
} | |||
/* Page layout */ | |||
html, | |||
body { | |||
margin: 0; | |||
padding: 0; | |||
} | |||
body { | |||
font-family: @fonts; | |||
color: @text; | |||
background: @background-dark; | |||
font-size: @font-size; | |||
line-height: 1.4; | |||
} | |||
#mw-content { | |||
.box; | |||
background: @background; | |||
padding: 1em @content-padding 3em; | |||
position: relative; | |||
} | |||
#mw-content-container { | |||
background: @background2; | |||
word-wrap: break-word; | |||
} | |||
#mw-footer-container { | |||
border-top: solid 1px @background-dark2; | |||
box-shadow: inset 0 7px 2px -4px rgba( 0, 0, 0, 0.1 ); | |||
color: @text-inverse; | |||
a { | |||
color: @text-inverse; | |||
} | |||
ul { | |||
margin: 0; | |||
} | |||
} | |||
#p-logo { | |||
text-align: center; | |||
margin: auto; | |||
} | |||
.mw-wiki-logo { | |||
display: block; | |||
content: ''; | |||
width: 11em; | |||
height: 11em; | |||
background-repeat: no-repeat; | |||
background-position: 50% 50%; | |||
margin: 0.75em auto 0; | |||
} | |||
#p-logo-text { | |||
width: @column-left-size; | |||
text-align: center; | |||
line-height: 1; | |||
a { | |||
padding: 0.2em 1em; | |||
color: @text; | |||
font-family: @fonts-secondary; | |||
font-variant: small-caps; | |||
font-size: 1.75em; | |||
display: block; | |||
/* 13+ character names */ | |||
&.long { | |||
font-size: 1.45em; | |||
padding: 0 0.75em 0 0; | |||
line-height: 0.8; | |||
} | |||
} | |||
} | |||
/* Search */ | |||
#simpleSearch { | |||
box-shadow: inset 0 2px 4px 0 rgba( 0, 0, 0, 0.05 ); | |||
background: @background; | |||
position: relative; | |||
border: solid 1px @grey; | |||
} | |||
#searchInput { | |||
border: 0; | |||
margin: 0; | |||
height: 2.1em; | |||
padding: 0.4em 4.5em 0.2em 2em; | |||
box-shadow: none; | |||
background: transparent; | |||
width: 100%; | |||
min-height: 0; | |||
} | |||
#searchButton, | |||
#mw-searchButton { | |||
position: absolute; | |||
top: 0; | |||
right: 1.5em; | |||
width: 2.5em; | |||
height: 2.5em; | |||
.icon; | |||
.background-image-svg( 'images/search-ltr.svg', 'images/search-ltr.png' ); | |||
background-position: 50% 40%; | |||
box-shadow: none; | |||
} | |||
.suggestions { | |||
background: @background; | |||
box-shadow: 0 2px 2px 1px rgba( 0, 0, 0, 0.05 ); | |||
.suggestions-special { | |||
background-color: @background; | |||
border: 1px solid @grey; | |||
border-bottom-width: @border; | |||
padding: 0.75em 2em; | |||
} | |||
.suggestions-results { | |||
background-color: @background; | |||
border: 1px solid @grey; | |||
border-bottom-width: @border; | |||
} | |||
.suggestions-result { | |||
color: @text; | |||
padding: 0.65em 2em 0.35em; | |||
} | |||
.suggestions-result-current { | |||
background-color: @blue; | |||
color: @background; | |||
} | |||
} | |||
div.suggestions { | |||
position: fixed; | |||
top: 2.75em !important; // Override js-provided value to account for fixed header | |||
} | |||
/* Dropdown stuff */ | |||
.pokey, | |||
.pokey:after { | |||
border-bottom: 10px solid @grey-bright; | |||
border-left: 10px solid transparent; | |||
border-right: 10px solid transparent; | |||
content: ''; | |||
height: 0; | |||
position: absolute; | |||
transform: rotate( 360deg ); // to force some smoothing in annoying browsers | |||
width: 0; | |||
z-index: 4; | |||
} | |||
.pokey { | |||
top: 1.85em; | |||
right: 1px; | |||
display: none; | |||
} | |||
.pokey:after { | |||
border-bottom-color: #fff; | |||
right: -10px; | |||
top: 2px; | |||
} | |||
.dropdown-toggle { | |||
.dropdown-header(); | |||
} | |||
/* Footer */ | |||
#mw-footer { | |||
padding-top: 0.5em; | |||
padding-bottom: 1em; | |||
ul, | |||
li { | |||
margin: 1em 0; | |||
list-style: none; | |||
padding: 0; | |||
} | |||
.footer-icons { | |||
float: right; | |||
margin: 0 0 0 1em; | |||
li { | |||
margin: 0 0 1em 0; | |||
} | |||
} | |||
.footer-places li { | |||
display: inline; | |||
padding-right: 1em; | |||
} | |||
#lastmod { | |||
display: block; | |||
} | |||
} | |||
/* Content */ | |||
#mw-content-container { | |||
border-bottom: solid 4px @green; | |||
} | |||
#mw-page-header-links { | |||
div, | |||
ul, | |||
li { | |||
list-style: none; | |||
display: inline-block; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
li { | |||
margin: 0.25em 0 1em; | |||
border-bottom: solid 3px transparent; | |||
&:hover { | |||
border-bottom-color: @grey; | |||
} | |||
&.selected { | |||
border-bottom-color: @blue; | |||
a { | |||
color: @text; | |||
} | |||
} | |||
} | |||
} | |||
#p-namespaces { | |||
float: left; | |||
li { | |||
margin-right: 1em; | |||
} | |||
} | |||
#p-views { | |||
float: right; | |||
li { | |||
margin-left: 1em; | |||
} | |||
} | |||
#ca-watch a { | |||
.ca-icon(); | |||
.background-image-svg( 'images/star.svg', 'images/star.png' ); | |||
} | |||
#ca-unwatch a { | |||
.ca-icon(); | |||
.background-image-svg( 'images/star-filled.svg', 'images/star-filled.png' ); | |||
} | |||
/* Misc */ | |||
a { | |||
text-decoration: none; | |||
color: @blue; | |||
&:hover, | |||
&:visited { | |||
color: @blue-dark; | |||
} | |||
} | |||
a.new, | |||
.new a { | |||
color: @red; | |||
&:hover, | |||
&:visited { | |||
color: @red-dark; | |||
} | |||
} | |||
.mw-editsection { | |||
font-family: @fonts; | |||
a { | |||
.background-image-svg( 'images/pencil-grey.svg', 'images/pencil-grey.png' ); | |||
background-repeat: no-repeat; | |||
background-position: 0 0; | |||
display: inline-block; | |||
padding: 0.5em 0 0.25em 1.75em; | |||
} | |||
} | |||
.mw-editsection-bracket { | |||
display: none; | |||
} | |||
.visual-clear { | |||
clear: both; | |||
} | |||
.mw-indicators { | |||
float: right; | |||
margin: 0.25em 0 0 1em; | |||
} | |||
.mw-indicator { | |||
display: inline-block; | |||
} | |||
/* Subtitle area | |||
* @see https://phabricator.wikimedia.org/T173951 | |||
*/ | |||
#contentSub { | |||
font-size: 84%; | |||
color: @grey-dark; | |||
/* This forces "redirect page" (on a redirect page) etc. on a new line */ | |||
.subpages { | |||
display: block; | |||
} | |||
} | |||
/* pre and code styles copypasted from core | |||
* /resources/src/mediawiki.skinning/elements.css and modified a bit | |||
* @see https://phabricator.wikimedia.org/T177142 | |||
*/ | |||
code { | |||
color: #000; | |||
background-color: @grey-bright; | |||
border: 1px solid @grey-dark; | |||
border-radius: 2px; | |||
padding: 1px 4px; | |||
} | |||
pre, | |||
.mw-code { | |||
color: #000; | |||
background-color: @grey-bright; | |||
border: 1px solid @grey-dark; | |||
padding: 1em; | |||
/* Wrap lines in overflow. T2260, T103780 */ | |||
white-space: pre-wrap; | |||
} | |||
#mw-content { | |||
h1, | |||
h2, | |||
h3, | |||
h4, | |||
h5, | |||
h6, | |||
dt { | |||
font-weight: normal; | |||
font-family: @fonts-secondary; | |||
line-height: 1.25; | |||
margin: 1.5em 0 0.5em; | |||
} | |||
form dt { | |||
margin: 0 0.5em 0 0; | |||
} | |||
h1, | |||
h2 { | |||
border-bottom: solid 2px @blue; | |||
overflow: hidden; | |||
} | |||
h1.firstHeading { | |||
margin: 0.25em 0 0.5em; | |||
border-bottom: solid 4px @red; | |||
} | |||
h1 { | |||
font-size: 2em; | |||
} | |||
h2 { | |||
font-size: 1.7em; | |||
} | |||
h3 { | |||
font-size: 1.5em; | |||
} | |||
h4 { | |||
font-size: 1.35em; | |||
} | |||
h5 { | |||
font-size: 1.25em; | |||
} | |||
h6 { | |||
font-size: 1.2em; | |||
} | |||
dt { | |||
margin-top: 1em; | |||
} | |||
dd { | |||
margin-bottom: 1em; | |||
} | |||
.mw-changeslist-legend dd { | |||
margin-bottom: 0; | |||
} | |||
} | |||
hr { | |||
border-width: 1px; | |||
border-color: @grey; | |||
border-style: solid none solid none; | |||
margin: 0.5em 0; | |||
} | |||
pre { | |||
overflow: auto; | |||
white-space: pre-wrap; | |||
font-family: @fonts-monospace; | |||
} | |||
p { | |||
margin: 0.9em 0 0.8em; | |||
} | |||
.center, | |||
.center * { | |||
margin: auto; | |||
text-align: center; | |||
} | |||
/* Thumbnails */ | |||
/* @noflip */ | |||
.tright { | |||
margin: 0 0 0.5em 0.5em; | |||
padding: 0 0 1em 1.5em; | |||
} | |||
/* @noflip */ | |||
.tleft { | |||
margin: 0 0.5em 0.5em 0; | |||
padding: 0 1.5em 1em 0; | |||
} | |||
.thumbinner { | |||
.box; | |||
padding: 0.75em; | |||
} | |||
.thumbcaption { | |||
font-size: 95%; | |||
padding: 0.5em 1em; | |||
} | |||
.thumbinner .thumbimage { | |||
border: solid 1px @grey-bright; | |||
} | |||
#mw-content li.gallerybox div.thumb { | |||
.box; | |||
padding: 0; | |||
} | |||
/* Tables of contents */ | |||
ul#filetoc, | |||
#toc, | |||
.toc, | |||
.mw-warning { | |||
display: inline-block; | |||
.box; | |||
padding: 1.25em 1.75em; | |||
margin: 1em 0; | |||
min-width: 15em; | |||
} | |||
ul#filetoc { | |||
display: block; | |||
border: 0; | |||
} | |||
#toc ul, | |||
.toc ul { | |||
margin: 1em 0 0; | |||
list-style: none; | |||
} | |||
#mw-content .toc h2 { | |||
font-size: 1.2em; | |||
font-family: @fonts; | |||
margin: 0; | |||
display: inline-block; | |||
border-bottom-color: @grey; | |||
} | |||
.toctoggle { | |||
color: @background3; | |||
} | |||
#toc li:last-child { | |||
margin-bottom: 0.5em; | |||
} | |||
.toclevel-1 { | |||
margin-bottom: 0.25em; | |||
} | |||
.mw-changeslist-legend, | |||
#mw-content .mw-search-profile-tabs, | |||
#mw-content fieldset#mw-searchoptions, | |||
table.wikitable { | |||
border: 0; | |||
color: @text; | |||
.box; | |||
} | |||
#mw-content .mw-search-profile-tabs { | |||
padding: 0.5em; | |||
} | |||
table.wikitable > tr > th, | |||
table.wikitable > tr > td, | |||
table.wikitable > * > tr > th, | |||
table.wikitable > * > tr > td { | |||
border: 1px solid @grey-bright; | |||
padding: 0.5em; | |||
} | |||
table.wikitable > tr > th, | |||
table.wikitable > * > tr > th { | |||
border: 0; | |||
} | |||
/* Color bars */ | |||
.color-bar { | |||
width: 100%; | |||
} | |||
.color-left { | |||
height: @color-height; | |||
background: @red-dark; | |||
width: 50%; | |||
float: left; | |||
} | |||
.color-right { | |||
display: inline-block; | |||
height: @color-height; | |||
background: @green-dark; | |||
width: 50%; | |||
float: right; | |||
} | |||
.color-middle-container { | |||
max-width: @content-width; | |||
margin: 0 auto -@color-height; | |||
position: relative; | |||
} | |||
.color-middle { | |||
height: @color-height; | |||
background: @blue-dark; | |||
margin-left: @column-left-size + 1em; | |||
margin-right: @column-right-size + 1em; | |||
} | |||
/* Portlets */ | |||
.emptyPortlet { | |||
display: none; | |||
} | |||
#p-lang.emptyPortlet { | |||
display: inherit; | |||
} | |||
/* Hidden stuff */ | |||
#p-namespaces h3, | |||
#p-views h3, | |||
#p-search h3 { | |||
.hidden; | |||
} | |||
// Override menu display from mobile | |||
// This also requires !importants where they hover and stuff | |||
.dropdown, | |||
.sidebar-inner { | |||
display: block !important; | |||
} | |||
.ts-inner { | |||
max-width: @content-width; | |||
padding: 0 1em; | |||
margin: auto; | |||
} | |||
#mw-content-container { | |||
.background-image-svg( 'images/cat-grey.svg', 'images/cat-grey.png' ); | |||
background-repeat: no-repeat; | |||
background-position: center 15em; | |||
} | |||
/* Header */ | |||
#mw-header-container { | |||
/* Stupid IE10+ bug requires defining the height property for this to work | |||
* the way it is intended; without doing that this'll break horribly under | |||
* IE10 and IE11. | |||
* @see https://phabricator.wikimedia.org/T173769 | |||
*/ | |||
height: 0; | |||
position: fixed; | |||
z-index: 100; | |||
top: 0; | |||
width: 100%; | |||
background: @background; | |||
color: @text; | |||
padding: 0.5em 0 0; | |||
min-height: @fixed-header-height; | |||
box-sizing: border-box; | |||
} | |||
#p-logo-text { | |||
width: @column-left-size; | |||
float: left; | |||
} | |||
#p-search { | |||
margin-left: @column-left-size; | |||
margin-right: @column-right-size; | |||
} | |||
#user-tools { | |||
width: @column-right-size; | |||
float: right; | |||
} | |||
#mw-header-nav-hack, | |||
#mw-header-hack { | |||
position: fixed; | |||
z-index: 97; | |||
top: @fixed-header-height; | |||
box-shadow: 0 3px 3px 2px rgba( 0, 0, 0, 0.075 ), 0 0 2px rgba( 0, 0, 0, 0.2 ); | |||
} | |||
#mw-header-nav-hack { | |||
display: none; | |||
} | |||
.dropdown { | |||
display: none !important; | |||
} | |||
#personal { | |||
display: inline-block; | |||
position: relative; | |||
padding-left: 1.5em; | |||
line-height: 1; | |||
.dropdown { | |||
.dropdown-menu(); | |||
top: 2.95em; | |||
right: -2em; | |||
} | |||
.pokey { | |||
top: 2.05em; | |||
} | |||
h2 { | |||
margin: 0; | |||
padding: 0.7em 0 0 25px; | |||
font-family: @fonts-secondary; | |||
font-weight: normal; | |||
font-size: 1.1em; | |||
.background-image-svg( 'images/user-grey.svg', 'images/user-grey.png' ); | |||
background-position: 0 7px; | |||
background-repeat: no-repeat; | |||
.dropdown-header(); | |||
span { | |||
display: inline-block; | |||
height: 1em; | |||
overflow: hidden; | |||
word-wrap: break-word; | |||
} | |||
} | |||
&:hover { | |||
.pokey, | |||
.dropdown { | |||
display: block !important; | |||
} | |||
} | |||
} | |||
#mw-page-header-links #ca-more, | |||
#mw-page-header-links #ca-languages, | |||
.sidebar-chunk h2 { | |||
display: none; | |||
} | |||
/* Content */ | |||
#mw-content-container { | |||
margin-top: @fixed-header-height; | |||
padding-bottom: 1em; | |||
} | |||
#mw-site-navigation { | |||
.column-left(); | |||
} | |||
#mw-content { | |||
margin-left: @column-left-size; | |||
margin-right: @column-right-size; | |||
overflow: auto; | |||
} | |||
#mw-related-navigation { | |||
.column-right(); | |||
} | |||
// Redundant content category list | |||
#catlinks { | |||
display: none; | |||
} | } | ||