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: Created Sept. 22, 2017, 1:13 a.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 * 1 *
2 { 2 {
3 font-family: Arial, sans; 3 font-family: Arial, sans;
4 font-size: 16px; 4 font-size: 16px;
5 } 5 }
6 6
7 body 7 body
8 { 8 {
9 background-color: #f8f6f2;
10 background-image: url(../img/background.png);
11 margin: 0; 9 margin: 0;
12 line-height: 1.5; 10 line-height: 1.5;
13 } 11 }
14 12
15 a img 13 a img
16 { 14 {
17 border: none; 15 border: none;
18 } 16 }
19 17
20 a:link, a:visited 18 a:link, a:visited
(...skipping 18 matching lines...) Expand all
39 border: 1px solid black; 37 border: 1px solid black;
40 overflow: auto; 38 overflow: auto;
41 } 39 }
42 40
43 .sprite 41 .sprite
44 { 42 {
45 display: inline-block; 43 display: inline-block;
46 font-size: 0px; /* fix for IE6 height bug */ 44 font-size: 0px; /* fix for IE6 height bug */
47 background-image: url(../img/sprite-main.png); 45 background-image: url(../img/sprite-main.png);
48 background-repeat: no-repeat; 46 background-repeat: no-repeat;
49 }
50
51 nav ul
52 {
53 list-style: none;
54 margin: 0;
55 padding: 0;
56 }
57
58 nav a:link,
59 nav a:visited
60 {
61 color: #7d7d7d;
62 text-decoration: none;
63 }
64
65 nav a:hover
66 {
67 text-decoration: underline;
68 }
69
70 .container
71 {
72 margin: 0 15px;
73 max-width: 1170px;
74 }
75
76 @media (min-width: 1200px)
77 {
78 .container
79 {
80 margin: 0 auto;
81 }
82 }
83
84 .accent
85 {
86 background-color: #c70d2c;
87 color: #fff;
88 }
89
90 .accent a,
91 .accent a:link,
92 .accent a:visited
93 {
94 color: #fff;
95 }
96
97 .secondary
98 {
99 background-color: #292929;
100 color: #fff;
101 }
102
103 .secondary a,
104 .secondary a:link,
105 .secondary a:visited
106 {
107 color: #fff;
108 }
109
110 .navbar
111 {
112 height: 70px;
113 }
114
115 .navbar a:hover,
116 .navbar a:active,
117 .navbar a:focus
118 {
119 text-decoration: none;
120 }
121
122 .navbar-brand img
123 {
124 display: inline;
125 height: 48px;
126 padding: 11px 0px;
127 line-height: 48px;
128 }
129
130 .navbar-brand,
131 .navbar-nav li
132 {
133 float: left;
134 }
135
136 .navbar-nav
137 {
138 float: right;
139 }
140
141 .navbar-nav a
142 {
143 display: inline-block;
144 padding: 26px 15px;
145 font-size: 18px;
146 line-height: 1;
147 }
148
149 .navbar-nav a:hover,
150 .navbar-nav a:active,
151 .navbar-nav a:focus
152 {
153 background-color: #AE0013;
154 }
155
156 .navbar-nav,
157 .navbar-nav li
158 {
159 display: inline-block;
160 list-style-type: none;
161 }
162
163 .dropdown
164 {
165 position: relative;
166 }
167
168 .dropdown-menu
169 {
170 position: absolute;
171 display: none;
172 min-width: 160px;
173 max-height: 384px;
174 max-height: 50vh;
175 top: 100%;
176 right: 0;
177 overflow: auto;
178 z-index: 1000;
179 }
180
181 .dropdown-menu.visible
182 {
183 display: block;
184 }
185
186 .dropdown-menu li,
187 .dropdown-menu a
188 {
189 display: block;
190 float: none;
191 white-space: nowrap;
192 }
193
194 .dropdown-menu a
195 {
196 font-size: 16px;
197 line-height: 50px;
198 padding: 0px 15px;
199 }
200
201 .dropdown-menu a:hover,
202 .dropdown-menu a:active,
203 .dropdown-menu a:focus
204 {
205 background-color: #434343;
206 }
207
208 .dropdown-toggle::after
209 {
210 display: inline-block;
211 width: 0;
212 height: 0;
213 margin-left: .255em;
214 vertical-align: .255em;
215 content: "";
216 border-top: .3em solid;
217 border-right: .3em solid transparent;
218 border-left: .3em solid transparent;
219 }
220
221 header
222 {
223 display: block;
224 position: relative;
225 background: white;
226 border: 1px solid #d9d9d9;
227 border-top: none;
228 box-shadow: 1px 1px 0 0 #d9d9d9;
229 z-index: 1;
230 }
231
232 header nav li
233 {
234 padding: 0px 5px;
235 }
236
237 header nav li.selected
238 {
239 color: #db1313;
240 text-shadow: 1px 1px 1px #eee;
241 cursor: default;
242 }
243
244 header nav li.install-link a
245 {
246 color: #048e48;
247 }
248
249 header nav li.install-link .install-link-icon
250 {
251 display: inline-block;
252 width: 12px;
253 height: 12px;
254 background-position: -167px -13px;
255 }
256
257 .language-entry a
258 {
259 display: block;
260 }
261
262 #flag-ar
263 {
264 background-position: 0px 0px;
265 }
266
267 #flag-bg
268 {
269 background-position: -17px 0px;
270 }
271
272 #flag-de
273 {
274 background-position: -34px 0px;
275 }
276
277 #flag-en
278 {
279 background-position: -51px 0px;
280 }
281
282 #flag-es
283 {
284 background-position: -68px 0px;
285 }
286
287 #flag-sk
288 {
289 background-position: -85px 0px;
290 }
291
292 #flag-fr
293 {
294 background-position: 0px -12px;
295 }
296
297 #flag-el
298 {
299 background-position: -85px -12px;
300 }
301
302 #flag-he
303 {
304 background-position: -17px -12px;
305 }
306
307 #flag-it
308 {
309 background-position: -85px -24px;
310 }
311
312 #flag-hu
313 {
314 background-position: -34px -12px;
315 }
316
317 #flag-ko
318 {
319 background-position: -51px -12px;
320 }
321
322 #flag-ja
323 {
324 background-position: -102px 0px;
325 }
326
327 #flag-lt
328 {
329 background-position: -68px -12px;
330 }
331
332 #flag-nl
333 {
334 background-position: 0px -24px;
335 }
336
337 #flag-pl
338 {
339 background-position: -102px -12px;
340 }
341
342 #flag-pt_BR
343 {
344 background-position: -17px -24px;
345 }
346
347 #flag-pt_PT
348 {
349 background-position: -102px -24px;
350 }
351
352 #flag-ru
353 {
354 background-position: -34px -24px;
355 }
356
357 #flag-zh_CN
358 {
359 background-position: -51px -24px;
360 }
361
362 #flag-zh_TW
363 {
364 background-position: -68px -24px;
365 }
366
367 a[hreflang="de"]:not(:lang(de)):after,
368 a[hreflang="en"]:not(:lang(en)):after
369 {
370 display: inline-block;
371 width: 16px;
372 height: 11px;
373 background-image: url(../img/sprite-flags.png);
374 content: "";
375 margin-left: 2px;
376 }
377
378 a[hreflang="de"]:not(:lang(de)):after
379 {
380 background-position: -34px 0px;
381 }
382
383 a[hreflang="en"]:not(:lang(en)):after
384 {
385 background-position: -51px 0px;
386 }
387
388 #language-selector a:after
389 {
390 display: none;
391 }
392
393 #logo
394 {
395 position: absolute;
396 width: 128px;
397 height: 128px;
398 background-position: -83px -83px;
399 }
400
401 #content h1
402 {
403 font-size: 30px;
404 }
405
406 #content h2
407 {
408 font-weight: bold;
409 font-size: 25px;
410 }
411
412 #content h3
413 {
414 font-size: 20px;
415 } 47 }
416 48
417 #adblock-browser-notification 49 #adblock-browser-notification
418 { 50 {
419 text-align: center; 51 text-align: center;
420 } 52 }
421 53
422 #adblock-browser-notification a 54 #adblock-browser-notification a
423 { 55 {
424 font-weight: bold; 56 font-weight: bold;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 200
569 [dir="ltr"] .alert 201 [dir="ltr"] .alert
570 { 202 {
571 border-left: 5px solid #d14841; 203 border-left: 5px solid #d14841;
572 } 204 }
573 205
574 [dir="rtl"] .alert 206 [dir="rtl"] .alert
575 { 207 {
576 border-right: 5px solid #d14841; 208 border-right: 5px solid #d14841;
577 } 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