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

Delta Between Two Patch Sets: skin/firstRun.css

Issue 29565721: No Issue - Implemented first run page Base URL: https://hg.adblockplus.org/adblockplusui/
Left Patch Set: Addressed newest round of feedback (2) Created Oct. 26, 2017, 10:29 a.m.
Right Patch Set: Addressed latest round of feedback Created Jan. 30, 2018, 2:06 p.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
LEFTRIGHT
1 /* 1 /*
Thomas Greiner 2018/02/16 16:19:15 It is difficult to distinguish styles that are com
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
Thomas Greiner 2018/02/16 16:19:15 Detail: What happened to the whitespaces here?
17 17
18 @font-face 18 @font-face
19 { 19 {
20 font-family: "Source Sans Pro"; 20 font-family: "Source Sans Pro";
21 font-style: normal; 21 font-style: normal;
22 font-weight: 400; 22 font-weight: 400;
23 font-stretch: normal; 23 font-stretch: normal;
24 src: local ("Ø"), 24 src: local ("Ø"),
25 url(fonts/SourceSansPro-Regular.woff) format("woff"); 25 url(fonts/SourceSansPro-Regular.woff) format("woff");
26 } 26 }
27 27
28 @font-face 28 @font-face
juliandoucette 2017/10/30 15:02:28 NIT: new adblockplus.org is currently using semi-b
29 { 29 {
30 font-family: "Source Sans Pro"; 30 font-family: "Source Sans Pro";
31 font-style: bold; 31 font-style: bold;
32 font-weight: 700; 32 font-weight: 700;
33 font-stretch: normal; 33 font-stretch: normal;
34 src: local ("Ø"), 34 src: local ("Ø"),
35 url(fonts/SourceSansPro-bold.woff) format("woff"); 35 url(fonts/SourceSansPro-bold.woff) format("woff");
36 } 36 }
37 37
38 html 38 html
39 { 39 {
40 font-family: "Source Sans Pro", Helvetica, Arial, sans-serif; 40 font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
41 } 41 }
42 42
43 body 43 body
44 { 44 {
45 margin: 0; 45 margin: 0;
46 padding: 0; 46 padding: 0;
47 } 47 }
48 48
49 .container
juliandoucette 2017/10/30 15:02:28 NIT: Both of these styles are covered by default.c
martin 2018/01/30 14:10:04 Done.
50 {
51 max-width: 100%;
52 padding: 0px 1em;
53 }
54
55 #main-content-container {
juliandoucette 2017/10/30 15:02:28 NIT: .container already applies margin 0 auto. It
martin 2018/01/30 14:10:04 Done.
56 margin: 0 auto 8em;
57 }
58
59 .ta-centre 49 .ta-centre
60 { 50 {
61 text-align: center; 51 text-align: center;
62 } 52 }
63 53
54 #content {
55 margin-bottom: 3em;
56 }
57
64 @media (max-width: 992px) 58 @media (max-width: 992px)
65 { 59 {
66 #content > .one-third 60 #content .one-third
67 { 61 {
68 padding: 3em 2em; 62 padding: 3em 2em;
69 border-bottom: 1px solid #d3d3d3; 63 border-bottom: 1px solid #d3d3d3;
70 } 64 }
71 #content > .one-third:last-child { 65 #content .one-third:last-child {
72 border-bottom: none; 66 border-bottom: none;
73 } 67 }
74 } 68 }
75 69
76 /****************************************************************************** 70 /******************************************************************************
77 * .content 71 * .content
78 *****************************************************************************/ 72 *****************************************************************************/
Thomas Greiner 2018/02/16 16:19:17 Detail: Missing whitespace at beginning of line ca
79 73
80 .content h1, 74 .content h1,
81 .content h2, 75 .content h2,
82 .content h3, 76 .content h3,
83 .content h4, 77 .content h4,
84 .content h5 78 .content h5
85 { 79 {
86 font-weight: bold; 80 font-weight: bold;
Thomas Greiner 2018/02/16 16:19:19 We consistently use number values for the font wei
87 margin: 32px 0px; 81 margin: 32px 0px;
Thomas Greiner 2018/02/16 16:19:19 Coding style: "Omit unit specification after “0” v
88 margin: 2rem 0rem; 82 margin: 2rem 0rem;
89 } 83 }
90 84
91 .content h1 { font-size: 1.8em; } 85 .content h1 { font-size: 1.8em; }
92 .content h2 { font-size: 1.4em; } 86 .content h2 { font-size: 1.4em; }
93 .content h3 { font-size: 1.3em; } 87 .content h3 { font-size: 1.3em; }
94 .content h4 { font-size: 1.2em; } 88 .content h4 { font-size: 1.2em; }
95 .content h5 { font-size: 1.1em; } 89 .content h5 { font-size: 1.1em; }
96 90
97 @media(min-width: 768px) 91 @media(min-width: 768px)
98 { 92 {
99 .content h1 { font-size: 2.4em; } 93 .content h1 { font-size: 2.4em; }
100 .content h2 { font-size: 1.6em; } 94 .content h2 { font-size: 1.6em; }
101 } 95 }
102 96
103 .content a, 97 .content a,
104 .content a:visited 98 .content a:visited
105 { 99 {
106 color: #C70D2C; 100 color: #C70D2C;
107 } 101 }
108 102
109
110 /******************************************************************************* 103 /*******************************************************************************
111 * #navbar 104 * #navbar
112 ******************************************************************************/ 105 ******************************************************************************/
113 106
114 #navbar 107 #navbar
115 { 108 {
116 height: 4em; 109 min-height: 4em;
117 background-color: #c70d2c; 110 background-color: #c70d2c;
118 } 111 }
119 112
113 @media(max-width: 991px)
114 {
115 #navbar
116 {
117 overflow: auto;
118 }
119 }
120
120 #navbar li 121 #navbar li
121 { 122 {
122 list-style-type: none; 123 list-style-type: none;
123 } 124 }
124 125
125 /* padding provided by navbar contents */ 126 #navbar .container
126 .navbar-container 127 {
127 { 128 padding-left: 0;
128 width: 80%; 129 padding-right: 0;
129 margin: 0 auto;
130 }
131
132 /* full-width under .container max-width */
133 @media(max-width: 1199px)
134 {
135 .navbar-container
136 {
137 width: 100%;
138 }
139 } 130 }
140 131
141 /* #navbar #navbar-logo 132 /* #navbar #navbar-logo
142 ****************************************************************************** / 133 ******************************************************************************/
143 134
144 #navbar-logo 135 #navbar-logo
145 { 136 {
146 /* padding is visible in hover background-color change */ 137 /* padding is visible in hover background-color change */
147 padding: 0em 1em; 138 padding: 0em 1em;
148 color: #fff; 139 color: #fff;
149 } 140 }
150 141
151 #navbar-logo:hover, 142 #navbar-logo:hover,
152 #navbar-logo:active, 143 #navbar-logo:active,
(...skipping 28 matching lines...) Expand all
181 } 172 }
182 173
183 #navbar-logo > span 174 #navbar-logo > span
184 { 175 {
185 /* full-height: 2.91 * 1.375 = ~4em */ 176 /* full-height: 2.91 * 1.375 = ~4em */
186 line-height: 2.91em; 177 line-height: 2.91em;
187 font-size: 1.375em; 178 font-size: 1.375em;
188 } 179 }
189 180
190 /* #navbar #navbar-menu-toggle 181 /* #navbar #navbar-menu-toggle
191 ****************************************************************************** / 182 ******************************************************************************/
192 183
193 #navbar-menu-toggle 184 #navbar-menu-toggle
194 { 185 {
195 float: right; 186 float: right;
196 padding: 1em; 187 padding: 1em;
197 } 188 }
198 189
199 [dir="rtl"] #navbar-menu-toggle 190 [dir="rtl"] #navbar-menu-toggle
200 { 191 {
201 float: left; 192 float: left;
(...skipping 22 matching lines...) Expand all
224 } 215 }
225 216
226 #navbar-menu-toggle:hover, 217 #navbar-menu-toggle:hover,
227 #navbar-menu-toggle:active, 218 #navbar-menu-toggle:active,
228 #navbar-menu-toggle:focus 219 #navbar-menu-toggle:focus
229 { 220 {
230 background-color: #AE0013; 221 background-color: #AE0013;
231 } 222 }
232 223
233 /* #navbar #navbar-menu 224 /* #navbar #navbar-menu
234 ****************************************************************************** / 225 ******************************************************************************/
235 226
236 #navbar-menu a 227 #navbar-menu a
237 { 228 {
238 display: block; 229 display: block;
239 color: #fff; 230 color: #fff;
240 text-decoration: none; 231 text-decoration: none;
241 } 232 }
242 233
234 /* #navbar #navbar-menu #navbar-locale-menu
235 ******************************************************************************/
236
237 /* caret */
238 #navbar-locale-selected:after
239 {
240 display: inline-block;
241 width: 0;
242 height: 0;
243 margin: 0em 0em 0em 0.255em;
244 vertical-align: .255em;
Thomas Greiner 2018/02/16 16:19:16 Coding style: "Don't omit the optional leading 0 f
245 content: "";
246 border-top: .3em solid;
247 border-right: .3em solid transparent;
248 border-left: .3em solid transparent;
249 }
250
251 [dir="rtl"] #navbar-locale-selected:after
252 {
253 margin: 0em 0.255em 0em 0em;
254 }
255
256 #navbar-locale-menu
257 {
258 display: none;
259 }
260
261 #navbar-locale-menu.visible
262 {
263 display: block;
264 }
265
266 #navbar-locale-menu > li > a
267 {
268 padding: 0.75em 1em;
269 }
270
271 #navbar-locale-menu > li > a:hover,
272 #navbar-locale-menu > li > a:active,
273 #navbar-locale-menu > li > a:focus
274 {
275 background-color: #434343;
276 }
277
243 /* #navbar #navbar-menu (desktop) 278 /* #navbar #navbar-menu (desktop)
244 ****************************************************************************** / 279 ******************************************************************************/
245 280
246 @media(min-width: 992px) 281 @media(min-width: 992px)
247 { 282 {
248 #navbar-menu 283 #navbar-menu
249 { 284 {
250 float: right; 285 float: right;
251 } 286 }
252 287
253 [dir="rtl"] #navbar-menu 288 [dir="rtl"] #navbar-menu
254 { 289 {
255 float: left; 290 float: left;
256 } 291 }
257 292
258 #navbar-menu > li, 293 #navbar-menu > li,
259 #navbar-menu > li > a 294 #navbar-menu > li > a
260 { 295 {
261 display: inline-block; 296 display: inline-block;
262 } 297 }
263 298
264 #navbar-menu > li > a 299 #navbar-menu > li > a
265 { 300 {
266 padding: 0em 1em; 301 padding: 0em 1em;
267 line-height: 4em; 302 line-height: 4em;
268 } 303 }
269 304
270 #navbar-menu > li > a:hover, 305 #navbar-menu > li > a:hover,
271 #navbar-menu > li > a:active, 306 #navbar-menu > li > a:active,
272 #navbar-menu > li > a:focus 307 #navbar-menu > li > a:focus
273 { 308 {
274 background-color: #AE0013; 309 background-color: #AE0013;
275 } 310 }
276 311
277 /* #navbar #navbar-menu #navbar-locale-menu 312 /* #navbar #navbar-menu #navbar-locale-menu
Thomas Greiner 2018/02/16 16:19:20 You don't include this section of the navbar so le
278 **************************************************************************** / 313 ****************************************************************************/
279 314
280 #navbar-locale-menubar 315 #navbar-locale-menubar
281 { 316 {
282 position: relative; 317 position: relative;
283 } 318 }
284 319
285 #navbar-locale-menu 320 #navbar-locale-menu
286 { 321 {
287 position: absolute; 322 position: absolute;
288 min-width: 16em; 323 min-width: 16em;
289 max-height: 20em; 324 max-height: 20em;
290 max-height: 50vh; 325 max-height: 50vh;
291 top: 100%; 326 top: 100%;
292 right: 0px; 327 right: 0px;
293 overflow: auto; 328 overflow: auto;
294 z-index: 9001; 329 z-index: 9001;
295 background-color: #292929; 330 background-color: #292929;
296 } 331 }
297 332
298 [dir="rtl"] #navbar-locale-menu 333 [dir="rtl"] #navbar-locale-menu
299 { 334 {
300 right: auto; 335 right: auto;
301 left: 0px; 336 left: 0px;
302 } 337 }
303 } 338 }
304 339
305 /* #navbar #navbar-menu (mobile) 340 /* #navbar #navbar-menu (mobile)
306 ****************************************************************************** / 341 ******************************************************************************/
307 342
308 @media(max-width: 991px) 343 @media(max-width: 991px)
309 { 344 {
310 #navbar-menu 345 #navbar-menu
311 { 346 {
312 display: none; 347 display: none;
313 float: left; 348 float: left;
Thomas Greiner 2018/02/16 16:19:18 I don't see a rule for reversing this for right-to
314 clear: both; 349 clear: both;
315 width: 100%; 350 width: 100%;
316 background-color: #292929; 351 background-color: #292929;
317 } 352 }
318 353
319 #navbar-menu.visible 354 #navbar-menu.visible
320 { 355 {
321 display: block; 356 display: block;
322 } 357 }
323 358
324 #navbar-menu li a 359 #navbar-menu li a
325 { 360 {
326 padding: 0.75em 1em; 361 padding: 0.75em 1em;
327 } 362 }
328 363
329 #navbar-menu li a:hover, 364 #navbar-menu li a:hover,
330 #navbar-menu li a:active, 365 #navbar-menu li a:active,
331 #navbar-menu li a:focus 366 #navbar-menu li a:focus
332 { 367 {
333 background-color: #434343; 368 background-color: #434343;
334 } 369 }
335 } 370 }
336 371
337 /****************************************************************************** 372 /******************************************************************************
338 * Main Page Content 373 * Main Page Content
339 *****************************************************************************/ 374 *****************************************************************************/
340 375
341 #installation-status-header 376 #installation-status-header
342 { 377 {
343 text-align: center; 378 text-align: center;
344 background: #f9f9f9; 379 background: #f9f9f9;
Thomas Greiner 2018/02/16 16:19:20 Detail: Do you actually want to override other bac
345 padding: 4em 0; 380 padding: 4em 0;
346 margin-bottom: 4em; 381 margin-bottom: 4em;
347 } 382 }
348 383
349 #installation-status-header > h1 { 384 #installation-status-header > h1 {
350 text-transform: uppercase; 385 text-transform: uppercase;
351 } 386 }
352 387
353 .section-header > h2 388 .section-header > h2
354 { 389 {
355 margin: 1em 0 0; 390 margin: 1em 0 0;
356 } 391 }
357 392
358 .button-primary 393 .button-primary
359 { 394 {
360 display: inline-block; 395 display: inline-block;
361 text-decoration: none; 396 text-decoration: none;
362 text-transform: uppercase; 397 text-transform: uppercase;
363 color: #fff !important; 398 color: #fff !important;
Thomas Greiner 2018/02/16 16:19:17 What's the reason for using `!important` here?
364 text-align: center; 399 text-align: center;
365 width: 100%; 400 width: 100%;
366 border-radius: 6px; 401 border-radius: 6px;
367 padding: 1em 0; 402 padding: 1em 0;
368 background: #C70D2C; 403 background: #C70D2C;
369 } 404 }
370 405
371 .store-buttons 406 .store-buttons
372 { 407 {
373 width: 100%; 408 width: 100%;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 { 440 {
406 .store-buttons 441 .store-buttons
407 { 442 {
408 flex-direction: column; 443 flex-direction: column;
409 } 444 }
410 445
411 .store-button 446 .store-button
412 { 447 {
413 width: 100%; 448 width: 100%;
414 } 449 }
415 .applestore-button 450 .applestore-button
Thomas Greiner 2018/02/16 16:19:16 Coding style: "Separate rules by new lines." See
416 { 451 {
417 margin: 0 0 1em; 452 margin: 0 0 1em;
418 } 453 }
419 } 454 }
420 455
421 #installation-status-header > h1 456 #installation-status-header > h1
422 { 457 {
423 font-size: 3em; 458 font-size: 3em;
424 margin: 0; 459 margin: 0;
425 } 460 }
426 461
462
427 /******************************************************************************* 463 /*******************************************************************************
428 * #footer 464 * #footer
429 ******************************************************************************/ 465 ******************************************************************************/
430 466
431 #footer 467 #footer
432 { 468 {
433 overflow: auto; 469 overflow: auto;
434 margin-top: 2em; 470 margin-top: 2em;
435 padding: 2em 0em; 471 padding: 2em 0em;
436 color: #ececec; 472 color: #ececec;
437 background-color: #292929; 473 background-color: #292929;
438 font-size: 0.9em; 474 font-size: 0.9em;
439 } 475 }
440 476
441 /* #footer body 477 /* #footer body
442 ****************************************************************************** / 478 ******************************************************************************/
443 479
444 #footer h5 480 #footer h5
445 { 481 {
446 margin-top: 1em; 482 margin-top: 1em;
447 margin-bottom: 1.5em; 483 margin-bottom: 1.5em;
448 } 484 }
449 485
450 #footer h5:after 486 #footer h5:after
Thomas Greiner 2018/02/16 16:19:16 Detail: The standard way to write this is `#footer
451 { 487 {
452 content: ""; 488 content: "";
453 display: block; 489 display: block;
454 width: 1.25em; 490 width: 1.25em;
455 height: 0.125em; 491 height: 0.125em;
456 margin-top: 0.5em; 492 margin-top: 0.5em;
457 background-color: #ececec; 493 background-color: #ececec;
458 } 494 }
459 495
460 #footer ul 496 #footer ul
461 { 497 {
462 padding: 0em; 498 padding: 0em;
463 list-style-type: none; 499 list-style-type: none;
464 } 500 }
465 501
466 #footer a 502 #footer a
467 { 503 {
468 color: #ececec; 504 color: #ececec;
469 } 505 }
470 506
471 #footer a:hover, 507 #footer a:hover,
472 #footer a:active, 508 #footer a:active,
473 #footer a:focus 509 #footer a:focus
474 { 510 {
475 color: #fff; 511 color: #fff;
476 text-decoration: underline; 512 text-decoration: underline;
477 } 513 }
478 514
479 /* #footer #social-list 515 /* #footer #social-list
480 ****************************************************************************** / 516 ******************************************************************************/
481 517
482 #social-list ul 518 #social-list ul
483 { 519 {
484 /* negative margin canceled out by li margin below */ 520 /* negative margin canceled out by li margin below */
485 margin: 0em -0.375em; 521 margin: 0em -0.375em;
486 } 522 }
487 523
488 #social-list li 524 #social-list li
489 { 525 {
490 float: left; 526 float: left;
(...skipping 12 matching lines...) Expand all
503 539
504 @media(min-width: 1200px) 540 @media(min-width: 1200px)
505 { 541 {
506 #social-list img 542 #social-list img
507 { 543 {
508 height: 3em; 544 height: 3em;
509 } 545 }
510 } 546 }
511 547
512 /* #footer #footer-legal 548 /* #footer #footer-legal
513 ****************************************************************************** / 549 ******************************************************************************/
514 550
515 #footer-legal 551 #footer-legal
516 { 552 {
517 margin-top: 1em; 553 margin-top: 1em;
518 } 554 }
519 555
520 @media(min-width: 1200px) 556 @media(min-width: 1200px)
521 { 557 {
522 #footer-legal 558 #footer-legal
523 { 559 {
524 margin-top: 2em; 560 margin-top: 2em;
525 } 561 }
526 } 562 }
527 563
528 /* #footer #footer-legal #legal-list 564 /* #footer #footer-legal #legal-list
529 ****************************************************************************** / 565 ******************************************************************************/
530 566
531 #legal-list li 567 #legal-list li
532 { 568 {
533 float: left; 569 float: left;
534 } 570 }
535 571
536 [dir="rtl"] #legal-list li 572 [dir="rtl"] #legal-list li
537 { 573 {
538 float: right; 574 float: right;
539 } 575 }
540 576
541 #legal-list li:after 577 #legal-list li:after
542 { 578 {
543 margin: 0em 0.375em; 579 margin: 0em 0.375em;
544 } 580 }
545 581
546 /* IE9+ only */ 582 /* IE9+ only */
Thomas Greiner 2018/02/16 16:19:19 This is not relevant for us since we don't support
547 #legal-list li::after 583 #legal-list li::after
548 { 584 {
549 content: "|" 585 content: "|"
550 } 586 }
551 587
552 #legal-list li:last-of-type::after 588 #legal-list li:last-of-type::after
553 { 589 {
554 content: none; 590 content: none;
555 } 591 }
556 592
557 /* float copyright and legal links left and right on ~desktop */ 593 /* float copyright and legal links left and right on ~desktop */
558 @media(min-width: 1200px) 594 @media(min-width: 1200px)
559 { 595 {
560 #copyright-notice 596 #copyright-notice
561 { 597 {
562 float: left; 598 float: left;
563 } 599 }
564 600
565 [dir="rtl"] #copyright-notice 601 [dir="rtl"] #copyright-notice
566 { 602 {
567 float: right; 603 float: right;
568 } 604 }
569 605
570 #legal-list 606 #legal-list
571 { 607 {
572 float: right; 608 float: right;
573 } 609 }
574 610
575 [dir="rtl"] #legal-list 611 [dir="rtl"] #legal-list
576 { 612 {
577 float: left; 613 float: left;
578 } 614 }
579 } 615 }
580 616
581 /* hide all footer links except #social-list on ~mobile */ 617 /* hide all footer links except #social-list on ~mobile */
582 @media(max-width: 767px) 618 @media(max-width: 767px)
583 { 619 {
584 #footer .column 620 #footer .column
585 { 621 {
586 display: none; 622 display: none;
587 } 623 }
588 624
589 /* overriding display:none above */ 625 /* overriding display:none above */
590 #footer #social-list 626 #footer #social-list
591 { 627 {
592 display: block; 628 display: block;
593 } 629 }
594 } 630 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld