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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/toolbar.css

Issue 2741863002: DevTools: Focus background in Toolbars (Closed)
Patch Set: remove host-context Created 3 years, 8 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 /* 1 /*
2 * Copyright (c) 2014 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 :host { 7 :host {
8 flex: none; 8 flex: none;
9 padding: 0 2px; 9 padding: 0 2px;
10 } 10 }
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 197 }
198 198
199 select.toolbar-item { 199 select.toolbar-item {
200 min-width: 38px; 200 min-width: 38px;
201 -webkit-appearance: none; 201 -webkit-appearance: none;
202 border: 0; 202 border: 0;
203 border-radius: 0; 203 border-radius: 0;
204 padding: 0 13px 0 5px; 204 padding: 0 13px 0 5px;
205 margin-right: -10px; 205 margin-right: -10px;
206 position: relative; 206 position: relative;
207 height: 22px;
208 margin-top: 2px;
209 margin-bottom:2px;
210 }
211
212 select.toolbar-item[data-keyboard-focus="true"]:focus {
213 background: rgba(0,0,0,.08);
214 border-radius: 2px;
207 } 215 }
208 216
209 /* Input */ 217 /* Input */
210 218
211 .toolbar-input { 219 .toolbar-input {
212 width: 120px; 220 width: 120px;
213 height: 20px; 221 height: 20px;
214 padding: 3px; 222 padding: 3px;
215 margin: 1px 3px; 223 margin: 1px 3px;
216 background-color: white; 224 background-color: white;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 position: absolute; 270 position: absolute;
263 background-color: #5a5a5a; 271 background-color: #5a5a5a;
264 top: 0; 272 top: 0;
265 left: 0; 273 left: 0;
266 } 274 }
267 275
268 .toolbar-button.emulate-active { 276 .toolbar-button.emulate-active {
269 background-color: rgb(163, 163, 163); 277 background-color: rgb(163, 163, 163);
270 } 278 }
271 279
280 .toolbar-button[data-keyboard-focus="true"]:focus::after {
281 position:absolute;
282 top: 2px;
283 bottom: 2px;
284 left: 2px;
285 right: 2px;
286 background-color: rgba(0, 0, 0, 0.08);
287 border-radius: 2px;
288 content: "";
289 }
290
291 :host-context(.keyboard-focus) .focused:not(.toolbar-input)::after{
pfeldman 2017/03/29 21:54:20 I don't think you are being entirely honest with u
292 left: 0px;
293 right: -2px;
294 }
295
272 .toolbar-shadow.floating { 296 .toolbar-shadow.floating {
273 flex-direction: column; 297 flex-direction: column;
274 height: auto; 298 height: auto;
275 background-color: white; 299 background-color: white;
276 border: 1px solid #ccc; 300 border: 1px solid #ccc;
277 margin-top: -1px; 301 margin-top: -1px;
278 width: 28px; 302 width: 28px;
279 left: -2px; 303 left: -2px;
280 } 304 }
281 305
282 span.toolbar-select-container.toolbar-item.warning { 306 span.toolbar-select-container.toolbar-item.warning {
283 background: #ffd7d7; 307 background: #ffd7d7;
284 padding: 0 5px 0 0; 308 padding: 0 5px 0 0;
285 margin-right: 1px; 309 margin-right: 1px;
286 } 310 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698