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

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: tommycli@ review 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. */
16 :host(:not(:first-of-type):not([hide-date])) :-webkit-any(#content-wrapper,
17 #since) {
18 border-top: 1px solid rgba(0, 0, 0, .2); /* TODO(dbeam): real color. */
19 padding-top: 32px;
20 }
21
22 #date-container, 15 #date-container,
23 #end-cap { 16 #end-cap {
24 flex: 1 0 var(--downloads-side-column-basis); 17 flex: 1 0 var(--downloads-side-column-basis);
25 } 18 }
26 19
27 #date-container > * { 20 #date-container > * {
28 -webkit-margin-start: 24px;
29 color: #616161; 21 color: #616161;
30 font-size: 107.69%; 22 font-size: 107.69%;
31 font-weight: bold; 23 font-weight: bold;
32 } 24 }
33 25
34 :host([hide-date]) #date-container { 26 :host([hide-date]) #date-container {
35 visibility: hidden; 27 visibility: hidden;
36 } 28 }
37 29
38 #content { 30 #content {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 131 }
140 132
141 #remove { 133 #remove {
142 --paper-icon-button: { 134 --paper-icon-button: {
143 height: 16px; 135 height: 16px;
144 width: 16px; 136 width: 16px;
145 }; 137 };
146 --iron-icon-height: 16px; 138 --iron-icon-height: 16px;
147 --iron-icon-width: 16px; 139 --iron-icon-width: 16px;
148 } 140 }
141
142 @media not all and (max-width: 1024px) {
143 /* Only show date separators in wide mode. */
144 :host(:not(:first-of-type):not([hide-date])) :-webkit-any(#content-wrapper,
145 #since) {
146 border-top: 1px solid rgba(0, 0, 0, .2); /* TODO(dbeam): real color. */
147 padding-top: 32px;
148 }
149
150 #date-container > * {
151 -webkit-margin-start: 24px;
152 }
153 }
154
155 @media all and (max-width: 1024px) {
156 /* In narrow windows, put the dates on top instead of on the side. */
157 :host {
158 flex-direction: column;
159 }
160
161 :host([hide-date]) #date-container,
162 #end-cap {
163 display: none;
164 }
165
166 #content {
167 margin: 0 auto;
168 }
169
170 #date-container {
171 flex: none !important;
172 margin: 0 auto 32px;
173 width: var(--downloads-item-width);
174 }
175 }
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