@webority/theme 0.17.0 → 0.17.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
4
4
|
"description": "Webority shared design system — Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
package/scss/wui/_controls.scss
CHANGED
|
@@ -188,7 +188,9 @@
|
|
|
188
188
|
background-size: 12px 12px;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
// Switch
|
|
191
|
+
// Switch: pill track + sliding knob (Bootstrap .form-switch only). The default track has
|
|
192
|
+
// truly circular ends: the switch is a type="checkbox", which carries the checkbox's
|
|
193
|
+
// `corner-shape: squircle`, so it is reset to `round` here.
|
|
192
194
|
.form-switch {
|
|
193
195
|
padding-left: 0;
|
|
194
196
|
}
|
|
@@ -196,6 +198,7 @@
|
|
|
196
198
|
width: 40px;
|
|
197
199
|
height: 22px;
|
|
198
200
|
border-radius: 999px;
|
|
201
|
+
corner-shape: round;
|
|
199
202
|
border-color: transparent;
|
|
200
203
|
background-color: var(--color-border-strong);
|
|
201
204
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='white'/%3E%3C/svg%3E");
|
|
@@ -227,10 +230,6 @@
|
|
|
227
230
|
.form-switch-circle .form-check-input {
|
|
228
231
|
width: 24px;
|
|
229
232
|
height: 24px;
|
|
230
|
-
// The switch is a type="checkbox", which carries `corner-shape: squircle` — on a square
|
|
231
|
-
// that renders a rounded square, not a circle. Reset to a true round corner.
|
|
232
|
-
corner-shape: round;
|
|
233
|
-
border-radius: 999px;
|
|
234
233
|
background-position: center;
|
|
235
234
|
background-size: 10px 10px;
|
|
236
235
|
}
|
|
@@ -238,13 +237,11 @@
|
|
|
238
237
|
background-position: center;
|
|
239
238
|
}
|
|
240
239
|
|
|
241
|
-
//
|
|
242
|
-
//
|
|
243
|
-
//
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
.form-switch-round .form-check-input {
|
|
247
|
-
corner-shape: round;
|
|
240
|
+
// Squircle-pill variant (shape="pill"): the same sliding pill with superellipse ends, the
|
|
241
|
+
// checkbox's own corner shape. Only the corner shape changes; size, knob and slide are the
|
|
242
|
+
// base switch's.
|
|
243
|
+
.form-switch-pill .form-check-input {
|
|
244
|
+
corner-shape: squircle;
|
|
248
245
|
}
|
|
249
246
|
@media (prefers-reduced-motion: reduce) {
|
|
250
247
|
.form-check-input,
|