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. */
6 @apply
(--downloads-shared-style
);
15 :host
(:not
(:first-of-type
):not
([hide-date
])) {
16 border-top: 1px solid rgba
(0, 0, 0, .14);
20 :host
(:first-of-type
),
21 :host
(:not
(:first-of-type
):not
([hide-date
])) {
27 flex: 1 0 var
(--downloads-side-column-basis
);
36 :host
([hide-date
]) #date-container
{
42 border-radius: 2px; /* TODO(dbeam): why does this differ from Polymer? */
46 width: var
(--downloads-item-width
);
50 -webkit-border-start: 1px #d8d8d8 solid
;
53 flex-direction: column
;
54 padding: 16px 16px 12px 16px;
57 #content:not
(.is-active
) #details
{
64 justify-content: center
;
73 #content:not
(.is-active
) .icon
{
74 -webkit-filter: grayscale
(100%);
78 -webkit-mask-image: url
(../../../../ui/webui/resources/images/warning.svg);
79 -webkit-mask-repeat: no-repeat
;
80 -webkit-mask-size: 100%;
81 background: rgb
(217, 84, 61);
92 word-break: break-all
;
96 -webkit-margin-end: 12px; /* Only really affects #tag. */
105 color: rgb
(35, 114, 236);
117 text-decoration: none
;
118 text-overflow: ellipsis
;
123 color: rgb
(51, 103, 214);
127 #description:not
(:empty
),
132 .is-active #description {
136 .dangerous #description {
137 color: rgb
(217, 84, 61);
141 --paper-progress-active-color: rgb
(54, 126, 237);
142 --paper-progress-container-color: rgb
(223, 222, 223);
146 /* TODO(dbeam): open up a CSS mixin instead in Polymer. */
147 #progress /deep
/ #progressContainer
{
152 align-self: flex-start
;
157 --paper-icon-button: {
161 --iron-icon-height: 16px;
162 --iron-icon-width: 16px;
167 content: -webkit-image-set
(url
(1x/incognito_marker.png) 1x,
168 url
(2x/incognito_marker.png) 2x);
173 @media not all and
(max-width: 1024px) {
174 #date-container > * {
175 -webkit-margin-start: 24px;
179 @media all and
(max-width: 1024px) {
180 /* In narrow windows, put the dates on top instead of on the side. */
182 flex-direction: column
;
185 :host
([hide-date
]) #date-container
,
195 flex: none
!important
;
197 width: var
(--downloads-item-width
);