@ch-post-common/common-web-frontend 0.0.1-security → 1.934.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @ch-post-common/common-web-frontend might be problematic. Click here for more details.

Files changed (97) hide show
  1. package/components/accordion.scss +177 -0
  2. package/components/alert.scss +217 -0
  3. package/components/badge.scss +95 -0
  4. package/components/breadcrumb.scss +43 -0
  5. package/components/button.scss +168 -0
  6. package/components/card.scss +227 -0
  7. package/components/carousel.scss +161 -0
  8. package/components/custom-choice-control.scss +217 -0
  9. package/components/custom-range-input.scss +51 -0
  10. package/components/custom-select.scss +60 -0
  11. package/components/datatable.scss +147 -0
  12. package/components/datepicker.scss +220 -0
  13. package/components/detail-summary.scss +72 -0
  14. package/components/dropdown.scss +71 -0
  15. package/components/floating-label.scss +65 -0
  16. package/components/fonts.scss +35 -0
  17. package/components/form-feedback.scss +70 -0
  18. package/components/forms.scss +31 -0
  19. package/components/grid.scss +103 -0
  20. package/components/icons.scss +62 -0
  21. package/components/intranet-header/_icon.scss +6 -0
  22. package/components/intranet-header/_language-chooser.scss +40 -0
  23. package/components/intranet-header/_logo.scss +74 -0
  24. package/components/intranet-header/_nav-overflow.scss +56 -0
  25. package/components/intranet-header/_scaffolding.scss +96 -0
  26. package/components/intranet-header/_searchbox.scss +56 -0
  27. package/components/intranet-header/_settings.scss +23 -0
  28. package/components/intranet-header/_sidebar.scss +118 -0
  29. package/components/intranet-header/_top-navigation.scss +83 -0
  30. package/components/list-group.scss +156 -0
  31. package/components/modal.scss +87 -0
  32. package/components/pagination.scss +67 -0
  33. package/components/popover.scss +21 -0
  34. package/components/product-card.scss +74 -0
  35. package/components/progress.scss +15 -0
  36. package/components/reboot.scss +17 -0
  37. package/components/root.scss +10 -0
  38. package/components/sizing.scss +90 -0
  39. package/components/spinner.scss +58 -0
  40. package/components/stepper.scss +158 -0
  41. package/components/subnavigation.scss +131 -0
  42. package/components/switch.scss +132 -0
  43. package/components/tabs.scss +122 -0
  44. package/components/timepicker.scss +110 -0
  45. package/components/toast.scss +172 -0
  46. package/components/tooltip.scss +23 -0
  47. package/components/topic-teaser.scss +133 -0
  48. package/components/type.scss +106 -0
  49. package/components/utilities.scss +93 -0
  50. package/index.js +28 -0
  51. package/layouts/portal/_type.scss +83 -0
  52. package/lic/_bootstrap-license.scss +29 -0
  53. package/lic/_cwf-license.scss +7 -0
  54. package/mixins/_animation.scss +39 -0
  55. package/mixins/_button.scss +232 -0
  56. package/mixins/_forms.scss +188 -0
  57. package/mixins/_icons.scss +27 -0
  58. package/mixins/_scroll-shadows.scss +13 -0
  59. package/mixins/_size.scss +69 -0
  60. package/mixins/_type.scss +187 -0
  61. package/mixins/_utilities.scss +73 -0
  62. package/package.json +11 -3
  63. package/placeholders/_dropdown.scss +11 -0
  64. package/placeholders/_floating-label.scss +143 -0
  65. package/placeholders/_notifications.scss +160 -0
  66. package/placeholders/_text.scss +187 -0
  67. package/variables/_animation.scss +36 -0
  68. package/variables/_color.scss +240 -0
  69. package/variables/_commons.scss +57 -0
  70. package/variables/_icons.scss +2071 -0
  71. package/variables/_spacing.scss +180 -0
  72. package/variables/_type.scss +157 -0
  73. package/variables/components/_accordion.scss +22 -0
  74. package/variables/components/_alert.scss +50 -0
  75. package/variables/components/_badge.scss +29 -0
  76. package/variables/components/_breadcrumbs.scss +21 -0
  77. package/variables/components/_button.scss +152 -0
  78. package/variables/components/_card.scss +29 -0
  79. package/variables/components/_carousel.scss +27 -0
  80. package/variables/components/_close.scss +9 -0
  81. package/variables/components/_datatable.scss +49 -0
  82. package/variables/components/_datepicker.scss +14 -0
  83. package/variables/components/_dropdowns.scss +30 -0
  84. package/variables/components/_forms.scss +256 -0
  85. package/variables/components/_intranet-header.scss +9 -0
  86. package/variables/components/_modals.scss +68 -0
  87. package/variables/components/_nav.scss +82 -0
  88. package/variables/components/_pagination.scss +41 -0
  89. package/variables/components/_paragraph.scss +6 -0
  90. package/variables/components/_popovers.scss +28 -0
  91. package/variables/components/_progress-bars.scss +16 -0
  92. package/variables/components/_stepper.scss +26 -0
  93. package/variables/components/_subnavigation.scss +36 -0
  94. package/variables/components/_switch.scss +3 -0
  95. package/variables/components/_tables.scss +31 -0
  96. package/variables/components/_tooltips.scss +26 -0
  97. package/README.md +0 -5
