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

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

Issue 1531583004: [DevTools] Improve Device Mode icons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@toolbar-refactor
Patch Set: test Created 5 years 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 }
11 11
12 .toolbar-shadow { 12 .toolbar-shadow {
13 position: relative; 13 position: relative;
14 white-space: nowrap; 14 white-space: nowrap;
15 height: 26px; 15 height: 26px;
16 overflow: hidden; 16 overflow: hidden;
17 z-index: 12; 17 z-index: 12;
18 display: flex; 18 display: flex;
19 flex: none; 19 flex: none;
20 align-items: center; 20 align-items: center;
21 } 21 }
22 22
23 .toolbar-shadow.wrappable { 23 .toolbar-shadow.wrappable {
24 flex-wrap: wrap; 24 flex-wrap: wrap;
25 } 25 }
26 26
27 .toolbar-shadow.wrappable-reverse {
28 flex-direction: row-reverse;
29 }
30
27 .toolbar-shadow.vertical { 31 .toolbar-shadow.vertical {
28 flex-direction: column; 32 flex-direction: column;
29 height: auto; 33 height: auto;
30 width: 26px; 34 width: 26px;
31 } 35 }
32 36
33 .toolbar-item { 37 .toolbar-item {
34 position: relative; 38 position: relative;
35 display: flex; 39 display: flex;
36 background-color: transparent; 40 background-color: transparent;
(...skipping 22 matching lines...) Expand all
59 } 63 }
60 64
61 .toolbar-has-glyph .toolbar-text { 65 .toolbar-has-glyph .toolbar-text {
62 margin-left: 0; 66 margin-left: 0;
63 } 67 }
64 68
65 .toolbar-bold .toolbar-text { 69 .toolbar-bold .toolbar-text {
66 font-weight: bold; 70 font-weight: bold;
67 } 71 }
68 72
73 .toolbar-dimmed .toolbar-text {
74 color: #999;
75 }
76
69 .toolbar-glyph { 77 .toolbar-glyph {
70 -webkit-mask-image: url(Images/toolbarButtonGlyphs.png); 78 -webkit-mask-image: url(Images/toolbarButtonGlyphs.png);
71 -webkit-mask-size: 352px 168px; 79 -webkit-mask-size: 352px 168px;
72 background-color: #5a5a5a; 80 background-color: #5a5a5a;
73 width: 28px; 81 width: 28px;
74 height: 24px; 82 height: 24px;
75 flex: none; 83 flex: none;
76 transform: translateX(-2px); 84 transform: translateX(-2px);
77 } 85 }
78 86
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 } 262 }
255 263
256 .menu-toolbar-item.toolbar-glyph { 264 .menu-toolbar-item.toolbar-glyph {
257 -webkit-mask-position: -192px -24px; 265 -webkit-mask-position: -192px -24px;
258 } 266 }
259 267
260 .node-search-toolbar-item.toolbar-glyph { 268 .node-search-toolbar-item.toolbar-glyph {
261 -webkit-mask-position: -320px -120px; 269 -webkit-mask-position: -320px -120px;
262 } 270 }
263 271
264 .emulation-toolbar-item.toolbar-glyph {
265 -webkit-mask-position: -288px -144px;
266 }
267
268 @media (-webkit-min-device-pixel-ratio: 1.5) {
269 .emulation-toolbar-item.toolbar-glyph {
270 -webkit-mask-position: -160px 0;
271 }
272 }
273
274 .emulation-toolbar-item.warning::after {
275 background-image: url(Images/toolbarButtonGlyphs.png);
276 background-size: 352px 168px;
277 width: 10px;
278 height: 12px;
279 content: "";
280 position: absolute;
281 right: 3px;
282 bottom: 2px;
283 background-position: -202px -107px;
284 z-index: 1;
285 }
286
287 @media (-webkit-min-device-pixel-ratio: 1.5) {
288 .emulation-toolbar-item.warning::before {
289 background-image: url(Images/toolbarButtonGlyphs_2x.png);
290 }
291 } /* media */
292
293 .delete-toolbar-item.toolbar-glyph { 272 .delete-toolbar-item.toolbar-glyph {
294 -webkit-mask-position: -128px 0; 273 -webkit-mask-position: -128px 0;
295 } 274 }
296 275
297 .clear-toolbar-item.toolbar-glyph { 276 .clear-toolbar-item.toolbar-glyph {
298 -webkit-mask-position: -64px 0; 277 -webkit-mask-position: -64px 0;
299 } 278 }
300 279
301 .refresh-toolbar-item.toolbar-glyph { 280 .refresh-toolbar-item.toolbar-glyph {
302 -webkit-mask-position: 0 0; 281 -webkit-mask-position: 0 0;
303 } 282 }
304 283
305 .visibility-toolbar-item.toolbar-glyph { 284 .visibility-toolbar-item.toolbar-glyph {
306 -webkit-mask-position: -96px 0; 285 -webkit-mask-position: -96px 0;
307 } 286 }
308 287
309 .visibility-off-toolbar-item.toolbar-glyph { 288 .visibility-off-toolbar-item.toolbar-glyph {
310 -webkit-mask-position: -192px 0; 289 -webkit-mask-position: -192px 0;
311 } 290 }
312 291
313 .large-list-toolbar-item.toolbar-glyph { 292 .large-list-toolbar-item.toolbar-glyph {
314 -webkit-mask-position: -224px 0; 293 -webkit-mask-position: -224px 0;
315 } 294 }
316 295
317 .edit-toolbar-item.toolbar-glyph { 296 .edit-toolbar-item.toolbar-glyph {
318 -webkit-mask-position: -224px -72px; 297 -webkit-mask-position: -224px -72px;
319 } 298 }
320 299
321 .screencast-toolbar-item.toolbar-glyph {
322 -webkit-mask-position: -160px 0;
323 }
324
325 .record-toolbar-item.toolbar-glyph { 300 .record-toolbar-item.toolbar-glyph {
326 -webkit-mask-position: -288px 0; 301 -webkit-mask-position: -288px 0;
327 } 302 }
328 303
329 .toolbar-state-on .record-toolbar-item.toolbar-glyph { 304 .toolbar-state-on .record-toolbar-item.toolbar-glyph {
330 -webkit-mask-position: -288px -24px; 305 -webkit-mask-position: -288px -24px;
331 } 306 }
332 307
333 .camera-toolbar-item.toolbar-glyph { 308 .camera-toolbar-item.toolbar-glyph {
334 -webkit-mask-position: -96px -24px; 309 -webkit-mask-position: -96px -24px;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 } 453 }
479 454
480 .layout-editor-toolbar-item.toolbar-glyph { 455 .layout-editor-toolbar-item.toolbar-glyph {
481 -webkit-mask-position: 0 -144px; 456 -webkit-mask-position: 0 -144px;
482 } 457 }
483 458
484 .block-toolbar-item.toolbar-glyph { 459 .block-toolbar-item.toolbar-glyph {
485 -webkit-mask-position: -32px -144px; 460 -webkit-mask-position: -32px -144px;
486 } 461 }
487 462
488 .desktop-toolbar-item.toolbar-glyph { 463 .phone-toolbar-item.toolbar-glyph {
489 -webkit-mask-position: -256px -144px; 464 -webkit-mask-position: -288px -144px;
490 }
491
492 @media (-webkit-min-device-pixel-ratio: 1.5) {
493 .desktop-toolbar-item.toolbar-glyph {
494 -webkit-mask-position: -160px -144px;
495 }
496 } 465 }
497 466
498 .rotate-screen-toolbar-item.toolbar-glyph { 467 .rotate-screen-toolbar-item.toolbar-glyph {
499 -webkit-mask-position: -192px -144px; 468 -webkit-mask-position: -192px -144px;
500 } 469 }
501 470
502 .resize-toolbar-item.toolbar-glyph {
503 -webkit-mask-position: -224px -144px;
504 }
505
506 .enter-fullscreen-toolbar-item.toolbar-glyph { 471 .enter-fullscreen-toolbar-item.toolbar-glyph {
507 -webkit-mask-position: -256px -96px; 472 -webkit-mask-position: -256px -96px;
508 } 473 }
509 474
510 .exit-fullscreen-toolbar-item.toolbar-glyph { 475 .responsive-toolbar-item.toolbar-glyph {
511 -webkit-mask-position: -288px -96px; 476 -webkit-mask-position: -288px -96px;
512 } 477 }
513 478
514 .toolbar-state-on .record-toolbar-item.toolbar-glyph, 479 .toolbar-state-on .record-toolbar-item.toolbar-glyph,
515 .toolbar-state-active .filter-toolbar-item.toolbar-glyph, 480 .toolbar-state-active .filter-toolbar-item.toolbar-glyph,
516 .toolbar-state-active .block-toolbar-item.toolbar-glyph { 481 .toolbar-state-active .block-toolbar-item.toolbar-glyph {
517 background-color: rgb(216, 0, 0) !important; 482 background-color: rgb(216, 0, 0) !important;
518 } 483 }
519 484
520 :host-context(.-theme-with-dark-background) .toolbar-state-active .filter-toolba r-item.toolbar-glyph, 485 :host-context(.-theme-with-dark-background) .toolbar-state-active .filter-toolba r-item.toolbar-glyph,
521 :host-context(.-theme-with-dark-background) .toolbar-state-active .block-toolbar -item.toolbar-glyph, 486 :host-context(.-theme-with-dark-background) .toolbar-state-active .block-toolbar -item.toolbar-glyph,
522 :host-context(.-theme-with-dark-background) .toolbar-state-on .record-toolbar-it em.toolbar-glyph { 487 :host-context(.-theme-with-dark-background) .toolbar-state-on .record-toolbar-it em.toolbar-glyph {
523 background-color: hsl(0, 100%, 65%) !important; 488 background-color: hsl(0, 100%, 65%) !important;
524 } 489 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698