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

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

Issue 2482593003: DevTools: eliminate ToolbarButton.setState method; cleanup toolbar.css (Closed)
Patch Set: kill ToolbarToggle.setActive() Created 4 years, 1 month 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 .toolbar-button.toolbar-state-on:enabled.hover:not(:active) .toolbar-text, 175 .toolbar-button.toolbar-state-on:enabled.hover:not(:active) .toolbar-text,
176 .-theme-selection-color { 176 .-theme-selection-color {
177 color: hsl(218, 96%, 54%); 177 color: hsl(218, 96%, 54%);
178 } 178 }
179 179
180 .toolbar-toggled-gray .toolbar-button.toolbar-state-on { 180 .toolbar-toggled-gray .toolbar-button.toolbar-state-on {
181 background-color: #f3f3f3 !important; 181 background-color: #f3f3f3 !important;
182 } 182 }
183 183
184 .toolbar-button.toolbar-state-on.toolbar-toggle-with-red-color .toolbar-glyph {
185 background-color: rgb(216, 0, 0) !important;
186 }
187
188 :host-context(.-theme-with-dark-background) .toolbar-button.toolbar-state-on.too lbar-toggle-with-red-color .toolbar-glyph {
189 background-color: hsl(0, 100%, 65%) !important;
190 }
191
192
184 /* Checkbox */ 193 /* Checkbox */
185 194
186 .toolbar-item.checkbox { 195 .toolbar-item.checkbox {
187 padding: 0 5px 0 2px; 196 padding: 0 5px 0 2px;
188 } 197 }
189 198
190 .toolbar-item.checkbox.hover { 199 .toolbar-item.checkbox.hover {
191 color: #333; 200 color: #333;
192 } 201 }
193 202
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 } 320 }
312 321
313 .large-list-toolbar-item.toolbar-glyph { 322 .large-list-toolbar-item.toolbar-glyph {
314 -webkit-mask-position: -224px 0; 323 -webkit-mask-position: -224px 0;
315 } 324 }
316 325
317 .record-toolbar-item.toolbar-glyph { 326 .record-toolbar-item.toolbar-glyph {
318 -webkit-mask-position: -288px 0; 327 -webkit-mask-position: -288px 0;
319 } 328 }
320 329
321 .toolbar-state-on .record-toolbar-item.toolbar-glyph { 330 .active-recording-toolbar-item.toolbar-glyph {
322 -webkit-mask-position: -288px -24px; 331 -webkit-mask-position: -288px -24px;
323 } 332 }
324 333
325 .camera-toolbar-item.toolbar-glyph { 334 .camera-toolbar-item.toolbar-glyph {
326 -webkit-mask-position: -96px -24px; 335 -webkit-mask-position: -96px -24px;
327 } 336 }
328 337
329 .step-in-toolbar-item.toolbar-glyph { 338 .step-in-toolbar-item.toolbar-glyph {
330 -webkit-mask-position: -64px -72px; 339 -webkit-mask-position: -64px -72px;
331 } 340 }
(...skipping 20 matching lines...) Expand all
352 } 361 }
353 362
354 .pause-on-exceptions-toolbar-item.toolbar-glyph { 363 .pause-on-exceptions-toolbar-item.toolbar-glyph {
355 -webkit-mask-position: -256px 0; 364 -webkit-mask-position: -256px 0;
356 } 365 }
357 366
358 .pause-toolbar-item.toolbar-glyph { 367 .pause-toolbar-item.toolbar-glyph {
359 -webkit-mask-position: -32px -72px; 368 -webkit-mask-position: -32px -72px;
360 } 369 }
361 370
362 .toolbar-state-on .pause-toolbar-item.toolbar-glyph { 371 .resume-toolbar-item.toolbar-glyph {
363 -webkit-mask-position: 0 -72px; 372 -webkit-mask-position: 0 -72px;
364 } 373 }
365 374
366 .toolbar-state-on .breakpoint-toolbar-item.toolbar-glyph { 375 .breakpoint-toolbar-item.toolbar-glyph {
367 -webkit-mask-position: -32px 0; 376 -webkit-mask-position: -32px 0;
368 } 377 }
369 378
370 .breakpoint-toolbar-item.toolbar-glyph { 379 .deactivate-breakpoint-toolbar-item.toolbar-glyph {
371 -webkit-mask-position: 0 -24px; 380 -webkit-mask-position: 0 -24px;
372 } 381 }
373 382
374 .notification-toolbar-item.toolbar-glyph { 383 .notification-toolbar-item.toolbar-glyph {
375 -webkit-mask-position: -32px -120px; 384 -webkit-mask-position: -32px -120px;
376 } 385 }
377 386
378 .format-toolbar-item.toolbar-glyph { 387 .format-toolbar-item.toolbar-glyph {
379 -webkit-mask-position: -256px -24px; 388 -webkit-mask-position: -256px -24px;
380 } 389 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 } 421 }
413 422
414 .eyedropper-toolbar-item.toolbar-glyph { 423 .eyedropper-toolbar-item.toolbar-glyph {
415 -webkit-mask-position: -288px -120px; 424 -webkit-mask-position: -288px -120px;
416 } 425 }
417 426
418 .add-toolbar-item.toolbar-glyph { 427 .add-toolbar-item.toolbar-glyph {
419 -webkit-mask-position: -224px -120px; 428 -webkit-mask-position: -224px -120px;
420 } 429 }
421 430
422 .toolbar-state-pause-outline .animation-control-toolbar-item.toolbar-glyph { 431 .animation-play-item.toolbar-glyph {
432 -webkit-mask-position: -320px -48px;
433 }
434
435 .animation-replay-item.toolbar-glyph {
436 -webkit-mask-position: -320px -24px;
437 }
438
439 .animation-pause-item.toolbar-glyph {
423 -webkit-mask-position: -320px 0px; 440 -webkit-mask-position: -320px 0px;
424 } 441 }
425 442
426 .toolbar-state-replay-outline .animation-control-toolbar-item.toolbar-glyph {
427 -webkit-mask-position: -320px -24px;
428 background-color: rgb(66, 129, 235) !important;
429 }
430
431 .toolbar-state-play-outline .animation-control-toolbar-item.toolbar-glyph {
432 -webkit-mask-position: -320px -48px;
433 background-color: rgb(66, 129, 235) !important;
434 }
435
436 .box-shadow-toolbar-item.toolbar-glyph { 443 .box-shadow-toolbar-item.toolbar-glyph {
437 -webkit-mask-position: -160px -48px; 444 -webkit-mask-position: -160px -48px;
438 } 445 }
439 446
440 .text-shadow-toolbar-item.toolbar-glyph { 447 .text-shadow-toolbar-item.toolbar-glyph {
441 -webkit-mask-position: -192px -48px; 448 -webkit-mask-position: -192px -48px;
442 } 449 }
443 450
444 .background-color-toolbar-item.toolbar-glyph { 451 .background-color-toolbar-item.toolbar-glyph {
445 -webkit-mask-position: -96px -144px; 452 -webkit-mask-position: -96px -144px;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 } 489 }
483 490
484 .folder-toolbar-item.toolbar-glyph { 491 .folder-toolbar-item.toolbar-glyph {
485 -webkit-mask-position: -224px -144px; 492 -webkit-mask-position: -224px -144px;
486 } 493 }
487 494
488 .goto-source-toolbar-item.toolbar-glyph { 495 .goto-source-toolbar-item.toolbar-glyph {
489 -webkit-mask-position: 0 -120px; 496 -webkit-mask-position: 0 -120px;
490 } 497 }
491 498
492 .toolbar-state-left-show .sidebar-toolbar-item.toolbar-glyph { 499 .show-left-sidebar-item.toolbar-glyph {
493 -webkit-mask-position: -160px -72px; 500 -webkit-mask-position: -160px -72px;
494 } 501 }
495 502
496 .toolbar-state-left-hide .sidebar-toolbar-item.toolbar-glyph { 503 .hide-left-sidebar-item.toolbar-glyph {
497 -webkit-mask-position: -192px -72px; 504 -webkit-mask-position: -192px -72px;
498 } 505 }
499 506
500 .toolbar-state-right-show .sidebar-toolbar-item.toolbar-glyph { 507 .show-right-sidebar-item.toolbar-glyph {
501 -webkit-mask-position: -288px -72px; 508 -webkit-mask-position: -160px -72px;
509 transform: rotate(180deg);
502 } 510 }
503 511
504 .toolbar-state-right-hide .sidebar-toolbar-item.toolbar-glyph { 512 .hide-right-sidebar-item.toolbar-glyph {
505 -webkit-mask-position: -256px -72px; 513 -webkit-mask-position: -192px -72px;
514 transform: rotate(180deg);
506 } 515 }
507 516
508 .toolbar-state-top-show .sidebar-toolbar-item.toolbar-glyph { 517 .show-top-sidebar-item.toolbar-glyph {
509 -webkit-mask-position: -160px -72px; 518 -webkit-mask-position: -160px -72px;
510 transform: translate(4px, 0) rotate(90deg); 519 transform: translate(4px, 0) rotate(90deg);
511 } 520 }
512 521
513 .toolbar-state-top-hide .sidebar-toolbar-item.toolbar-glyph { 522 .hide-top-sidebar-item.toolbar-glyph {
514 -webkit-mask-position: -192px -72px; 523 -webkit-mask-position: -192px -72px;
515 transform: translate(4px, -1px) rotate(90deg); 524 transform: translate(4px, 1px) rotate(90deg);
516 } 525 }
517 526
518 .toolbar-state-bottom-show .sidebar-toolbar-item.toolbar-glyph { 527 .show-bottom-sidebar-item.toolbar-glyph {
519 -webkit-mask-position: -288px -72px; 528 -webkit-mask-position: -160px -72px;
520 transform: translate(4px, 0) rotate(90deg); 529 transform: translate(4px, 0) rotate(-90deg);
521 } 530 }
522 531
523 .toolbar-state-bottom-hide .sidebar-toolbar-item.toolbar-glyph { 532 .hide-bottom-sidebar-item.toolbar-glyph {
524 -webkit-mask-position: -256px -72px; 533 -webkit-mask-position: -192px -72px;
525 transform: translate(4px, -1px) rotate(90deg); 534 transform: translate(4px, 1px) rotate(-90deg);
526 }
527
528 .toolbar-state-on .record-toolbar-item.toolbar-glyph,
529 .toolbar-state-active .filter-toolbar-item.toolbar-glyph,
530 .toolbar-state-active .block-toolbar-item.toolbar-glyph {
531 background-color: rgb(216, 0, 0) !important;
532 }
533
534 :host-context(.-theme-with-dark-background) .toolbar-state-active .filter-toolba r-item.toolbar-glyph,
535 :host-context(.-theme-with-dark-background) .toolbar-state-active .block-toolbar -item.toolbar-glyph,
536 :host-context(.-theme-with-dark-background) .toolbar-state-on .record-toolbar-it em.toolbar-glyph {
537 background-color: hsl(0, 100%, 65%) !important;
538 } 535 }
539 536
540 span.toolbar-select-container.toolbar-item.warning { 537 span.toolbar-select-container.toolbar-item.warning {
541 background: #ffd7d7; 538 background: #ffd7d7;
542 padding: 0 5px 0 0; 539 padding: 0 5px 0 0;
543 margin-right: 1px; 540 margin-right: 1px;
544 } 541 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698