2017-01-23 14:59:47 +00:00
|
|
|
@import 'mediawiki.mixins';
|
|
|
|
@import 'personalMenu';
|
|
|
|
@import 'search';
|
|
|
|
@import 'tabs';
|
2014-08-07 11:38:34 +00:00
|
|
|
|
|
|
|
/* Hide, but keep accessible for screen-readers */
|
|
|
|
#mw-navigation h2 {
|
|
|
|
position: absolute;
|
|
|
|
top: -9999px;
|
|
|
|
}
|
|
|
|
|
Re-implement and improve mw-jump links with pure CSS
* Improve their accessibility by giving both links
a full label "Jump to x" and "Jump to y" instead
of "Jump to: ", "x", "y".
This also makes things much better for localisation, for which
we generally discourage use of concatenation.
* Use pure CSS for the toggling of the visibility on focus,
instead of relying on JavaScript. Especially given the
JS comes form core's 'jquery.mw-jump' module, which is
considered technical debt per T195256. Alternatively,
that could be copied to vector.js, but pure CSS
is possible, so why not.
* Use plain <a> links in the HTML instead of wrapped in a <div>.
This solves the long-standing problem whereby the margin
between #contentSub and #mw-content-text had to be awkwardly
negated and overridden in core and on various to make sure that
the wrapper itself would become visible as needed, in a way that
has margin around this. This whole problem doesn't apply when
simply using inline links that aren't part of the regular flow
with .mixin-screen-reader-text. On focus, the individually
focussed link appears in regular flow, without the need for
any custom styles.
* This uses :not(:focus) to naturally make it render in the default
way on focus, and visibibly hidden/clipped otherwise.
This is supported in IE9+ and Android 2+.
There is a way to make it work with CSS2 for IE7-8, by applying
the mixin to '.mw-jump-link' only and then undoing all of
'position', 'width', 'height', 'clip', and 'margin' on :focus.
But I'm not sure that's worth it here. The fallback in IE7-8
for not supporting ":not(:focus)" is that the accessibility
link is simply visible always, which seems like a good fallback
for accessibility, and doesn't hurt anything.
Bug: T195256
Change-Id: Icaadb290f692b3617688d32cbb66dfb007f1c82c
2018-05-21 16:28:07 +00:00
|
|
|
.mw-jump-link:not( :focus ) {
|
|
|
|
.mixin-screen-reader-text;
|
|
|
|
}
|
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
/* Head */
|
|
|
|
#mw-page-base {
|
|
|
|
height: 5em;
|
|
|
|
background-position: bottom left;
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
/* This image is only a fallback (for IE 6-9), so we do not @embed it. */
|
2017-01-23 14:59:47 +00:00
|
|
|
background-image: url( images/page-fade.png );
|
2018-03-15 04:32:10 +00:00
|
|
|
.vertical-gradient( @body-background-color, @menu-background-color, 50%, 100% );
|
2014-08-07 11:38:34 +00:00
|
|
|
background-color: @body-background-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
#mw-head-base {
|
|
|
|
margin-top: -5em;
|
|
|
|
margin-left: 10em;
|
|
|
|
height: 5em;
|
|
|
|
}
|
|
|
|
|
2018-03-15 04:32:10 +00:00
|
|
|
#mw-head {
|
2014-08-07 11:38:34 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
#right-navigation {
|
|
|
|
float: right;
|
|
|
|
margin-top: 2.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Logo */
|
|
|
|
#p-logo {
|
|
|
|
width: 10em;
|
|
|
|
height: 160px;
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
width: 10em;
|
|
|
|
height: 160px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center center;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Panel */
|
2018-03-15 04:32:10 +00:00
|
|
|
#mw-panel {
|
2014-08-07 11:38:34 +00:00
|
|
|
font-size: @menu-main-font-size;
|
|
|
|
position: absolute;
|
2017-07-08 17:32:57 +00:00
|
|
|
top: 0;
|
2014-08-07 11:38:34 +00:00
|
|
|
width: 10em;
|
|
|
|
left: 0;
|
|
|
|
|
2018-03-15 04:32:10 +00:00
|
|
|
.portal {
|
2014-08-07 11:38:34 +00:00
|
|
|
margin: 0 0.6em 0 0.7em;
|
|
|
|
padding: 0.25em 0;
|
|
|
|
direction: ltr;
|
|
|
|
background-position: top left;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: @menu-main-heading-font-size;
|
|
|
|
color: @menu-main-heading-color;
|
|
|
|
font-weight: normal;
|
2017-06-22 19:06:17 +00:00
|
|
|
margin: 0.5em 0 0 (@menu-main-body-margin-left/@menu-main-heading-font-size);
|
|
|
|
padding: 0.25em 0;
|
2014-08-07 11:38:34 +00:00
|
|
|
cursor: default;
|
2017-01-23 14:59:47 +00:00
|
|
|
border: 0;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
2018-03-15 04:32:10 +00:00
|
|
|
.body {
|
2017-06-22 19:06:17 +00:00
|
|
|
margin-left: @menu-main-body-margin-left;
|
2014-08-07 11:38:34 +00:00
|
|
|
padding-top: 0;
|
2017-03-27 18:01:24 +00:00
|
|
|
.background-image( 'images/portal-break.png' );
|
|
|
|
background-repeat: no-repeat;
|
2014-08-07 11:38:34 +00:00
|
|
|
|
|
|
|
ul {
|
2018-03-15 04:32:10 +00:00
|
|
|
list-style: none none;
|
2014-08-07 11:38:34 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: @menu-main-body-padding;
|
2018-03-15 04:32:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
line-height: 1.125em;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0.25em 0;
|
|
|
|
font-size: @menu-main-body-font-size;
|
|
|
|
word-wrap: break-word;
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2018-03-15 04:32:10 +00:00
|
|
|
a {
|
|
|
|
color: @menu-main-body-link-color;
|
|
|
|
|
|
|
|
&:visited {
|
|
|
|
color: @menu-main-body-link-visited-color;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-02-14 11:25:17 +00:00
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2015-02-14 11:25:17 +00:00
|
|
|
/* First sidebar portlet. Not using :first-of-type for IE<=8 support. */
|
2018-03-15 04:32:10 +00:00
|
|
|
#p-logo + .portal {
|
2015-02-14 11:25:17 +00:00
|
|
|
background-image: none;
|
2017-07-08 17:32:57 +00:00
|
|
|
margin-top: 1em;
|
2018-03-15 04:32:10 +00:00
|
|
|
|
2015-02-14 11:25:17 +00:00
|
|
|
h3 {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-03-15 04:32:10 +00:00
|
|
|
|
|
|
|
.body {
|
2017-03-27 18:01:24 +00:00
|
|
|
background-image: none;
|
2017-06-22 19:06:17 +00:00
|
|
|
margin-left: @menu-main-body-margin-left;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|