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
);
17 flex: 1 0 var
(--downloads-side-column-basis
);
26 :host
([hide-date
]) #date-container
{
32 border-radius: 2px; /* TODO(dbeam): why does this differ from Polymer? */
36 width: var
(--downloads-item-width
);
40 -webkit-border-start: 1px #d8d8d8 solid
;
43 flex-direction: column
;
44 padding: 16px 16px 12px 16px;
47 #content:not
(.is-active
) #details
{
54 justify-content: center
;
63 #content:not
(.is-active
) .icon
{
64 -webkit-filter: grayscale
(100%);
68 -webkit-mask-image: url
(../../../../ui/webui/resources/images/warning.svg);
69 -webkit-mask-repeat: no-repeat
;
70 -webkit-mask-size: 100%;
71 background: rgb
(217, 84, 61);
82 word-break: break-all
;
86 -webkit-margin-end: 12px; /* Only really affects #tag. */
95 color: rgb
(35, 114, 236);
107 text-decoration: none
;
108 text-overflow: ellipsis
;
113 color: rgb
(51, 103, 214);
117 #description:not
(:empty
),
122 .is-active #description {
126 .dangerous #description {
127 color: rgb
(217, 84, 61);
131 --paper-progress-active-color: rgb
(54, 126, 237);
132 --paper-progress-container-color: rgb
(223, 222, 223);
136 /* TODO(dbeam): open up a CSS mixin instead in Polymer. */
137 #progress /deep
/ #progressContainer
{
142 align-self: flex-start
;
147 --paper-icon-button: {
151 --iron-icon-height: 16px;
152 --iron-icon-width: 16px;
157 content: -webkit-image-set
(url
(1x/incognito_marker.png) 1x,
158 url
(2x/incognito_marker.png) 2x);
163 @media not all and
(max-width: 1024px) {
164 /* Only show date separators in wide mode. */
165 :host
(:not
(:first-of-type
):not
([hide-date
])) :-webkit-any
(#content-wrapper
,
167 border-top: 1px solid rgba
(0, 0, 0, .2); /* TODO(dbeam): real color. */
171 #date-container > * {
172 -webkit-margin-start: 24px;
176 @media all and
(max-width: 1024px) {
177 /* In narrow windows, put the dates on top instead of on the side. */
179 flex-direction: column
;
182 :host
([hide-date
]) #date-container
,
192 flex: none
!important
;
194 width: var
(--downloads-item-width
);