| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/cr_icons.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/cr_icons.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-drawer-panel/pape
r-drawer-panel.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-drawer-panel/pape
r-drawer-panel.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-header-panel/pape
r-header-panel.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-header-panel/pape
r-header-panel.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toolbar/paper-too
lbar.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toolbar/paper-too
lbar.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> |
| 9 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> | 9 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> |
| 10 <link rel="import" href="chrome://md-settings/direction_delegate.html"> | 10 <link rel="import" href="chrome://md-settings/direction_delegate.html"> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 paper-drawer-panel { | 27 paper-drawer-panel { |
| 28 @apply(--layout-center); | 28 @apply(--layout-center); |
| 29 --paper-drawer-panel-drawer-container: { | 29 --paper-drawer-panel-drawer-container: { |
| 30 background: none; /* Remove default background styling. */ | 30 background: none; /* Remove default background styling. */ |
| 31 }; | 31 }; |
| 32 position: relative; | 32 position: relative; |
| 33 } | 33 } |
| 34 | 34 |
| 35 #drawer { | 35 #drawer { |
| 36 --paper-header-panel-shadow: { |
| 37 /* Polymer's style transformation chokes on :host() and :not() (and |
| 38 * many other things, it seems). Just hide the built-in shadow and |
| 39 * duplicate its style. */ |
| 40 display: none; |
| 41 }; |
| 36 /* Explicitly set this so that transitions work and look good. */ | 42 /* Explicitly set this so that transitions work and look good. */ |
| 37 background-color: var(--settings-background-color); | 43 background-color: var(--settings-background-color); |
| 38 } | 44 } |
| 39 | 45 |
| 46 #drawer .toolbar::after { |
| 47 box-shadow: inset 0px 5px 6px -3px rgba(0, 0, 0, 0.4); |
| 48 content: ''; |
| 49 display: block; |
| 50 height: 6px; |
| 51 } |
| 52 |
| 40 #drawer, | 53 #drawer, |
| 41 #drawer .toolbar { | 54 #drawer .toolbar, |
| 42 transition: background-color .3s, color .3s; | 55 #drawer .toolbar::after { |
| 56 transition: background-color .3s, color .3s, height .3s; |
| 57 } |
| 58 |
| 59 :host(:not(.narrowing)) [narrow] #drawer, |
| 60 :host(:not(.narrowing)) [narrow] #drawer .toolbar, |
| 61 :host(:not(.narrowing)) [narrow] #drawer .toolbar::after { |
| 62 transition: none; /* Transition only when removing [narrow]. */ |
| 43 } | 63 } |
| 44 | 64 |
| 45 :host(:not(.narrowing)) [narrow] #drawer, | 65 :host(:not(.narrowing)) [narrow] #drawer, |
| 46 :host(:not(.narrowing)) [narrow] #drawer .toolbar { | 66 :host(:not(.narrowing)) [narrow] #drawer .toolbar { |
| 47 background-color: white; | 67 background-color: white; |
| 48 transition: none; /* Transition only when removing [narrow]. */ | |
| 49 } | 68 } |
| 50 | 69 |
| 51 :host(:not(.narrowing)) [narrow] #drawer .toolbar { | 70 :host(:not(.narrowing)) [narrow] #drawer .toolbar { |
| 52 color: black; | 71 color: var(--settings-nav-grey); |
| 72 } |
| 73 |
| 74 :host(:not(.narrowing)) [narrow] #drawer .toolbar::after { |
| 75 border-bottom: var(--settings-separator-line); |
| 76 height: 0; |
| 53 } | 77 } |
| 54 | 78 |
| 55 paper-icon-button { | 79 paper-icon-button { |
| 56 --iron-icon-fill-color: var(--settings-title-bar-color); | 80 --iron-icon-fill-color: var(--settings-title-bar-color); |
| 57 } | 81 } |
| 58 | 82 |
| 59 paper-icon-button[suffix] { | 83 paper-icon-button[suffix] { |
| 60 --iron-icon-fill-color: var(--settings-title-search-color); | 84 --iron-icon-fill-color: var(--settings-title-search-color); |
| 61 height: 32px; /* After padding, the icon size is 16px. */ | 85 height: 32px; /* After padding, the icon size is 16px. */ |
| 62 width: 32px; | 86 width: 32px; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 </paper-input> | 185 </paper-input> |
| 162 </div> | 186 </div> |
| 163 </paper-toolbar> | 187 </paper-toolbar> |
| 164 <settings-main prefs="{{prefs}}" current-route="{{currentRoute}}"> | 188 <settings-main prefs="{{prefs}}" current-route="{{currentRoute}}"> |
| 165 </paper-icon-button> | 189 </paper-icon-button> |
| 166 </paper-header-panel> | 190 </paper-header-panel> |
| 167 </paper-drawer-panel> | 191 </paper-drawer-panel> |
| 168 </template> | 192 </template> |
| 169 <script src="settings_ui.js"></script> | 193 <script src="settings_ui.js"></script> |
| 170 </dom-module> | 194 </dom-module> |
| OLD | NEW |