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

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

Issue 2741863002: DevTools: Focus background in Toolbars (Closed)
Patch Set: raf Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui/toolbar.css
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/toolbar.css b/third_party/WebKit/Source/devtools/front_end/ui/toolbar.css
index b59a2748fb9307c99b3b53e305e976bd495330cc..770dea8020fcdf58af8ef3298f9a366afd5d48d6 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/toolbar.css
+++ b/third_party/WebKit/Source/devtools/front_end/ui/toolbar.css
@@ -269,6 +269,23 @@ select.toolbar-item {
background-color: rgb(163, 163, 163);
}
+:host-context(.keyboard-focus) .toolbar-button:focus::after,
pfeldman 2017/03/28 17:48:04 host-context is for theming only, that's rather so
+:host-context(.keyboard-focus) .focused:not(.toolbar-input)::after{
+ position:absolute;
+ top: 2px;
+ bottom: 2px;
+ left: 2px;
+ right: 2px;
+ background-color: rgba(0, 0, 0, 0.08);
+ border-radius: 2px;
+ content: "";
+}
+
+:host-context(.keyboard-focus) .focused:not(.toolbar-input)::after{
+ left: 0px;
+ right: -2px;
+}
+
.toolbar-shadow.floating {
flex-direction: column;
height: auto;

Powered by Google App Engine
This is Rietveld 408576698