Commit f8764798 authored by Pavel Feldman's avatar Pavel Feldman Committed by Commit Bot

DevTools: clean up the -theme-selection markup in the css.

All these rule definitions operate CSS variables now.

Bug: 935286
Change-Id: I9cdd4883e0c07e1040da06af8db3ef36f64ebc02
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1562893Reviewed-by: default avatarJoel Einbinder <einbinder@chromium.org>
Commit-Queue: Pavel Feldman <pfeldman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#649770}
parent dcd2afbb
...@@ -180,8 +180,7 @@ svg.bezier-preset-modify.bezier-preset-plus { ...@@ -180,8 +180,7 @@ svg.bezier-preset-modify.bezier-preset-plus {
margin-top: 16px; margin-top: 16px;
} }
svg.bezier-preset-modify:active, svg.bezier-preset-modify:active {
.-theme-selection-color {
transform: scale(1.1); transform: scale(1.1);
background-color: var(--selection-bg-color); background-color: var(--selection-bg-color);
} }
......
...@@ -62,8 +62,7 @@ ...@@ -62,8 +62,7 @@
pointer-events: none; pointer-events: none;
} }
.soft-context-menu-item-mouse-over, .soft-context-menu-item-mouse-over {
.-theme-selection-color {
border-top: 1px solid var(--context-menu-hover-bg); border-top: 1px solid var(--context-menu-hover-bg);
border-bottom: 1px solid var(--context-menu-hover-bg); border-bottom: 1px solid var(--context-menu-hover-bg);
background-color: var(--context-menu-hover-bg); background-color: var(--context-menu-hover-bg);
......
...@@ -147,13 +147,11 @@ select.toolbar-item:disabled + .toolbar-dropdown-arrow { ...@@ -147,13 +147,11 @@ select.toolbar-item:disabled + .toolbar-dropdown-arrow {
} }
.toolbar-button.toolbar-state-on .toolbar-glyph, .toolbar-button.toolbar-state-on .toolbar-glyph,
.toolbar-blue-on-hover .toolbar-button:not(.toolbar-state-on):enabled:hover:not(:active), .toolbar-blue-on-hover .toolbar-button:not(.toolbar-state-on):enabled:hover:not(:active) {
.-theme-selection-color {
background-color: var(--accent-color); background-color: var(--accent-color);
} }
.toolbar-button.toolbar-state-on .toolbar-text, .toolbar-button.toolbar-state-on .toolbar-text {
.-theme-selection-color {
color: var(--accent-color); color: var(--accent-color);
} }
...@@ -166,13 +164,11 @@ select.toolbar-item:disabled + .toolbar-dropdown-arrow { ...@@ -166,13 +164,11 @@ select.toolbar-item:disabled + .toolbar-dropdown-arrow {
} }
.toolbar-button.toolbar-state-on:enabled:hover:not(:active) .toolbar-glyph, .toolbar-button.toolbar-state-on:enabled:hover:not(:active) .toolbar-glyph,
.toolbar-blue-on-hover .toolbar-button:not(.toolbar-state-on):enabled:active:hover, .toolbar-blue-on-hover .toolbar-button:not(.toolbar-state-on):enabled:active:hover {
.-theme-selection-color {
background-color: var(--accent-color); background-color: var(--accent-color);
} }
.toolbar-button.toolbar-state-on:enabled:hover:not(:active) .toolbar-text, .toolbar-button.toolbar-state-on:enabled:hover:not(:active) .toolbar-text {
.-theme-selection-color {
color: var(--accent-color); color: var(--accent-color);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment