Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Side by Side Diff: chrome/browser/resources/md_downloads/item.css

Issue 1294253003: MD Downloads: update basic cards (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* Copyright 2015 The Chromium Authors. All rights reserved. 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 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 :host { 5 :host {
6 @apply(--downloads-shared-style); 6 @apply(--downloads-shared-style);
7 display: flex; 7 display: flex;
8 margin: 24px 0; 8 margin: 24px 0;
9 } 9 }
10 10
(...skipping 24 matching lines...) Expand all
35 35
36 :host([hide-date]) #date-container { 36 :host([hide-date]) #date-container {
37 visibility: hidden; 37 visibility: hidden;
38 } 38 }
39 39
40 #content { 40 #content {
41 background: white; 41 background: white;
42 border-radius: 2px; /* TODO(dbeam): why does this differ from Polymer? */ 42 border-radius: 2px; /* TODO(dbeam): why does this differ from Polymer? */
43 display: flex; 43 display: flex;
44 flex: none; 44 flex: none;
45 min-height: 96px; 45 min-height: 103px;
46 width: var(--downloads-item-width); 46 width: var(--downloads-item-width);
47 } 47 }
48 48
49 #details { 49 #details {
50 -webkit-border-start: 1px #d8d8d8 solid; 50 -webkit-border-start: 1px #d8d8d8 solid;
51 display: flex; 51 display: flex;
52 flex: 1; 52 flex: 1;
53 flex-direction: column; 53 flex-direction: column;
54 padding: 16px 16px 12px 16px; 54 padding: 16px 16px 12px 16px;
55 } 55 }
(...skipping 26 matching lines...) Expand all
82 } 82 }
83 83
84 #name, 84 #name,
85 #file-link, 85 #file-link,
86 #url { 86 #url {
87 max-width: 100%; 87 max-width: 100%;
88 } 88 }
89 89
90 #name, 90 #name,
91 #file-link { 91 #file-link {
92 font-weight: bold;
92 word-break: break-all; 93 word-break: break-all;
93 } 94 }
94 95
95 #name { 96 #name {
96 -webkit-margin-end: 12px; /* Only really affects #tag. */ 97 -webkit-margin-end: 12px; /* Only really affects #tag. */
97 font-weight: bold;
98 }
99
100 .is-active #name {
101 color: #212121;
102 } 98 }
103 99
104 .dangerous #name { 100 .dangerous #name {
105 color: rgb(35, 114, 236); 101 color: rgb(35, 114, 236);
106 } 102 }
107 103
104 /* TODO(dbeam): should .keep be a scarier/different color? */
105 .is-active :-webkit-any(#file-link, #pause, #resume, #show, .keep) {
106 color: rgb(51, 103, 214);
107 }
108
108 #tag { 109 #tag {
109 color: #5a5a5a; 110 color: #5a5a5a;
110 font-weight: bold; 111 font-weight: bold;
111 } 112 }
112 113
113 #url { 114 #url {
114 color: inherit; 115 color: inherit;
115 margin-top: 6px; 116 margin-top: 6px;
116 overflow: hidden; 117 overflow: hidden;
117 text-decoration: none; 118 text-decoration: none;
118 text-overflow: ellipsis; 119 text-overflow: ellipsis;
119 white-space: nowrap; 120 white-space: nowrap;
120 } 121 }
121 122
122 .is-active #url { 123 .is-active #url {
123 color: rgb(51, 103, 214); 124 color: #969696;
124 } 125 }
125 126
126 #progress, 127 #progress,
127 #description:not(:empty), 128 #description:not(:empty),
128 .controls { 129 .controls {
129 margin-top: 16px; 130 margin-top: 16px;
130 } 131 }
131 132
132 .is-active #description { 133 .is-active #description {
133 color: #616161; 134 color: #616161;
134 } 135 }
135 136
136 .dangerous #description { 137 .dangerous #description {
137 color: rgb(217, 84, 61); 138 color: rgb(217, 84, 61);
138 } 139 }
139 140
140 #progress { 141 #progress {
141 --paper-progress-active-color: rgb(54, 126, 237); 142 --paper-progress-active-color: rgb(54, 126, 237);
142 --paper-progress-container-color: rgb(223, 222, 223); 143 --paper-progress-container-color: rgb(223, 222, 223);
143 width: auto; 144 width: auto;
144 } 145 }
145 146
146 /* TODO(dbeam): open up a CSS mixin instead in Polymer. */ 147 /* TODO(dbeam): open up a CSS mixin instead in Polymer. */
147 #progress /deep/ #progressContainer { 148 #progress /deep/ #progressContainer {
148 border-radius: 2px; 149 border-radius: 2px;
149 } 150 }
150 151
152 #cancel,
153 #retry,
154 .discard {
155 color: #5a5a5a;
156 }
157
151 #remove-wrapper { 158 #remove-wrapper {
152 align-self: flex-start; 159 align-self: flex-start;
153 margin: 0; 160 margin: 0;
154 } 161 }
155 162
156 #remove { 163 #remove {
164 --iron-icon-height: 20px;
165 --iron-icon-width: 20px;
157 --paper-icon-button: { 166 --paper-icon-button: {
158 height: 16px; 167 height: 20px;
159 width: 16px; 168 padding: 6px;
169 width: 20px;
160 }; 170 };
161 --iron-icon-height: 16px;
162 --iron-icon-width: 16px;
163 } 171 }
164 172
165 #incognito { 173 #incognito {
166 bottom: 16px; 174 bottom: 16px;
167 content: -webkit-image-set(url(1x/incognito_marker.png) 1x, 175 content: -webkit-image-set(url(1x/incognito_marker.png) 1x,
168 url(2x/incognito_marker.png) 2x); 176 url(2x/incognito_marker.png) 2x);
169 position: absolute; 177 position: absolute;
170 right: 10px; 178 right: 10px;
171 } 179 }
172 180
(...skipping 17 matching lines...) Expand all
190 #content { 198 #content {
191 margin: 0 auto; 199 margin: 0 auto;
192 } 200 }
193 201
194 #date-container { 202 #date-container {
195 flex: none !important; 203 flex: none !important;
196 margin: 0 auto 30px; 204 margin: 0 auto 30px;
197 width: var(--downloads-item-width); 205 width: var(--downloads-item-width);
198 } 206 }
199 } 207 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698