| 1 |
/** |
| 2 |
* Styling for namespace tabs (page, discussion) and views (read, edit, view history, watch and other actions) |
| 3 |
*/ |
| 4 |
|
| 5 |
/* Tab list items */ |
| 6 |
.vector-menu-tabs { |
| 7 |
float: left; |
| 8 |
|
| 9 |
// With mw-ui-icons, expand watchstar and wikilove links it to cover full touch area |
| 10 |
.mw-list-item { |
| 11 |
.cdx-button--icon-only { |
| 12 |
// Align small icons with the bottom of the tabs. |
| 13 |
margin: 2px 0 0; |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
/* focus and hover have outlines. Text underline interferes with bottom border */ |
| 18 |
.mw-list-item.vector-tab-noicon a:focus, |
| 19 |
.mw-list-item.vector-tab-noicon a:hover { |
| 20 |
text-decoration: none; |
| 21 |
border-bottom: 2px @border-style-base; |
| 22 |
} |
| 23 |
|
| 24 |
/* T361841 add invisible bottom border by default */ |
| 25 |
.mw-list-item.vector-tab-noicon a { |
| 26 |
border-bottom: 2px @border-style-base @border-color-transparent; |
| 27 |
} |
| 28 |
|
| 29 |
// T316574 Override visited link styles |
| 30 |
.mw-list-item a { |
| 31 |
.mixin-vector-unvisited-link-base(); |
| 32 |
} |
| 33 |
|
| 34 |
// Override visited red link styles |
| 35 |
.mw-list-item.new a { |
| 36 |
.mixin-vector-unvisited-link-red(); |
| 37 |
} |
| 38 |
|
| 39 |
.mw-list-item.selected a { |
| 40 |
.mixin-vector-selected-link(); |
| 41 |
border-bottom: 2px @border-style-base; |
| 42 |
} |
| 43 |
} |
| 44 |
|
| 45 |
/** |
| 46 |
* Tab list item appearance. Applies to both <li>'s inside .vector-menu-tabs |
| 47 |
* and dropdown menus inside the article toolbar |
| 48 |
*/ |
| 49 |
.vector-menu-tabs .mw-list-item.vector-tab-noicon, |
| 50 |
.vector-page-toolbar-container .vector-dropdown { |
| 51 |
margin: 0 @padding-horizontal-tabs; |
| 52 |
} |
| 53 |
|
| 54 |
.vector-menu-tabs .mw-list-item, |
| 55 |
.vector-page-toolbar-container .vector-dropdown-label { |
| 56 |
// Only apply no wrap |
| 57 |
white-space: nowrap; |
| 58 |
} |
| 59 |
|
| 60 |
.vector-menu-tabs .mw-list-item, |
| 61 |
.vector-page-toolbar-container .vector-dropdown { |
| 62 |
float: left; |
| 63 |
margin-bottom: 0; /* overrides default `li` styling */ |
| 64 |
|
| 65 |
// target links inside of .vector-tab-menu |
| 66 |
// and dropdown toggles inside the article toolbar. |
| 67 |
// NOTE: Consider adding a single selector to define both items, |
| 68 |
// since they both appear beside each other in the article toolbar. |
| 69 |
& > a, |
| 70 |
.vector-dropdown-label { |
| 71 |
display: inline-flex; |
| 72 |
position: relative; |
| 73 |
cursor: pointer; |
| 74 |
font-weight: normal; |
| 75 |
} |
| 76 |
|
| 77 |
.vector-dropdown-label { |
| 78 |
// For better compatibility with gadgets (like Twinkle) that append |
| 79 |
// <H3> elements as dropdown headings (which was the convention in legacy Vector). |
| 80 |
font-size: inherit; |
| 81 |
// Override button styles on dropdown toggle button |
| 82 |
border: 0; |
| 83 |
} |
| 84 |
|
| 85 |
&.vector-tab-noicon > a, |
| 86 |
.vector-dropdown-label { |
| 87 |
// Top & bottom padding to increase clickable area. |
| 88 |
padding: @padding-vertical-tabs; |
| 89 |
// bottom margin to overlap border with toolbar border. |
| 90 |
margin-bottom: -1px; |
| 91 |
} |
| 92 |
} |