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

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

Issue 2881453003: DevTools: update buttons to new style (Closed)
Patch Set: a Created 3 years, 7 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/textButton.css
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/textButton.css b/third_party/WebKit/Source/devtools/front_end/ui/textButton.css
index d4a718b8bedd6b7cf97c0f0f46fd464c4d2388f3..e7b553466ed3f56df0ca3399063ee55bc9623842 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/textButton.css
+++ b/third_party/WebKit/Source/devtools/front_end/ui/textButton.css
@@ -5,44 +5,78 @@
*/
:host {
- background-image: linear-gradient(hsl(0, 0%, 93%), hsl(0, 0%, 93%) 38%, hsl(0, 0%, 87%));
- border: 1px solid hsla(0, 0%, 0%, 0.25);
- border-radius: 2px;
- box-shadow: 0 1px 0 hsla(0, 0%, 0%, 0.08), inset 0 1px 2px hsla(0, 100%, 100%, 0.75);
- color: hsl(0, 0%, 27%);
+ margin: 2px;
+ height: 24px;
font-size: 12px;
- margin: 0 1px 0 0;
- text-shadow: 0 1px 0 hsl(0, 0%, 94%);
- min-height: 2em !important;
- padding-left: 10px;
- padding-right: 10px;
- -webkit-user-select: none;
- flex: none;
+ line-height: 16px;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ border-radius: 2px;
+ padding: 3px 12px;
+ font-weight: 500;
+ color: #333;
+ background-color: #fff;
+}
+
+:host(:not(:disabled):focus),
+:host(:not(:disabled):hover),
+:host(:not(:disabled):active) {
+ background-color: #fafafa;
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
+}
+
+:host(:not(:disabled):active) {
+ background-color: #f2f2f2;
+}
+
+:host(:not(:disabled):focus) {
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(66, 133, 244, 0.4);
}
-:host-context(body.inactive),
:host(:disabled) {
- background-image: linear-gradient(#f1f1f1, #f1f1f1 38%, #e6e6e6);
- border-color: rgba(80, 80, 80, 0.2);
- box-shadow: 0 1px 0 rgba(80, 80, 80, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.75);
- color: #aaa;
+ opacity: 0.38;
}
-:host(:not(:disabled):hover) {
- background-image: linear-gradient(hsl(0, 0%, 94%), hsl(0, 0%, 94%) 38%, hsl(0, 0%, 88%));
- border-color: hsla(0, 0%, 0%, 0.3);
- box-shadow: 0 1px 0 hsla(0, 0%, 0%, 0.12), inset 0 1px 2px hsla(0, 100%, 100%, 0.95);
- color: hsl(0, 0%, 0%);
+:host(.primary), -theme-preserve {
+ background-color: #4285F4;
+ border: none;
+ color: #fff;
}
-:host(:not(:disabled):active) {
- background-image: linear-gradient(hsl(0, 0%, 91%), hsl(0, 0%, 91%) 38%, hsl(0, 0%, 84%));
- box-shadow: none;
- text-shadow: none;
+:host(.primary:not(:disabled):focus),
+:host(.primary:not(:disabled):hover), -theme-preserve {
+ background-color: #3B78E7;
}
-:host(:not(:disabled):focus) {
- -webkit-transition: border-color 200ms;
- border-color: rgb(77, 144, 254);
- outline: none;
+:host(.primary:not(:disabled):active), -theme-preserve {
+ background-color: #3367D6;
+}
+
+:host(.running), -theme-preserve {
+ background-color: #f44242;
+ border: none;
+ color: #fff;
+}
+
+:host(.running:not(:disabled):focus),
+:host(.running:not(:disabled):hover), -theme-preserve {
+ background-color: #e73b3b;
+}
+
+:host(.running:not(:disabled):active), -theme-preserve{
+ background-color: #d63333;
+}
+
+:host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):focus),
+:host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):hover),
+:host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):active) {
+ background-color: #313131;
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
+}
+
+:host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):focus) {
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(94, 151, 246, 0.6);
+}
+
+:host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):active) {
+ background-color: #3e3e3e;
}

Powered by Google App Engine
This is Rietveld 408576698