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 {
|
|
|
|
/* @noflip */
|
|
|
|
float: left;
|
|
|
|
height: 2.5em;
|
|
|
|
.background-image('images/tab-break.png');
|
|
|
|
background-position: bottom left;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
padding-left: 1px;
|
|
|
|
|
|
|
|
ul {
|
|
|
|
/* @noflip */
|
|
|
|
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 {
|
|
|
|
/* @noflip */
|
|
|
|
float: left;
|
|
|
|
line-height: 1.125em;
|
|
|
|
/* For IE6, overridden later to display:block by modern browsers */
|
|
|
|
display: inline-block;
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background-color: #f3f3f3;
|
|
|
|
.background-image('images/tab-normal-fade.png');
|
|
|
|
background-position: bottom left;
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* IGNORED BY IE6 which doesn't support child selector */
|
|
|
|
> li {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
|
|
|
/* For IE6, overridden later to display:block by modern browsers */
|
|
|
|
display: inline-block;
|
|
|
|
height: 1.9em;
|
|
|
|
padding-left: 0.5em;
|
|
|
|
padding-right: 0.5em;
|
|
|
|
color: @menu-link-color;
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Ignored by IE6 which doesn't support child selector */
|
|
|
|
> a {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
/* For IE6, overridden later to display:block by modern browsers */
|
|
|
|
display: inline-block;
|
|
|
|
padding-top: 1.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Ignored by IE6 which doesn't support child selector */
|
|
|
|
> a {
|
|
|
|
/* @noflip */
|
|
|
|
float: left;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Variants and Actions */
|
|
|
|
div.vectorMenu {
|
|
|
|
/* @noflip */
|
|
|
|
direction: ltr;
|
|
|
|
/* @noflip */
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
body.rtl div.vectorMenu {
|
|
|
|
/* @noflip */
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
|
|
|
|
div#mw-head div.vectorMenu h3 {
|
|
|
|
/* @noflip */
|
|
|
|
float: left;
|
|
|
|
.background-image('images/tab-break.png');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: bottom right;
|
|
|
|
font-size: 1em;
|
|
|
|
height: 2.5em;
|
|
|
|
// This effectively moves the "background border" outside of the element to act like a real
|
|
|
|
// border. It is necessary for the dropdown (div.vectorMenu div.menu) to align well.
|
|
|
|
padding-right: 1px;
|
|
|
|
margin-right: -1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.vectorMenu h3 span {
|
|
|
|
display: block;
|
|
|
|
font-size: 0.8em;
|
|
|
|
padding-left: 0.7em;
|
2017-07-20 03:55:37 +00:00
|
|
|
padding-top: 1.25em;
|
2017-07-04 15:51:10 +00:00
|
|
|
padding-right: 20px;
|
2014-08-07 11:38:34 +00:00
|
|
|
font-weight: normal;
|
|
|
|
color: @menu-main-heading-color;
|
|
|
|
.background-image-svg('images/arrow-down-icon.svg', 'images/arrow-down-icon.png');
|
2017-07-04 15:51:10 +00:00
|
|
|
background-position: 100% 100%;
|
2014-08-07 11:38:34 +00:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
2017-07-04 15:51:10 +00:00
|
|
|
div.vectorMenuFocus h3 span {
|
2014-08-07 11:38:34 +00:00
|
|
|
.background-image-svg('images/arrow-down-focus-icon.svg', 'images/arrow-down-focus-icon.png');
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
/* Enable forcing showing of the menu for accessibility */
|
|
|
|
div.vectorMenu:hover div.menu,
|
|
|
|
div.vectorMenu.menuForceShow div.menu {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* OVERRIDDEN BY COMPLIANT BROWSERS */
|
|
|
|
div.vectorMenu li a {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0.5em;
|
|
|
|
white-space: nowrap;
|
|
|
|
color: @menu-link-color;
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* IGNORED BY IE6 */
|
|
|
|
div.vectorMenu li > a {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2016-02-21 01:20:53 +00:00
|
|
|
// Expand vectorMenu as basic tabs in IE6
|
|
|
|
// (IE6 doesn't support :hover on DIV)
|
|
|
|
* html div.vectorMenu div.menu {
|
|
|
|
display: block;
|
|
|
|
position: static;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
* html div#mw-head div.vectorMenu h3 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
* html div.vectorMenu li {
|
|
|
|
float: left;
|
|
|
|
line-height: 1.125em;
|
|
|
|
border-right: 1px solid #a7d7f9;
|
|
|
|
}
|
|
|
|
* html div.vectorMenu li a {
|
|
|
|
padding-top: 1.25em;
|
|
|
|
}
|
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
@import 'watchstar.less';
|