@primer/brand-css 0.81.0-rc.b64e5144 → 0.81.1-rc.019987d3
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.
|
@@ -160,8 +160,7 @@
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
.LogoSuite__logobar-marquee:hover .LogoSuite__logobar-marqueeGroup
|
|
164
|
-
.LogoSuite__logobar-marquee:focus-within .LogoSuite__logobar-marqueeGroup {
|
|
163
|
+
.LogoSuite__logobar-marquee:hover .LogoSuite__logobar-marqueeGroup {
|
|
165
164
|
animation-play-state: paused;
|
|
166
165
|
}
|
|
167
166
|
|
|
@@ -190,7 +189,7 @@
|
|
|
190
189
|
animation-play-state: paused !important;
|
|
191
190
|
}
|
|
192
191
|
|
|
193
|
-
.LogoSuite__logobar-marquee
|
|
192
|
+
.LogoSuite__logobar-marquee:has(:focus-visible) .LogoSuite__logobar-marqueeGroup {
|
|
194
193
|
animation-name: none;
|
|
195
194
|
}
|
|
196
195
|
|
|
@@ -36,6 +36,32 @@
|
|
|
36
36
|
overflow-wrap: anywhere;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
.FormControl--toggle-switch-with-status-label {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-flow: row-reverse wrap;
|
|
42
|
+
justify-content: flex-end;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.FormControl--toggle-switch-with-status-label
|
|
46
|
+
.FormControl-label--toggle-switch:not(.FormControl-label--visually-hidden) {
|
|
47
|
+
flex: 1 1 0;
|
|
48
|
+
min-inline-size: min(100%, var(--base-size-96));
|
|
49
|
+
order: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.FormControl--toggle-switch-with-status-label .FormControl-control--toggle-switch {
|
|
53
|
+
flex: 0 1 auto;
|
|
54
|
+
min-inline-size: 0;
|
|
55
|
+
max-inline-size: 100%;
|
|
56
|
+
order: 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.FormControl--toggle-switch-with-status-label .FormControl-hint,
|
|
60
|
+
.FormControl--toggle-switch-with-status-label .FormControl-validation {
|
|
61
|
+
flex-basis: 100%;
|
|
62
|
+
order: 2;
|
|
63
|
+
}
|
|
64
|
+
|
|
39
65
|
.FormControl-label--medium.FormControl-label--toggle-switch {
|
|
40
66
|
font-size: var(--brand-ToggleSwitch-label-fontSize);
|
|
41
67
|
line-height: max(var(--brand-ToggleSwitch-label-lineHeight), var(--brand-ToggleSwitch-target-minHeight));
|
|
@@ -135,6 +161,28 @@
|
|
|
135
161
|
animation: 170ms FormControlValidationFadeIn cubic-bezier(0.44, 0.74, 0.36, 1);
|
|
136
162
|
}
|
|
137
163
|
|
|
164
|
+
@media screen and (max-width: 47.99rem) {
|
|
165
|
+
.FormControl--toggle-switch-with-status-label {
|
|
166
|
+
flex-direction: column;
|
|
167
|
+
align-items: stretch;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.FormControl--toggle-switch-with-status-label
|
|
171
|
+
.FormControl-label--toggle-switch:not(.FormControl-label--visually-hidden) {
|
|
172
|
+
flex: initial;
|
|
173
|
+
min-inline-size: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.FormControl--toggle-switch-with-status-label .FormControl-control--toggle-switch {
|
|
177
|
+
flex: initial;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.FormControl--toggle-switch-with-status-label .FormControl-hint,
|
|
181
|
+
.FormControl--toggle-switch-with-status-label .FormControl-validation {
|
|
182
|
+
flex: initial;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
138
186
|
@keyframes FormControlValidationFadeIn {
|
|
139
187
|
0% {
|
|
140
188
|
opacity: 0;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: center;
|
|
13
13
|
min-height: var(--brand-ToggleSwitch-target-minHeight);
|
|
14
|
+
gap: var(--base-size-8);
|
|
14
15
|
padding: 0;
|
|
15
16
|
border: 0;
|
|
16
17
|
background: transparent;
|
|
@@ -20,6 +21,17 @@
|
|
|
20
21
|
appearance: none;
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
.ToggleSwitch--withStatusLabel {
|
|
25
|
+
min-inline-size: 0;
|
|
26
|
+
max-inline-size: 100%;
|
|
27
|
+
flex-shrink: 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ToggleSwitch--withStatusLabel .ToggleSwitch-button {
|
|
31
|
+
min-inline-size: 0;
|
|
32
|
+
max-inline-size: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
23
35
|
.ToggleSwitch-button:focus-visible {
|
|
24
36
|
outline: none;
|
|
25
37
|
}
|
|
@@ -40,6 +52,38 @@
|
|
|
40
52
|
border: var(--brand-ToggleSwitch-track-borderWidth) solid var(--brand-ToggleSwitch-track-borderColor);
|
|
41
53
|
border-radius: var(--brand-ToggleSwitch-track-borderRadius);
|
|
42
54
|
background: var(--brand-ToggleSwitch-track-bgColor);
|
|
55
|
+
flex: 0 0 auto;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ToggleSwitch-statusLabel {
|
|
59
|
+
display: grid;
|
|
60
|
+
min-inline-size: 0;
|
|
61
|
+
max-inline-size: 100%;
|
|
62
|
+
overflow-wrap: anywhere;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ToggleSwitch-statusLabel--start {
|
|
66
|
+
justify-items: end;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ToggleSwitch-statusLabel--end {
|
|
70
|
+
justify-items: start;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.ToggleSwitch-statusLabel--start .ToggleSwitch-statusLabelText {
|
|
74
|
+
text-align: end;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ToggleSwitch-statusLabel--end .ToggleSwitch-statusLabelText {
|
|
78
|
+
text-align: start;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ToggleSwitch-statusLabelText {
|
|
82
|
+
grid-area: 1 / 1;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ToggleSwitch-statusLabelText--hidden {
|
|
86
|
+
visibility: hidden;
|
|
43
87
|
}
|
|
44
88
|
|
|
45
89
|
.ToggleSwitch-thumb {
|
|
@@ -159,4 +203,12 @@
|
|
|
159
203
|
.ToggleSwitch-spinner {
|
|
160
204
|
color: CanvasText;
|
|
161
205
|
}
|
|
206
|
+
|
|
207
|
+
.ToggleSwitch-statusLabelText {
|
|
208
|
+
color: ButtonText;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.ToggleSwitch-button--unavailable .ToggleSwitch-statusLabelText {
|
|
212
|
+
color: GrayText;
|
|
213
|
+
}
|
|
162
214
|
}
|