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

Delta Between Two Patch Sets: 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
Left Patch Set: Minor refactoring, added fonts, added install background-color Created Sept. 25, 2017, 3:48 p.m.
Right Patch Set: Addressed comments Created Oct. 11, 2017, 11:59 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | static/css/main-desktop.css » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 @font-face
2 {
3 font-family: "Source Sans Pro";
4 font-weight: 400;
5 font-style: normal;
6
7 src: url("/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.eot");
8 src: url("/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.eot?#iefix") format("embedded-opentype"),
9 local("Source Sans Pro"),
10 local("Source-Sans-Pro-regular"),
11 url("/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.woff2") format("wo ff2"),
12 url("/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.woff") format("wof f"),
13 url("/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.ttf") format("true type"),
14 url("/fonts/Source-Sans-Pro-regular/Source-Sans-Pro-regular.svg#SourceSansPro" ) format("svg");
15 }
16
17 @font-face
18 {
19 font-family: "Source Sans Pro";
20 font-weight: 700;
21 font-style: bold;
22
23 src: url("/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.eot");
24 src: url("/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.eot?#iefix") format(" embedded-opentype"),
25 local("Source Sans Pro Bold"),
26 local("Source-Sans-Pro-700"),
27 url("/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.woff2") format("woff2"),
28 url("/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.woff") format("woff"),
29 url("/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.ttf") format("truetype"),
30 url("/fonts/Source-Sans-Pro-700/Source-Sans-Pro-700.svg#SourceSansPro") format ("svg");
31 }
32
33 * 1 *
34 { 2 {
35 font-family: 'Source Sans Pro', sans-serif; 3 font-family: Arial, sans;
36 font-size: 16px; 4 font-size: 16px;
37 } 5 }
38 6
39 body 7 body
40 { 8 {
41 margin: 0; 9 margin: 0;
42 line-height: 1.5; 10 line-height: 1.5;
43 } 11 }
44 12
45 a img 13 a img
(...skipping 23 matching lines...) Expand all
69 border: 1px solid black; 37 border: 1px solid black;
70 overflow: auto; 38 overflow: auto;
71 } 39 }
72 40
73 .sprite 41 .sprite
74 { 42 {
75 display: inline-block; 43 display: inline-block;
76 font-size: 0px; /* fix for IE6 height bug */ 44 font-size: 0px; /* fix for IE6 height bug */
77 background-image: url(../img/sprite-main.png); 45 background-image: url(../img/sprite-main.png);
78 background-repeat: no-repeat; 46 background-repeat: no-repeat;
79 }
80
81 nav ul
82 {
83 list-style: none;
84 margin: 0;
85 padding: 0;
86 }
87
88 nav a:link,
89 nav a:visited
90 {
91 color: #7d7d7d;
92 text-decoration: none;
93 }
94
95 nav a:hover
96 {
97 text-decoration: underline;
98 }
99
100 .container
101 {
102 margin: 0 15px;
103 max-width: 1170px;
104 }
105
106 @media (min-width: 1200px)
107 {
108 .container
109 {
110 margin: 0 auto;
111 }
112 }
113
114 .accent
115 {
116 background-color: #c70d2c;
117 color: #fff;
118 }
119
120 .accent a,
121 .accent a:link,
122 .accent a:visited
123 {
124 color: #fff;
125 }
126
127 .secondary
128 {
129 background-color: #292929;
130 color: #fff;
131 }
132
133 .secondary a,
134 .secondary a:link,
135 .secondary a:visited
136 {
137 color: #fff;
138 }
139
140 .navbar
141 {
142 height: 70px;
143 }
144
145 .navbar a:hover,
146 .navbar a:active,
147 .navbar a:focus
148 {
149 text-decoration: none;
150 }
151
152 .navbar-brand img
153 {
154 display: inline;
155 height: 48px;
156 padding: 11px 0px;
157 line-height: 48px;
158 }
159
160 .navbar-brand,
161 .navbar-nav li
162 {
163 float: left;
164 }
165
166 .navbar-nav
167 {
168 float: right;
169 }
170
171 .navbar-nav a
172 {
173 display: inline-block;
174 padding: 26px 15px;
175 font-size: 18px;
176 line-height: 1;
177 }
178
179 .navbar-nav a:hover,
180 .navbar-nav a:active,
181 .navbar-nav a:focus
182 {
183 background-color: #AE0013;
184 }
185
186 .navbar-nav,
187 .navbar-nav li
188 {
189 display: inline-block;
190 list-style-type: none;
191 }
192
193 .dropdown
194 {
195 position: relative;
196 }
197
198 .dropdown-menu
199 {
200 position: absolute;
201 display: none;
202 min-width: 160px;
203 max-height: 384px;
204 max-height: 50vh;
205 top: 100%;
206 right: 0;
207 overflow: auto;
208 z-index: 1000;
209 }
210
211 .dropdown-menu.visible
212 {
213 display: block;
214 }
215
216 .dropdown-menu li,
217 .dropdown-menu a
218 {
219 display: block;
220 float: none;
221 white-space: nowrap;
222 }
223
224 .dropdown-menu a
225 {
226 font-size: 16px;
227 line-height: 50px;
228 padding: 0px 15px;
229 }
230
231 .dropdown-menu a:hover,
232 .dropdown-menu a:active,
233 .dropdown-menu a:focus
234 {
235 background-color: #434343;
236 }
237
238 .dropdown-toggle::after
239 {
240 display: inline-block;
241 width: 0;
242 height: 0;
243 margin-left: .255em;
244 vertical-align: .255em;
245 content: "";
246 border-top: .3em solid;
247 border-right: .3em solid transparent;
248 border-left: .3em solid transparent;
249 }
250
251 .navbar .install-link a,
252 .navbar .install-link a:hover,
253 .navbar .install-link a:active,
254 .navbar .install-link a:focus
255 {
256 background-color: #000;
257 }
258
259 #flag-ar
260 {
261 background-position: 0px 0px;
262 }
263
264 #flag-bg
265 {
266 background-position: -17px 0px;
267 }
268
269 #flag-de
270 {
271 background-position: -34px 0px;
272 }
273
274 #flag-en
275 {
276 background-position: -51px 0px;
277 }
278
279 #flag-es
280 {
281 background-position: -68px 0px;
282 }
283
284 #flag-sk
285 {
286 background-position: -85px 0px;
287 }
288
289 #flag-fr
290 {
291 background-position: 0px -12px;
292 }
293
294 #flag-el
295 {
296 background-position: -85px -12px;
297 }
298
299 #flag-he
300 {
301 background-position: -17px -12px;
302 }
303
304 #flag-it
305 {
306 background-position: -85px -24px;
307 }
308
309 #flag-hu
310 {
311 background-position: -34px -12px;
312 }
313
314 #flag-ko
315 {
316 background-position: -51px -12px;
317 }
318
319 #flag-ja
320 {
321 background-position: -102px 0px;
322 }
323
324 #flag-lt
325 {
326 background-position: -68px -12px;
327 }
328
329 #flag-nl
330 {
331 background-position: 0px -24px;
332 }
333
334 #flag-pl
335 {
336 background-position: -102px -12px;
337 }
338
339 #flag-pt_BR
340 {
341 background-position: -17px -24px;
342 }
343
344 #flag-pt_PT
345 {
346 background-position: -102px -24px;
347 }
348
349 #flag-ru
350 {
351 background-position: -34px -24px;
352 }
353
354 #flag-zh_CN
355 {
356 background-position: -51px -24px;
357 }
358
359 #flag-zh_TW
360 {
361 background-position: -68px -24px;
362 }
363
364 a[hreflang="de"]:not(:lang(de)):after,
365 a[hreflang="en"]:not(:lang(en)):after
366 {
367 display: inline-block;
368 width: 16px;
369 height: 11px;
370 background-image: url(../img/sprite-flags.png);
371 content: "";
372 margin-left: 2px;
373 }
374
375 a[hreflang="de"]:not(:lang(de)):after
376 {
377 background-position: -34px 0px;
378 }
379
380 a[hreflang="en"]:not(:lang(en)):after
381 {
382 background-position: -51px 0px;
383 }
384
385 #language-selector a:after
386 {
387 display: none;
388 }
389
390 #logo
391 {
392 position: absolute;
393 width: 128px;
394 height: 128px;
395 background-position: -83px -83px;
396 }
397
398 #content h1
399 {
400 font-size: 30px;
401 }
402
403 #content h2
404 {
405 font-weight: bold;
406 font-size: 25px;
407 }
408
409 #content h3
410 {
411 font-size: 20px;
412 } 47 }
413 48
414 #adblock-browser-notification 49 #adblock-browser-notification
415 { 50 {
416 text-align: center; 51 text-align: center;
417 } 52 }
418 53
419 #adblock-browser-notification a 54 #adblock-browser-notification a
420 { 55 {
421 font-weight: bold; 56 font-weight: bold;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 200
566 [dir="ltr"] .alert 201 [dir="ltr"] .alert
567 { 202 {
568 border-left: 5px solid #d14841; 203 border-left: 5px solid #d14841;
569 } 204 }
570 205
571 [dir="rtl"] .alert 206 [dir="rtl"] .alert
572 { 207 {
573 border-right: 5px solid #d14841; 208 border-right: 5px solid #d14841;
574 } 209 }
210
211 /******************************************************************************
212 * .content
213 *****************************************************************************/
214
215 .content h1,
216 .content h2,
217 .content h3,
218 .content h4,
219 .content h5
220 {
221 font-weight: bold;
222 margin: 32px 0px;
223 margin: 2rem 0rem;
224 }
225
226 .content h1 { font-size: 2.4em; }
227 .content h2 { font-size: 1.6em; }
228 .content h3 { font-size: 1.3em; }
229 .content h4 { font-size: 1.2em; }
230 .content h5 { font-size: 1.1em; }
231
232 /*******************************************************************************
233 * #navbar
234 ******************************************************************************/
235
236 #navbar
237 {
238 height: 4em;
239 background-color: #c70d2c;
240 }
241
242 #navbar li
243 {
244 list-style-type: none;
245 }
246
247 /* padding provided by navbar contents */
248 .navbar-container
249 {
250 width: 1170px;
251 margin: 0 auto;
252 }
253
254 /* full-width under .container max-width */
255 @media(max-width: 1199px)
256 {
257 .navbar-container
258 {
259 width: 100%;
260 }
261 }
262
263 /* #navbar #navbar-logo
264 ******************************************************************************/
265
266 #navbar-logo
267 {
268 /* padding is visible in hover background-color change */
269 padding: 0em 1em;
270 color: #fff;
271 }
272
273 #navbar-logo:hover,
274 #navbar-logo:active,
275 #navbar-logo:focus
276 {
277 background-color: #AE0013;
278 text-decoration: none;
279 }
280
281 #navbar-logo,
282 #navbar-logo > *
283 {
284 float: left;
285 }
286
287 [dir="rtl"] #navbar-logo,
288 [dir="rtl"] #navbar-logo > *
289 {
290 float: right;
291 }
292
293 #navbar-logo img
294 {
295 height: 4em;
296 padding: 0.5em 0em;
297 margin: 0em 1em 0em 0em;
298 }
299
300 [dir="rtl"] #navbar-logo > img
301 {
302 margin: 0em 0em 0em 1em;
303 }
304
305 #navbar-logo > span
306 {
307 /* full-height: 2.91 * 1.375 = ~4em */
308 line-height: 2.91em;
309 font-size: 1.375em;
310 }
311
312 /* #navbar #navbar-menu-toggle
313 ******************************************************************************/
314
315 #navbar-menu-toggle
316 {
317 float: right;
318 padding: 1em;
319 }
320
321 [dir="rtl"] #navbar-menu-toggle
322 {
323 float: left;
324 }
325
326 /* show on mobile */
327 #navbar-menu-toggle,
328 #navbar-menu-toggle > img
329 {
330 display: block;
331 }
332
333 /* hide on desktop */
334 @media(min-width: 992px)
335 {
336 #navbar-menu-toggle
337 {
338 display: none;
339 }
340 }
341
342 #navbar-menu-toggle > img
343 {
344 /* plus 2em padding = 4em */
345 height: 2em;
346 }
347
348 #navbar-menu-toggle:hover,
349 #navbar-menu-toggle:active,
350 #navbar-menu-toggle:focus
351 {
352 background-color: #AE0013;
353 }
354
355 /* #navbar #navbar-menu
356 ******************************************************************************/
357
358 #navbar-menu a
359 {
360 display: block;
361 color: #fff;
362 text-decoration: none;
363 }
364
365 /* #navbar #navbar-menu #navbar-locale-menu
366 ******************************************************************************/
367
368 /* caret */
369 #navbar-locale-selected:after
370 {
371 display: inline-block;
372 width: 0;
373 height: 0;
374 margin: 0em 0em 0em 0.255em;
375 vertical-align: .255em;
376 content: "";
377 border-top: .3em solid;
378 border-right: .3em solid transparent;
379 border-left: .3em solid transparent;
380 }
381
382 [dir="rtl"] #navbar-locale-selected:after
383 {
384 margin: 0em 0.255em 0em 0em;
385 }
386
387 #navbar-locale-menu
388 {
389 display: none;
390 }
391
392 #navbar-locale-menu.visible
393 {
394 display: block;
395 }
396
397 #navbar-locale-menu > li > a
398 {
399 padding: 0.75em 1em;
400 }
401
402 #navbar-locale-menu > li > a:hover,
403 #navbar-locale-menu > li > a:active,
404 #navbar-locale-menu > li > a:focus
405 {
406 background-color: #434343;
407 }
408
409 /* #navbar #navbar-menu (desktop)
410 ******************************************************************************/
411
412 @media(min-width: 992px)
413 {
414 #navbar-menu
415 {
416 float: right;
417 }
418
419 [dir="rtl"] #navbar-menu
420 {
421 float: left;
422 }
423
424 #navbar-menu > li,
425 #navbar-menu > li > a
426 {
427 display: inline-block;
428 }
429
430 #navbar-menu > li > a
431 {
432 padding: 0em 1em;
433 line-height: 4em;
434 }
435
436 #navbar-menu > li > a:hover,
437 #navbar-menu > li > a:active,
438 #navbar-menu > li > a:focus
439 {
440 background-color: #AE0013;
441 }
442
443 /* #navbar #navbar-menu #navbar-locale-menu
444 ****************************************************************************/
445
446 #navbar-locale-menubar
447 {
448 position: relative;
449 }
450
451 #navbar-locale-menu
452 {
453 position: absolute;
454 min-width: 16em;
455 max-height: 20em;
456 max-height: 50vh;
457 top: 100%;
458 right: 0px;
459 overflow: auto;
460 z-index: 9001;
461 background-color: #292929;
462 }
463
464 [dir="rtl"] #navbar-locale-menu
465 {
466 right: auto;
467 left: 0px;
468 }
469 }
470
471 /* #navbar #navbar-menu (mobile)
472 ******************************************************************************/
473
474 @media(max-width: 991px)
475 {
476 #navbar-menu
477 {
478 display: none;
479 float: left;
480 clear: both;
481 width: 100%;
482 background-color: #292929;
483 }
484
485 #navbar-menu.visible
486 {
487 display: block;
488 }
489
490 #navbar-menu li a
491 {
492 padding: 0.75em 1em;
493 }
494
495 #navbar-menu li a:hover,
496 #navbar-menu li a:active,
497 #navbar-menu li a:focus
498 {
499 background-color: #434343;
500 }
501 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld