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 @apply(--downloads-shared-style); | 6 @apply(--downloads-shared-style); |
7 display: flex; | 7 display: flex; |
8 margin: 24px 0; | 8 margin: 24px 0; |
9 } | 9 } |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... | |
32 font-size: 92.3%; | 32 font-size: 92.3%; |
33 font-weight: bold; | 33 font-weight: bold; |
34 } | 34 } |
35 | 35 |
36 :host([hide-date]) #date-container { | 36 :host([hide-date]) #date-container { |
37 visibility: hidden; | 37 visibility: hidden; |
38 } | 38 } |
39 | 39 |
40 #content { | 40 #content { |
41 background: white; | 41 background: white; |
42 border-radius: 2px; /* TODO(dbeam): why does this differ from Polymer? */ | 42 border-radius: 2px; /* TODO(dbeam): why does this differ from Polymer? */ |
michaelpg
2015/08/18 19:57:07
Unrelated to this CL, but at some point you can re
| |
43 display: flex; | 43 display: flex; |
44 flex: none; | 44 flex: none; |
45 min-height: 103px; | 45 min-height: 103px; |
46 width: var(--downloads-item-width); | 46 width: var(--downloads-item-width); |
47 } | 47 } |
48 | 48 |
49 #details { | 49 #details { |
50 -webkit-border-start: 1px #d8d8d8 solid; | 50 -webkit-border-start: 1px #d8d8d8 solid; |
51 display: flex; | 51 display: flex; |
52 flex: 1; | 52 flex: 1; |
(...skipping 10 matching lines...) Expand all Loading... | |
63 flex: none; | 63 flex: none; |
64 justify-content: center; | 64 justify-content: center; |
65 margin: 0 32px; | 65 margin: 0 32px; |
66 } | 66 } |
67 | 67 |
68 .icon { | 68 .icon { |
69 height: 32px; | 69 height: 32px; |
70 width: 32px; | 70 width: 32px; |
71 } | 71 } |
72 | 72 |
73 #content.show-progress #file-icon-wrapper { | |
74 /* TODO(dbeam): animate from top-aligned to centered when items finish? */ | |
75 align-self: flex-start; | |
76 padding-top: 16px; | |
77 } | |
78 | |
73 #content:not(.is-active) .icon { | 79 #content:not(.is-active) .icon { |
74 -webkit-filter: grayscale(100%); | 80 -webkit-filter: grayscale(100%); |
75 } | 81 } |
76 | 82 |
77 #warning { | 83 #warning { |
78 -webkit-mask-image: url(../../../../ui/webui/resources/images/warning.svg); | 84 -webkit-mask-image: url(../../../../ui/webui/resources/images/warning.svg); |
79 -webkit-mask-repeat: no-repeat; | 85 -webkit-mask-repeat: no-repeat; |
80 -webkit-mask-size: 100%; | 86 -webkit-mask-size: 100%; |
81 background: rgb(217, 84, 61); | 87 background: rgb(217, 84, 61); |
82 } | 88 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 .dangerous #description { | 143 .dangerous #description { |
138 color: rgb(217, 84, 61); | 144 color: rgb(217, 84, 61); |
139 } | 145 } |
140 | 146 |
141 #progress { | 147 #progress { |
142 --paper-progress-active-color: rgb(54, 126, 237); | 148 --paper-progress-active-color: rgb(54, 126, 237); |
143 --paper-progress-container-color: rgb(223, 222, 223); | 149 --paper-progress-container-color: rgb(223, 222, 223); |
144 width: auto; | 150 width: auto; |
145 } | 151 } |
146 | 152 |
147 /* TODO(dbeam): open up a CSS mixin instead in Polymer. */ | 153 #content:not(.show-progress) #progress { |
148 #progress /deep/ #progressContainer { | 154 display: none; |
149 border-radius: 2px; | |
150 } | 155 } |
151 | 156 |
152 #cancel, | 157 #cancel, |
153 #retry, | 158 #retry, |
154 .discard { | 159 .discard { |
155 color: #5a5a5a; | 160 color: #5a5a5a; |
156 } | 161 } |
157 | 162 |
158 #remove-wrapper { | 163 #remove-wrapper { |
159 align-self: flex-start; | 164 align-self: flex-start; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
198 #content { | 203 #content { |
199 margin: 0 auto; | 204 margin: 0 auto; |
200 } | 205 } |
201 | 206 |
202 #date-container { | 207 #date-container { |
203 flex: none !important; | 208 flex: none !important; |
204 margin: 0 auto 30px; | 209 margin: 0 auto 30px; |
205 width: var(--downloads-item-width); | 210 width: var(--downloads-item-width); |
206 } | 211 } |
207 } | 212 } |
OLD | NEW |