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 Oct. 10, 2017, 11:29 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: sans-serif; 3 font-family: Arial, sans;
juliandoucette 2017/10/10 17:35:04 Removed from PatchSet
ire 2017/10/11 08:09:01 Acknowledged.
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;
11 } 11 }
12 12
13 a img 13 a img
(...skipping 23 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 /*******************************************************************************
50 * #navbar
juliandoucette 2017/10/10 17:35:08 Moved this below .content
ire 2017/10/11 08:09:03 Acknowledged.
51 ******************************************************************************/
52
53 #navbar
54 {
juliandoucette 2017/10/10 17:35:06 It's necessary to set height here because overflow
ire 2017/10/11 08:09:04 Acknowledged.
55 height: 4em;
56 background-color: #c70d2c;
57 }
58
59 #navbar ul
juliandoucette 2017/10/10 17:35:08 This isn't necessary anymore because of website-de
ire 2017/10/11 08:09:03 Acknowledged.
60 {
61 margin: 0em;
62 padding: 0em;
63 }
64
65 #navbar li
juliandoucette 2017/10/10 17:35:05 This isn't necessary anymore because of website-de
ire 2017/10/11 08:09:02 Acknowledged.
66 {
67 list-style-type: none;
68 }
69
70 #navbar .container
juliandoucette 2017/10/10 17:35:08 I'm torn between changing #navbar .container or cr
ire 2017/10/11 08:09:00 I think I prefer creating a new class because it i
juliandoucette 2017/10/11 11:59:34 Agreed. I'll change it.
71 {
72 padding: 0em;
73 }
74
75 @media(max-width: 1199px)
76 {
77 #navbar .container
78 {
79 width: 100%;
80 }
81 }
82
83 /* #navbar #logo
84 ******************************************************************************/
85
86 #logo
87 {
88 padding-left: 1em;
89 padding-right: 1em;
90 color: #fff;
91 }
92
93 #logo:hover,
94 #logo:active,
95 #logo:focus
96 {
97 background-color: #AE0013;
98 text-decoration: none;
juliandoucette 2017/10/10 17:35:07 Removed unnecessary text-decoration nullification.
ire 2017/10/11 08:09:00 Acknowledged.
99 }
100
101 #logo,
102 #logo > *
103 {
104 display: block;
105 float: left;
106 }
107
108 [dir="rtl"] #logo,
109 [dir="rtl"] #logo > *
110 {
111 float: right;
112 }
113
114 #logo img
115 {
116 height: 4em;
117 padding-top: 0.5em;
118 padding-bottom: 0.5em;
119 margin-right: 1em;
120 }
121
122 [dir="rtl"] #logo > img
123 {
124 margin-left: 1em;
125 }
126
127 #logo > span
juliandoucette 2017/10/10 17:35:05 IDK if this looks different on different platforms
128 {
129 line-height: 2.91em;
130 font-size: 1.375em;
131 }
132
133 /* #navbar #menu-toggle
134 ******************************************************************************/
135
136 #menu-toggle
137 {
138 float: right;
139 padding: 1em;
140 }
141
142 [dir="rtl"] #menu-toggle
143 {
144 float: left;
145 }
146
147 /* show on mobile */
148 #menu-toggle,
149 #menu-toggle > img
150 {
151 display: block;
152 }
153
154 /* hide on desktop */
155 @media(min-width: 992px)
156 {
157 #menu-toggle
158 {
159 display: none;
160 }
161 }
162
163 #menu-toggle > img
164 {
165 height: 2em;
166 }
167
168 #menu-toggle:hover,
169 #menu-toggle:active,
170 #menu-toggle:focus
171 {
172 background-color: #AE0013;
173 }
174
175 /* #navbar #navbar-menu
176 ******************************************************************************/
177
178 #navbar-menu a
179 {
180 color: #fff;
181 text-decoration: none;
182 }
183
184 /* #navbar #navbar-menu (desktop)
185 ******************************************************************************/
186
187 @media(min-width: 992px)
188 {
189 #navbar-menu
190 {
191 float: right;
192 }
193
194 [dir="rtl"] #navbar-menu
195 {
196 float: left;
197 }
198
199 #navbar-menu > li,
200 #navbar-menu > li > a
201 {
202 display: inline-block;
203 }
204
205 #navbar-menu > li > a
206 {
207 padding-right: 1em;
208 padding-left: 1em;
209 line-height: 4em;
210 }
211
212 #navbar-menu > li > a:hover,
213 #navbar-menu > li > a:active,
214 #navbar-menu > li > a:focus
215 {
216 background-color: #AE0013;
217 }
218
219 /* #navbar #navbar-menu #locale-menu
220 ****************************************************************************/
221
222 #locale-menubar
223 {
224 position: relative;
225 }
226
227 #locale-menu
228 {
229 position: absolute;
230 display: none;
231 min-width: 16em;
232 max-height: 20em;
233 max-height: 50vh;
234 top: 100%;
235 right: 0px;
236 overflow: auto;
237 z-index: 1000;
238 background-color: #292929;
239 }
240
241 [dir="rtl"] #locale-menu
242 {
243 right: auto;
244 left: 0px;
245 }
246
247 #locale-menu.visible
juliandoucette 2017/10/10 17:35:06 Moved this logic above as it now applies to both d
ire 2017/10/11 08:09:00 Acknowledged.
248 {
249 display: block;
250 }
251
252 #locale-menu > li,
253 #locale-menu > li > a
254 {
255 display: block;
256 white-space: nowrap;
257 }
258
259 #locale-menu > li > a
260 {
261 padding-left: 1em;
262 padding-right: 1em;
263 line-height: 3em;
juliandoucette 2017/10/10 17:35:05 Changed to default line-height and padding: 0.75em
ire 2017/10/11 08:09:02 Acknowledged.
264 text-decoration: none;
juliandoucette 2017/10/10 17:35:09 Removed unnecessary text-decoration nullification.
ire 2017/10/11 08:09:01 Acknowledged.
265 }
266
267 #locale-menu > li > a:hover,
268 #locale-menu > li > a:active,
269 #locale-menu > li > a:focus
270 {
271 background-color: #434343;
272 }
273
274 /* caret */
275 #locale-selected::after
juliandoucette 2017/10/10 17:35:05 I think I'll flip this caret on select separately.
ire 2017/10/11 08:09:01 Acknowledged.
276 {
277 display: inline-block;
278 width: 0;
279 height: 0;
280 margin-left: .255em;
281 vertical-align: .255em;
282 content: "";
283 border-top: .3em solid;
284 border-right: .3em solid transparent;
285 border-left: .3em solid transparent;
286 }
287 }
288
289 /* #navbar #navbar-menu (mobile)
290 ******************************************************************************/
291
292 @media(max-width: 991px)
293 {
294 #navbar-menu
295 {
296 display: none;
297 float: left;
298 background-color: #292929;
299 }
300
301 #navbar-menu.visible,
302 #navbar-menu li,
303 #navbar-menu li a
304 {
305 display: block;
306 }
307
308 #navbar-menu li a
309 {
310 line-height: 3em;
311 padding-left: 1em;
312 padding-right: 1em;
313 }
314
315 #navbar-menu li a:hover,
316 #navbar-menu li a:active,
317 #navbar-menu li a:focus
318 {
319 background-color: #434343;
320 }
321
322 /* locales appear inline in mobile menu */
323 #locale-menu li,
324 #locale-menu a
325 {
326 display: inline-block;
327 }
328
329 /* selected locale does not appear in mobile menu */
330 #navbar-menu #locale-selected
331 {
332 display: none;
333 }
334 } 47 }
335 48
336 #adblock-browser-notification 49 #adblock-browser-notification
337 { 50 {
338 text-align: center; 51 text-align: center;
339 } 52 }
340 53
341 #adblock-browser-notification a 54 #adblock-browser-notification a
342 { 55 {
343 font-weight: bold; 56 font-weight: bold;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 font-weight: bold; 221 font-weight: bold;
509 margin: 32px 0px; 222 margin: 32px 0px;
510 margin: 2rem 0rem; 223 margin: 2rem 0rem;
511 } 224 }
512 225
513 .content h1 { font-size: 2.4em; } 226 .content h1 { font-size: 2.4em; }
514 .content h2 { font-size: 1.6em; } 227 .content h2 { font-size: 1.6em; }
515 .content h3 { font-size: 1.3em; } 228 .content h3 { font-size: 1.3em; }
516 .content h4 { font-size: 1.2em; } 229 .content h4 { font-size: 1.2em; }
517 .content h5 { font-size: 1.1em; } 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