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

Side by Side Diff: chrome/skin/firstRun.css

Issue 11039060: first run page redesign (Closed)
Patch Set: modified installation label Created July 24, 2013, 11:27 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2013 Eyeo GmbH 3 * Copyright (C) 2006-2013 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 */
17 17
18 .clearfix
Thomas Greiner 2013/07/26 14:22:55 You can get rid of this (including the HTML elemen
19 {
20 clear: both;
21 }
22
23 *
24 {
25 margin: 0;
26 padding: 0;
27 }
28
18 body 29 body
19 { 30 {
20 font-family: Arial, Helvetica, sans-serif; 31 font-family: Segoe UI, Helvetica, Arial, sans-serif;
21 font-size: 14px; 32 font-size: 15px;
22 line-height: 140%; 33 line-height: 140%;
23 color: #000000; 34 color: #7f776b;
24 background-color: #f8f6f2; 35 background-color: #f8f6f2;
36 background-image: url(background-main.png);
37 }
38
39 a, a:link, a:visited
40 {
41 color: #5a84b3;
42 text-decoration: underline;
43 font-style: italic;
44 }
45
46 button
47 {
48 cursor: pointer;
49 }
50
51 li
52 {
53 list-style-type: none;
54
Thomas Greiner 2013/07/26 14:22:55 Remove empty line.
55 }
56
57 header
58 {
59 height: 200px;
25 background-image: url(background.png); 60 background-image: url(background.png);
61 background-repeat: repeat-x;
62 width: 100%;
63 padding: 40px 0 0 0;
64 }
65
66 header h1
67 {
68 font-size: 24px;
69 font-weight: normal;
26 margin: 0 auto; 70 margin: 0 auto;
27 padding: 0; 71 display: block;
28 max-width: 900px; 72 color: #57ab5b;
29 } 73 text-align: center;
30 74 margin: 21px auto;
31 a:link, a:visited 75 padding: 14px 0;
32 { 76 border: 1px dashed #57ab5b;
33 color: #7d7d7d; 77 max-width: 957px; /*border parallel fix*/
Thomas Greiner 2013/07/26 14:22:55 Why 957px? Seems quite random… why not 950px?
34 } 78 border-left: none;
35 79 border-right: none;
Thomas Greiner 2013/07/26 14:22:55 You can do this instead: border: 1px #57ab5b; bor
36 button, .arrow 80 }
81
82 strong
83 {
84 font-weight: 600;
85 }
86
87 h2 {
88 font-size: 30px;
89 font-weight: lighter;
90 color: #968d81;
91 line-height: 30px;
92
93 }
94
95 h3 {
96 font-size: 24px;
97 color: #4d4d4d;
98 font-weight: normal;
99 margin: 0 0 10px 0;
100 line-height: 30px;
101 }
102
103 h4 {
104 font-size: 15px;
105 color: #7f776b;
106 font-weight: normal;
107 text-align: center;
108 }
109
110 section
111 {
112 margin: 0 auto;
113 margin-bottom: 30px;
114 max-width: 760px;
115 background-image: url(background.png);
116 padding: 40px 100px;
117 }
118
119 section > p
120 {
121 margin: 15px 0 0 0;
122 }
123
124
125 #logo
126 {
127 margin: 0 auto;
128 height: 100px;
129 width: 99px;
130 display: block;
131 background-image: url(abp-icon-big.png);
132 background-repeat: no-repeat;
133 }
134
135 #can-do-more
136 {
137 max-width: 960px !important;
138 padding: 40px 0px 0px 0px !important;
Thomas Greiner 2013/07/26 14:22:55 Why did you add !important? It works without it be
139 }
140
141 #can-do-more-overview
37 { 142 {
38 cursor: pointer; 143 cursor: pointer;
39 } 144 }
40 145
41 header, p 146 #can-do-more > h2
Thomas Greiner 2013/07/26 14:22:55 You're overusing > a bit in the area starting here
42 { 147 {
43 margin: 15px 0 5px; 148 margin: 0 100px;
44 } 149 }
45 150
46 #content 151
47 { 152 #can-do-more > ul
48 padding: 0 90px; 153 {
49 } 154 max-width: 760px;
50 155 height: 140px;
51 header 156 margin: 40px 100px 0 100px;
52 { 157 }
53 padding-left: 148px; 158
54 background-image: url(abp-icon-big.png); 159 #can-do-more > ul > li
55 background-position: 0% 50%; 160 {
161 width: 250px;
162 height: 115px;
163 float: left;
164 border-right: 1px dashed #c7c6c2;
165 padding: 20px 0 0 0;
166 }
167
168 #can-do-more > ul > h3
169 {
170 margin: 20px 0 0 0;
171 }
172
173 #can-do-more > ul > li > div
Thomas Greiner 2013/07/26 14:22:55 Why not give those DIVs a class name or use existi
174 {
175 width: 59px;
176 height: 59px;
177 display: block;
178 margin: 0 auto;
179 }
180
181 #can-do-more > ul > li > h4
182 {
183 margin: 15px 0 0 0;
184 }
185
186 #can-do-more #feature-first
187 {
188 border-left: 1px dashed #c7c6c2;
189 }
190
191 #feature-malware-image
Thomas Greiner 2013/07/26 14:22:55 You don't need an ID to uniquely identify it: #fea
192 {
193 background-image: url(features/malware.png);
56 background-repeat: no-repeat; 194 background-repeat: no-repeat;
57 min-height: 128px; 195 }
58 vertical-align: middle; 196
59 line-height: 1; 197 #feature-social-image
Thomas Greiner 2013/07/26 14:22:55 You don't need an ID to uniquely identify it: #fea
60 198 {
61 display: -webkit-box; 199 background-image: url(features/social.png);
62 -webkit-box-orient: vertical; 200 background-repeat: no-repeat;
63 -webkit-box-pack: center; 201 }
64 202
65 display: -moz-box; 203 #feature-tracking-image
66 -moz-box-orient: vertical; 204 {
67 -moz-box-pack: center; 205 background-image: url(features/tracking.png);
68 206 background-repeat: no-repeat;
69 display: -o-box; 207 }
70 -o-box-orient: vertical; 208
71 -o-box-pack: center; 209 #can-do-more-expanded
72 210 {
73 display: -ms-box; 211 margin: 40px 100px 0 100px;
74 -ms-box-orient: vertical; 212 display: none;
75 -ms-box-pack: center;
76
77 display: box;
78 box-orient: vertical;
79 box-pack: center;
80 }
81
82 header h1
83 {
84 font-size: 40px;
85 font-weight: normal;
86 margin: 0;
87 }
88
89 #dataCorruptionWarning
90 {
91 font-size: 200%;
92 line-height: 140%;
93 margin: 20px;
94 padding: 20px;
95 border: 3px solid red;
96 border-radius: 10px;
97 } 213 }
98 214
99 #features 215 #features
100 { 216 {
101 display: block; 217 display: block;
102 border-spacing: 10px; 218 border-spacing: 10px;
103 margin: 0px; 219 margin: 0px;
104 padding: 0px; 220 padding: 0px;
105 padding-bottom: 120px;
106 white-space: nowrap;
107 }
108
109 #features-title
110 {
111 font-size: 22px;
112 color: #cc0000;
113 margin: 30px 0px 20px;
114 }
115
116 #features-title::after
117 {
118 content: ":";
119 } 221 }
120 222
121 .feature:not([hidden]) 223 .feature:not([hidden])
122 { 224 {
123 display: block; 225 display: block;
124 position: relative;
125 list-style-type: none; 226 list-style-type: none;
227 padding: 30px 0;
126 padding-bottom: 20px; 228 padding-bottom: 20px;
229 border-top: 1px dashed #c0bebb;
127 } 230 }
128 231
129 .feature-image, .feature-description 232 .feature-image, .feature-description
130 { 233 {
131 display: inline-block; 234 display: inline-block;
132 *display: inline; /* IE6 inline-block fix */ 235 *display: inline; /* IE6 inline-block fix */
133 *zoom: 1; 236 *zoom: 1;
134 vertical-align: top; 237 vertical-align: top;
135 } 238 }
136 239
137 .feature-description 240 .feature-description
138 { 241 {
139 width: 550px; 242 margin: 0px 0px 0 20px;
140 margin: 0px 10px; 243 max-width: 624px;
Thomas Greiner 2013/07/26 14:22:55 Where does this number come from?
141 } 244 }
142 245
143 .feature-title 246 .feature-description-textblock
144 { 247 {
145 color: black; 248 max-width: 478px;
Thomas Greiner 2013/07/26 14:22:55 Where does this number come from?
146 font-weight: bold; 249 margin: 0 40px 0 0;
147 font-size: 120%; 250 float: left;
Thomas Greiner 2013/07/26 14:22:55 Do you really need a float here? Why not make it a
148 } 251 }
149 252
150 .feature-title::after 253 .feature-description-textblock > span
151 { 254 {
152 content: ":"; 255 margin: 15px 0 0 0;
153 }
154
155 .feature-text
156 {
157 margin: 7px 0px;
158 white-space: normal;
159 } 256 }
160 257
161 .feature-image 258 .feature-image
162 { 259 {
163 width: 57px; 260 width: 59px;
164 height: 57px; 261 height: 59px;
165 } 262 margin: 8px 0 10px 20px;
166
167 #feature-malware .feature-image
168 {
169 background-image: url(features/malware.png);
170 }
171
172 #feature-social .feature-image
173 {
174 background-image: url(features/social.png);
175 }
176
177 #feature-tracking .feature-image
178 {
179 background-image: url(features/tracking.png);
180 } 263 }
181 264
182 .feature button 265 .feature button
183 { 266 {
184 cursor: pointer; 267 cursor: pointer;
185 position: relative; 268 position: relative;
186 top: 0px; 269 top: 0px;
187 padding: 5px 10px; 270 padding: 5px 10px;
188 *padding: 2px 3px; 271 *padding: 2px 3px;
189 font-weight: none; 272 font-weight: none;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 background: -ms-linear-gradient(bottom, #c5622b, #9d4f22); 342 background: -ms-linear-gradient(bottom, #c5622b, #9d4f22);
260 background: linear-gradient(bottom, #c5622b, #9d4f22); 343 background: linear-gradient(bottom, #c5622b, #9d4f22);
261 -webkit-transition: none; 344 -webkit-transition: none;
262 -moz-transition: none; 345 -moz-transition: none;
263 -o-transition: none; 346 -o-transition: none;
264 -ms-transition: none; 347 -ms-transition: none;
265 transition: none; 348 transition: none;
266 *zoom: 1; 349 *zoom: 1;
267 } 350 }
268 351
269 #shade 352 #activate-features
270 { 353 {
271 -webkit-transition: opacity 0.2s ease; 354 width: 100%;
272 -moz-transition: opacity 0.2s ease; 355 background-image: url("background-candomore.png");
273 -o-transition: opacity 0.2s ease; 356 margin: 30px 0 0 0;
274 -ms-transition: opacity 0.2s ease; 357 padding: 14px 0 14px 0;
275 transition: opacity 0.2s ease; 358 cursor: pointer;
276 opacity: 0.0; 359 color: #fff;
277 position: fixed; 360 font-size: 22px;
278 margin-left: 10px; 361 font-style: italic;
279 bottom: 70px; 362 text-decoration: underline;
280 z-index: 100;
281 }
282
283 .arrow
284 {
285 width: 0;
286 height: 0;
287 border: 30px solid transparent;
288 border-top-color: #000;
289 }
290
291 footer
292 {
293 position: fixed;
294 bottom: 0;
295 left: 0;
296 right: 0;
297 padding: 70px 0 0;
298 text-align: center; 363 text-align: center;
299 background: -webkit-linear-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 2 55, 1) 50px); 364 }
300 background: -moz-linear-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 1) 50px); 365
301 background: -o-linear-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 1 ) 50px); 366 #share
302 background: -ms-linear-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 1) 50px); 367 {
303 background: linear-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 1) 5 0px); 368 background-image: url(background-share.png);
304 } 369 padding: 50px 100px 40px 100px !important;
Thomas Greiner 2013/07/26 14:22:55 Why did you add !important? It works without it.
305 370 max-width: 760px;
306 footer h1 371 text-align: center;
307 { 372 }
308 margin: 0; 373
309 font-size: 18px; 374 #share h2
310 color: #666; 375 {
311 position: fixed; 376 color: #fff;
312 bottom: 70px; 377 margin: 10px 8px 10px 0;
313 left: 0; 378 text-align: center;
314 right: 0; 379 display: inline-block;
315 -webkit-transition: opacity .3s ease; 380 vertical-align: top;
316 -moz-transition: opacity .3s ease; 381 line-height: 38px;
317 -o-transition: opacity .3s ease; 382 font-size: 28px;
318 -ms-transition: opacity .3s ease; 383 }
319 transition: opacity .3s ease; 384
320 opacity: 1; 385 #donate-block
386 {
387 display: inline-block;
388 }
389
390 #share-block
391 {
392 display: inline-block;
393 max-width: 480px;
394 }
395
396 #share-facebook
397 {
398 background-image: url(social/facebook.png);
399 background-repeat: no-repeat;
Thomas Greiner 2013/07/26 14:22:55 You don't need background-repeat because width and
400 }
401
402 #share-twitter
403 {
404 background-image: url(social/twitter.png);
405 background-repeat: no-repeat;
Thomas Greiner 2013/07/26 14:22:55 You don't need background-repeat because width and
406 }
407
408 #share-gplus
409 {
410 background-image: url(social/googleplus.png);
411 background-repeat: no-repeat;
Thomas Greiner 2013/07/26 14:22:55 You don't need background-repeat because width and
412 }
413
414 #share-buttons > a
415 {
416 width: 56px;
417 height: 56px;
418 margin: 0 4px 0 0;
419 text-decoration: none;
420 display: inline-block;
421 }
422
423 #share-buttons
424 {
425 width: auto;
426 margin: 3px 0 0 0;
427 min-height: 59px;
428 cursor: pointer;
429 display: inline-block;
430 }
431
432 #dataCorruptionWarning
433 {
434 font-size: 200%;
435 line-height: 140%;
436 margin: 20px;
437 padding: 20px;
438 border: 3px solid red;
439 border-radius: 10px;
321 } 440 }
322 441
323 #social ul 442 #social ul
324 { 443 {
325 list-style: none; 444 list-style: none;
326 display: inline-block; 445 display: inline-block;
327 padding: 0; 446 padding: 0;
328 margin: 0; 447 margin: 0;
329 } 448 }
330 449
(...skipping 25 matching lines...) Expand all
356 bottom: 0px; 475 bottom: 0px;
357 } 476 }
358 477
359 .share-button 478 .share-button
360 { 479 {
361 display: inline-block; 480 display: inline-block;
362 width: 82px; 481 width: 82px;
363 height: 82px; 482 height: 82px;
364 } 483 }
365 484
366 #share-facebook
367 {
368 background-image: url(social/facebook.png);
369 }
370
371 #share-twitter
372 {
373 background-image: url(social/twitter.png);
374 }
375
376 #share-gplus
377 {
378 background-image: url(social/gplus.png);
379 }
380
381 #glass-pane, #share-popup 485 #glass-pane, #share-popup
382 { 486 {
383 visibility: hidden; 487 visibility: hidden;
384 opacity: 0; 488 opacity: 0;
385 -webkit-transition-property: opacity, visibility; 489 -webkit-transition-property: opacity, visibility;
386 -moz-transition-property: opacity, visibility; 490 -moz-transition-property: opacity, visibility;
387 -o-transition-property: opacity, visibility; 491 -o-transition-property: opacity, visibility;
388 -ms-transition-property: opacity, visibility; 492 -ms-transition-property: opacity, visibility;
389 transition-property: opacity, visibility; 493 transition-property: opacity, visibility;
390 } 494 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 531
428 #share-popup.visible 532 #share-popup.visible
429 { 533 {
430 -webkit-transition-duration: 0.15s; 534 -webkit-transition-duration: 0.15s;
431 -moz-transition-duration: 0.15s; 535 -moz-transition-duration: 0.15s;
432 -o-transition-duration: 0.15s; 536 -o-transition-duration: 0.15s;
433 -ms-transition-duration: 0.15s; 537 -ms-transition-duration: 0.15s;
434 transition-duration: 0.15s; 538 transition-duration: 0.15s;
435 } 539 }
436 540
541
Thomas Greiner 2013/07/26 14:22:55 :)
437 .toggle 542 .toggle
438 { 543 {
439 cursor: pointer; 544 cursor: pointer;
440 position: absolute; 545 position: relative;
441 display: inline-block; 546 display: inline-block;
442 top: 50%; 547 top: 50%;
443 height: 22px; 548 height: 22px;
444 margin: -21px 0px 7px 0px; 549 margin: 40px 0px 7px 0px;
445 border-radius: 9999px; 550 border-radius: 9999px;
446 box-shadow: 0 0 0 1px #999; 551 border: 1px solid #999;
447 overflow: hidden; 552 overflow: hidden;
448 -moz-user-select: none; 553 -moz-user-select: none;
449 -webkit-user-select: none; 554 -webkit-user-select: none;
450 user-select: none; 555 user-select: none;
451 } 556 }
452 557
453 .toggle:active 558 .toggle:active
454 { 559 {
455 cursor: wait; 560 cursor: wait;
456 } 561 }
457 562
458 .toggle-on, .toggle-off 563 .toggle-on, .toggle-off
459 { 564 {
460 min-width: 42px; 565 min-width: 42px;
461 height: 100%; 566 height: 100%;
462 font-size: 11px; 567 font-size: 11px;
463 font-weight: 500; 568 font-weight: 500;
464 text-align: center; 569 text-align: center;
465 line-height: 25px; 570 line-height: 23px;
466 } 571 }
467 572
468 .toggle-on 573 .toggle-on
469 { 574 {
470 padding: 0px 30px 0px 10px; 575 padding: 0px 30px 0px 10px;
471 color: rgba(255,255,255, 0.8); 576 color: rgba(255,255,255, 0.8);
472 text-shadow: 1px 1px rgba(0,0,0,0.2); 577 text-shadow: 1px 1px rgba(0,0,0,0.2);
473 box-shadow: inset 2px 2px 6px rgba(0,0,0,0.2); 578 box-shadow: inset 2px 2px 6px rgba(0,0,0,0.2);
474 background: rgb(69,163,31); 579 background: rgb(69,163,31);
475 } 580 }
476 581
477 .toggle-off 582 .toggle-off
478 { 583 {
479 padding: 0px 10px 0px 30px; 584 padding: 0px 10px 0px 30px;
480 color: rgba(0,0,0,0.6); 585 color: rgba(0,0,0,0.6);
481 text-shadow: 1px 1px rgba(255,255,255,0.2); 586 text-shadow: 1px 1px rgba(255,255,255,0.2);
482 background: #cfcfcf; 587 background: #cfcfcf;
483 background: -moz-linear-gradient(top, #cfcfcf 0%, #f5f5f5 100%); 588 background: -moz-linear-gradient(top, #cfcfcf 0%, #f5f5f5 100%);
484 background: -webkit-linear-gradient(top, #cfcfcf 0%,#f5f5f5 100%); 589 background: -webkit-linear-gradient(top, #cfcfcf 0%,#f5f5f5 100%);
485 background: linear-gradient(to bottom, #cfcfcf 0%,#f5f5f5 100%); 590 background: linear-gradient(to bottom, #cfcfcf 0%,#f5f5f5 100%);
486 } 591 }
487 592
593
488 .toggle-blob 594 .toggle-blob
489 { 595 {
490 position: absolute; 596 position: absolute;
491 top: 0px; 597 top: 0px;
492 right: 0px; 598 right: 0px;
493 height: 100%; 599 height: 100%;
494 width: 22px; 600 width: 22px;
495 border-radius: 50px; 601 border-radius: 50px;
496 box-shadow: 1px 1px 2px #888; 602 box-shadow: 1px 1px 2px #888;
497 background: #cfcfcf; 603 background: #cfcfcf;
498 background: -moz-linear-gradient(bottom, #cfcfcf 0%, #f5f5f5 100%); 604 background: -moz-linear-gradient(bottom, #cfcfcf 0%, #f5f5f5 100%);
499 background: -webkit-linear-gradient(bottom, #cfcfcf 0%,#f5f5f5 100%); 605 background: -webkit-linear-gradient(bottom, #cfcfcf 0%,#f5f5f5 100%);
500 background: linear-gradient(to top, #cfcfcf 0%,#f5f5f5 100%); 606 background: linear-gradient(to top, #cfcfcf 0%,#f5f5f5 100%);
501 } 607 }
502 608
503 .off .toggle-on 609 .off .toggle-on
504 { 610 {
505 margin-top: -22px; 611 margin-top: -22px;
506 } 612 }
507 613
508 .off .toggle-blob 614 .off .toggle-blob
509 { 615 {
510 left: 0px; 616 left: 0px;
511 right: auto; 617 right: auto;
512 } 618 }
513 619
514 /* Adjust font size on smaller screens */ 620 #donate
515 @media (max-height: 800px) 621 {
516 { 622 height: 24px;
517 body 623 display: inline-block;
518 { 624 margin: 15px 12px 10px 4px;
519 font-size: 19px; 625 font-size: 16px;
520 } 626 line-height: 24px;
521 } 627 color: #003366 !important;
Thomas Greiner 2013/07/26 14:22:55 Why did you add !important? It works without it be
522 628 cursor: pointer;
523 @media (max-height: 750px) 629 font-weight: bold;
524 { 630 padding: 3px 16px;
525 body 631 text-decoration: none;
526 { 632 border-radius: 20px;
527 font-size: 17px; 633 border: 1px solid #FF9933;
528 } 634 overflow: hidden;
529 } 635 font-family: arial, sans-serif;
530 636 background-image: url(donate.png);
531 @media (max-height: 700px) 637 background-repeat: repeat-x;
532 { 638 }
533 body
534 {
535 font-size: 16px;
536 }
537 }
OLDNEW

Powered by Google App Engine
This is Rietveld