Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: static/css/main.css

Issue 29551738: Issue 5634 - Replaced logo and refactored navbar width and colors (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Refactored implementation Created Oct. 6, 2017, 4:12 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /******************************************************************************* 1 /*******************************************************************************
2 * Base styles 2 * Base styles
3 ******************************************************************************/ 3 ******************************************************************************/
4 html { 4 html {
5 color: #212121; 5 color: #212121;
6 background-color: #fff; 6 background-color: #fff;
7 font-family: sans-serif; 7 font-family: sans-serif;
8 line-height: 1.5; } 8 line-height: 1.5; }
9 9
10 /** 10 /**
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 .one-third { 84 .one-third {
85 width: 33.333333%; } 85 width: 33.333333%; }
86 .two-thirds { 86 .two-thirds {
87 width: 66.666667%; } 87 width: 66.666667%; }
88 .one-fourth { 88 .one-fourth {
89 width: 25%; } 89 width: 25%; }
90 .three-fourths { 90 .three-fourths {
91 width: 75%; } } 91 width: 75%; } }
92 92
93 * 93 *
94 >>>>>>> destination
94 { 95 {
95 font-family: Arial, sans; 96 font-family: 'Source Sans Pro', sans-serif;
96 font-size: 16px; 97 font-size: 16px;
97 } 98 }
98 99
99 body 100 body
100 { 101 {
101 margin: 0; 102 margin: 0;
102 line-height: 1.5; 103 line-height: 1.5;
103 } 104 }
104 105
105 a img 106 a img
(...skipping 25 matching lines...) Expand all
131 } 132 }
132 133
133 .sprite 134 .sprite
134 { 135 {
135 display: inline-block; 136 display: inline-block;
136 font-size: 0px; /* fix for IE6 height bug */ 137 font-size: 0px; /* fix for IE6 height bug */
137 background-image: url(../img/sprite-main.png); 138 background-image: url(../img/sprite-main.png);
138 background-repeat: no-repeat; 139 background-repeat: no-repeat;
139 } 140 }
140 141
141 nav ul 142 /*******************************************************************************
142 { 143 * #navbar
143 list-style: none; 144 ******************************************************************************/
144 margin: 0; 145
145 padding: 0; 146 #navbar
146 } 147 {
147 148 height: 4em;
148 nav a:link, nav a:visited 149 background-color: #c70d2c;
149 { 150 }
150 color: #7d7d7d; 151
152 #navbar ul
153 {
154 margin: 0em;
155 padding: 0em;
156 }
157
158 #navbar li
159 {
160 list-style-type: none;
161 }
162
163 #navbar .container
164 {
165 padding: 0em;
166 }
167
168 @media(max-width: 1199px)
169 {
170 #navbar .container
171 {
172 width: 100%;
173 }
174 }
175
176 /* #navbar #logo
177 ******************************************************************************/
178
179 #logo
180 {
181 padding-left: 1em;
182 padding-right: 1em;
183 color: #fff;
184 }
185
186 #logo:hover,
187 #logo:active,
188 #logo:focus
189 {
190 background-color: #AE0013;
151 text-decoration: none; 191 text-decoration: none;
152 } 192 }
153 193
154 nav a:hover 194 #logo,
155 { 195 #logo > *
156 text-decoration: underline;
157 }
158
159 header
160 { 196 {
161 display: block; 197 display: block;
162 position: relative; 198 float: left;
163 background: white; 199 }
164 border: 1px solid #d9d9d9; 200
165 border-top: none; 201 [dir="rtl"] #logo,
166 box-shadow: 1px 1px 0 0 #d9d9d9; 202 [dir="rtl"] #logo > *
167 z-index: 1; 203 {
168 } 204 float: right;
169 205 }
170 header nav li 206
171 { 207 #logo img
172 padding: 0px 5px; 208 {
173 } 209 height: 3em;
174 210 padding-top: 0.5em;
175 header nav li.selected 211 padding-bottom: 0.5em;
176 { 212 margin-right: 1em;
177 color: #db1313; 213 }
178 text-shadow: 1px 1px 1px #eee; 214
179 cursor: default; 215 [dir="rtl"] #logo > img
180 } 216 {
181 217 margin-left: 1em;
182 header nav li.install-link a 218 }
183 { 219
184 color: #048e48; 220 #logo > span
185 } 221 {
186 222 line-height: 2.909090em;
187 header nav li.install-link .install-link-icon 223 font-size: 1.375em;
224 }
225
226 /* #navbar #menu-toggle
227 ******************************************************************************/
228
229 #menu-toggle
230 {
231 display: block;
232 }
233
234 #menu-toggle,
235 #menu-toggle > img
236 {
237 float: right;
238 }
239
240 [dir="rtl"] #menu-toggle,
241 [dir="rtl"] #menu-toggle > img
242 {
243 float: left;
244 }
245
246 #menu-toggle > img
188 { 247 {
189 display: inline-block; 248 display: inline-block;
190 width: 12px; 249 height: 2em;
191 height: 12px; 250 padding: 1em 1em;
192 background-position: -167px -13px; 251 }
193 } 252
194 253 #menu-toggle:hover,
195 .language-entry a 254 #menu-toggle:active,
196 { 255 #menu-toggle:focus
197 display: block; 256 {
198 } 257 background-color: #AE0013;
199 258 }
200 #logo 259
201 { 260 @media(min-width: 992px)
202 position: absolute; 261 {
203 width: 128px; 262 #menu-toggle
204 height: 128px; 263 {
205 background-position: -83px -83px; 264 display: none;
265 }
266 }
267
268 /* #navbar #navbar-menu
269 ******************************************************************************/
270
271 #navbar-menu a
272 {
273 color: #fff;
274 text-decoration: none;
275 }
276
277 /* #navbar #navbar-menu (desktop)
278 ******************************************************************************/
279
280 @media(min-width: 992px)
281 {
282 #navbar-menu
283 {
284 float: right;
285 }
286
287 [dir="rtl"] #navbar-menu
288 {
289 float: left;
290 }
291
292 #navbar-menu > li,
293 #navbar-menu > li > a
294 {
295 display: inline-block;
296 }
297
298 #navbar-menu > li > a
299 {
300 padding-right: 1em;
301 padding-left: 1em;
302 line-height: 4em;
303 }
304
305 #navbar-menu > li > a:hover,
306 #navbar-menu > li > a:active,
307 #navbar-menu > li > a:focus
308 {
309 background-color: #AE0013;
310 }
311
312 /* #navbar #navbar-menu #locale-menu
313 ****************************************************************************/
314
315 #locale-menubar
316 {
317 position: relative;
318 }
319
320 #locale-menu
321 {
322 position: absolute;
323 display: none;
324 min-width: 16em;
325 max-height: 20em;
326 max-height: 50vh;
327 top: 100%;
328 right: 0px;
329 overflow: auto;
330 z-index: 1000;
331 background-color: #292929;
332 }
333
334 [dir="rtl"] #locale-menu
335 {
336 right: auto;
337 left: 0px;
338 }
339
340 #locale-menu.visible
341 {
342 display: block;
343 }
344
345 #locale-menu > li,
346 #locale-menu > li > a
347 {
348 display: block;
349 white-space: nowrap;
350 }
351
352 #locale-menu > li > a
353 {
354 padding-left: 1em;
355 padding-right: 1em;
356 line-height: 3em;
357 text-decoration: none;
358 }
359
360 #locale-menu > li > a:hover,
361 #locale-menu > li > a:active,
362 #locale-menu > li > a:focus
363 {
364 background-color: #434343;
365 }
366
367 /* caret */
368 #locale-selected::after
369 {
370 display: inline-block;
371 width: 0;
372 height: 0;
373 margin-left: .255em;
374 vertical-align: .255em;
375 content: "";
376 border-top: .3em solid;
377 border-right: .3em solid transparent;
378 border-left: .3em solid transparent;
379 }
380 }
381
382 /* #navbar #navbar-menu (mobile)
383 ******************************************************************************/
384
385 @media(max-width: 991px)
386 {
387 #navbar-menu
388 {
389 display: none;
390 float: left;
391 background-color: #292929;
392 }
393
394 #navbar-menu.visible,
395 #navbar-menu li,
396 #navbar-menu li a
397 {
398 display: block;
399 }
400
401 #navbar-menu li a
402 {
403 line-height: 3em;
404 padding-left: 1em;
405 padding-right: 1em;
406 }
407
408 #navbar-menu li a:hover,
409 #navbar-menu li a:active,
410 #navbar-menu li a:focus
411 {
412 background-color: #434343;
413 }
414
415 /* locales appear inline in mobile menu */
416 #locale-menu li,
417 #locale-menu a
418 {
419 display: inline-block;
420 }
421
422 /* selected locale does not appear in mobile menu */
423 #navbar-menu #locale-selected
424 {
425 display: none;
426 }
206 } 427 }
207 428
208 #content h1 429 #content h1
209 { 430 {
210 font-size: 30px; 431 font-size: 30px;
211 } 432 }
212 433
213 #content h2 434 #content h2
214 { 435 {
215 font-weight: bold; 436 font-weight: bold;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 596
376 [dir="ltr"] .alert 597 [dir="ltr"] .alert
377 { 598 {
378 border-left: 5px solid #d14841; 599 border-left: 5px solid #d14841;
379 } 600 }
380 601
381 [dir="rtl"] .alert 602 [dir="rtl"] .alert
382 { 603 {
383 border-right: 5px solid #d14841; 604 border-right: 5px solid #d14841;
384 } 605 }
OLDNEW

Powered by Google App Engine
This is Rietveld