OLD | NEW |
1 html { | 1 html { |
2 /* This is needed because of chrome://theme/css/new_tab.css */ | 2 /* This is needed because of chrome://theme/css/new_tab.css */ |
3 height: 100%; | 3 height: 100%; |
4 } | 4 } |
5 | 5 |
6 body { | 6 body { |
7 margin: 0; | 7 margin: 0; |
8 height: 100%; | 8 height: 100%; |
9 overflow: auto; | 9 overflow: auto; |
10 -webkit-user-select: none; | 10 -webkit-user-select: none; |
(...skipping 12 matching lines...) Expand all Loading... |
23 } | 23 } |
24 | 24 |
25 body.loading #main { | 25 body.loading #main { |
26 /* We start out hidden to prevent glitchiness as the app and most visited | 26 /* We start out hidden to prevent glitchiness as the app and most visited |
27 data flows in. */ | 27 data flows in. */ |
28 visibility: hidden; | 28 visibility: hidden; |
29 } | 29 } |
30 | 30 |
31 #main, | 31 #main, |
32 .section, | 32 .section, |
33 .maxiview { | 33 .maxiview, |
| 34 #login-container, |
| 35 #notification-container { |
34 width: 920px; | 36 width: 920px; |
35 } | 37 } |
36 | 38 |
37 html[dir=rtl] #main { | 39 html[dir=rtl] #main { |
38 background-position-x: 100%; | 40 background-position-x: 100%; |
39 } | 41 } |
40 | 42 |
41 html[mode=app-launcher] #main { | 43 html[mode=app-launcher] #main { |
42 min-height: 50px; | 44 min-height: 50px; |
43 } | 45 } |
(...skipping 22 matching lines...) Expand all Loading... |
66 } | 68 } |
67 | 69 |
68 .hide { | 70 .hide { |
69 opacity: 0 !important; | 71 opacity: 0 !important; |
70 visibility: hidden !important; | 72 visibility: hidden !important; |
71 pointer-events: none; | 73 pointer-events: none; |
72 } | 74 } |
73 | 75 |
74 /* Notification */ | 76 /* Notification */ |
75 | 77 |
| 78 #notification-container { |
| 79 position: fixed; |
| 80 } |
| 81 |
76 #notification { | 82 #notification { |
77 position: relative; | 83 position: relative; |
78 background-color: hsl(52, 100%, 80%); | 84 background-color: hsl(52, 100%, 80%); |
79 border: 1px solid rgb(211, 211, 211); | 85 border: 1px solid rgb(211, 211, 211); |
80 border-radius: 6px; | 86 border-radius: 6px; |
81 padding: 7px 15px; | 87 padding: 7px 15px; |
82 white-space: nowrap; | 88 white-space: nowrap; |
83 display: table; | 89 display: table; |
84 /* Set the height and margin so that the element does not use any vertical | 90 margin: 2px auto; |
85 space */ | |
86 height: 16px; | |
87 margin: -44px auto 12px auto; | |
88 font-weight: bold; | 91 font-weight: bold; |
89 opacity: 0; | 92 opacity: 0; |
90 pointer-events: none; | 93 pointer-events: none; |
91 -webkit-transition: opacity .15s; | 94 -webkit-transition: opacity .15s; |
92 z-index: 1; | 95 z-index: 1; |
93 color: black; | 96 color: black; |
94 } | 97 } |
95 | 98 |
96 #notification.first-run { | 99 #notification.first-run { |
97 padding: 5px 13px; /* subtract the border witdh */ | 100 padding: 5px 13px; /* subtract the border witdh */ |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 position: fixed; | 308 position: fixed; |
306 font-size: 92%; | 309 font-size: 92%; |
307 } | 310 } |
308 | 311 |
309 html[anim=true][enable-section-animations=true] .section { | 312 html[anim=true][enable-section-animations=true] .section { |
310 -webkit-transition: top .15s; | 313 -webkit-transition: top .15s; |
311 } | 314 } |
312 | 315 |
313 #login-container { | 316 #login-container { |
314 display: none; | 317 display: none; |
315 height: 0; /* This should not take any vertical space and this simpler than | 318 margin-top: 5px; |
316 position absolute which changes the width to intrinsic */ | 319 position: fixed; |
317 text-align: end; | 320 text-align: end; |
318 } | 321 } |
319 | 322 |
320 .section.disabled, | 323 .section.disabled, |
321 #closed-sections-bar .disabled { | 324 #closed-sections-bar .disabled { |
322 display: none !important; | 325 display: none !important; |
323 } | 326 } |
324 | 327 |
325 .section > h2 { | 328 .section > h2 { |
326 font-family: Helvetica, Arial, sans-serif; | 329 font-family: Helvetica, Arial, sans-serif; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 .miniview > span:last-child { | 490 .miniview > span:last-child { |
488 margin-right: 0; | 491 margin-right: 0; |
489 } | 492 } |
490 | 493 |
491 /* small */ | 494 /* small */ |
492 | 495 |
493 @media (max-width: 940px) { | 496 @media (max-width: 940px) { |
494 | 497 |
495 #main, | 498 #main, |
496 .section, | 499 .section, |
497 .maxiview { | 500 .maxiview, |
| 501 #login-container, |
| 502 #notification-container { |
498 width: 692px; | 503 width: 692px; |
499 } | 504 } |
500 | 505 |
501 #notification > * { | 506 #notification > * { |
502 max-width: 300px; | 507 max-width: 300px; |
503 } | 508 } |
504 | 509 |
505 #notification > span > .blacklist-title { | 510 #notification > span > .blacklist-title { |
506 max-width: 15ex; | 511 max-width: 15ex; |
507 } | 512 } |
508 } | 513 } |
509 | 514 |
510 /* Ensure we have at least 10px horizontal marging. */ | 515 /* Ensure we have at least 10px horizontal marging. */ |
511 @media (max-width: 712px) { | 516 @media (max-width: 712px) { |
512 #main { | 517 #main { |
513 margin-left: 10px; | 518 margin-left: 10px; |
514 margin-right: 10px; | 519 margin-right: 10px; |
515 } | 520 } |
516 } | 521 } |
OLD | NEW |