Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / resources / md_downloads / item.css
blobe2bc0b03d75550f23085a7f0162354f9d561f99e
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. */
5 :host {
6 display: flex;
7 margin: 24px 0;
10 :host([hide-date]) {
11 margin-top: -12px;
14 :host(:first-of-type),
15 :host(:not(:first-of-type):not([hide-date])) {
16 margin-top: 30px;
19 #date-container,
20 #end-cap {
21 flex: 1 0 var(--downloads-side-column-basis);
24 #date-container > * {
25 color: #7c7c7c;
26 font-weight: 500;
29 :host([hide-date]) #date-container {
30 visibility: hidden;
33 #content {
34 background: white;
35 border-radius: 2px; /* TODO(dbeam): change to paper-card instead. */
36 display: flex;
37 flex: none;
38 min-height: 103px;
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);
47 #details {
48 -webkit-border-start: 1px #d8d8d8 solid;
49 -webkit-padding-end: 16px;
50 -webkit-padding-start: 24px;
51 display: flex;
52 flex: 1;
53 flex-direction: column;
54 padding-bottom: 12px;
55 padding-top: 16px;
58 #content:not(.is-active) #details {
59 color: #bababa;
62 #content:not(.is-active) #name {
63 text-decoration: line-through;
66 .icon-wrapper {
67 align-self: center;
68 flex: none;
69 justify-content: center;
70 margin: 0 24px;
73 .icon {
74 height: 32px;
75 width: 32px;
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;
81 padding-top: 16px;
84 #content:not(.is-active) .icon {
85 -webkit-filter: grayscale(100%);
86 opacity: .5;
89 #warning {
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);
96 #name,
97 #file-link,
98 #url {
99 max-width: 100%;
102 #name,
103 #file-link {
104 font-weight: 500;
105 word-break: break-all;
108 #name {
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);
116 #tag {
117 color: #5a5a5a;
118 font-weight: 500;
121 #url {
122 color: inherit;
123 margin-top: 6px;
124 overflow: hidden;
125 text-decoration: none;
126 text-overflow: ellipsis;
127 white-space: nowrap;
130 .is-active #url {
131 color: #969696;
134 #progress,
135 #description:not(:empty),
136 .controls {
137 margin-top: 16px;
140 .is-active #description {
141 color: #616161;
144 .dangerous #description {
145 color: rgb(239, 108, 0);
148 #progress {
149 --paper-progress-active-color: rgb(54, 126, 237);
150 --paper-progress-container-color: rgb(223, 222, 223);
151 width: auto;
154 #content:not(.show-progress) #progress {
155 display: none;
158 .controls {
159 -webkit-margin-start: -8px;
162 #cancel,
163 #retry,
164 .keep,
165 .discard {
166 color: #5a5a5a;
169 #remove-wrapper {
170 align-self: flex-start;
171 margin: 0;
174 #remove {
175 --iron-icon-height: 16px;
176 --iron-icon-width: 16px;
177 color: #969696;
178 height: 16px;
179 padding: 8px;
180 width: 16px;
183 #incognito {
184 bottom: 20px;
185 content: -webkit-image-set(url(1x/incognito_marker.png) 1x,
186 url(2x/incognito_marker.png) 2x);
187 position: absolute;
188 right: 10px;
191 @media not all and (max-width: 1024px) {
192 /* Only show rule separators in wide mode. */
193 :host(:not(:first-of-type):not([hide-date])) {
194 border-top: 1px solid rgba(0, 0, 0, .14);
195 padding-top: 30px;
198 #date-container > * {
199 -webkit-margin-start: 24px;
203 @media all and (max-width: 1024px) {
204 /* In narrow windows, put the dates on top instead of on the side. */
205 :host {
206 flex-direction: column;
209 :host([hide-date]) #date-container,
210 #end-cap {
211 display: none;
214 #content {
215 margin: 0 auto;
218 #date-container {
219 flex: none !important;
220 margin: 0 auto 16px;
221 width: var(--downloads-item-width);