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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/manager.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_downloads/item.css
diff --git a/chrome/browser/resources/md_downloads/item.css b/chrome/browser/resources/md_downloads/item.css
index 87e78c886c35e45767f195c02c8e4ec8834db383..0e9c412b1779877d088031fd289277becbf12e7f 100644
--- a/chrome/browser/resources/md_downloads/item.css
+++ b/chrome/browser/resources/md_downloads/item.css
@@ -12,20 +12,12 @@
margin-top: -16px;
}
-/* Day separators. */
-:host(:not(:first-of-type):not([hide-date])) :-webkit-any(#content-wrapper,
- #since) {
- border-top: 1px solid rgba(0, 0, 0, .2); /* TODO(dbeam): real color. */
- padding-top: 32px;
-}
-
#date-container,
#end-cap {
flex: 1 0 var(--downloads-side-column-basis);
}
#date-container > * {
- -webkit-margin-start: 24px;
color: #616161;
font-size: 107.69%;
font-weight: bold;
@@ -146,3 +138,38 @@
--iron-icon-height: 16px;
--iron-icon-width: 16px;
}
+
+@media not all and (max-width: 1024px) {
+ /* Only show date separators in wide mode. */
+ :host(:not(:first-of-type):not([hide-date])) :-webkit-any(#content-wrapper,
+ #since) {
+ border-top: 1px solid rgba(0, 0, 0, .2); /* TODO(dbeam): real color. */
+ padding-top: 32px;
+ }
+
+ #date-container > * {
+ -webkit-margin-start: 24px;
+ }
+}
+
+@media all and (max-width: 1024px) {
+ /* In narrow windows, put the dates on top instead of on the side. */
+ :host {
+ flex-direction: column;
+ }
+
+ :host([hide-date]) #date-container,
+ #end-cap {
+ display: none;
+ }
+
+ #content {
+ margin: 0 auto;
+ }
+
+ #date-container {
+ flex: none !important;
+ margin: 0 auto 32px;
+ width: var(--downloads-item-width);
+ }
+}
« 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