@swisspost/design-system-styles 6.6.4 → 7.0.0
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/_svg-icon-map.scss +919 -907
- package/basics.css +1 -1
- package/components/_index.scss +3 -0
- package/components/alert.scss +6 -1
- package/components/badge.scss +25 -78
- package/components/button-group.scss +1 -0
- package/components/button.scss +8 -4
- package/components/carousel.scss +1 -1
- package/components/chip.scss +159 -0
- package/components/datepicker.scss +1 -1
- package/components/error-container.scss +9 -0
- package/components/floating-label.scss +0 -1
- package/components/form-check.scss +117 -29
- package/components/form-range.scss +106 -19
- package/components/form-select.scss +66 -15
- package/components/form-validation.scss +30 -13
- package/components/forms.scss +51 -13
- package/components/intranet-header/_sidebar.scss +24 -5
- package/components/subnavigation.scss +2 -5
- package/components/tables.scss +1 -1
- package/components/tabs/_tabs-wrapper.scss +1 -1
- package/components/tag.scss +82 -0
- package/functions/_color.scss +12 -0
- package/functions/_forms.scss +22 -0
- package/index.css +3 -3
- package/intranet.css +3 -3
- package/mixins/_accordion.scss +2 -2
- package/mixins/_chip.scss +36 -0
- package/mixins/_forms.scss +1 -0
- package/mixins/_icons.scss +1 -3
- package/mixins/_index.scss +1 -1
- package/mixins/_utilities.scss +75 -0
- package/package.json +13 -13
- package/placeholders/_badge.scss +4 -56
- package/placeholders/_button.scss +2 -0
- package/placeholders/_close.scss +8 -1
- package/placeholders/_color.scss +10 -0
- package/themes/bootstrap/_overrides-color.scss +4 -14
- package/themes/bootstrap/_overrides-variables.scss +1 -0
- package/variables/_color.scss +104 -44
- package/variables/_commons.scss +2 -0
- package/variables/_features.scss +1 -3
- package/variables/_icons.scss +4 -1
- package/variables/_type.scss +9 -1
- package/variables/components/_badge.scss +14 -38
- package/variables/components/_card.scss +1 -1
- package/variables/components/_chip.scss +50 -0
- package/variables/components/_datatable.scss +1 -1
- package/variables/components/_dropdowns.scss +1 -1
- package/variables/components/_form-check.scss +75 -1
- package/variables/components/_form-select.scss +20 -5
- package/variables/components/_form-validation.scss +14 -6
- package/variables/components/_index.scss +2 -0
- package/variables/components/_list-group.scss +1 -1
- package/variables/components/_notification.scss +5 -4
- package/variables/components/_pagination.scss +2 -2
- package/variables/components/_subnavigation.scss +1 -1
- package/variables/components/_tag.scss +27 -0
- package/mixins/_badge.scss +0 -31
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Source: https://kovart.github.io/dashed-border-generator/ + added stroke-vector-effect
|
|
2
|
+
@function get-background-svg-stroke(
|
|
3
|
+
$type,
|
|
4
|
+
$color,
|
|
5
|
+
$stroke-dasharray,
|
|
6
|
+
$stroke-pathlength,
|
|
7
|
+
$stroke-width
|
|
8
|
+
) {
|
|
9
|
+
$svg-additional-attributes: '';
|
|
10
|
+
$stroke-pathlength-attribute: '';
|
|
11
|
+
|
|
12
|
+
@if ($type == 'circle') {
|
|
13
|
+
$svg-additional-attributes: "rx='100' ry='100'";
|
|
14
|
+
}
|
|
15
|
+
@if ($stroke-pathlength != 'initial') {
|
|
16
|
+
$stroke-pathlength-attribute: " pathLength='" + $stroke-pathlength + "'";
|
|
17
|
+
}
|
|
18
|
+
@return "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%' height='100%' " +
|
|
19
|
+
$svg-additional-attributes + " fill='none' stroke='" + $color + "' stroke-width='" +
|
|
20
|
+
$stroke-width "' stroke-dasharray='" + $stroke-dasharray + "'" + $stroke-pathlength-attribute +
|
|
21
|
+
' /%3e%3c/svg%3e';
|
|
22
|
+
}
|