OLD | NEW |
---|---|
1 /* Copyright 2015 The Chromium Authors. All rights reserved. | 1 /* Copyright 2015 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 :host { | 5 :host { |
6 display: flex; | 6 display: flex; |
7 flex: 1 0; | 7 flex: 1 0; |
8 flex-direction: column; | 8 flex-direction: column; |
9 height: 100%; | 9 height: 100%; |
10 z-index: 0; | |
10 } | 11 } |
11 | 12 |
12 @media screen and (max-width: 1024px) { | 13 @media screen and (max-width: 1024px) { |
13 :host { | 14 :host { |
14 flex-basis: 670px; /* 622 card width + 24 left margin + 24 right margin. */ | 15 flex-basis: 670px; /* 622 card width + 24 left margin + 24 right margin. */ |
15 } | 16 } |
16 } | 17 } |
17 | 18 |
19 #toolbar { | |
20 position: relative; | |
21 z-index: 1; | |
22 } | |
23 | |
24 #toolbar::after { | |
25 box-shadow: inset 0 5px 6px -3px rgba(0, 0, 0, 0.4); | |
26 content: ''; | |
tsergeant
2016/09/16 00:44:10
Hmm, good idea. We should try switching to a pseud
| |
27 display: block; | |
28 height: 6px; | |
29 opacity: 0; | |
30 position: absolute; | |
31 top: 100%; | |
32 transition: opacity 500ms; | |
33 width: 100%; | |
34 } | |
35 | |
36 :host([has-shadow_]) #toolbar::after { | |
37 opacity: 1; | |
38 } | |
39 | |
18 #downloads-list { | 40 #downloads-list { |
19 /* TODO(dbeam): we're not setting scrollTarget explicitly, yet | 41 /* TODO(dbeam): we're not setting scrollTarget explicitly, yet |
20 * style="overflow: auto" is still being set by <iron-list>'s JS. Weird. */ | 42 * style="overflow: auto" is still being set by <iron-list>'s JS. Weird. */ |
21 overflow-y: overlay !important; | 43 overflow-y: overlay !important; |
22 } | 44 } |
23 | 45 |
24 #no-downloads, | 46 #no-downloads, |
25 #downloads-list { | 47 #downloads-list { |
26 flex: 1; | 48 flex: 1; |
27 } | 49 } |
(...skipping 15 matching lines...) Expand all Loading... | |
43 min-height: min-content; | 65 min-height: min-content; |
44 } | 66 } |
45 | 67 |
46 #no-downloads .illustration { | 68 #no-downloads .illustration { |
47 background: -webkit-image-set( | 69 background: -webkit-image-set( |
48 url(chrome://downloads/1x/no_downloads.png) 1x, | 70 url(chrome://downloads/1x/no_downloads.png) 1x, |
49 url(chrome://downloads/2x/no_downloads.png) 2x) no-repeat center center; | 71 url(chrome://downloads/2x/no_downloads.png) 2x) no-repeat center center; |
50 height: 144px; /* Matches natural image height. */ | 72 height: 144px; /* Matches natural image height. */ |
51 margin-bottom: 32px; | 73 margin-bottom: 32px; |
52 } | 74 } |
OLD | NEW |