Debian Codegraph @

skins/Vector/resources/skins.vector.styles.legacy/components/MenuTabs.less

raw
1 /**
2 * Styling for namespace tabs (page, discussion) and views (read, edit, view history, watch and other actions)
3 */
4
5 /* Namespaces and Views */
6 .vector-menu-tabs-legacy {
7 // Tab separator: Outer start border (left in LTR) of tab row.
8 background-position: left bottom;
9 float: left;
10 height: 2.5em;
11 padding-left: @border-width-base;
12
13 /* Navigation Labels */
14 .vector-menu-heading {
15 display: none;
16 }
17
18 ul {
19 float: left;
20 height: 100%;
21 list-style: none;
22 margin: 0;
23 padding: 0;
24 }
25
26 li {
27 // Tab fade background: Fade inside from light grey to white.
28 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+)
29 background-position: left bottom;
30 background-repeat: repeat-x;
31 float: left;
32 display: block;
33 height: 100%;
34 margin: 0;
35 padding: 0;
36 line-height: @line-height-nav;
37 white-space: nowrap;
38
39 a {
40 // Tab separator: Border between tabs and outer right border.
41 background-position: right bottom;
42 color: @color-link;
43 box-sizing: border-box;
44 display: block;
45 float: left;
46 height: unit( 40 / @font-size-tabs / @font-size-browser, em );
47 position: relative;
48 padding-top: 1.25em;
49 padding-left: @padding-horizontal-tabs;
50 padding-right: @padding-horizontal-tabs;
51 font-size: @font-size-tabs;
52 cursor: pointer;
53 }
54 }
55
56 .new {
57 a,
58 a:visited {
59 color: @color-link-new;
60 }
61 }
62
63 .selected {
64 // Overwrite above in browsers that support `rgba()`.
65 background: rgba( 255, 255, 255, 1 );
66
67 a,
68 a:visited {
69 color: @color-link-selected;
70 text-decoration: none;
71 }
72 }
73
74 .icon {
75 a {
76 background-position: right bottom;
77 background-repeat: no-repeat;
78 }
79 }
80 }
81
82 // Tab Separators
83 // `.vector-menu-tabs`: Outer start border (left in LTR) of tab row.
84 // `.vector-menu-tabs a`: Border between tabs and outer end (right in LTR) border.
85 // `#mw-head .vector-menu-dropdown .vector-menu-heading`: // Outer end (right in LTR) border of "Actions" menu.
86 // #mw-head rule is legacy Vector only.
87 .vector-menu-tabs,
88 .vector-menu-tabs a,
89 #mw-head .vector-menu-dropdown .vector-menu-heading {
90 background-image: linear-gradient( to bottom, rgba( 167, 215, 249, 0 ) 0, @border-color-content 100% );
91 background-repeat: no-repeat;
92 // Contain gradient to 1px × 100% size and draw from top to bottom-left or -right corner.
93 background-size: @border-width-base 100%;
94 }
95
96 #mw-head .vector-menu-dropdown .vector-menu-heading {
97 // Tab separator: Outer end (right in LTR) border of "Actions" menu.
98 background-position: right bottom;
99 }