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

Unified Diff: ui/file_manager/file_manager/foreground/css/file_manager.css

Issue 873703003: Update the visual design of Files.app's toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: ui/file_manager/file_manager/foreground/css/file_manager.css
diff --git a/ui/file_manager/file_manager/foreground/css/file_manager.css b/ui/file_manager/file_manager/foreground/css/file_manager.css
index e66ac842984a5f1274d9c0e27f0a7235b4b60666..5ddbdc571677e76c4f2f9ad0887f9c613ba3313a 100644
--- a/ui/file_manager/file_manager/foreground/css/file_manager.css
+++ b/ui/file_manager/file_manager/foreground/css/file_manager.css
@@ -11,7 +11,6 @@
* - 525: spinner
* - 550: autocomplete-suggestions
* - 600: menus
- * - 600: tooltip
* - 1000: preview thumbnail popup
* - 1000: overlay panel (ie. image editor)
*/
@@ -300,6 +299,8 @@ div.splitter {
/* Breadcrumbs and things under the title but above the list view. */
.dialog-header {
align-items: center;
+ background-color: rgb(27, 168, 243);
hirono 2015/01/23 17:12:42 nit: shorthand 'background' property is preferred.
fukino 2015/01/26 02:18:56 Done.
+ color: white;
display: flex;
flex: none;
flex-direction: row;
@@ -308,38 +309,63 @@ div.splitter {
transition: all 180ms ease;
hirono 2015/01/23 17:12:42 transition: all can be dangerous. Can we specify s
fukino 2015/01/23 19:38:02 IIUC, the toolbar of Files.app doesn't have animat
fukino 2015/01/26 02:18:56 Done.
}
-.dialog-header .volume-icon {
- -webkit-margin-start: 10px;
- background-position: center center;
+.dialog-header > .spacer {
+ flex: auto;
+}
+
+.dialog-header button,
+.dialog-header paper-button {
+ height: 32px;
+ margin-right: 4px;
+ min-width: 32px;
+ width: 32px;
+}
+
+.dialog-header button,
+.dialog-header button:hover {
+ color: white;
+}
+
+.dialog-header button > core-icon,
+.dialog-header paper-button > core-icon {
+ height: 16px;
+ width: 16px;
+}
+
+.dialog-header paper-button::shadow > .button-content {
+ padding: 8px;
+}
+
+#gear-button {
+ -webkit-app-region: no-drag;
+ -webkit-margin-end: 10px;
+ background-color: transparent;
+ background-image: none;
+ background-position: center;
background-repeat: no-repeat;
- flex: none;
- height: 24px;
- width: 24px;
+ border: 0;
+ box-shadow: none;
+ display: block;
+ height: 32px;
+ min-width: 0;
+ outline: none;
+ padding: 0;
+ width: 32px;
}
-.dialog-header > .spacer {
- flex: auto;
+#gear-button > core-icon {
+ margin: 8px;
}
/* Search box */
-
#search-box {
display: flex;
flex: none;
}
#search-box input {
- background-color: #fff;
- border-style: none;
- color: #333;
cursor: default;
- display: block;
- height: 48px;
- line-height: 1em;
- margin: 0;
- max-width: 100%;
- outline: none;
- padding: 0;
+ display: inline-block;
transition: width 0.2s ease;
width: 0;
}
@@ -348,6 +374,22 @@ div.splitter {
-webkit-appearance: none;
}
+#search-box paper-input-decorator {
+ margin-top: -4px;
+}
+
+#search-box paper-input-decorator /deep/ ::-webkit-input-placeholder {
+ color: rgba(255, 255, 255, 0.5);
+}
+
+#search-box paper-input-decorator /deep/ .unfocused-underline {
+ background-color: rgba(255, 255, 255, 0.3);
+}
+
+#search-box paper-input-decorator /deep/ .focused-underline {
+ background-color: rgba(255, 255, 255, 0.5);
+}
+
#search-box.has-cursor input,
#search-box.has-text input {
width: 176px;
@@ -393,28 +435,6 @@ div.splitter {
url(../images/files/ui/2x/search_clear_pressed.png) 2x);
}
-.topbutton-bar {
- flex: none;
-}
-
-.topbutton-bar .search-button {
- background-image: -webkit-image-set(
- url(../images/files/ui/search_icon_active.png) 1x,
- url(../images/files/ui/2x/search_icon_active.png) 2x);
-}
-
-.topbutton-bar .view-button.table {
- background-image: -webkit-image-set(
- url(../images/files/ui/button_list_view.png) 1x,
- url(../images/files/ui/2x/button_list_view.png) 2x);
-}
-
-.topbutton-bar .view-button.grid {
- background-image: -webkit-image-set(
- url(../images/files/ui/button_mosaic_view.png) 1x,
- url(../images/files/ui/2x/button_mosaic_view.png) 2x);
-}
-
/* Container for the detail and thumbnail list views. */
.dialog-body {
-webkit-transition: all 180ms ease;
@@ -477,6 +497,7 @@ div.splitter {
flex: auto;
flex-direction: row;
line-height: 20px;
+ margin-left: 16px;
overflow: hidden;
padding-top: 1px;
}
@@ -491,7 +512,6 @@ div.splitter {
/* A single directory name in the list of path breadcrumbs. */
.breadcrumb-path {
- color: #141414;
cursor: pointer;
flex: none;
overflow: hidden;
@@ -500,23 +520,14 @@ div.splitter {
}
/* The final breadcrumb, representing the current directory. */
-#search-breadcrumbs .breadcrumb-path.breadcrumb-last {
- color: #141414;
+.breadcrumb-path.breadcrumb-last {
cursor: default;
}
/* The > arrow between breadcrumbs. */
-
.breadcrumbs .separator {
- background-image: -webkit-image-set(
- url(../images/files/ui/breadcrumb-separator.png) 1x,
- url(../images/files/ui/2x/breadcrumb-separator.png) 2x);
- background-position: center center;
- background-repeat: no-repeat;
- flex: none;
- height: 10px;
- overflow: hidden;
- width: 25px;
+ height: 16px;
+ width: 16px;
}
html[dir='rtl'] .breadcrumbs .separator {
@@ -1354,73 +1365,6 @@ body[drive='error'] #unmounted-panel > .error,
position: relative;
}
-.buttonbar .tooltip,
fukino 2015/01/23 15:10:43 .tooltip is not in use, so I removed it. (It's not
-.topbutton-bar .tooltip {
- right: -12px;
- top: 35px;
-}
-
-/* Tooltips */
-.tooltip {
- background: #2d2d2d;
- border-radius: 0;
- box-shadow: 1px 2px 4px #ccc;
- box-sizing: border-box;
- color: white;
- display: block;
- font-size: 11px;
- font-weight: bold;
- height: 29px;
- line-height: 29px;
- margin-left: -20px;
- min-width: 50px;
- opacity: 0;
- outline: 1px solid rgba(255, 255, 255, 0.5);
- padding: 0 10px;
- pointer-events: none;
- position: absolute;
- text-align: center;
- top: 5px;
- white-space: nowrap;
- z-index: 600; /* Must be below the overlay pane (1000). */
-}
-
-.tooltip::after,
-.tooltip::before {
- border-left: 5px solid transparent;
- border-right: 5px solid transparent;
- border-top: transparent;
- content: '';
- display: block;
- margin-left: -5px;
- position: absolute;
- right: 24px;
- top: -5px;
-}
-
-.tooltip::after {
- border-bottom: 5px solid #2d2d2d;
-}
-
-.tooltip::before {
- border-bottom: 5px solid rgba(255, 255, 255, 0.5);
-}
-
-/* Show with delay, disappear instantly */
-@-webkit-keyframes tooltip-show {
- 0% { opacity: 0; }
- 90% { opacity: 0; }
- 100% { opacity: 1; }
-}
-
-:hover > .tooltip {
- -webkit-animation-duration: 800ms;
- -webkit-animation-iteration-count: 1;
- -webkit-animation-name: tooltip-show;
- -webkit-animation-timing-function: linear;
- opacity: 1;
-}
-
#no-search-results {
bottom: 0;
display: none;
@@ -1483,7 +1427,7 @@ list.autocomplete-suggestions {
box-sizing: border-box; /* To match the width with the search box's. */
color: rgb(34, 34, 34);
flex: none;
- margin-top: -7px;
+ margin-top: 10px;
overflow: hidden;
padding: 5px 0;
position: fixed;

Powered by Google App Engine
This is Rietveld 408576698