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
3 * found in the LICENSE file. */
14 :host
(:first-of-type
),
15 :host
(:not
(:first-of-type
):not
([hide-date
])) {
21 flex: 1 0 var
(--downloads-side-column-basis
);
29 :host
([hide-date
]) #date-container
{
35 border-radius: 2px; /* TODO(dbeam): change to paper-card instead. */
39 width: var
(--downloads-item-width
);
42 #content[elevation
='1'] {
43 box-shadow: 0 2px 2px 0 rgba
(0, 0, 0, .05), 0 1px 4px 0 rgba
(0, 0, 0, .08),
44 0 3px 1px -2px rgba
(0, 0, 0, .2);
48 -webkit-border-start: 1px #d8d8d8 solid
;
49 -webkit-padding-end: 16px;
50 -webkit-padding-start: 24px;
53 flex-direction: column
;
58 #content:not
(.is-active
) #details
{
62 #content:not
(.is-active
) #name
{
63 text-decoration: line-through
;
69 justify-content: center
;
78 #content:-webkit-any
(.show-progress
, .dangerous
) #file-icon-wrapper
{
79 /* TODO(dbeam): animate from top-aligned to centered when items finish? */
80 align-self: flex-start
;
84 #content:not
(.is-active
) .icon
{
85 -webkit-filter: grayscale
(100%);
90 -webkit-mask-image: url
(../../../../ui/webui/resources/images/warning.svg);
91 -webkit-mask-repeat: no-repeat
;
92 -webkit-mask-size: 100%;
93 background: rgb
(255, 193, 7);
105 word-break: break-all
;
109 -webkit-margin-end: 12px; /* Only really affects #tag. */
112 .is-active :-webkit-any(#name, #file-link, #pause, #resume, #show) {
113 color: rgb
(51, 103, 214);
125 text-decoration: none
;
126 text-overflow: ellipsis
;
135 #description:not
(:empty
),
140 .is-active #description {
144 .dangerous #description {
145 color: rgb
(239, 108, 0);
149 --paper-progress-active-color: rgb
(54, 126, 237);
150 --paper-progress-container-color: rgb
(223, 222, 223);
155 -webkit-margin-start: -8px;
166 align-self: flex-start
;
171 --iron-icon-height: 16px;
172 --iron-icon-width: 16px;
181 content: -webkit-image-set
(url
(1x/incognito_marker.png) 1x,
182 url
(2x/incognito_marker.png) 2x);
187 @media not all and
(max-width: 1024px) {
188 /* Only show rule separators in wide mode. */
189 :host
(:not
(:first-of-type
):not
([hide-date
])) {
190 border-top: 1px solid rgba
(0, 0, 0, .14);
194 #date-container > * {
195 -webkit-margin-start: 24px;
199 @media all and
(max-width: 1024px) {
200 /* In narrow windows, put the dates on top instead of on the side. */
202 flex-direction: column
;
205 :host
([hide-date
]) #date-container
,
215 flex: none
!important
;
217 width: var
(--downloads-item-width
);