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

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

Issue 2875193002: DevTools: update text inputs to new style (Closed)
Patch Set: ac Created 3 years, 6 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/inspectorCommon.css
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/inspectorCommon.css b/third_party/WebKit/Source/devtools/front_end/ui/inspectorCommon.css
index 0163cbb120d413fa7ebfc607bf1070e594e3cded..f71d6f03309f0a9485e706cca6838c8575fd1eaa 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/inspectorCommon.css
+++ b/third_party/WebKit/Source/devtools/front_end/ui/inspectorCommon.css
@@ -170,9 +170,20 @@ input {
-webkit-filter: invert(80%);
}
-input[type="search"]:focus,
-input[type="text"]:focus {
- outline: auto rgb(56, 121, 217);
+.harmony-input:not([type]),
+.harmony-input[type=number],
+.harmony-input[type=text] {
+ padding: 3px 6px;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ border-radius: 2px;
+ height: 24px;
+}
+
+.harmony-input:not([type]):not(.error-input):not(:invalid):focus,
+.harmony-input[type=number]:not(.error-input):not(:invalid):focus,
+.harmony-input[type=text]:not(.error-input):not(:invalid):focus {
+ box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.4);
+ border-color: transparent;
}
.highlighted-search-result.current-search-result {
@@ -207,9 +218,23 @@ input[type="text"]:focus {
text-decoration: none !important;
}
-.error-input {
- outline: auto 2px red !important;
- outline-offset: -2px !important;
+.harmony-input:not([type]).error-input,
+.harmony-input[type=number].error-input,
+.harmony-input[type=text].error-input,
+.harmony-input:not([type]):invalid,
+.harmony-input[type=number]:invalid,
+.harmony-input[type=text]:invalid {
+ border-color: #C53929;
+}
+
+.harmony-input:not([type]).error-input:focus,
+.harmony-input[type=number].error-input:focus,
+.harmony-input[type=text].error-input:focus,
+.harmony-input:not([type]):invalid:focus,
+.harmony-input[type=number]:invalid:focus,
+.harmony-input[type=text]:invalid:focus {
+ border-color: transparent;
+ box-shadow: 0 0 0 2px rgba(197, 57, 41, 0.4);
}
.chrome-select {

Powered by Google App Engine
This is Rietveld 408576698