MD downloads: implement real incognito marker courtesy of bettes@
[chromium-blink-merge.git] / chrome / browser / resources / md_downloads / item.css
blobd5353526b1f267874fd9c0c63fb1f49e51a10c9f
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 @apply(--downloads-shared-style);
7 display: flex;
8 margin: 32px 0;
11 :host([hide-date]) {
12 margin-top: -16px;
15 #date-container,
16 #end-cap {
17 flex: 1 0 var(--downloads-side-column-basis);
20 #date-container > * {
21 color: #616161;
22 font-size: 107.69%;
23 font-weight: bold;
26 :host([hide-date]) #date-container {
27 visibility: hidden;
30 #content {
31 background: white;
32 border-radius: 2px; /* TODO(dbeam): why does this differ from Polymer? */
33 display: flex;
34 flex: none;
35 min-height: 96px;
36 width: var(--downloads-item-width);
39 #details {
40 -webkit-border-start: 1px #d8d8d8 solid;
41 display: flex;
42 flex: 1;
43 flex-direction: column;
44 padding: 16px 16px 12px 16px;
47 #content:not(.is-active) #details {
48 color: #bababa;
51 .icon-wrapper {
52 align-self: center;
53 flex: none;
54 justify-content: center;
55 margin: 0 32px;
58 .icon {
59 height: 32px;
60 width: 32px;
63 #content:not(.is-active) .icon {
64 -webkit-filter: grayscale(100%);
67 #warning {
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);
74 #name,
75 #file-link,
76 #url {
77 max-width: 100%;
80 #name,
81 #file-link {
82 word-break: break-all;
85 #name {
86 -webkit-margin-end: 12px; /* Only really affects #tag. */
87 font-weight: bold;
90 .is-active #name {
91 color: #212121;
94 .dangerous #name {
95 color: rgb(35, 114, 236);
98 #tag {
99 color: #5a5a5a;
100 font-weight: bold;
103 #url {
104 color: inherit;
105 margin-top: 6px;
106 overflow: hidden;
107 text-decoration: none;
108 text-overflow: ellipsis;
109 white-space: nowrap;
112 .is-active #url {
113 color: rgb(51, 103, 214);
116 #progress,
117 #description:not(:empty),
118 .controls {
119 margin-top: 16px;
122 .is-active #description {
123 color: #616161;
126 .dangerous #description {
127 color: rgb(217, 84, 61);
130 #progress {
131 --paper-progress-active-color: rgb(54, 126, 237);
132 --paper-progress-container-color: rgb(223, 222, 223);
133 width: auto;
136 /* TODO(dbeam): open up a CSS mixin instead in Polymer. */
137 #progress /deep/ #progressContainer {
138 border-radius: 2px;
141 #remove-wrapper {
142 align-self: flex-start;
143 margin: 0;
146 #remove {
147 --paper-icon-button: {
148 height: 16px;
149 width: 16px;
151 --iron-icon-height: 16px;
152 --iron-icon-width: 16px;
155 #incognito {
156 bottom: 16px;
157 content: -webkit-image-set(url(1x/incognito_marker.png) 1x,
158 url(2x/incognito_marker.png) 2x);
159 position: absolute;
160 right: 10px;
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,
166 #since) {
167 border-top: 1px solid rgba(0, 0, 0, .2); /* TODO(dbeam): real color. */
168 padding-top: 32px;
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. */
178 :host {
179 flex-direction: column;
182 :host([hide-date]) #date-container,
183 #end-cap {
184 display: none;
187 #content {
188 margin: 0 auto;
191 #date-container {
192 flex: none !important;
193 margin: 0 auto 32px;
194 width: var(--downloads-item-width);