2018-11-26 17:54:19 +00:00
|
|
|
@import 'mediawiki.mixins';
|
|
|
|
|
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
|
|
|
|
|
|
|
/* Namespaces and Views */
|
2018-05-23 08:55:15 +00:00
|
|
|
.vectorTabs {
|
2014-08-07 11:38:34 +00:00
|
|
|
float: left;
|
|
|
|
height: 2.5em;
|
|
|
|
.background-image('images/tab-break.png');
|
|
|
|
background-position: bottom left;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
padding-left: 1px;
|
|
|
|
|
2018-05-24 23:43:22 +00:00
|
|
|
/* Navigation Labels */
|
|
|
|
h3 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
ul {
|
|
|
|
float: left;
|
|
|
|
height: 100%;
|
2018-10-16 02:13:07 +00:00
|
|
|
list-style: none none;
|
2014-08-07 11:38:34 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
.background-image('images/tab-break.png');
|
|
|
|
background-position: right bottom;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
2018-05-24 23:43:22 +00:00
|
|
|
float: left;
|
|
|
|
display: block;
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
.background-image('images/tab-normal-fade.png');
|
|
|
|
background-position: bottom left;
|
|
|
|
background-repeat: repeat-x;
|
2019-09-27 04:25:59 +00:00
|
|
|
line-height: @line-height-navigation;
|
2018-05-24 23:43:22 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
&.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');
|
2018-12-02 22:40:28 +00:00
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
a,
|
2017-01-23 14:59:47 +00:00
|
|
|
a:visited {
|
2019-09-26 21:12:01 +00:00
|
|
|
color: @color-link-selected;
|
2014-08-07 11:38:34 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.icon {
|
|
|
|
a {
|
|
|
|
background-position: bottom right;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2019-09-26 21:12:01 +00:00
|
|
|
color: @color-link;
|
2018-05-23 06:19:49 +00:00
|
|
|
display: block;
|
2014-08-07 11:38:34 +00:00
|
|
|
height: 1.9em;
|
2018-05-24 23:43:22 +00:00
|
|
|
padding-left: 0.615em; // Equals `8px` at computed `font-size` of `13px` below
|
2018-05-22 23:49:15 +00:00
|
|
|
padding-right: 0.615em;
|
2014-08-07 11:38:34 +00:00
|
|
|
cursor: pointer;
|
2019-09-26 23:43:42 +00:00
|
|
|
font-size: @font-size-tabs;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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-24 10:54:03 +00:00
|
|
|
position: relative;
|
2018-05-23 06:19:49 +00:00
|
|
|
padding-top: 1.25em;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Variants and Actions */
|
2018-05-23 08:55:15 +00:00
|
|
|
.vectorMenu {
|
2014-08-07 11:38:34 +00:00
|
|
|
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
|
|
|
|
2018-05-24 23:43:22 +00:00
|
|
|
h3 {
|
|
|
|
span {
|
2019-09-28 08:16:24 +00:00
|
|
|
color: @color-navigation-subtle;
|
2018-05-24 23:43:22 +00:00
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
padding-left: 0.615em;
|
|
|
|
padding-top: 1.25em;
|
|
|
|
padding-right: 16px;
|
2019-09-26 23:43:42 +00:00
|
|
|
font-size: @font-size-tabs;
|
2018-05-24 23:43:22 +00:00
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 1.25em;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
.background-image-svg('images/arrow-down.svg', 'images/arrow-down.png');
|
|
|
|
background-position: 100% 50%;
|
|
|
|
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-11-07 21:50:43 +00:00
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2018-05-24 23:43:22 +00:00
|
|
|
&:hover span,
|
|
|
|
&:focus span {
|
2019-09-26 21:12:01 +00:00
|
|
|
color: @color-base;
|
2017-11-07 21:50:43 +00:00
|
|
|
|
2018-05-24 23:43:22 +00:00
|
|
|
&:after {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2017-11-07 21:50:43 +00:00
|
|
|
}
|
2017-07-20 20:50:23 +00:00
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2018-05-24 23:43:22 +00:00
|
|
|
.menu {
|
|
|
|
list-style: none none;
|
2019-09-26 21:12:01 +00:00
|
|
|
background-color: @background-color-base;
|
2018-05-24 23:43:22 +00:00
|
|
|
clear: both;
|
|
|
|
// Match the width of the dropdown "heading" (the tab)
|
|
|
|
min-width: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 2.5em;
|
2019-09-28 07:25:09 +00:00
|
|
|
left: -@border-width-base;
|
2018-05-24 23:43:22 +00:00
|
|
|
margin: 0;
|
2019-09-28 07:25:09 +00:00
|
|
|
border: @border-width-base @border-style-base @border-color-base;
|
2018-05-24 23:43:22 +00:00
|
|
|
border-top-width: 0;
|
|
|
|
padding: 0;
|
|
|
|
box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
|
|
|
|
text-align: left;
|
2018-11-26 17:54:19 +00:00
|
|
|
opacity: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
.transition( opacity 100ms );
|
2018-05-24 23:43:22 +00:00
|
|
|
// Menus must overlap indicators (z-index: 1) and VisualEditor toolbar (z-index: 2)
|
|
|
|
z-index: 2;
|
|
|
|
}
|
2017-11-19 10:15:11 +00:00
|
|
|
|
2018-05-24 23:43:22 +00:00
|
|
|
&:hover .menu {
|
2018-11-26 17:54:19 +00:00
|
|
|
opacity: 1;
|
|
|
|
visibility: visible;
|
2018-05-24 23:43:22 +00:00
|
|
|
}
|
2017-06-16 16:34:14 +00:00
|
|
|
|
2018-05-24 23:43:22 +00:00
|
|
|
// This is in a separate block, so that browsers supporting :hover but not :checked still apply the rule above
|
|
|
|
// Support: IE8
|
|
|
|
.vectorMenuCheckbox:checked ~ .menu {
|
2018-11-26 17:54:19 +00:00
|
|
|
opacity: 1;
|
|
|
|
visibility: visible;
|
2018-05-24 23:43:22 +00:00
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2018-05-24 23:43:22 +00:00
|
|
|
li {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
text-align: left;
|
|
|
|
line-height: 1em;
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2018-05-24 23:43:22 +00:00
|
|
|
a {
|
2019-09-26 21:12:01 +00:00
|
|
|
color: @color-link;
|
2018-05-24 23:43:22 +00:00
|
|
|
display: block;
|
|
|
|
padding: 0.625em;
|
|
|
|
white-space: nowrap;
|
|
|
|
cursor: pointer;
|
2019-09-26 23:43:42 +00:00
|
|
|
font-size: @font-size-tabs;
|
2018-05-24 23:43:22 +00:00
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
|
2018-05-24 23:43:22 +00:00
|
|
|
&.selected a,
|
|
|
|
&.selected a:visited {
|
2019-09-26 21:12:01 +00:00
|
|
|
color: @color-link-selected;
|
2018-05-24 23:43:22 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
2018-05-24 23:43:22 +00:00
|
|
|
#mw-head .vectorMenu h3 {
|
|
|
|
float: left;
|
|
|
|
.background-image('images/tab-break.png');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: bottom right;
|
2019-09-26 23:43:42 +00:00
|
|
|
font-size: @font-size-reset;
|
2018-05-24 23:43:22 +00:00
|
|
|
height: 2.5em;
|
|
|
|
// `padding-right` >= `1px` effectively moves the "background border" outside of the element to
|
|
|
|
// act like a real border. It is necessary for `.vectorMenu .menu` dropdown to align well.
|
|
|
|
// 0.5em equals `8px` at computed `font-size` of `14px` as visually harmonically with
|
|
|
|
// `padding-left` in `.vectorMenu h3 span`
|
|
|
|
padding: 0 0.5em 0 0;
|
|
|
|
margin: 0 -1px 0 0;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
|
2018-05-24 23:43:22 +00:00
|
|
|
:not( :checked ) > & {
|
|
|
|
// When the browser supports :checked, display it
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:checked + h3 span:after {
|
|
|
|
transform: scaleY( -1 );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus + h3 {
|
|
|
|
// Simulate browser focus ring
|
|
|
|
outline: dotted 1px; // Firefox style
|
|
|
|
outline: auto -webkit-focus-ring-color; // Webkit style
|
|
|
|
}
|
2017-06-16 16:34:14 +00:00
|
|
|
}
|
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
@import 'watchstar.less';
|