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