@@ -0,0 +1,180 @@
1
+ // Spacing
2
+ //
3
+ // Control the default styling of most Bootstrap elements by modifying these
4
+ // variables. Mostly focused on spacing.
5
+ // You can add more entries to the $spacers map, should you need more variation.
6
+
7
+ $spacer: 1rem !default;
8
+ $spacers: (
9
+ 0: 0,
10
+ 1: $spacer * .25,
11
+ 2: $spacer * .5,
12
+ 3: $spacer,
13
+ 4: $spacer * 1.5,
14
+ 5: $spacer * 3
15
+ ) !default;
16
+
17
+ // Post-Sizes
18
+ $size-hair: 1px !default;
19
+ $size-line: 2px !default;
20
+ $size-micro: .25rem !default; // ~4px
21
+ $size-mini: .5rem !default; // ~8px
22
+ $size-small-regular: .75rem !default; // ~12px
23
+ $size-regular: 1rem !default; // ~16px
24
+ $size-small-large: 1.25rem !default; // ~20px
25
+ $size-large: 1.5rem !default; // ~24px
26
+ $size-big: 2rem !default; // ~32px
27
+ $size-bigger-big: 2.5rem !default; // ~40px
28
+ $size-small-huge: 3rem !default; // ~48px
29
+ $size-huge: 3.5rem !default; // ~56px
30
+ $size-small-giant: 4.5rem !default; // ~72px
31
+ $size-giant: 5rem !default; // ~80px
32
+ $size-bigger-giant: 7rem !default; // ~112px
33
+
34
+ $post-sizes: () !default;
35
+ $post-sizes: map-merge(
36
+ (
37
+ "hair": $size-hair,
38
+ "line": $size-line,
39
+ "micro": $size-micro,
40
+ "mini": $size-mini,
41
+ "small-regular": $size-small-regular,
42
+ "regular": $size-regular,
43
+ "small-large": $size-small-large,
44
+ "large": $size-large,
45
+ "big": $size-big,
46
+ "bigger-big": $size-bigger-big,
47
+ "small-huge": $size-small-huge,
48
+ "huge": $size-huge,
49
+ "small-giant": $size-small-giant,
50
+ "giant": $size-giant,
51
+ "bigger-giant": $size-bigger-giant
52
+ ),
53
+ $post-sizes
54
+ );
55
+
56
+ // This variable affects the `.h-*` and `.w-*` classes.
57
+ $sizes: () !default;
58
+ $sizes: map-merge(
59
+ (
60
+ 25: 25%,
61
+ 50: 50%,
62
+ 75: 75%,
63
+ 100: 100%,
64
+ auto: auto
65
+ ),
66
+ $sizes
67
+ );
68
+
69
+ // Abstand Gross, Section
70
+ $size-curve-giant: (
71
+ "xs": $size-huge,
72
+ "sm": $size-huge,
73
+ "rg": $size-huge,
74
+ "md": $size-giant,
75
+ "lg": $size-giant,
76
+ "xl": $size-giant,
77
+ "xxl": $size-giant,
78
+ ) !default;
79
+
80
+ // Abstand standard
81
+ $size-curve-huge: (
82
+ "xs": $size-big,
83
+ "sm": $size-big,
84
+ "rg": $size-big,
85
+ "md": $size-bigger-big,
86
+ "lg": $size-bigger-big,
87
+ "xl": $size-huge,
88
+ "xxl": $size-huge,
89
+ ) !default;
90
+
91
+ // Abstand Section halb
92
+ $size-curve-bigger-big: (
93
+ "xs": $size-large,
94
+ "sm": $size-large,
95
+ "rg": $size-large,
96
+ "md": $size-small-huge,
97
+ "lg": $size-small-huge,
98
+ "xl": $size-small-huge,
99
+ "xxl": $size-small-huge,
100
+ ) !default;
101
+
102
+ // Abstand Breadcrumb, Stepper
103
+ $size-curve-big: (
104
+ "xs": $size-small-large,
105
+ "sm": $size-small-large,
106
+ "rg": $size-small-large,
107
+ "md": $size-big,
108
+ "lg": $size-big,
109
+ "xl": $size-bigger-big,
110
+ "xxl": $size-bigger-big,
111
+ ) !default;
112
+
113
+ // H2
114
+ $size-curve-large: (
115
+ "xs": $size-regular,
116
+ "sm": $size-regular,
117
+ "rg": $size-regular,
118
+ "md": $size-small-large,
119
+ "lg": $size-small-large,
120
+ "xl": $size-big,
121
+ "xxl": $size-big,
122
+ ) !default;
123
+
124
+ // Button
125
+ $size-curve-regular: (
126
+ "xs": $size-regular,
127
+ "sm": $size-regular,
128
+ "rg": $size-regular,
129
+ "md": $size-large,
130
+ "lg": $size-large,
131
+ "xl": $size-large,
132
+ "xxl": $size-large,
133
+ ) !default;
134
+
135
+ // Teaser
136
+ $size-curve-small: (
137
+ "xs": $size-small-regular,
138
+ "sm": $size-regular,
139
+ "rg": $size-regular,
140
+ "md": $size-regular,
141
+ "lg": $size-regular,
142
+ "xl": $size-regular,
143
+ "xxl": $size-regular,
144
+ ) !default;
145
+
146
+ // Eingabefelder, p, h3, h4
147
+ $size-curve-tiny: (
148
+ "xs": $size-small-regular,
149
+ "sm": $size-small-regular,
150
+ "rg": $size-small-regular,
151
+ "md": $size-regular,
152
+ "lg": $size-regular,
153
+ "xl": $size-regular,
154
+ "xxl": $size-regular,
155
+ ) !default;
156
+
157
+ // List of all adaptive size curves
158
+ $size-curves: (
159
+ "giant": $size-curve-giant,
160
+ "huge": $size-curve-huge,
161
+ "bigger-big": $size-curve-bigger-big,
162
+ "big": $size-curve-big,
163
+ "large": $size-curve-large,
164
+ "regular": $size-curve-regular,
165
+ "small": $size-curve-small,
166
+ "tiny": $size-curve-tiny,
167
+ ) !default;
168
+
169
+ $responsive-spacing-properties: (
170
+ "m": "margin",
171
+ "mt": "margin-top",
172
+ "mr": "margin-right",
173
+ "mb": "margin-bottom",
174
+ "ml": "margin-left",
175
+ "p": "padding",
176
+ "pt": "padding-top",
177
+ "pr": "padding-right",
178
+ "pb": "padding-bottom",
179
+ "pl": "padding-left"
180
+ );
@@ -0,0 +1,157 @@
1
+ @use "../functions/sizing";
2
+ @use "./spacing";
3
+ @use "./color";
4
+ @use "./commons";
5
+
6
+ // Fonts
7
+ //
8
+ // Font, line-height, and color for body text, headings, and more.
9
+
10
+ $font-family-sans-serif: "Frutiger Neue For Post", Arial, Helvetica, sans-serif !default;
11
+ $font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
12
+ "Liberation Mono", "Courier New", monospace !default;
13
+ $font-family-base: $font-family-sans-serif !default;
14
+
15
+ $font-size-tiny: sizing.px-to-rem(13px);
16
+ $font-size-small: sizing.px-to-rem(15px);
17
+ $font-size-regular: sizing.px-to-rem(16px);
18
+ $font-size-bigger-regular: sizing.px-to-rem(17px);
19
+ $font-size-medium: sizing.px-to-rem(20px);
20
+ $font-size-large: sizing.px-to-rem(24px);
21
+ $font-size-small-big: sizing.px-to-rem(28px);
22
+ $font-size-big: sizing.px-to-rem(32px);
23
+ $font-size-bigger-big: sizing.px-to-rem(40px);
24
+ $font-size-small-huge: sizing.px-to-rem(48px);
25
+ $font-size-huge: sizing.px-to-rem(56px);
26
+
27
+ $font-curve-tiny: (
28
+ $font-size-tiny,
29
+ $font-size-small,
30
+ $font-size-small,
31
+ $font-size-regular,
32
+ $font-size-regular,
33
+ $font-size-bigger-regular
34
+ );
35
+ $font-curve-small: (
36
+ $font-size-small,
37
+ $font-size-regular,
38
+ $font-size-regular,
39
+ $font-size-bigger-regular,
40
+ $font-size-bigger-regular,
41
+ $font-size-bigger-regular
42
+ );
43
+ $font-curve-regular: (
44
+ $font-size-bigger-regular,
45
+ $font-size-bigger-regular,
46
+ $font-size-bigger-regular,
47
+ $font-size-medium,
48
+ $font-size-medium,
49
+ $font-size-medium
50
+ );
51
+ $font-curve-bigger-regular: (
52
+ $font-size-medium,
53
+ $font-size-medium,
54
+ $font-size-medium,
55
+ $font-size-large,
56
+ $font-size-large,
57
+ $font-size-large
58
+ );
59
+ $font-curve-medium: (
60
+ $font-size-medium,
61
+ $font-size-medium,
62
+ $font-size-medium,
63
+ $font-size-large,
64
+ $font-size-large,
65
+ $font-size-small-big
66
+ );
67
+ $font-curve-large: (
68
+ $font-size-large,
69
+ $font-size-small-big,
70
+ $font-size-small-big,
71
+ $font-size-big,
72
+ $font-size-big,
73
+ $font-size-bigger-big
74
+ );
75
+ $font-curve-big: (
76
+ $font-size-small-big,
77
+ $font-size-big,
78
+ $font-size-big,
79
+ $font-size-bigger-big,
80
+ $font-size-bigger-big,
81
+ $font-size-small-huge
82
+ );
83
+
84
+ $font-size-base: $font-size-small !default;
85
+ $font-size-sm: $font-size-tiny !default;
86
+ $font-size-rg: $font-size-base !default;
87
+ $font-size-lg: $font-size-bigger-regular !default;
88
+
89
+ $font-size-map: (
90
+ "sm": $font-size-sm,
91
+ "rg": $font-size-rg,
92
+ "md": $font-size-base,
93
+ "lg": $font-size-lg
94
+ );
95
+
96
+ $font-weight-lighter: 200 !default; // CWF only -> Frutiger Neue Light
97
+ $font-weight-light: 300 !default; // CWF -> Frutiger Neue Light
98
+ $font-weight-normal: 400 !default; // CWF -> Frutiger Neue Roman
99
+ $font-weight-bold: 700 !default; // CWF -> Frutiger Neue Roman
100
+
101
+ $font-weight-base: $font-weight-normal !default;
102
+ $line-height-base: 18/15 !default; // Non-scaling line-height
103
+
104
+ $line-height-sm: 16/13 !default; // Non-scaling line-height
105
+ $line-height-rg: $line-height-base !default; // Non-scaling line-height
106
+ $line-height-lg: 20/17 !default; // Non-scaling line-height
107
+
108
+ $h1-font-size: $font-size-base * 2.5 !default; // 40px
109
+ $h2-font-size: $font-size-base * 2 !default; // 32px
110
+ $h3-font-size: $font-size-base * 1.75 !default; // 28px
111
+ $h4-font-size: $font-size-base * 1.5 !default; // 24px
112
+ $h5-font-size: $font-size-base * 1.25 !default; // 20px
113
+ $h6-font-size: $font-size-base !default; // 16px
114
+
115
+ $headings-margin-bottom: (spacing.$spacer / 2) !default;
116
+ $headings-font-family: inherit !default;
117
+ $headings-font-weight: 300 !default;
118
+ $headings-line-height: 1.2 !default;
119
+ $headings-color: inherit !default;
120
+
121
+ $display1-size: 6rem !default;
122
+ $display2-size: 5.5rem !default;
123
+ $display3-size: 4.5rem !default;
124
+ $display4-size: 3.5rem !default;
125
+
126
+ $display1-weight: 300 !default;
127
+ $display2-weight: 300 !default;
128
+ $display3-weight: 300 !default;
129
+ $display4-weight: 300 !default;
130
+ $display-line-height: $headings-line-height !default;
131
+
132
+ $lead-font-size: ($font-size-base * 1.25) !default;
133
+ $lead-font-weight: 300 !default;
134
+
135
+ $small-font-size: 80% !default;
136
+
137
+ $text-muted: color.$gray-600;
138
+
139
+ $blockquote-small-color: color.$gray-600;
140
+ $blockquote-font-size: ($font-size-base * 1.25) !default;
141
+
142
+ $hr-border-color: rgba(color.$black, .1) !default; // CWF
143
+ $hr-border-color-light: rgba(color.$white, .4) !default; // CWF only
144
+ $hr-border-width: commons.$border-width !default;
145
+
146
+ $mark-padding: .2em !default;
147
+
148
+ $dt-font-weight: $font-weight-bold !default;
149
+
150
+ $kbd-box-shadow: inset 0 -.1rem 0 rgba(color.$black, .25) !default;
151
+ $nested-kbd-font-weight: $font-weight-bold !default;
152
+
153
+ $list-inline-padding: .5rem !default;
154
+
155
+ $mark-bg: #fcf8e3 !default;
156
+
157
+ $hr-margin-y: spacing.$spacer !default;
@@ -0,0 +1,22 @@
1
+ @use "sass:map";
2
+ @use "../../functions/sizing";
3
+ @use "../spacing";
4
+ @use "../grid";
5
+ @use "../icons";
6
+ @use "../color";
7
+ @use "../commons";
8
+
9
+ $accordion-icon-width: icons.$icon-size-default !default;
10
+ $accordion-trigger-padding-vertical: map.get(spacing.$post-sizes, "regular");
11
+ $accordion-content-space-top: map.get(spacing.$post-sizes, "small-regular");
12
+ $accordion-content-space-bottom-xs: map.get(spacing.$post-sizes, "big");
13
+ $accordion-content-space-bottom-rg: map.get(spacing.$post-sizes, "bigger-big");
14
+ $accordion-padding-horizontal-xs: sizing.px-to-rem(map.get(grid.$grid-container-padding, "xs"));
15
+ $accordion-padding-horizontal-sm: sizing.px-to-rem(map.get(grid.$grid-container-padding, "sm"));
16
+ $accordion-content-heading-top: map.get(spacing.$post-sizes, "bigger-big");
17
+ $accordion-trigger-padding-right-xs: ($accordion-padding-horizontal-xs * 2) + $accordion-icon-width;
18
+ $accordion-trigger-padding-right-sm: ($accordion-padding-horizontal-sm * 2) + $accordion-icon-width;
19
+ $accordion-btn-text-color: color.$black;
20
+ $accordion-btn-text-color-expanded: map.get(color.$grays, "600");
21
+ $accordion-border-color: map.get(color.$grays, "100");
22
+ $accordion-border-width: commons.$border-thick;
@@ -0,0 +1,50 @@
1
+ @use "../commons";
2
+ @use "../color";
3
+ @use "../spacing";
4
+ @use "../type";
5
+
6
+ // Alerts and Toasts
7
+ //
8
+ // Define alert colors, border radius, and padding.
9
+
10
+ $alert-padding-y: spacing.$size-small-large !default; // CWF
11
+ $alert-padding-x: spacing.$size-large !default; // CWF
12
+ $alert-toast-padding-y: spacing.$size-small-regular !default; // CWF only
13
+ $alert-toast-padding-x: spacing.$size-regular !default; // CWF only
14
+
15
+ $alert-margin-bottom: 1rem !default; // CWF
16
+ $alert-margin: $alert-margin-bottom; // CWF only
17
+ $alert-border-radius: commons.$border-radius !default;
18
+ $alert-link-font-weight: type.$font-weight-bold !default;
19
+ $alert-border-width: commons.$border-width !default;
20
+
21
+ $alert-bg-level: -10 !default;
22
+ $alert-border-level: -9 !default;
23
+ $alert-color-level: 6 !default;
24
+
25
+ $alert-list: (
26
+ "primary" color.$primary 3134,
27
+ "notification" color.$primary 3134,
28
+ "success" color.$success 2105,
29
+ "danger" color.$danger 2104,
30
+ "error" color.$danger 2104,
31
+ "warning" color.$warning 2104,
32
+ "info" color.$info 2106
33
+ ); // CWF only
34
+
35
+ $alert-line-height: type.$line-height-base; // CWF only
36
+ $alert-text-space-between: spacing.$size-micro;
37
+
38
+ $alert-icon-size: spacing.$size-small-huge; // CWF only
39
+ $alert-close-icon-size: spacing.$size-large; // CWF only
40
+
41
+ $alert-toast-icon-size: spacing.$size-big; // CWF only
42
+
43
+ $alert-font-size: type.$font-size-bigger-regular; // CWF only
44
+ $alert-font-size-small: type.$font-size-small; // CWF only
45
+
46
+ $alert-toast-width: 25rem; // CWF only
47
+ $alert-toast-width-small-breakpoint: 21rem; // CWF only
48
+
49
+ $alert-toast-box-shadow-hover: 0 0 1rem 0 color.$black-alpha-40; // CWF only
50
+ $alert-close-hover-opacity: .4; // CWF only
@@ -0,0 +1,29 @@
1
+ @use "../type";
2
+ @use "../commons";
3
+ @use "./button";
4
+ @use "../../functions/sizing";
5
+
6
+ // Badges
7
+
8
+ $badge-font-size: 75% !default;
9
+ $badge-font-weight: type.$font-weight-bold !default;
10
+ $badge-line-height: sizing.px-to-rem(20) !default; // Most be bigger than $badge-font-size
11
+ $badge-padding-y: .25em !default;
12
+ $badge-padding-x: .4em !default;
13
+ $badge-border-radius: commons.$border-radius !default;
14
+ $badge-border: commons.$border-thick solid transparent !default;
15
+
16
+ $badge-transition: button.$btn-transition !default;
17
+ $badge-focus-width: button.$input-btn-focus-width !default;
18
+
19
+ $badge-pill-padding-x: .6em !default;
20
+ $badge-pill-padding-y: sizing.px-to-rem(3) !default;
21
+ $badge-pill-padding-x-p6: sizing.px-to-rem(6) !default;
22
+ $badge-pill-padding-y-p6: sizing.px-to-rem(6) !default;
23
+
24
+ // Use a higher than normal value to ensure completely rounded edges when
25
+ // customizing padding or font-size on labels.
26
+ $badge-pill-border-radius: 10rem !default;
27
+ $badge-pill-min-width: sizing.px-to-rem(24) !default;
28
+ $badge-pill-border-thick: sizing.px-to-rem(2) !default;
29
+ $badge-height: sizing.px-to-rem(32) !default;
@@ -0,0 +1,21 @@
1
+ @use "../color";
2
+ @use "../commons";
3
+
4
+ // Breadcrumbs
5
+
6
+ $breadcrumb-font-size: null !default;
7
+
8
+ $breadcrumb-padding-y: .75rem !default;
9
+ $breadcrumb-padding-x: 1rem !default;
10
+ $breadcrumb-item-padding: .5rem !default;
11
+
12
+ $breadcrumb-margin-bottom: 1rem !default;
13
+
14
+ $breadcrumb-bg: color.$gray-200 !default;
15
+ $breadcrumb-divider-color: color.$gray-600 !default;
16
+ $breadcrumb-link-color: color.$gray-600 !default;
17
+ $breadcrumb-hover-color: color.$black !default;
18
+ $breadcrumb-active-color: color.$gray-600 !default;
19
+ $breadcrumb-divider: quote("/") !default;
20
+
21
+ $breadcrumb-border-radius: commons.$border-radius !default;
@@ -0,0 +1,152 @@
1
+ @use "sass:map";
2
+
3
+ @use "../color";
4
+ @use "../type";
5
+ @use "../commons";
6
+ @use "../spacing";
7
+ @use "../animation";
8
+
9
+
10
+ @use "../../functions/sizing";
11
+
12
+ // Buttons + Forms
13
+ //
14
+ // Shared variables that are reassigned to `$input-` and `$btn-` specific variables.
15
+ $input-btn-border-width: commons.$border-thick !default;
16
+
17
+ $input-btn-padding-y: sizing.px-to-rem(15px - $input-btn-border-width) !default;
18
+ $input-btn-padding-x: sizing.px-to-rem(20px - $input-btn-border-width) !default;
19
+ $input-btn-line-height: type.$line-height-base !default;
20
+
21
+ $input-btn-padding-y-sm: sizing.px-to-rem(
22
+ 8px - $input-btn-border-width
23
+ ) !default;
24
+ $input-btn-padding-x-sm: sizing.px-to-rem(
25
+ 16px - $input-btn-border-width
26
+ ) !default;
27
+ $input-btn-line-height-sm: type.$line-height-sm !default;
28
+
29
+ $input-btn-padding-y-rg: sizing.px-to-rem(
30
+ 11px - $input-btn-border-width
31
+ ) !default;
32
+ $input-btn-padding-x-rg: sizing.px-to-rem(
33
+ 16px - $input-btn-border-width
34
+ ) !default;
35
+ $input-btn-line-height-rg: type.$line-height-rg !default;
36
+
37
+ $input-btn-padding-y-lg: sizing.px-to-rem(
38
+ 18px - $input-btn-border-width
39
+ ) !default;
40
+ $input-btn-padding-x-lg: sizing.px-to-rem(
41
+ 24px - $input-btn-border-width
42
+ ) !default;
43
+ $input-btn-line-height-lg: type.$line-height-lg !default;
44
+
45
+ $input-btn-focus-width: .2rem !default;
46
+ $input-btn-focus-color: rgba(color.$component-active-bg, .25) !default;
47
+ $input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color !default;
48
+
49
+ // Buttons
50
+ //
51
+ // For each of Bootstrap's buttons, define text, background, and border color.
52
+
53
+ $btn-animation-distance-sm: map.get(spacing.$post-sizes, "mini") !default;
54
+ $btn-padding-y-sm: $input-btn-padding-y-sm !default;
55
+ $btn-padding-x-sm: $input-btn-padding-x-sm !default;
56
+ $btn-padding-animate-x-sm: $btn-padding-x-sm * .75 !default;
57
+ $btn-line-height-sm: $input-btn-line-height-sm !default;
58
+ $btn-icon-size-sm: 1rem !default; // CWF only
59
+
60
+ $btn-animation-distance-rg: map-get(
61
+ spacing.$post-sizes,
62
+ "small-regular"
63
+ ) !default;
64
+ $btn-padding-y-rg: $input-btn-padding-y-rg !default;
65
+ $btn-padding-x-rg: $input-btn-padding-x-rg !default;
66
+ $btn-padding-animate-x-rg: $btn-padding-x-rg !default;
67
+ $btn-line-height-rg: $input-btn-line-height-rg !default;
68
+ $btn-icon-size-rg: 1.2rem !default; // CWF only
69
+
70
+ $btn-animation-distance: map.get(spacing.$post-sizes, "small-regular") !default;
71
+ $btn-padding-y: $input-btn-padding-y !default;
72
+ $btn-padding-x: $input-btn-padding-x !default;
73
+ $btn-padding-animate-x: $btn-padding-x !default;
74
+ $btn-line-height: $input-btn-line-height !default;
75
+ $btn-icon-size: 1.4rem !default; // CWF only
76
+
77
+ $btn-animation-distance-lg: map.get(spacing.$post-sizes, "regular") !default;
78
+ $btn-padding-y-lg: $input-btn-padding-y-lg !default;
79
+ $btn-padding-x-lg: $input-btn-padding-x-lg !default;
80
+ $btn-padding-animate-x-lg: $btn-padding-x-lg * 1.25 !default;
81
+ $btn-line-height-lg: $input-btn-line-height-lg !default;
82
+ $btn-icon-size-lg: 1.7rem !default; // CWF only
83
+
84
+ $btn-animation-distance-map: (
85
+ "sm": $btn-animation-distance-sm,
86
+ "rg": $btn-animation-distance-rg,
87
+ "md": $btn-animation-distance,
88
+ "lg": $btn-animation-distance-lg
89
+ );
90
+ $btn-padding-y-map: (
91
+ "sm": $btn-padding-y-sm,
92
+ "rg": $btn-padding-y-rg,
93
+ "md": $btn-padding-y,
94
+ "lg": $btn-padding-y-lg
95
+ );
96
+ $btn-padding-x-map: (
97
+ "sm": $btn-padding-x-sm,
98
+ "rg": $btn-padding-x-rg,
99
+ "md": $btn-padding-x,
100
+ "lg": $btn-padding-x-lg
101
+ );
102
+ $btn-padding-animate-x-map: (
103
+ "sm": $btn-padding-animate-x-sm,
104
+ "rg": $btn-padding-animate-x-rg,
105
+ "md": $btn-padding-animate-x,
106
+ "lg": $btn-padding-animate-x-lg
107
+ );
108
+ $btn-line-height-map: (
109
+ "sm": $btn-line-height-sm,
110
+ "rg": $btn-line-height-rg,
111
+ "md": $btn-line-height,
112
+ "lg": $btn-line-height-lg
113
+ );
114
+ $btn-icon-size-map: (
115
+ "sm": $btn-icon-size-sm,
116
+ "rg": $btn-icon-size-rg,
117
+ "md": $btn-icon-size,
118
+ "lg": $btn-icon-size-lg
119
+ );
120
+
121
+ $btn-border-width: $input-btn-border-width !default;
122
+
123
+ $btn-font-weight: type.$font-weight-normal !default;
124
+ $btn-box-shadow: none !default;
125
+ $btn-focus-width: $input-btn-focus-width !default;
126
+ $btn-focus-box-shadow: $input-btn-focus-box-shadow !default;
127
+ $btn-disabled-opacity: .65 !default;
128
+ $btn-active-box-shadow: none !default;
129
+
130
+ $btn-link-disabled-color: color.$gray-200 !default;
131
+
132
+ $btn-block-spacing-y: .5rem !default;
133
+
134
+ // Allows for customizing button radius independently from global border radius
135
+ $btn-border-radius: commons.$border-radius !default;
136
+ $btn-border-radius-sm: commons.$border-radius-sm !default;
137
+ $btn-border-radius-rg: commons.$border-radius-rg !default;
138
+ $btn-border-radius-lg: commons.$border-radius-lg !default;
139
+
140
+ $btn-border-radius-map: (
141
+ "sm": commons.$border-radius-sm,
142
+ "rg": commons.$border-radius-rg,
143
+ "md": commons.$border-radius,
144
+ "lg": commons.$border-radius-lg
145
+ );
146
+
147
+ $btn-transition-fade-arrow: opacity animation.$transition-time-default
148
+ animation.$transition-easing-default !default;
149
+ $btn-transition-base-label: transform animation.$transition-time-default
150
+ animation.$transition-easing-default !default;
151
+ $btn-transition: all animation.$transition-time-default
152
+ animation.$transition-easing-default !default;
@@ -0,0 +1,29 @@
1
+ @use "../color";
2
+ @use "../commons";
3
+ @use "../grid";
4
+ @use "../type";
5
+ @use "../spacing";
6
+
7
+ // Cards
8
+ $card-font-size: type.$font-size-small !default; // CWF only
9
+ $card-font-size-large: type.$font-size-large !default; // CWF only
10
+
11
+ $card-spacer-y: spacing.$size-small-large !default; // CWF 20px
12
+ $card-spacer-x: spacing.$size-regular !default; // CWF 16px
13
+ $card-border-width: commons.$border-width !default;
14
+ $card-border-radius: commons.$border-width * 2 !default; // CWF
15
+ $card-border-color: color.$gray-200 !default; // CWF
16
+ $card-inner-border-radius: calc(
17
+ #{$card-border-radius} - #{$card-border-width}
18
+ ) !default; // CWF
19
+ $card-cap-bg: color.$gray-cararra !default;
20
+ $card-bg: color.$white !default;
21
+
22
+ $card-img-overlay-padding: $card-spacer-x !default;
23
+
24
+ $card-group-margin: (grid.$grid-gutter-width / 2) !default;
25
+ $card-deck-margin: $card-group-margin !default;
26
+
27
+ $card-columns-count: 3 !default;
28
+ $card-columns-gap: 1.25rem !default;
29
+ $card-columns-margin: spacing.$size-micro !default;
@@ -0,0 +1,27 @@
1
+ @use "../color";
2
+
3
+ // Carousel
4
+
5
+ $carousel-control-color: color.$white !default;
6
+ $carousel-control-width: 15% !default;
7
+ $carousel-control-opacity: .5 !default;
8
+ $carousel-control-hover-opacity: .9 !default;
9
+ $carousel-control-transition: opacity .15s ease !default;
10
+
11
+ $carousel-indicator-width: 30px !default;
12
+ $carousel-indicator-height: 3px !default;
13
+ $carousel-indicator-hit-area-height: 10px !default;
14
+ $carousel-indicator-spacer: 3px !default;
15
+ $carousel-indicator-active-bg: color.$white !default;
16
+ $carousel-indicator-transition: opacity .6s ease !default;
17
+
18
+ $carousel-caption-width: 70% !default;
19
+ $carousel-caption-color: color.$white !default;
20
+
21
+ $carousel-control-icon-width: 20px !default;
22
+
23
+ $carousel-control-prev-icon-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' width='8' height='8' viewBox='0 0 8 8'><path d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/></svg>") !default;
24
+ $carousel-control-next-icon-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' width='8' height='8' viewBox='0 0 8 8'><path d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/></svg>") !default;
25
+
26
+ $carousel-transition-duration: .6s !default;
27
+ $carousel-transition: transform $carousel-transition-duration ease-in-out !default; // Define transform transition first if using multiple transitions (e.g., `transform 2s ease, opacity .5s ease-out`)
@@ -0,0 +1,9 @@
1
+ @use "../type";
2
+ @use "../color";
3
+
4
+ // Close
5
+
6
+ $close-font-size: type.$font-size-base * 1.5 !default;
7
+ $close-font-weight: type.$font-weight-bold !default;
8
+ $close-color: color.$black !default;
9
+ $close-text-shadow: 0 1px 0 color.$white !default;