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

Unified Diff: chrome/browser/resources/md_downloads/toolbar.css

Issue 2275653002: MD Downloads: use "big search" box like MD history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dl-menu-rtl
Patch Set: fix tests Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_downloads/toolbar.css
diff --git a/chrome/browser/resources/md_downloads/toolbar.css b/chrome/browser/resources/md_downloads/toolbar.css
index 89a332176c08606b231f11b17da35341852fdd2b..e347329373686bcfb896d1f70f9d69d04ac0928a 100644
--- a/chrome/browser/resources/md_downloads/toolbar.css
+++ b/chrome/browser/resources/md_downloads/toolbar.css
@@ -6,64 +6,29 @@
align-items: center;
background: var(--md-toolbar-color);
color: white;
- content-sizing: padding-box;
display: flex;
min-height: 56px;
}
-#title h1 {
- -webkit-margin-end: 0;
- -webkit-margin-start: 24px;
- font-size: 123.1%;
- font-weight: normal;
- margin-bottom: 0;
- margin-top: 0;
-}
-
-#actions {
- color: rgba(255, 255, 255, 0.9);
- display: flex;
- flex: none;
- width: var(--downloads-item-width);
-}
-
-:host-context([loading]) #actions {
- visibility: hidden;
-}
-
-:host(:not([downloads-showing])) #actions {
- justify-content: center;
-}
-
-#actions paper-button {
- --paper-button-flat-keyboard-focus: {
- color: rgba(255, 255, 255, 1);
+#toolbar {
+ --cr-toolbar-field-end-padding: 0;
+ --cr-toolbar-field-width: var(--downloads-item-width);
+ --cr-toolbar-header-wide: {
+ -webkit-margin-start: 24px;
+ -webkit-margin-end: 16px; /* Only matters around 900px in Russian. */
};
-}
-
-#actions paper-button:first-of-type {
- -webkit-margin-start: -0.57em; /* Matches paper-button padding. */
-}
-
-#actions paper-button:not(:last-of-type) {
- -webkit-margin-end: 8px; /* Margin between items. */
-}
-
-#actions paper-button:last-of-type {
- -webkit-margin-end: -0.57em; /* Matches paper-button padding. */
-}
-
-#search {
- -webkit-padding-end: 10px;
- box-sizing: border-box;
- display: flex;
- justify-content: flex-end;
-}
-
-#title,
-#search {
- /* (1024 total width - 622 item width) / 2 = 201 room to play. */
- flex: 1 0 201px;
+ --cr-toolbar-left-content-wide: {
+ -webkit-margin-start: 0;
+ flex: 1 0 1px;
+ max-width: none;
+ position: static;
+ };
+ --cr-toolbar-right-content-wide: {
+ flex: 1 0 1px;
+ position: static;
+ };
+ align-items: center;
+ flex: 1;
}
paper-icon-button {
@@ -76,11 +41,16 @@ paper-icon-button {
};
}
+.more-actions {
+ -webkit-margin-end: 16px;
+ -webkit-margin-start: 8px;
+ text-align: end;
+}
+
#more {
--paper-menu-button: {
padding: 0;
};
- -webkit-margin-start: 16px;
}
paper-menu {
@@ -98,17 +68,3 @@ paper-item {
* https://github.com/PolymerElements/paper-menu-button/issues/56 */
white-space: nowrap;
}
-
-@media not all and (max-width: 1024px) {
- /* Hide vertical dot menu when there's enough room for #actions. */
- paper-menu-button {
- display: none;
- }
-}
-
-@media all and (max-width: 1024px) {
- /* Hide #actions for narrow windows; they're shown in a vertical dot menu. */
- #actions {
- display: none;
- }
-}
« no previous file with comments | « chrome/browser/resources/md_downloads/manager.js ('k') | chrome/browser/resources/md_downloads/toolbar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698