Debian Codegraph @

skins/Timeless/resources/screen-desktop.less

raw
1 @import 'variables.less';
2
3 // T181484 (firefox and chrome; doesn't fix anything else as yet)
4 body,
5 html {
6 scroll-padding-top: @fixed-header-height + 0.5em;
7 }
8
9 // Override menu display from mobile
10 // This also requires !importants where they hover and stuff
11 .dropdown,
12 .sidebar-inner {
13 display: block !important;
14 }
15
16 .ts-inner {
17 max-width: @content-width;
18 box-sizing: border-box;
19 padding: 0 1em;
20 margin: auto;
21 }
22
23 div.mw-notification-area {
24 top: @fixed-header-height + 0.25em;
25 }
26
27 /* Header */
28
29 #mw-header {
30 .flex-display;
31 }
32
33 #mw-header-container {
34 /* Stupid IE10+ bug requires defining the height property for this to work
35 * the way it is intended; without doing that this'll break horribly under
36 * IE10 and IE11.
37 * @see https://phabricator.wikimedia.org/T173769
38 */
39 height: 0;
40 position: fixed;
41 z-index: @z-index-fixed;
42 top: 0;
43 width: 100%;
44 background: @background;
45 color: @text;
46 padding: 0.5em 0 0;
47 min-height: @fixed-header-height;
48 box-sizing: border-box;
49 }
50
51 #p-logo-text {
52 .flex(0, 0, auto, 1);
53 }
54
55 #p-search {
56 .flex(1, 1, auto, 2);
57 }
58
59 #user-tools {
60 .flex(0, 1, auto, 3);
61 display: inline-block;
62
63 h2 span {
64 display: inline-block;
65 max-width: 300px;
66 white-space: nowrap;
67 overflow: hidden;
68 text-overflow: ellipsis;
69 }
70
71 // Because the overflow:hidden above messes up the alignment...
72 #personal h2::after {
73 height: 22px;
74 }
75 }
76
77 #mw-header-nav-hack,
78 #mw-header-hack {
79 position: fixed;
80 z-index: @z-index-fixed - 3;
81 top: @fixed-header-height;
82 box-shadow: 0 3px 3px 2px rgba( 0, 0, 0, 0.075 ), 0 0 2px rgba( 0, 0, 0, 0.2 );
83 }
84
85 #mw-header-nav-hack {
86 display: none;
87 }
88
89 #personal {
90 display: inline-block;
91 position: relative;
92 padding-left: 1.5em;
93 line-height: 1;
94
95 .dropdown {
96 top: 3.15em;
97 display: none !important;
98 .dropdown-menu();
99 .dropdown-pokey();
100 }
101
102 .pokey {
103 top: 1.9em;
104 }
105
106 h2 {
107 margin: 0;
108 padding: 0.5em 0 0 25px;
109 font-family: @fonts-secondary;
110 font-weight: normal;
111 font-size: 1.25em;
112 background-image: url( images/user-grey.svg );
113 background-position: left 9px;
114 background-repeat: no-repeat;
115
116 .dropdown-header();
117
118 span {
119 display: inline-block;
120 line-height: normal;
121 word-wrap: break-word;
122 }
123 }
124 }
125
126 .client-nojs #personal:hover {
127 .pokey,
128 .dropdown {
129 display: block !important;
130 }
131 }
132
133 #mw-wrapper .dropdown-active {
134 .pokey,
135 .dropdown,
136 .sidebar-inner {
137 display: block !important;
138 }
139 }
140
141 #p-variants-desktop {
142 float: right;
143 margin: 0.25em 0 1em 1em;
144 position: relative;
145
146 h3 {
147 .dropdown-header();
148 .ca-icon( 'images/languages-grey' );
149 font-size: 1em;
150 font-family: @fonts;
151 border-bottom: transparent;
152 margin: 0 0 -1em;
153 line-height: 1.5;
154 padding-bottom: 1em;
155 }
156
157 .dropdown {
158 display: none !important;
159 .dropdown-menu();
160 .dropdown-pokey();
161 // Override the mobile thing
162 top: 2.25em !important;
163 padding-bottom: 2em;
164 margin-right: 2px;
165
166 .selected a {
167 color: @text;
168 }
169 }
170 }
171
172 .client-nojs #p-variants-desktop:hover .dropdown {
173 display: block !important;
174 }
175
176 .mw-wiki-logo {
177 display: block;
178 margin: 0.75em auto 0;
179
180 &.fallback {
181 content: '';
182 width: 11em;
183 height: 11em;
184 background-repeat: no-repeat;
185 background-position: center center;
186 }
187
188 &.timeless-logo {
189 background-image: none;
190
191 img {
192 // Let's not assume our users are sizing these to anything in particular
193 // 135px because that keeps things semi-consistent with logo parts of oldstyle logos
194 width: 135px;
195 height: auto;
196 margin: 0.75em 0 0.5em;
197 }
198 }
199 }
200
201 #p-variants,
202 #other-languages.variants-only,
203 #mw-page-header-links #p-more,
204 .sidebar-chunk h2 {
205 display: none;
206 }
207
208 /* Content */
209
210 #mw-content-container {
211 margin-top: @fixed-header-height + @color-height;
212 padding-bottom: 1em;
213 }