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

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

Issue 2881453003: DevTools: update buttons to new style (Closed)
Patch Set: rebase over cleanup 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/searchableView.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 background-image: linear-gradient(hsl(0, 0%, 93%), hsl(0, 0%, 93%) 38%, hsl( 0, 0%, 87%)); 8 margin: 2px;
9 border: 1px solid hsla(0, 0%, 0%, 0.25); 9 height: 24px;
10 font-size: 12px;
11 border: 1px solid rgba(0, 0, 0, 0.2);
10 border-radius: 2px; 12 border-radius: 2px;
11 box-shadow: 0 1px 0 hsla(0, 0%, 0%, 0.08), inset 0 1px 2px hsla(0, 100%, 100 %, 0.75); 13 padding: 3px 12px;
12 color: hsl(0, 0%, 27%); 14 font-weight: 500;
13 font-size: 12px; 15 color: #333;
14 margin: 0 1px 0 0; 16 background-color: #fff;
15 text-shadow: 0 1px 0 hsl(0, 0%, 94%);
16 height: 24px;
17 padding-left: 10px;
18 padding-right: 10px;
19 -webkit-user-select: none;
20 flex: none; 17 flex: none;
21 } 18 }
22 19
23 :host-context(body.inactive), 20 :host(:not(:disabled):focus),
24 :host(:disabled) { 21 :host(:not(:disabled):hover),
25 background-image: linear-gradient(#f1f1f1, #f1f1f1 38%, #e6e6e6); 22 :host(:not(:disabled):active) {
26 border-color: rgba(80, 80, 80, 0.2); 23 background-color: #fafafa;
27 box-shadow: 0 1px 0 rgba(80, 80, 80, 0.08), inset 0 1px 2px rgba(255, 255, 2 55, 0.75); 24 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
28 color: #aaa; 25 cursor: pointer;
29 }
30
31 :host(:not(:disabled):hover) {
32 background-image: linear-gradient(hsl(0, 0%, 94%), hsl(0, 0%, 94%) 38%, hsl( 0, 0%, 88%));
33 border-color: hsla(0, 0%, 0%, 0.3);
34 box-shadow: 0 1px 0 hsla(0, 0%, 0%, 0.12), inset 0 1px 2px hsla(0, 100%, 100 %, 0.95);
35 color: hsl(0, 0%, 0%);
36 } 26 }
37 27
38 :host(:not(:disabled):active) { 28 :host(:not(:disabled):active) {
39 background-image: linear-gradient(hsl(0, 0%, 91%), hsl(0, 0%, 91%) 38%, hsl( 0, 0%, 84%)); 29 background-color: #f2f2f2;
40 box-shadow: none;
41 text-shadow: none;
42 } 30 }
43 31
44 :host(:not(:disabled):focus) { 32 :host(:not(:disabled):focus) {
45 -webkit-transition: border-color 200ms; 33 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(66, 133, 244, 0.4);
46 border-color: rgb(77, 144, 254);
47 outline: none;
48 } 34 }
35
36 :host(:disabled) {
37 opacity: 0.38;
38 }
39
40 :host(.primary), -theme-preserve {
pfeldman 2017/06/01 21:11:36 consider using a more specific selector name (.pri
luoe 2017/06/01 21:47:15 Done.
41 background-color: #4285F4;
42 border: none;
43 color: #fff;
44 }
45
46 :host(.primary:not(:disabled):focus),
47 :host(.primary:not(:disabled):hover), -theme-preserve {
48 background-color: #3B78E7;
49 }
50
51 :host(.primary:not(:disabled):active), -theme-preserve {
52 background-color: #3367D6;
53 }
54
55 :host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):f ocus),
56 :host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):h over),
57 :host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):a ctive) {
58 background-color: #313131;
59 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
60 }
61
62 :host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):f ocus) {
63 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(94, 151, 246, 0.6);
64 }
65
66 :host-context(.-theme-with-dark-background):host(:not(.primary):not(:disabled):a ctive) {
67 background-color: #3e3e3e;
68 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/searchableView.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698