-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Copy path_wp-components-overrides.scss
101 lines (85 loc) · 1.96 KB
/
_wp-components-overrides.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
.components-form-toggle {
input[type="checkbox"] {
cursor: pointer;
}
}
/* @wordpress/components Button overrides */
.components-button.is-primary {
background-color: var(--color-accent);
border-color: var(--color-accent);
color: var(--color-text-inverted);
&:active:not(:disabled),
&:hover:not(:disabled),
&:focus:not(:disabled) {
background-color: var(--color-accent-60);
border-color: var(--color-accent-60);
color: var(--color-text-inverted);
}
&[disabled],
&:disabled,
&.disabled {
color: var(--color-neutral-20);
background-color: var(--color-neutral-5);
border-color: var(--color-neutral-5);
}
}
.components-button.is-secondary {
background-color: var(--color-surface);
color: var(--color-neutral-70);
box-shadow: inset 0 0 0 1px var(--color-neutral-10);
&:active:not(:disabled),
&:hover:not(:disabled) {
box-shadow: inset 0 0 0 1px var(--color-neutral-20);
color: var(--color-neutral-70);
}
&:visited {
color: var(--color-neutral-70);
}
&[disabled],
&:disabled,
&.disabled {
color: var(--color-neutral-20);
background-color: var(--color-surface);
box-shadow: inset 0 0 0 1px var(--color-neutral-5);
}
}
.components-button.is-tertiary {
color: var(--color-accent);
&:active:not(:disabled),
&:hover:not(:disabled) {
box-shadow: inset 0 0 0 1px var(--color-neutral-20);
color: var(--color-accent-60);
}
&:visited,
&[disabled],
&:disabled,
&.disabled {
color: var(--color-accent-60);
}
}
/* @wordpress/components ButtonGroup overrides */
.components-button-group {
.components-button {
&,
&.is-primary {
box-shadow: inset 0 0 0 1px var(--color-accent-60);
}
}
}
/* @wordpress/components RadioControl overrides */
.components-radio-control {
&__input[type="radio"] {
padding: 6px;
cursor: pointer;
&:checked {
border-color: var(--color-accent);
background-color: var(--color-accent);
}
}
}
.components-external-link__contents {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}