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

Side by Side Diff: chrome/browser/resources/settings/settings_ui/settings_ui.html

Issue 2076193003: [MD settings] Remove old side nav code; remove extra toolbar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 1 <link rel="import" href="chrome://resources/cr_elements/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="/direction_delegate.html"> 10 <link rel="import" href="/direction_delegate.html">
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 28
29 paper-drawer-panel { 29 paper-drawer-panel {
30 --paper-drawer-panel-drawer-container: { 30 --paper-drawer-panel-drawer-container: {
31 background: none; /* Remove default background styling. */ 31 background: none; /* Remove default background styling. */
32 }; 32 };
33 align-items: center; 33 align-items: center;
34 position: relative; 34 position: relative;
35 } 35 }
36 36
37 #drawer {
38 --paper-header-panel-shadow: {
39 /* Polymer's style transformation chokes on :host() and :not() (and
40 * many other things, it seems). Just hide the built-in shadow and
41 * duplicate its style. */
42 display: none;
43 };
44 /* Explicitly set this so that transitions work and look good. */
45 background-color: var(--settings-background-color);
46 }
47
48 #drawer .toolbar::after {
49 box-shadow: inset 0px 5px 6px -3px rgba(0, 0, 0, 0.4);
50 content: '';
51 display: block;
52 height: 6px;
53 }
54
55 #drawer,
56 #drawer .toolbar,
57 #drawer .toolbar::after {
58 transition: background-color .3s, color .3s, height .3s;
59 }
60
61 :host(:not(.narrowing)) [narrow] #drawer,
62 :host(:not(.narrowing)) [narrow] #drawer .toolbar,
63 :host(:not(.narrowing)) [narrow] #drawer .toolbar::after {
64 transition: none; /* Transition only when removing [narrow]. */
65 }
66
67 :host(:not(.narrowing)) [narrow] #drawer,
68 :host(:not(.narrowing)) [narrow] #drawer .toolbar {
69 background-color: white;
70 }
71
72 :host(:not(.narrowing)) [narrow] #drawer .toolbar {
73 color: var(--settings-nav-grey);
74 }
75
76 :host(:not(.narrowing)) [narrow] #drawer .toolbar::after {
77 border-bottom: var(--settings-separator-line);
78 height: 0;
79 }
80
81 paper-header-panel[main] paper-icon-button { 37 paper-header-panel[main] paper-icon-button {
82 --iron-icon-fill-color: var(--settings-title-bar-color); 38 --iron-icon-fill-color: var(--settings-title-bar-color);
83 } 39 }
84 40
85 paper-icon-button[suffix] { 41 paper-icon-button[suffix] {
86 --iron-icon-fill-color: var(--settings-title-search-color); 42 --iron-icon-fill-color: var(--settings-title-search-color);
87 height: 32px; /* After padding, the icon size is 16px. */ 43 height: 32px; /* After padding, the icon size is 16px. */
88 width: 32px; 44 width: 32px;
89 } 45 }
90 46
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 --paper-toolbar-content: { 110 --paper-toolbar-content: {
155 font-size: 123.08%; /* go to 16px from 13px */ 111 font-size: 123.08%; /* go to 16px from 13px */
156 }; 112 };
157 --paper-toolbar: { 113 --paper-toolbar: {
158 background-color: var(--settings-title-bar-background-color); 114 background-color: var(--settings-title-bar-background-color);
159 }; 115 };
160 } 116 }
161 117
162 /* Prevent paper-toolbar from setting the margin-right to 24px. */ 118 /* Prevent paper-toolbar from setting the margin-right to 24px. */
163 paper-icon-button#menu-button { 119 paper-icon-button#menu-button {
164 flex-shrink: 0;
165 /* TODO(dschuyler): this margin is on the right regardless of language 120 /* TODO(dschuyler): this margin is on the right regardless of language
166 * direction (e.g. rtl). Make a patch for paper-toolbar in Polymer. */ 121 * direction (e.g. rtl). Make a patch for paper-toolbar in Polymer. */
167 margin-right: 0; 122 margin-right: 0;
168 } 123 }
169 124
170 .heading { 125 .heading {
171 -webkit-margin-start: 8px; 126 -webkit-margin-start: 8px;
172 } 127 }
173 128
174 paper-drawer-panel:not([narrow]) #main-title { 129 paper-drawer-panel:not([narrow]) #main-title {
175 display: none; 130 display: none;
176 } 131 }
177 132
178 paper-icon-button[toggles]:not([active]) + #search-input { 133 paper-icon-button[toggles]:not([active]) + #search-input {
179 display: none; 134 display: none;
180 } 135 }
181 136
137 .drawer-toolbar {
138 border-bottom: var(--settings-separator-line);
139 }
140
141 .drawer-toolbar > * {
142 -webkit-margin-start: 24px;
143 align-items: center;
144 display: flex;
145 font-size: 123.08%; /* go to 16px from 13px */
146 min-height: 56px;
147 }
148
182 .last { 149 .last {
183 display: flex; 150 display: flex;
184 justify-content: flex-end; 151 justify-content: flex-end;
185 width: 100%; 152 width: 100%;
186 } 153 }
187 </style> 154 </style>
188 <settings-router current-route="{{currentRoute}}" 155 <settings-router current-route="{{currentRoute}}"
189 current-route-titles="{{currentRouteTitles}}"> 156 current-route-titles="{{currentRouteTitles}}">
190 </settings-router> 157 </settings-router>
191 <paper-drawer-panel drawer-width="256px" id="panel" narrow="{{isNarrow_}}" 158 <paper-drawer-panel drawer-width="256px" id="panel" narrow="{{isNarrow_}}"
192 responsive-width="900px" force-narrow> 159 responsive-width="900px" force-narrow>
193 <paper-header-panel drawer id="drawer"> 160 <paper-header-panel drawer>
194 <paper-toolbar class="toolbar"> 161 <div class="drawer-toolbar">
dpapad 2016/06/17 21:38:46 Shouldn't this be class="paper-header" per documen
dpapad 2016/06/17 21:40:52 I actually understand why it is displayed, but I t
dschuyler 2016/06/17 22:18:14 It's up to Alan, but I'll add it now and he can re
dschuyler 2016/06/17 22:18:14 Acknowledged.
dpapad 2016/06/17 22:24:04 Is the waterfall effect very notice-able? I would
Dan Beam 2016/06/17 22:28:22 alan wants waterfall
195 <div class="heading">$i18n{settings}</div> 162 <div>$i18n{settings}</div>
dpapad 2016/06/17 21:38:46 Do we need the two divs? Can they just be merged i
dschuyler 2016/06/17 22:18:14 Done.
196 </paper-toolbar> 163 </div>
197 <settings-menu current-route="{{currentRoute}}" id="sideNav"> 164 <settings-menu current-route="{{currentRoute}}" id="sideNav">
198 </settings-menu> 165 </settings-menu>
199 </paper-header-panel> 166 </paper-header-panel>
200 <paper-header-panel main> 167 <paper-header-panel main>
201 <paper-toolbar class="toolbar"> 168 <paper-toolbar class="toolbar">
202 <paper-icon-button icon="settings:menu" id="menu-button" 169 <paper-icon-button icon="settings:menu" id="menu-button"
203 paper-drawer-toggle> 170 paper-drawer-toggle>
204 </paper-icon-button> 171 </paper-icon-button>
205 <div class="heading" id="main-title"> 172 <div class="heading" id="main-title">
206 $i18n{settings} 173 $i18n{settings}
207 </div> 174 </div>
208 <div class="last"> 175 <div class="last">
209 <paper-icon-button icon="cr:search" toggles> 176 <paper-icon-button icon="cr:search" toggles>
210 </paper-icon-button> 177 </paper-icon-button>
211 <paper-input id="search-input" label="$i18n{internalSearch}" 178 <paper-input id="search-input" label="$i18n{internalSearch}"
212 no-label-float> 179 no-label-float>
213 <!-- TODO(dschuyler): implement internal search. --> 180 <!-- TODO(dschuyler): implement internal search. -->
214 <paper-icon-button suffix icon="cr:cancel"> 181 <paper-icon-button suffix icon="cr:cancel">
215 </paper-icon-button> 182 </paper-icon-button>
216 </paper-input> 183 </paper-input>
217 </div> 184 </div>
218 </paper-toolbar> 185 </paper-toolbar>
219 <settings-main prefs="{{prefs}}" current-route="{{currentRoute}}"> 186 <settings-main prefs="{{prefs}}" current-route="{{currentRoute}}">
220 </settings-main> 187 </settings-main>
221 </paper-header-panel> 188 </paper-header-panel>
222 </paper-drawer-panel> 189 </paper-drawer-panel>
223 </template> 190 </template>
224 <script src="settings_ui.js"></script> 191 <script src="settings_ui.js"></script>
225 </dom-module> 192 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698