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

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

Issue 1265683003: MD downloads: add a narrow mode for smaller windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@paper-menu-button2
Patch Set: yeah, i did that 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/manager.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /* Day separators. */ 15 @media not all and (max-width: 1024px) {
16 :host(:not(:first-of-type):not([hide-date])) :-webkit-any(#content-wrapper, 16 /* Day separators. */
17 #since) { 17 :host(:not(:first-of-type):not([hide-date])) :-webkit-any(#content-wrapper,
18 border-top: 1px solid rgba(0, 0, 0, .2); /* TODO(dbeam): real color. */ 18 #since) {
19 padding-top: 32px; 19 border-top: 1px solid rgba(0, 0, 0, .2); /* TODO(dbeam): real color. */
20 padding-top: 32px;
21 }
22
23 #date-container > * {
24 -webkit-margin-start: 24px;
25 }
20 } 26 }
21 27
22 #date-container, 28 #date-container,
23 #end-cap { 29 #end-cap {
24 flex: 1 0 var(--downloads-side-column-basis); 30 flex: 1 0 var(--downloads-side-column-basis);
25 } 31 }
26 32
27 #date-container > * { 33 #date-container > * {
28 -webkit-margin-start: 24px;
29 color: #616161; 34 color: #616161;
30 font-size: 107.69%; 35 font-size: 107.69%;
31 font-weight: bold; 36 font-weight: bold;
32 } 37 }
33 38
34 :host([hide-date]) #date-container { 39 :host([hide-date]) #date-container {
35 visibility: hidden; 40 visibility: hidden;
36 } 41 }
37 42
38 #content { 43 #content {
39 background: white; 44 background: white;
40 border-radius: 2px; /* TODO(dbeam): why does this differ from Polymer? */ 45 border-radius: 2px; /* TODO(dbeam): why does this differ from Polymer? */
41 display: flex; 46 display: flex;
42 flex: none; 47 flex: none;
43 width: var(--downloads-item-width); 48 width: var(--downloads-item-width);
44 } 49 }
45 50
51 @media all and (max-width: 1024px) {
tommycli 2015/07/31 17:54:56 Should be adjacent to the opposite media query
Dan Beam 2015/07/31 18:36:37 Done.
52 :host {
53 flex-direction: column;
54 }
55
56 :host([hide-date]) #date-container,
57 #end-cap {
58 display: none;
59 }
60
61 #content {
62 margin: 0 auto;
63 }
64
65 #date-container {
66 flex: none !important;
67 margin: 0 auto 32px;
68 width: var(--downloads-item-width);
69 }
70 }
71
46 #content.no-file { 72 #content.no-file {
47 background: rgba(255, 255, 255, .5); 73 background: rgba(255, 255, 255, .5);
48 } 74 }
49 75
50 .no-file .icon-wrapper:not(#remove-wrapper), 76 .no-file .icon-wrapper:not(#remove-wrapper),
51 .no-file #details { 77 .no-file #details {
52 opacity: .5; 78 opacity: .5;
53 } 79 }
54 80
55 #details { 81 #details {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 165 }
140 166
141 #remove { 167 #remove {
142 --paper-icon-button: { 168 --paper-icon-button: {
143 height: 16px; 169 height: 16px;
144 width: 16px; 170 width: 16px;
145 }; 171 };
146 --iron-icon-height: 16px; 172 --iron-icon-height: 16px;
147 --iron-icon-width: 16px; 173 --iron-icon-width: 16px;
148 } 174 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/manager.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698