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

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

Issue 1257413004: Keep hackin' on MD downloads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dl-items4
Patch Set: stupid whitespace 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: 32px 0; 8 margin: 32px 0;
9 } 9 }
10 10
11 :host([hide-date]) { 11 :host([hide-date]) {
12 margin-top: -16px; 12 margin-top: -16px;
13 } 13 }
14 14
15 #date-container, 15 #date-container,
16 #end-cap { 16 #end-cap {
17 flex: 1 0 var(--downloads-side-column-basis); 17 flex: 1 0 var(--downloads-side-column-basis);
18 } 18 }
19 19
20 #date-container > * { 20 #date-container > * {
21 -webkit-margin-start: 24px; 21 -webkit-margin-start: 24px;
22 } 22 }
23 23
24 :host([hide-date]) #date-container { 24 :host([hide-date]) #date-container {
25 visibility: hidden; 25 visibility: hidden;
26 } 26 }
27 27
28 #safe, 28 #content {
29 #dangerous {
30 background: white; 29 background: white;
31 border-radius: 2px; /* TODO(dbeam): why does this differ from Polymer? */ 30 border-radius: 2px; /* TODO(dbeam): why does this differ from Polymer? */
michaelpg 2015/07/30 02:49:34 didn't we do this already?
31 display: flex;
32 flex: none; 32 flex: none;
33 width: var(--downloads-item-width); 33 width: var(--downloads-item-width);
34 } 34 }
35 35
36 #safe.no-file { 36 #content.no-file {
37 background: rgba(255, 255, 255, .5); 37 background: rgba(255, 255, 255, .5);
38 } 38 }
39 39
40 .no-file #safe-icon-wrapper, 40 .no-file .icon-wrapper:not(#remove-wrapper),
41 .no-file #details { 41 .no-file #details {
42 opacity: .5; 42 opacity: .5;
43 } 43 }
44 44
45 #safe {
46 display: flex;
47 }
48
49 #details { 45 #details {
50 -webkit-border-start: 1px #d8d8d8 solid; 46 -webkit-border-start: 1px #d8d8d8 solid;
51 display: flex; 47 display: flex;
52 flex: 1; 48 flex: 1;
53 flex-direction: column; 49 flex-direction: column;
54 padding: 16px 16px 12px 16px; 50 padding: 16px 16px 12px 16px;
55 } 51 }
56 52
57 #title-area { 53 .icon-wrapper {
58 display: flex;
59 }
60
61 #safe-icon-wrapper {
62 align-self: center; 54 align-self: center;
63 flex: none; 55 flex: none;
64 justify-content: center; 56 justify-content: center;
65 margin: 0 32px; 57 margin: 0 32px;
66 } 58 }
67 59
60 #icon {
61 height: 32px;
62 width: 32px;
63 }
64
68 #name, 65 #name,
69 #file-link, 66 #file-link,
70 #src-url { 67 #url {
71 display: inline-block;
72 max-width: 100%; 68 max-width: 100%;
73 } 69 }
74 70
75 #name, 71 #name,
76 #file-link { 72 #file-link {
77 word-break: break-all; 73 word-break: break-all;
78 } 74 }
79 75
80 #name { 76 #name {
77 -webkit-margin-end: 12px; /* Only really affects #tag. */
81 color: #212121; 78 color: #212121;
82 font-weight: bold; 79 font-weight: bold;
83 } 80 }
84 81
85 #src-url { 82 .dangerous #name {
83 color: rgb(35, 114, 236);
84 }
85
86 #tag {
87 color: #6f6f6f;
88 font-size: 92.307%;
89 font-weight: bold;
90 }
91
92 #url {
86 color: rgb(88, 152, 251); 93 color: rgb(88, 152, 251);
87 margin-top: 6px; 94 margin-top: 6px;
88 overflow: hidden; 95 overflow: hidden;
89 text-decoration: none; 96 text-decoration: none;
90 text-overflow: ellipsis; 97 text-overflow: ellipsis;
91 white-space: nowrap; 98 white-space: nowrap;
92 } 99 }
93 100
94 #progress, 101 #progress,
95 #status:not(:empty), 102 #description:not(:empty),
96 #button-container { 103 .controls {
97 margin-top: 16px; 104 margin-top: 16px;
98 } 105 }
99 106
107 #description {
108 color: #616161;
109 }
110
111 .dangerous #description {
112 color: rgb(217, 84, 61);
113 }
114
100 #progress { 115 #progress {
101 --paper-progress-active-color: rgb(54, 126, 237); 116 --paper-progress-active-color: rgb(54, 126, 237);
102 --paper-progress-container-color: rgb(223, 222, 223); 117 --paper-progress-container-color: rgb(223, 222, 223);
103 width: auto; 118 width: auto;
104 } 119 }
105 120
106 /* TODO(dbeam): open up a CSS mixin instead in Polymer. */ 121 /* TODO(dbeam): open up a CSS mixin instead in Polymer. */
107 #progress /deep/ #progressContainer { 122 #progress /deep/ #progressContainer {
108 border-radius: 2px; 123 border-radius: 2px;
109 } 124 }
110 125
111 #remove-wrapper { 126 #remove-wrapper {
112 align-self: top; 127 align-self: flex-start;
113 flex: none; 128 margin: 0;
114 justify-content: center;
115 } 129 }
116 130
117 #safe-remove { 131 #remove {
118 --paper-icon-button: { 132 --paper-icon-button: {
119 height: 16px; 133 height: 16px;
120 width: 16px; 134 width: 16px;
121 }; 135 };
122 --iron-icon-height: 16px; 136 --iron-icon-height: 16px;
123 --iron-icon-width: 16px; 137 --iron-icon-width: 16px;
124 } 138 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/item.html » ('j') | chrome/browser/resources/md_downloads/item.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698