2017-01-23 14:59:47 +00:00
|
|
|
/**
|
|
|
|
* Styling for namespace tabs (page, discussion) and views (read, edit, view history, watch and other actions)
|
|
|
|
*/
|
2014-08-07 11:38:34 +00:00
|
|
|
|
|
|
|
/* Navigation Labels */
|
|
|
|
div.vectorTabs h3 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Namespaces and Views */
|
|
|
|
div.vectorTabs {
|
|
|
|
float: left;
|
|
|
|
height: 2.5em;
|
|
|
|
.background-image('images/tab-break.png');
|
|
|
|
background-position: bottom left;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
padding-left: 1px;
|
|
|
|
|
|
|
|
ul {
|
|
|
|
float: left;
|
|
|
|
height: 100%;
|
|
|
|
list-style-type: none;
|
|
|
|
list-style-image: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
.background-image('images/tab-break.png');
|
|
|
|
background-position: right bottom;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
|
|
|
li {
|
|
|
|
float: left;
|
|
|
|
line-height: 1.125em;
|
2018-05-23 06:19:49 +00:00
|
|
|
display: block;
|
2014-08-07 11:38:34 +00:00
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
.background-image('images/tab-normal-fade.png');
|
|
|
|
background-position: bottom left;
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
&.new {
|
|
|
|
a,
|
2017-01-23 14:59:47 +00:00
|
|
|
a:visited {
|
2014-08-07 11:38:34 +00:00
|
|
|
color: #a55858;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.selected {
|
|
|
|
.background-image('images/tab-current-fade.png');
|
|
|
|
a,
|
2017-01-23 14:59:47 +00:00
|
|
|
a:visited {
|
2017-02-16 19:44:39 +00:00
|
|
|
color: #222;
|
2014-08-07 11:38:34 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.icon {
|
|
|
|
a {
|
|
|
|
background-position: bottom right;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2018-05-23 06:19:49 +00:00
|
|
|
display: block;
|
2014-08-07 11:38:34 +00:00
|
|
|
height: 1.9em;
|
2017-11-05 03:29:49 +00:00
|
|
|
padding-left: 0.625em; // equals `8px` at computed `font-size` of `12.8px`
|
|
|
|
padding-right: 0.625em;
|
2014-08-07 11:38:34 +00:00
|
|
|
color: @menu-link-color;
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
display: inline-block;
|
|
|
|
.background-image('images/tab-break.png');
|
|
|
|
background-position: bottom right;
|
|
|
|
background-repeat: no-repeat;
|
2016-12-14 20:33:59 +00:00
|
|
|
height: 100%;
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2017-01-23 14:59:47 +00:00
|
|
|
a {
|
2014-08-07 11:38:34 +00:00
|
|
|
float: left;
|
|
|
|
display: block;
|
2018-05-23 06:19:49 +00:00
|
|
|
padding-top: 1.25em;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Variants and Actions */
|
|
|
|
div.vectorMenu {
|
|
|
|
direction: ltr;
|
|
|
|
float: left;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
2017-07-20 03:55:37 +00:00
|
|
|
line-height: 1.125em;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
div#mw-head div.vectorMenu h3 {
|
|
|
|
float: left;
|
|
|
|
.background-image('images/tab-break.png');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: bottom right;
|
|
|
|
font-size: 1em;
|
|
|
|
height: 2.5em;
|
2017-07-20 20:50:23 +00:00
|
|
|
// `padding-right` >= `1px` effectively moves the "background border" outside of the element to act like a real
|
|
|
|
// border. It is necessary for `div.vectorMenu div.menu` dropdown to align well.
|
2017-11-05 03:29:49 +00:00
|
|
|
padding-right: 0.5em; // equals `8px` at computed `font-size` of `14px` as visually harmonically with `padding-left` in `div.vectorMenu h3 span`
|
2014-08-07 11:38:34 +00:00
|
|
|
margin-right: -1px;
|
|
|
|
}
|
|
|
|
|
2017-07-20 20:50:23 +00:00
|
|
|
div.vectorMenu h3 {
|
|
|
|
span {
|
2017-11-07 21:50:43 +00:00
|
|
|
position: relative;
|
2017-07-20 20:50:23 +00:00
|
|
|
display: block;
|
|
|
|
font-size: 0.8em;
|
2017-11-05 03:29:49 +00:00
|
|
|
padding-left: 0.625em;
|
2017-07-20 20:50:23 +00:00
|
|
|
padding-top: 1.25em;
|
|
|
|
padding-right: 16px;
|
|
|
|
font-weight: normal;
|
2017-11-07 21:50:43 +00:00
|
|
|
color: #444;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2017-11-19 10:15:11 +00:00
|
|
|
top: 1.25em;
|
2017-11-07 21:50:43 +00:00
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
.background-image-svg('images/arrow-down.svg', 'images/arrow-down.png');
|
2017-11-19 10:15:11 +00:00
|
|
|
background-position: 100% 50%;
|
2017-11-07 21:50:43 +00:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
// Modify the color of the image from the default #222 to approx. #444 to match the text.
|
|
|
|
opacity: 0.85;
|
|
|
|
}
|
2017-07-20 20:50:23 +00:00
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2017-07-20 20:50:23 +00:00
|
|
|
&:hover span,
|
|
|
|
&:focus span {
|
2017-11-07 21:50:43 +00:00
|
|
|
color: @content-font-color;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2017-07-20 20:50:23 +00:00
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
2017-06-16 17:12:08 +00:00
|
|
|
div.vectorMenu .vectorMenuCheckbox:checked + h3 span:after {
|
2017-11-19 10:15:11 +00:00
|
|
|
transform: scaleY( -1 );
|
|
|
|
}
|
|
|
|
|
2017-06-16 16:34:14 +00:00
|
|
|
div.vectorMenu .vectorMenuCheckbox:focus + h3 {
|
|
|
|
// Simulate browser focus ring
|
|
|
|
outline: dotted 1px; // Firefox style
|
|
|
|
outline: auto -webkit-focus-ring-color; // Webkit style
|
|
|
|
}
|
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
div.vectorMenu div.menu {
|
|
|
|
// Match the width of the dropdown "heading" (the tab)
|
|
|
|
min-width: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 2.5em;
|
|
|
|
left: -1px;
|
2017-02-16 19:44:39 +00:00
|
|
|
background-color: @body-background-color;
|
|
|
|
border: 1px solid #a2a9b1;
|
2014-08-07 11:38:34 +00:00
|
|
|
border-top-width: 0;
|
|
|
|
clear: both;
|
2017-02-16 19:44:39 +00:00
|
|
|
box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
|
2014-08-07 11:38:34 +00:00
|
|
|
text-align: left;
|
|
|
|
display: none;
|
2017-08-02 23:27:05 +00:00
|
|
|
// Menus must overlap indicators (z-index: 1) and VisualEditor toolbar (z-index: 2)
|
|
|
|
z-index: 2;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
2017-06-16 17:12:08 +00:00
|
|
|
div.vectorMenu:hover div.menu {
|
2014-08-07 11:38:34 +00:00
|
|
|
display: block;
|
|
|
|
}
|
2017-06-16 16:34:14 +00:00
|
|
|
// This is in a separate block, so that browsers supporting :hover but not :checked still apply the rule above
|
|
|
|
// Support: IE8
|
|
|
|
div.vectorMenu .vectorMenuCheckbox:checked ~ div.menu {
|
|
|
|
display: block;
|
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
|
|
|
|
div.vectorMenu ul {
|
|
|
|
list-style-type: none;
|
|
|
|
list-style-image: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2017-02-18 00:33:55 +00:00
|
|
|
// stylelint-disable selector-no-vendor-prefix, selector-type-no-unknown
|
2017-01-23 14:59:47 +00:00
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
/* Fixes old versions of FireFox */
|
|
|
|
div.vectorMenu ul,
|
|
|
|
x:-moz-any-link {
|
|
|
|
min-width: 5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Returns things back to normal in modern versions of FireFox */
|
|
|
|
div.vectorMenu ul,
|
|
|
|
x:-moz-any-link,
|
|
|
|
x:default {
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
2017-02-18 00:33:55 +00:00
|
|
|
// stylelint-enable selector-no-vendor-prefix, selector-type-no-unknown
|
2017-01-23 14:59:47 +00:00
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
div.vectorMenu li {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
text-align: left;
|
|
|
|
line-height: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.vectorMenu li a {
|
2018-05-23 06:19:49 +00:00
|
|
|
display: block;
|
2017-11-05 03:29:49 +00:00
|
|
|
padding: 0.625em;
|
2014-08-07 11:38:34 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
color: @menu-link-color;
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.vectorMenu li.selected a,
|
|
|
|
div.vectorMenu li.selected a:visited {
|
2017-02-16 19:44:39 +00:00
|
|
|
color: #222;
|
2014-08-07 11:38:34 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2017-06-16 16:34:14 +00:00
|
|
|
// Invisible checkbox covering the dropdown menu handle
|
|
|
|
.vectorMenuCheckbox {
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 1;
|
|
|
|
opacity: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
// Hide the checkbox completely in browsers that don't support :checked
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
:not( :checked ) > .vectorMenuCheckbox {
|
|
|
|
// When the browser supports :checked, display it
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
@import 'watchstar.less';
|