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. */
7 flex-direction: column
;
15 margin: 18px auto
16px; /* This top margin + :host top margin = 30px. */
16 width: var
(--downloads-item-width
);
21 border-radius: 2px; /* TODO(dbeam): change to paper-card instead. */
26 width: var
(--downloads-item-width
);
29 #content[elevation
='1'] {
30 box-shadow: 0 2px 2px 0 rgba
(0, 0, 0, .05), 0 1px 4px 0 rgba
(0, 0, 0, .08),
31 0 3px 1px -2px rgba
(0, 0, 0, .2);
35 -webkit-border-start: 1px #d8d8d8 solid
;
36 -webkit-padding-end: 16px;
37 -webkit-padding-start: 24px;
40 flex-direction: column
;
45 #content:not
(.is-active
) #details
{
49 #content:not
(.is-active
) #name
{
50 text-decoration: line-through
;
56 justify-content: center
;
65 #content:-webkit-any
(.show-progress
, .dangerous
) #file-icon-wrapper
{
66 /* TODO(dbeam): animate from top-aligned to centered when items finish? */
67 align-self: flex-start
;
71 #content:not
(.is-active
) .icon
{
72 -webkit-filter: grayscale
(100%);
77 -webkit-mask-image: url
(../../../../ui/webui/resources/images/warning.svg);
78 -webkit-mask-repeat: no-repeat
;
79 -webkit-mask-size: 100%;
80 background: rgb
(255, 193, 7);
92 word-break: break-all
;
96 -webkit-margin-end: 12px; /* Only really affects #tag. */
99 .is-active :-webkit-any(#name, #file-link, #pause, #resume, #show) {
100 color: rgb
(51, 103, 214);
112 text-decoration: none
;
113 text-overflow: ellipsis
;
122 #description:not
(:empty
),
127 .is-active #description {
131 .dangerous #description {
132 color: rgb
(239, 108, 0);
136 --paper-progress-active-color: rgb
(54, 126, 237);
137 --paper-progress-container-color: rgb
(223, 222, 223);
142 -webkit-margin-start: -8px;
153 align-self: flex-start
;
158 --iron-icon-height: 16px;
159 --iron-icon-width: 16px;
168 content: -webkit-image-set
(url
(1x/incognito_marker.png) 1x,
169 url
(2x/incognito_marker.png) 2x);