@stackoverflow/stacks 1.6.5 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -2
- package/dist/css/stacks.css +157 -158
- package/dist/css/stacks.min.css +1 -1
- package/lib/css/components/activity-indicator.less +9 -5
- package/lib/css/components/avatars.less +14 -5
- package/lib/css/components/award-bling.less +2 -0
- package/lib/css/components/badges.less +25 -3
- package/lib/css/components/breadcrumbs.less +9 -5
- package/lib/css/components/button-groups.less +3 -0
- package/lib/css/components/buttons.less +35 -6
- package/lib/css/components/code-blocks.less +13 -0
- package/lib/css/components/empty-states.less +3 -3
- package/lib/css/components/expandable.less +61 -59
- package/lib/css/components/labels.less +12 -4
- package/lib/css/components/link-previews.less +19 -4
- package/lib/css/components/menu.less +4 -1
- package/lib/css/components/modals.less +5 -0
- package/lib/css/components/navigation.less +38 -46
- package/lib/css/components/notices.less +28 -7
- package/lib/css/components/pagination.less +2 -2
- package/lib/css/components/progress-bars.less +27 -5
- package/lib/css/components/prose.less +64 -22
- package/lib/css/components/sidebar-widgets.less +75 -67
- package/lib/css/components/spinner.less +21 -13
- package/lib/css/components/tags.less +21 -16
- package/lib/css/components/toggle-switches.less +12 -4
- package/lib/css/components/uploader.less +34 -16
- package/lib/css/components/user-cards.less +10 -1
- package/lib/test/s-tooltip.test.ts +62 -0
- package/lib/test/s-tooltip.visual.test.ts +31 -0
- package/package.json +30 -14
|
@@ -4,21 +4,25 @@
|
|
|
4
4
|
--_ai-fc: @white;
|
|
5
5
|
|
|
6
6
|
// CONTEXTUAL STYLES
|
|
7
|
-
.highcontrast-mode({
|
|
7
|
+
.highcontrast-mode({
|
|
8
|
+
--_ai-fc: var(--white);
|
|
9
|
+
});
|
|
8
10
|
|
|
9
11
|
// VARIANTS
|
|
12
|
+
&&__danger {
|
|
13
|
+
--_ai-bg: var(--red-500);
|
|
14
|
+
--_ai-focus-ring: var(--focus-ring-error);
|
|
15
|
+
}
|
|
16
|
+
|
|
10
17
|
&&__success {
|
|
11
18
|
--_ai-bg: var(--green-500);
|
|
12
19
|
--_ai-focus-ring: var(--focus-ring-success);
|
|
13
20
|
}
|
|
21
|
+
|
|
14
22
|
&&__warning {
|
|
15
23
|
--_ai-bg: var(--yellow-600);
|
|
16
24
|
--_ai-focus-ring: var(--focus-ring-warning);
|
|
17
25
|
}
|
|
18
|
-
&&__danger {
|
|
19
|
-
--_ai-bg: var(--red-500);
|
|
20
|
-
--_ai-focus-ring: var(--focus-ring-error);
|
|
21
|
-
}
|
|
22
26
|
|
|
23
27
|
background-color: var(--_ai-bg);
|
|
24
28
|
box-shadow: 0 0 0 var(--su-static4) var(--_ai-focus-ring);
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
|
|
8
8
|
// CONTEXTUAL STYLES
|
|
9
9
|
.highcontrast-mode({
|
|
10
|
-
background-color: var(--black);
|
|
11
|
-
box-shadow: 0 0 0 1px var(--black);
|
|
12
|
-
color: var(--white);
|
|
13
|
-
|
|
14
10
|
.s-avatar--letter {
|
|
15
11
|
color: var(--white);
|
|
16
12
|
}
|
|
13
|
+
|
|
14
|
+
background-color: var(--black);
|
|
15
|
+
box-shadow: 0 0 0 1px var(--black);
|
|
16
|
+
color: var(--white);
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
// MODIFIERS
|
|
@@ -22,36 +22,43 @@
|
|
|
22
22
|
&&__48 {
|
|
23
23
|
--_av-br: var(--br-md);
|
|
24
24
|
}
|
|
25
|
+
|
|
25
26
|
&&__96,
|
|
26
27
|
&&__128 {
|
|
27
28
|
--_av-br: calc(var(--br-lg) + var(--br-sm));
|
|
28
29
|
--_av-scale-badge: 3;
|
|
29
30
|
}
|
|
31
|
+
|
|
30
32
|
&&__24 {
|
|
31
33
|
--_av-size: var(--su-static24);
|
|
32
34
|
--_av-fs-letter: var(--su-static16);
|
|
33
35
|
--_av-scale-badge: 1.1;
|
|
34
36
|
}
|
|
37
|
+
|
|
35
38
|
&&__32 {
|
|
36
39
|
--_av-size: var(--su-static32);
|
|
37
40
|
--_av-fs-letter: calc(var(--su-static24) - var(--su-static2));
|
|
38
41
|
--_av-scale-badge: 1.3;
|
|
39
42
|
}
|
|
43
|
+
|
|
40
44
|
&&__48 {
|
|
41
45
|
--_av-size: var(--su-static48);
|
|
42
46
|
--_av-fs-letter: calc(var(--su-static32) + var(--su-static2));
|
|
43
47
|
--_av-scale-badge: 1.6;
|
|
44
48
|
}
|
|
49
|
+
|
|
45
50
|
&&__64 {
|
|
46
51
|
--_av-size: var(--su-static64);
|
|
47
52
|
--_av-br: var(--br-lg);
|
|
48
53
|
--_av-fs-letter: calc(var(--su-static48) - var(--su-static4));
|
|
49
54
|
--_av-scale-badge: 2.4;
|
|
50
55
|
}
|
|
56
|
+
|
|
51
57
|
&&__96 {
|
|
52
58
|
--_av-size: var(--su-static96);
|
|
53
59
|
--_av-fs-letter: calc(var(--su-static64) + var(--su-static2));
|
|
54
60
|
}
|
|
61
|
+
|
|
55
62
|
&&__128 {
|
|
56
63
|
--_av-size: var(--su-static128);
|
|
57
64
|
--_av-fs-letter: calc(var(--su-static96) - var(--su-static8));
|
|
@@ -65,15 +72,17 @@
|
|
|
65
72
|
-webkit-transform: scale(var(--_av-scale-badge));
|
|
66
73
|
transform: scale(var(--_av-scale-badge));
|
|
67
74
|
}
|
|
75
|
+
|
|
68
76
|
& &--image {
|
|
69
77
|
border-radius: var(--_av-br);
|
|
70
78
|
display: block;
|
|
71
79
|
height: var(--_av-size);
|
|
72
80
|
width: var(--_av-size);
|
|
73
81
|
}
|
|
82
|
+
|
|
74
83
|
& &--letter {
|
|
75
|
-
display: block; // Make sure we're treating the letter as a block-level element
|
|
76
84
|
color: @white; // Force a light appearance of text rendering
|
|
85
|
+
display: block; // Make sure we're treating the letter as a block-level element
|
|
77
86
|
font-size: var(--_av-fs-letter); // Force a font size so the avatar text doesn't get smaller as the window resizes
|
|
78
87
|
font-weight: bold;
|
|
79
88
|
line-height: 1.4; // Guards against some line-height trolling from the parent
|
|
@@ -35,11 +35,13 @@
|
|
|
35
35
|
--_ba-as: flex-start;
|
|
36
36
|
--_ba-fs: var(--fs-fine);
|
|
37
37
|
}
|
|
38
|
+
|
|
38
39
|
&&__xs {
|
|
39
40
|
--_ba-lh: 1.5;
|
|
40
41
|
--_ba-px: var(--su2);
|
|
41
42
|
--_ba-wmn: calc(var(--su-static16) + var(--su-static2));
|
|
42
43
|
}
|
|
44
|
+
|
|
43
45
|
&&__sm {
|
|
44
46
|
--_ba-lh: 1.8;
|
|
45
47
|
--_ba-px: var(--su4);
|
|
@@ -52,16 +54,21 @@
|
|
|
52
54
|
&&__bronze {
|
|
53
55
|
--_ba-fc: var(--black-700);
|
|
54
56
|
|
|
55
|
-
.highcontrast-mode({
|
|
57
|
+
.highcontrast-mode({
|
|
58
|
+
--_ba-fc: var(--black-900);
|
|
59
|
+
});
|
|
56
60
|
}
|
|
61
|
+
|
|
57
62
|
&&__gold {
|
|
58
63
|
--_ba-bc: var(--gold-darker);
|
|
59
64
|
--_ba-bg: var(--gold-lighter);
|
|
60
65
|
}
|
|
66
|
+
|
|
61
67
|
&&__silver {
|
|
62
68
|
--_ba-bc: var(--silver-darker);
|
|
63
69
|
--_ba-bg: var(--silver-lighter);
|
|
64
70
|
}
|
|
71
|
+
|
|
65
72
|
&&__bronze {
|
|
66
73
|
--_ba-bc: var(--bronze-darker);
|
|
67
74
|
--_ba-bg: var(--bronze-lighter);
|
|
@@ -74,28 +81,35 @@
|
|
|
74
81
|
--_ba-bc: transparent;
|
|
75
82
|
--_ba-fc: var(--white);
|
|
76
83
|
}
|
|
84
|
+
|
|
77
85
|
&&__rep,
|
|
78
86
|
&&__rep-down,
|
|
79
87
|
&&__votes:not(&__answered) {
|
|
80
88
|
--_ba-bg: var(--white);
|
|
81
89
|
}
|
|
90
|
+
|
|
82
91
|
&&__answered {
|
|
83
92
|
--_ba-bg: var(--green-400);
|
|
84
93
|
}
|
|
94
|
+
|
|
85
95
|
&&__bounty {
|
|
86
96
|
--_ba-bg: var(--blue-600);
|
|
87
97
|
}
|
|
98
|
+
|
|
88
99
|
&&__important {
|
|
89
100
|
--_ba-bg: var(--red-600);
|
|
90
101
|
}
|
|
102
|
+
|
|
91
103
|
&&__rep {
|
|
92
104
|
--_ba-bc: var(--green-400);
|
|
93
105
|
--_ba-fc: var(--green-500);
|
|
94
106
|
}
|
|
107
|
+
|
|
95
108
|
&&__rep-down {
|
|
96
109
|
--_ba-bc: var(--red-400);
|
|
97
110
|
--_ba-fc: var(--red-500);
|
|
98
111
|
}
|
|
112
|
+
|
|
99
113
|
&&__votes:not(&__answered) {
|
|
100
114
|
--_ba-bc: var(--black-150);
|
|
101
115
|
--_ba-fc: var(--black-700);
|
|
@@ -107,6 +121,7 @@
|
|
|
107
121
|
--_ba-bg: var(--theme-primary-075);
|
|
108
122
|
--_ba-fc: var(--theme-primary-800);
|
|
109
123
|
}
|
|
124
|
+
|
|
110
125
|
&&__moderator {
|
|
111
126
|
--_ba-bc: var(--theme-secondary-200);
|
|
112
127
|
--_ba-bg: var(--theme-secondary-075);
|
|
@@ -125,6 +140,7 @@
|
|
|
125
140
|
--_ba-before-mt: 0;
|
|
126
141
|
--_ba-before-w: calc(var(--su-static8) - var(--su-static1)); // 7px
|
|
127
142
|
}
|
|
143
|
+
|
|
128
144
|
&.s-badge__sm {
|
|
129
145
|
--_ba-g: var(--su-static2);
|
|
130
146
|
--_ba-before-h: calc(var(--su-static12) - var(--su-static1)); // 11px
|
|
@@ -147,6 +163,7 @@
|
|
|
147
163
|
mask-size: contain;
|
|
148
164
|
}
|
|
149
165
|
}
|
|
166
|
+
|
|
150
167
|
&&__staff {
|
|
151
168
|
// Staff badges are always "Stack Overflow Orange"
|
|
152
169
|
--_ba-bc: var(--orange-300);
|
|
@@ -161,6 +178,7 @@
|
|
|
161
178
|
--_ba-bc: transparent;
|
|
162
179
|
}
|
|
163
180
|
}
|
|
181
|
+
|
|
164
182
|
&&__danger {
|
|
165
183
|
--_ba-bc: var(--red-600);
|
|
166
184
|
--_ba-bg: var(--red-100);
|
|
@@ -170,7 +188,9 @@
|
|
|
170
188
|
--_ba-bg: var(--red-500);
|
|
171
189
|
--_ba-fc: @white;
|
|
172
190
|
|
|
173
|
-
.highcontrast-mode({
|
|
191
|
+
.highcontrast-mode({
|
|
192
|
+
--_ba-fc: var(--white);
|
|
193
|
+
});
|
|
174
194
|
}
|
|
175
195
|
}
|
|
176
196
|
&&__info {
|
|
@@ -178,11 +198,13 @@
|
|
|
178
198
|
--_ba-bg: var(--blue-100);
|
|
179
199
|
--_ba-fc: var(--blue-900);
|
|
180
200
|
}
|
|
201
|
+
|
|
181
202
|
&&__warning {
|
|
182
203
|
--_ba-bc: var(--yellow-600);
|
|
183
204
|
--_ba-bg: var(--yellow-100);
|
|
184
205
|
--_ba-fc: var(--yellow-900);
|
|
185
206
|
}
|
|
207
|
+
|
|
186
208
|
&&__muted {
|
|
187
209
|
--_ba-bc: var(--black-600);
|
|
188
210
|
--_ba-bg: var(--black-100);
|
|
@@ -197,8 +219,8 @@
|
|
|
197
219
|
// CHILD ELEMENTS
|
|
198
220
|
&--image, // Included with no base class to account for usage in .s-progress__badge
|
|
199
221
|
& &--image {
|
|
200
|
-
display: inline-flex;
|
|
201
222
|
align-self: center;
|
|
223
|
+
display: inline-flex;
|
|
202
224
|
margin-right: var(--su1);
|
|
203
225
|
margin-left: calc((var(--su4) + var(--su1)) * -1);
|
|
204
226
|
}
|
|
@@ -8,6 +8,15 @@
|
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
// CHILD ELEMENTS
|
|
11
|
+
& &--divider {
|
|
12
|
+
.highcontrast-mode({
|
|
13
|
+
color: var(--fc-light);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
margin-left: var(--_br-divider-px);
|
|
17
|
+
margin-right: var(--_br-divider-px);
|
|
18
|
+
}
|
|
19
|
+
|
|
11
20
|
& &--item {
|
|
12
21
|
align-items: center;
|
|
13
22
|
display: flex;
|
|
@@ -15,12 +24,7 @@
|
|
|
15
24
|
margin-bottom: var(--su2);
|
|
16
25
|
margin-top: var(--su2);
|
|
17
26
|
}
|
|
18
|
-
& &--divider {
|
|
19
|
-
.highcontrast-mode({ color: var(--fc-light); });
|
|
20
27
|
|
|
21
|
-
margin-left: var(--_br-divider-px);
|
|
22
|
-
margin-right: var(--_br-divider-px);
|
|
23
|
-
}
|
|
24
28
|
& &--link {
|
|
25
29
|
color: var(--_br-link-fc);
|
|
26
30
|
|
|
@@ -45,11 +45,13 @@
|
|
|
45
45
|
border-radius: 0;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
+
|
|
48
49
|
&:last-child:not(:only-child) {
|
|
49
50
|
.s-btn:not(:last-child) {
|
|
50
51
|
border-radius: 0;
|
|
51
52
|
}
|
|
52
53
|
}
|
|
54
|
+
|
|
53
55
|
&:first-child:not(:only-child) {
|
|
54
56
|
.s-btn:not(:first-child) {
|
|
55
57
|
border-radius: 0;
|
|
@@ -64,6 +66,7 @@
|
|
|
64
66
|
&:active {
|
|
65
67
|
z-index: var(--zi-active);
|
|
66
68
|
}
|
|
69
|
+
|
|
67
70
|
&.is-selected,
|
|
68
71
|
&--radio:checked + .s-btn {
|
|
69
72
|
z-index: var(--zi-selected); // When the button is active or selected, it should pop above its siblings
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
--_bu-filled-bg: var(--theme-button-filled-background-color);
|
|
26
26
|
--_bu-filled-bg-active: var(--theme-button-filled-active-background-color);
|
|
27
27
|
--_bu-filled-bg-selected: var(--theme-button-filled-selected-background-color);
|
|
28
|
+
--_bu-filled-bs: inset 0 var(--su-static1) 0 0 hsla(0, 0, 100%, 0.7);
|
|
28
29
|
--_bu-filled-fc: var(--theme-button-filled-color);
|
|
29
30
|
--_bu-filled-fc-active: var(--theme-button-filled-hover-color); // Note: hover color used here intentionally
|
|
30
31
|
--_bu-filled-fc-hover: var(--theme-button-filled-hover-color);
|
|
@@ -44,7 +45,9 @@
|
|
|
44
45
|
// CONTEXTUAL STYLES
|
|
45
46
|
.dark-mode({
|
|
46
47
|
--_bu-bs: none;
|
|
48
|
+
--_bu-filled-bs: var(--_bu-bs);
|
|
47
49
|
});
|
|
50
|
+
|
|
48
51
|
.highcontrast-mode({
|
|
49
52
|
--_bu-bc: currentColor;
|
|
50
53
|
--_bu-filled-bc: var(--_bu-bc);
|
|
@@ -57,24 +60,29 @@
|
|
|
57
60
|
&[disabled],
|
|
58
61
|
&[aria-disabled="true"] {
|
|
59
62
|
--_bu-bs: none !important;
|
|
63
|
+
--_bu-filled-bs: var(--_bu-bs);
|
|
60
64
|
opacity: var(--_o-disabled-static);
|
|
61
65
|
pointer-events: none;
|
|
62
66
|
text-decoration: none;
|
|
63
67
|
}
|
|
68
|
+
|
|
64
69
|
button &,
|
|
65
70
|
button[type="submit"] &,
|
|
66
71
|
button[type="reset"] & {
|
|
67
72
|
-webkit-appearance: button; // [1]
|
|
68
73
|
}
|
|
74
|
+
|
|
69
75
|
&.grid {
|
|
70
76
|
display: flex; // Override &&__danger buttons having inline-block by default
|
|
71
77
|
}
|
|
78
|
+
|
|
72
79
|
&.is-loading {
|
|
73
80
|
.svg-icon:first-child {
|
|
74
81
|
margin-left: -23px;
|
|
75
82
|
opacity: 0; // [2]
|
|
76
83
|
}
|
|
77
84
|
}
|
|
85
|
+
|
|
78
86
|
&.is-selected,
|
|
79
87
|
.s-btn-group.s-btn-group--radio &--radio:checked + & {
|
|
80
88
|
background-color: var(--_bu-bg-selected);
|
|
@@ -84,6 +92,7 @@
|
|
|
84
92
|
.s-btn--number {
|
|
85
93
|
color: var(--_bu-number-fc-selected);
|
|
86
94
|
}
|
|
95
|
+
|
|
87
96
|
&.s-btn__filled { // this needs to live here to adapt to radio button-group
|
|
88
97
|
border-color: var(--_bu-filled-bc-selected);
|
|
89
98
|
background-color: var(--_bu-filled-bg-selected);
|
|
@@ -104,6 +113,7 @@
|
|
|
104
113
|
}
|
|
105
114
|
}
|
|
106
115
|
}
|
|
116
|
+
|
|
107
117
|
&.is-selected:not(:focus),
|
|
108
118
|
.s-btn-group.s-btn-group--radio &--radio:checked:not(:focus) + & {
|
|
109
119
|
box-shadow: none;
|
|
@@ -111,12 +121,12 @@
|
|
|
111
121
|
|
|
112
122
|
// MODIFIERS
|
|
113
123
|
&&__filled {
|
|
114
|
-
--_bu-bs: inset 0 var(--su-static1) 0 0 hsla(0, 0, 100%, 0.7);
|
|
115
|
-
|
|
116
124
|
border-color: var(--_bu-filled-bc);
|
|
117
125
|
background-color: var(--_bu-filled-bg);
|
|
126
|
+
box-shadow: var(--_bu-filled-bs);
|
|
118
127
|
color: var(--_bu-filled-fc);
|
|
119
128
|
}
|
|
129
|
+
|
|
120
130
|
&&__outlined {
|
|
121
131
|
border-color: var(--_bu-outlined-bc);
|
|
122
132
|
background-color: var(--_bu-outlined-bg);
|
|
@@ -132,10 +142,12 @@
|
|
|
132
142
|
|
|
133
143
|
outline: initial;
|
|
134
144
|
}
|
|
145
|
+
|
|
135
146
|
&&__link {
|
|
136
147
|
--_bu-baw: 0;
|
|
137
148
|
--_bu-br: 0;
|
|
138
149
|
--_bu-bs: none;
|
|
150
|
+
--_bu-filled-bs: var(--_bu-bs);
|
|
139
151
|
--_bu-focus-ring: none;
|
|
140
152
|
--_bu-p: 0;
|
|
141
153
|
|
|
@@ -147,6 +159,7 @@
|
|
|
147
159
|
&[aria-disabled="true"] {
|
|
148
160
|
--_bu-bg: none;
|
|
149
161
|
}
|
|
162
|
+
|
|
150
163
|
&.s-btn__dropdown {
|
|
151
164
|
padding-right: 0.9em;
|
|
152
165
|
}
|
|
@@ -156,6 +169,7 @@
|
|
|
156
169
|
font: inherit;
|
|
157
170
|
text-align: inherit;
|
|
158
171
|
}
|
|
172
|
+
|
|
159
173
|
&&__unset {
|
|
160
174
|
&,
|
|
161
175
|
&:hover,
|
|
@@ -165,6 +179,7 @@
|
|
|
165
179
|
--_bu-bg: none;
|
|
166
180
|
--_bu-br: 0;
|
|
167
181
|
--_bu-bs: none;
|
|
182
|
+
--_bu-filled-bs: var(--_bu-bs);
|
|
168
183
|
--_bu-fc: unset;
|
|
169
184
|
--_bu-focus-ring: none;
|
|
170
185
|
--_bu-p: 0;
|
|
@@ -192,6 +207,7 @@
|
|
|
192
207
|
|
|
193
208
|
padding-right: calc(var(--_bu-p) * 2.5);
|
|
194
209
|
}
|
|
210
|
+
|
|
195
211
|
&&__icon {
|
|
196
212
|
.svg-icon {
|
|
197
213
|
vertical-align: baseline;
|
|
@@ -207,9 +223,11 @@
|
|
|
207
223
|
--_bu-fs: var(--fs-fine);
|
|
208
224
|
--_bu-p: 0.6em;
|
|
209
225
|
}
|
|
226
|
+
|
|
210
227
|
&&__sm {
|
|
211
228
|
--_bu-fs: var(--fs-caption);
|
|
212
229
|
}
|
|
230
|
+
|
|
213
231
|
&&__md {
|
|
214
232
|
--_bu-br: calc(var(--br-sm) + var(--su-static1));
|
|
215
233
|
--_bu-fs: var(--fs-body3);
|
|
@@ -223,11 +241,11 @@
|
|
|
223
241
|
--_bu-filled-bc: transparent;
|
|
224
242
|
});
|
|
225
243
|
}
|
|
244
|
+
|
|
226
245
|
&&__danger {
|
|
227
246
|
--_bu-bg-active: var(--red-100);
|
|
228
247
|
--_bu-bg-hover: var(--red-050);
|
|
229
248
|
--_bu-bg-selected: var(--red-200);
|
|
230
|
-
--_bu-bs: inset 0 var(--su-static1) 0 0 hsla(0, 0%, 100%, 0.4);
|
|
231
249
|
--_bu-fc: var(--red-600);
|
|
232
250
|
--_bu-fc-active: var(--_bu-fc);
|
|
233
251
|
--_bu-fc-hover: var(--red-700);
|
|
@@ -239,6 +257,7 @@
|
|
|
239
257
|
--_bu-filled-bg-active: var(--red-700);
|
|
240
258
|
--_bu-filled-bg-hover: var(--red-600);
|
|
241
259
|
--_bu-filled-bg-selected: var(--red-800);
|
|
260
|
+
--_bu-filled-bs: inset 0 var(--su-static1) 0 0 hsla(0, 0%, 100%, 0.4);
|
|
242
261
|
--_bu-filled-fc: var(--white);
|
|
243
262
|
--_bu-filled-fc-active: var(--_bu-filled-fc);
|
|
244
263
|
--_bu-filled-fc-hover: var(--_bu-filled-fc);
|
|
@@ -257,6 +276,7 @@
|
|
|
257
276
|
--_bu-number-fc: var(--white);
|
|
258
277
|
--_bu-number-fc-selected: var(--black);
|
|
259
278
|
});
|
|
279
|
+
|
|
260
280
|
.highcontrast-dark-mode({
|
|
261
281
|
--_bu-filled-fc: var(--white);
|
|
262
282
|
--_bu-number-fc: var(--black);
|
|
@@ -264,11 +284,11 @@
|
|
|
264
284
|
});
|
|
265
285
|
}
|
|
266
286
|
}
|
|
287
|
+
|
|
267
288
|
&&__muted {
|
|
268
289
|
--_bu-bg-active: var(--black-050);
|
|
269
290
|
--_bu-bg-hover: var(--black-025);
|
|
270
291
|
--_bu-bg-selected: var(--black-075);
|
|
271
|
-
--_bu-bs: inset 0 var(--su-static1) 0 0 hsla(0, 0%, 100%, 0.4);
|
|
272
292
|
--_bu-fc: var(--black-500);
|
|
273
293
|
--_bu-fc-active: var(--_bu-fc);
|
|
274
294
|
--_bu-fc-hover: var(--black-600);
|
|
@@ -280,6 +300,7 @@
|
|
|
280
300
|
--_bu-filled-bg-active: var(--black-200);
|
|
281
301
|
--_bu-filled-bg-hover: var(--black-150);
|
|
282
302
|
--_bu-filled-bg-selected: var(--black-350);
|
|
303
|
+
--_bu-filled-bs: inset 0 var(--su-static1) 0 0 hsla(0, 0%, 100%, 0.4);
|
|
283
304
|
--_bu-filled-fc: var(--black-700);
|
|
284
305
|
--_bu-filled-fc-active: var(--_bu-filled-fc);
|
|
285
306
|
--_bu-filled-fc-hover: var(--_bu-filled-fc);
|
|
@@ -302,6 +323,7 @@
|
|
|
302
323
|
}
|
|
303
324
|
});
|
|
304
325
|
}
|
|
326
|
+
|
|
305
327
|
&&__primary {
|
|
306
328
|
--_bu-bg: var(--theme-button-primary-background-color);
|
|
307
329
|
--_bu-bg-active: var(--theme-button-primary-active-background-color);
|
|
@@ -325,9 +347,11 @@
|
|
|
325
347
|
--_bu-number-fc: var(--white);
|
|
326
348
|
--_bu-number-fc-selected: var(--black);
|
|
327
349
|
});
|
|
350
|
+
|
|
328
351
|
.highcontrast-mode({
|
|
329
352
|
--_bu-bc: transparent;
|
|
330
353
|
});
|
|
354
|
+
|
|
331
355
|
.highcontrast-dark-mode({
|
|
332
356
|
--_bu-bg: var(--theme-secondary-400);
|
|
333
357
|
--_bu-bg-active: var(--theme-secondary-600);
|
|
@@ -344,6 +368,7 @@
|
|
|
344
368
|
--_bu-bc: transparent;
|
|
345
369
|
});
|
|
346
370
|
}
|
|
371
|
+
|
|
347
372
|
&&__facebook {
|
|
348
373
|
@_fb-brand: #385499;
|
|
349
374
|
--_bu-bc: transparent;
|
|
@@ -355,6 +380,7 @@
|
|
|
355
380
|
--_bu-fc-hover: var(--_bu-fc);
|
|
356
381
|
--_bu-hc-bc: transparent;
|
|
357
382
|
}
|
|
383
|
+
|
|
358
384
|
&&__google {
|
|
359
385
|
--_bu-bc: var(--bc-medium);
|
|
360
386
|
--_bu-bg: var(--white);
|
|
@@ -365,6 +391,7 @@
|
|
|
365
391
|
--_bu-fc-hover: var(--black-800);
|
|
366
392
|
--_bu-focus-ring: 0 0 0 var(--su-static4) var(--focus-ring-muted);
|
|
367
393
|
}
|
|
394
|
+
|
|
368
395
|
&&__github {
|
|
369
396
|
--_bu-bg: var(--black-750);
|
|
370
397
|
--_bu-bg-active: var(--black);
|
|
@@ -386,9 +413,11 @@
|
|
|
386
413
|
line-height: var(--lh-xs);
|
|
387
414
|
background-color: currentColor;
|
|
388
415
|
}
|
|
416
|
+
|
|
389
417
|
& &--number {
|
|
390
418
|
color: var(--_bu-number-fc);
|
|
391
419
|
}
|
|
420
|
+
|
|
392
421
|
&--radio { // This lives alongside a .s-btn element. These styles are the equivelent of `.v-visible-sr`
|
|
393
422
|
border: 0;
|
|
394
423
|
clip-path: inset(50%);
|
|
@@ -413,6 +442,7 @@
|
|
|
413
442
|
background-color: var(--_bu-bg-hover);
|
|
414
443
|
color: var(--_bu-fc-hover);
|
|
415
444
|
}
|
|
445
|
+
|
|
416
446
|
&:active {
|
|
417
447
|
&.s-btn__filled {
|
|
418
448
|
background-color: var(--_bu-filled-bg-active);
|
|
@@ -423,13 +453,13 @@
|
|
|
423
453
|
color: var(--_bu-fc-active);
|
|
424
454
|
}
|
|
425
455
|
}
|
|
456
|
+
|
|
426
457
|
&:focus,
|
|
427
458
|
&--radio:focus + & {
|
|
428
459
|
box-shadow: var(--_bu-focus-ring);
|
|
429
460
|
outline: none;
|
|
430
461
|
}
|
|
431
462
|
|
|
432
|
-
// STYLES MODIFIED BY COMPONENT-SPECIFIC CUSTOM PROPERTIES
|
|
433
463
|
background-color: var(--_bu-bg);
|
|
434
464
|
border: var(--_bu-baw) solid var(--_bu-bc);
|
|
435
465
|
border-radius: var(--_bu-br);
|
|
@@ -438,7 +468,6 @@
|
|
|
438
468
|
font-size: var(--_bu-fs);
|
|
439
469
|
padding: var(--_bu-p);
|
|
440
470
|
|
|
441
|
-
// STATIC COMPONENT STYLES
|
|
442
471
|
cursor: pointer;
|
|
443
472
|
display: inline-block;
|
|
444
473
|
font-family: inherit;
|
|
@@ -14,10 +14,12 @@
|
|
|
14
14
|
.hljs-title {
|
|
15
15
|
color: var(--highlight-literal);
|
|
16
16
|
}
|
|
17
|
+
|
|
17
18
|
.hljs-bullet,
|
|
18
19
|
.hljs-code {
|
|
19
20
|
color: var(--highlight-punctuation);
|
|
20
21
|
}
|
|
22
|
+
|
|
21
23
|
.hljs-doctag,
|
|
22
24
|
.hljs-keyword,
|
|
23
25
|
.hljs-meta-keyword,
|
|
@@ -28,6 +30,7 @@
|
|
|
28
30
|
.hljs-selector-tag {
|
|
29
31
|
color: var(--highlight-keyword);
|
|
30
32
|
}
|
|
33
|
+
|
|
31
34
|
.hljs-name,
|
|
32
35
|
.hljs-number,
|
|
33
36
|
.hljs-quote,
|
|
@@ -36,6 +39,7 @@
|
|
|
36
39
|
.hljs-type {
|
|
37
40
|
color: var(--highlight-namespace);
|
|
38
41
|
}
|
|
42
|
+
|
|
39
43
|
.hljs-link,
|
|
40
44
|
.hljs-meta-string,
|
|
41
45
|
.hljs-regexp,
|
|
@@ -46,33 +50,42 @@
|
|
|
46
50
|
.hljs-variable {
|
|
47
51
|
color: var(--highlight-variable);
|
|
48
52
|
}
|
|
53
|
+
|
|
49
54
|
.hljs-addition {
|
|
50
55
|
color: var(--highlight-addition);
|
|
51
56
|
}
|
|
57
|
+
|
|
52
58
|
.hljs-attr {
|
|
53
59
|
color: var(--highlight-attribute);
|
|
54
60
|
}
|
|
61
|
+
|
|
55
62
|
.hljs-attribute {
|
|
56
63
|
color: var(--highlight-symbol);
|
|
57
64
|
}
|
|
65
|
+
|
|
58
66
|
.hljs-comment {
|
|
59
67
|
color: var(--highlight-comment);
|
|
60
68
|
}
|
|
69
|
+
|
|
61
70
|
.hljs-deletion {
|
|
62
71
|
color: var(--highlight-deletion);
|
|
63
72
|
}
|
|
73
|
+
|
|
64
74
|
.hljs-emphasis {
|
|
65
75
|
font-style: italic;
|
|
66
76
|
}
|
|
77
|
+
|
|
67
78
|
.hljs-strong {
|
|
68
79
|
font-weight: bold;
|
|
69
80
|
}
|
|
81
|
+
|
|
70
82
|
.hljs-subst {
|
|
71
83
|
color: var(--highlight-color);
|
|
72
84
|
}
|
|
73
85
|
|
|
74
86
|
font-family: inherit;
|
|
75
87
|
}
|
|
88
|
+
|
|
76
89
|
pre& {
|
|
77
90
|
.s-code-block--line-numbers {
|
|
78
91
|
background-color: var(--_cb-line-numbers-bg);
|