2020-01-15 21:46:45 +00:00
|
|
|
|
@import '../../variables.less';
|
2019-10-25 20:46:51 +00:00
|
|
|
|
@import 'mediawiki.mixins.less';
|
2018-11-26 17:54:19 +00:00
|
|
|
|
|
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 {
|
2017-10-08 02:58:20 +00:00
|
|
|
|
// Tab separator: Outer start border (left in LTR) of tab row.
|
|
|
|
|
background-position: left bottom;
|
2014-08-07 11:38:34 +00:00
|
|
|
|
float: left;
|
|
|
|
|
height: 2.5em;
|
2017-10-08 02:58:20 +00:00
|
|
|
|
padding-left: @border-width-base;
|
2014-08-07 11:38:34 +00:00
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
li {
|
2017-10-08 02:58:20 +00:00
|
|
|
|
// Tab fade background: Fade inside from light grey to white.
|
|
|
|
|
background-image: url( images/tab-normal-fade.png ); // Support: IE 8 & 9, Fx 3.6-15, Safari 5.1-6, Chrome 10-25
|
|
|
|
|
background-image: linear-gradient( to top, @border-color-content--tabs-inactive 0, #e8f2f8 1px, #fff 100% ); // Support: Standard (Firefox 16+, IE 10+, Safari 6.1+, Chrome 26+)
|
|
|
|
|
background-position: left bottom;
|
|
|
|
|
background-repeat: repeat-x;
|
2018-05-24 23:43:22 +00:00
|
|
|
|
float: left;
|
|
|
|
|
display: block;
|
|
|
|
|
height: 100%;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
2019-09-29 20:21:41 +00:00
|
|
|
|
line-height: @line-height-nav;
|
2018-05-24 23:43:22 +00:00
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
|
a {
|
2019-10-24 17:44:35 +00:00
|
|
|
|
// Tab separator: Border between tabs and outer right border.
|
|
|
|
|
background-position: right bottom;
|
2019-09-26 21:12:01 +00:00
|
|
|
|
color: @color-link;
|
2019-10-24 17:44:35 +00:00
|
|
|
|
.box-sizing( border-box );
|
2018-05-23 06:19:49 +00:00
|
|
|
|
display: block;
|
2019-10-24 17:44:35 +00:00
|
|
|
|
float: left;
|
|
|
|
|
height: unit( 40 / @font-size-tabs / @font-size-browser, em );
|
|
|
|
|
position: relative;
|
|
|
|
|
padding-top: 1.25em;
|
|
|
|
|
padding-left: 8px;
|
|
|
|
|
padding-right: 8px;
|
2019-09-26 23:43:42 +00:00
|
|
|
|
font-size: @font-size-tabs;
|
2019-10-24 17:44:35 +00:00
|
|
|
|
cursor: pointer;
|
2014-08-07 11:38:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-30 07:36:32 +00:00
|
|
|
|
.new {
|
|
|
|
|
a,
|
|
|
|
|
a:visited {
|
|
|
|
|
color: @color-link-new;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.selected {
|
2017-10-08 02:58:20 +00:00
|
|
|
|
// Replace tab fade with flat color (matching top of would-be fade).
|
|
|
|
|
background-image: url( images/tab-current-fade.png );
|
|
|
|
|
// Overwrite above in browsers that support `rgba()`.
|
|
|
|
|
background: rgba( 255, 255, 255, 1 ); // stylelint-disable-line declaration-block-no-shorthand-property-overrides
|
2019-09-30 07:36:32 +00:00
|
|
|
|
|
|
|
|
|
a,
|
|
|
|
|
a:visited {
|
|
|
|
|
color: @color-link-selected;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
a {
|
2017-10-08 02:58:20 +00:00
|
|
|
|
background-position: right bottom;
|
2019-09-30 07:36:32 +00:00
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
}
|
|
|
|
|
}
|
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 {
|
2019-10-24 17:44:35 +00:00
|
|
|
|
color: @color-nav-subtle;
|
|
|
|
|
position: relative;
|
|
|
|
|
display: block;
|
|
|
|
|
.box-sizing( border-box );
|
|
|
|
|
// `padding-top` needs to scale with font-size.
|
|
|
|
|
padding-top: 1.25em;
|
|
|
|
|
padding-left: 8px;
|
|
|
|
|
padding-right: unit( 24 / @font-size-tabs / @font-size-browser, em );
|
|
|
|
|
font-size: @font-size-tabs;
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
|
content: '';
|
|
|
|
|
.background-image-svg( 'images/arrow-down.svg', 'images/arrow-down.png' );
|
|
|
|
|
background-position: 100% 50%;
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: unit( 10 / @font-size-tabs / @font-size-browser, em );
|
|
|
|
|
right: 8px;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
width: unit( 16 / @font-size-tabs / @font-size-browser, em );
|
|
|
|
|
// 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
|
|
|
|
|
2019-10-24 17:44:35 +00:00
|
|
|
|
&:hover,
|
|
|
|
|
&:focus {
|
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 {
|
2019-09-26 21:12:01 +00:00
|
|
|
|
background-color: @background-color-base;
|
2019-10-02 00:11:37 +00:00
|
|
|
|
list-style: none none;
|
2018-05-24 23:43:22 +00:00
|
|
|
|
// 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
|
|
|
|
}
|
2019-09-30 07:36:32 +00:00
|
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
|
|
2019-09-30 07:36:32 +00:00
|
|
|
|
.selected a,
|
|
|
|
|
.selected a:visited {
|
|
|
|
|
color: @color-link-selected;
|
|
|
|
|
text-decoration: none;
|
2018-05-24 23:43:22 +00:00
|
|
|
|
}
|
2014-08-07 11:38:34 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-05-24 23:43:22 +00:00
|
|
|
|
#mw-head .vectorMenu h3 {
|
2017-10-08 02:58:20 +00:00
|
|
|
|
// Tab separator: Outer end (right in LTR) border of "Actions" menu.
|
|
|
|
|
background-position: right bottom;
|
2018-05-24 23:43:22 +00:00
|
|
|
|
float: left;
|
2019-10-24 17:44:35 +00:00
|
|
|
|
height: unit( 40 / @font-size-tabs / @font-size-browser, em );
|
2017-10-08 02:58:20 +00:00
|
|
|
|
margin: 0 -@border-width-base 0 0;
|
2018-05-24 23:43:22 +00:00
|
|
|
|
// `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
|
2019-10-24 17:44:35 +00:00
|
|
|
|
// `padding-left` in `.vectorMenu h3 a`
|
|
|
|
|
padding-right: unit( 24 / @font-size-tabs / @font-size-browser, em );
|
2017-10-08 02:58:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Tab Separators
|
|
|
|
|
// `.vectorTabs`: Outer start border (left in LTR) of tab row.
|
2019-10-24 17:44:35 +00:00
|
|
|
|
// `.vectorTabs a`: Border between tabs and outer end (right in LTR) border.
|
2017-10-08 02:58:20 +00:00
|
|
|
|
// `#mw-head .vectorMenu h3`: // Outer end (right in LTR) border of "Actions" menu.
|
|
|
|
|
.vectorTabs,
|
2019-10-24 17:44:35 +00:00
|
|
|
|
.vectorTabs a,
|
2017-10-08 02:58:20 +00:00
|
|
|
|
#mw-head .vectorMenu h3 {
|
|
|
|
|
background-image: url( images/tab-separator.png );
|
|
|
|
|
background-image: linear-gradient( to bottom, rgba( 167, 215, 249, 0 ) 0, @border-color-content 100% );
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
// Contain gradient to 1px × 100% size and draw from top to bottom-left or -right corner.
|
|
|
|
|
background-size: @border-width-base 100%;
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
2019-12-03 16:29:14 +00:00
|
|
|
|
&:checked + h3:after {
|
2018-05-24 23:43:22 +00:00
|
|
|
|
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';
|