@design-factory/styles 21.0.0-next.0 → 21.0.0-next.1

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.
Files changed (75) hide show
  1. package/bundle.css +1 -1
  2. package/package.json +2 -2
  3. package/scss/_common.mixins.scss +10 -10
  4. package/scss/_common.root.scss +0 -31
  5. package/scss/_common.scss +14 -10
  6. package/scss/_common.variables.scss +13 -59
  7. package/scss/_variables.scss +12 -8
  8. package/scss/bootstrap/_functions.scss +55 -0
  9. package/scss/bootstrap/_mixins-override.scss +8 -52
  10. package/scss/bootstrap/_variables.scss +235 -355
  11. package/scss/bundle.scss +5 -6
  12. package/scss/components/accordion/_accordion.variables.scss +1 -1
  13. package/scss/components/alert/_alert.scss +1 -1
  14. package/scss/components/badge/_badge.scss +1 -1
  15. package/scss/components/brand-color/_brand-color.mixins.scss +0 -2
  16. package/scss/components/brand-color/_brand-color.scss +0 -7
  17. package/scss/components/button/_button.mixins.scss +1 -1
  18. package/scss/components/button/_button.namespace.scss +42 -0
  19. package/scss/components/button/_button.scss +12 -12
  20. package/scss/components/button/_button.variables.scss +11 -4
  21. package/scss/components/card/_card.variables.scss +1 -1
  22. package/scss/components/carousel/_carousel.namespace.scss +8 -0
  23. package/scss/components/checkbox/_checkbox.scss +14 -16
  24. package/scss/components/checkbox/_checkbox.variables.scss +2 -1
  25. package/scss/components/collapse/_collapse.scss +1 -1
  26. package/scss/components/datepicker/_datepicker.scss +16 -2
  27. package/scss/components/dropdown/_dropdown.scss +1 -1
  28. package/scss/components/dropdown/_dropdown.variables.scss +1 -1
  29. package/scss/components/form/_form.scss +13 -5
  30. package/scss/components/form/_form.variables.scss +9 -3
  31. package/scss/components/icon/_amadeus-icon.scss +1 -1
  32. package/scss/components/inputs/_inputs.mixin.scss +0 -13
  33. package/scss/components/inputs/_inputs.scss +6 -39
  34. package/scss/components/inputs/_inputs.variables.scss +7 -0
  35. package/scss/components/link/_link.scss +1 -1
  36. package/scss/components/list-group/_list-group.scss +5 -5
  37. package/scss/components/media/_media.scss +1 -1
  38. package/scss/components/modal/_modal.namespace.scss +13 -0
  39. package/scss/components/modal/_modal.scss +1 -1
  40. package/scss/components/navbar/_navbar.scss +3 -2
  41. package/scss/components/pagination/_pagination.namespace.scss +15 -0
  42. package/scss/components/pagination/_pagination.scss +35 -34
  43. package/scss/components/pagination/_pagination.variables.scss +2 -2
  44. package/scss/components/popover/_popover.scss +2 -2
  45. package/scss/components/popover/_popover.variables.scss +1 -1
  46. package/scss/components/radio/_radio.scss +12 -12
  47. package/scss/components/rating/_rating.scss +1 -1
  48. package/scss/components/scrollspy/_scrollspy.scss +22 -1
  49. package/scss/components/select/_select.namespace.scss +10 -0
  50. package/scss/components/select/_select.scss +8 -10
  51. package/scss/components/select/_select.variables.scss +1 -1
  52. package/scss/components/sidenav/_sidenav-deprecated.scss +1 -1
  53. package/scss/components/sidenav/_sidenav.scss +18 -0
  54. package/scss/components/slider/_slider.scss +7 -7
  55. package/scss/components/speechbubble/_speechbubble.scss +6 -10
  56. package/scss/components/stepper/_stepper.scss +2 -2
  57. package/scss/components/table/_advancedtables.scss +8 -3
  58. package/scss/components/tabs/_tabs.scss +6 -1
  59. package/scss/components/toast/_toast.variables.scss +2 -1
  60. package/scss/components/toggle/_toggle.scss +2 -2
  61. package/scss/namespace.scss +54 -33
  62. package/scss/utilities.scss +0 -1
  63. package/scss/_new-brand-common.variables.scss +0 -7
  64. package/scss/bootstrap/_variables-dark.scss +0 -86
  65. package/scss/components/brand-color/_brand-color.variables.scss +0 -146
  66. package/scss/components/brand-color/_brand-color_container.scss +0 -23
  67. package/scss/components/button/_button_container.scss +0 -47
  68. package/scss/components/pagination/_pagination_container.scss +0 -17
  69. package/scss/components/popover/_popover_container.scss +0 -214
  70. package/scss/components/spinner/_spinner_container.scss +0 -43
  71. package/scss/components/tooltip/_tooltip_container.scss +0 -116
  72. package/scss/themes/brand2023/_variables.scss +0 -315
  73. package/scss/utilities/_common.utilities.scss +0 -98
  74. package/scss/utilities/_form.mixins.scss +0 -26
  75. package/scss/utilities/_rgb.scss +0 -10
@@ -1,116 +0,0 @@
1
- // This style is needed when using DF through a CSS namespace
2
- #{$df-css-namespace-selector}.tooltip {
3
- // scss-docs-start tooltip-css-vars
4
- --#{$prefix}tooltip-zindex: #{$zindex-tooltip};
5
- --#{$prefix}tooltip-max-width: #{$tooltip-max-width};
6
- --#{$prefix}tooltip-padding-x: #{$tooltip-padding-x};
7
- --#{$prefix}tooltip-padding-y: #{$tooltip-padding-y};
8
- --#{$prefix}tooltip-margin: #{$tooltip-margin};
9
- @include rfs($tooltip-font-size, --#{$prefix}tooltip-font-size);
10
- --#{$prefix}tooltip-color: #{$tooltip-color};
11
- --#{$prefix}tooltip-bg: #{$tooltip-bg};
12
- --#{$prefix}tooltip-border-radius: #{$tooltip-border-radius};
13
- --#{$prefix}tooltip-opacity: #{$tooltip-opacity};
14
- --#{$prefix}tooltip-arrow-width: #{$tooltip-arrow-width};
15
- --#{$prefix}tooltip-arrow-height: #{$tooltip-arrow-height};
16
- // scss-docs-end tooltip-css-vars
17
-
18
- z-index: var(--#{$prefix}tooltip-zindex);
19
- display: block;
20
- padding: var(--#{$prefix}tooltip-arrow-height);
21
- margin: var(--#{$prefix}tooltip-margin);
22
- @include deprecate('`$tooltip-margin`', 'v5', 'v5.x', true);
23
- // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
24
- // So reset our font and text properties to avoid inheriting weird values.
25
- @include reset-text();
26
- @include font-size(var(--#{$prefix}tooltip-font-size));
27
- // Allow breaking very long words so they don't overflow the tooltip's bounds
28
- word-wrap: break-word;
29
- opacity: 0;
30
-
31
- &.show {
32
- opacity: var(--#{$prefix}tooltip-opacity);
33
- }
34
-
35
- .tooltip-arrow {
36
- display: block;
37
- width: var(--#{$prefix}tooltip-arrow-width);
38
- height: var(--#{$prefix}tooltip-arrow-height);
39
-
40
- &::before {
41
- position: absolute;
42
- content: '';
43
- border-color: transparent;
44
- border-style: solid;
45
- }
46
- }
47
-
48
- &.bs-tooltip-top {
49
- .tooltip-arrow {
50
- bottom: 0;
51
-
52
- &::before {
53
- top: -1px;
54
- border-width: var(--#{$prefix}tooltip-arrow-height) calc(var(--#{$prefix}tooltip-arrow-width) * 0.5) 0; // stylelint-disable-line function-disallowed-list
55
- border-top-color: var(--#{$prefix}tooltip-bg);
56
- }
57
- }
58
- }
59
-
60
- &.bs-tooltip-end {
61
- .tooltip-arrow {
62
- left: 0;
63
- width: var(--#{$prefix}tooltip-arrow-height);
64
- height: var(--#{$prefix}tooltip-arrow-width);
65
-
66
- &::before {
67
- right: -1px;
68
- border-width: calc(var(--#{$prefix}tooltip-arrow-width) * 0.5) var(--#{$prefix}tooltip-arrow-height)
69
- calc(var(--#{$prefix}tooltip-arrow-width) * 0.5) 0; // stylelint-disable-line function-disallowed-list
70
- border-right-color: var(--#{$prefix}tooltip-bg);
71
- }
72
- }
73
- }
74
-
75
- &.bs-tooltip-bottom {
76
- .tooltip-arrow {
77
- top: 0;
78
-
79
- &::before {
80
- bottom: -1px;
81
- border-width: 0 calc(var(--#{$prefix}tooltip-arrow-width) * 0.5) var(--#{$prefix}tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
82
- border-bottom-color: var(--#{$prefix}tooltip-bg);
83
- }
84
- }
85
- }
86
-
87
- &.bs-tooltip-start {
88
- .tooltip-arrow {
89
- right: 0;
90
- width: var(--#{$prefix}tooltip-arrow-height);
91
- height: var(--#{$prefix}tooltip-arrow-width);
92
-
93
- &::before {
94
- left: -1px;
95
- border-width: calc(var(--#{$prefix}tooltip-arrow-width) * 0.5) 0
96
- calc(var(--#{$prefix}tooltip-arrow-width) * 0.5) var(--#{$prefix}tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
97
- border-left-color: var(--#{$prefix}tooltip-bg);
98
- }
99
- }
100
- }
101
-
102
- &.bs-tooltip-auto {
103
- &[data-popper-placement^='top'] {
104
- @extend .bs-tooltip-top;
105
- }
106
- &[data-popper-placement^='right'] {
107
- @extend .bs-tooltip-end;
108
- }
109
- &[data-popper-placement^='bottom'] {
110
- @extend .bs-tooltip-bottom;
111
- }
112
- &[data-popper-placement^='left'] {
113
- @extend .bs-tooltip-start;
114
- }
115
- }
116
- }
@@ -1,315 +0,0 @@
1
- @use 'sass:map';
2
- @use 'sass:color';
3
- @import '../../utilities/rgb';
4
- @import '@design-factory/tokens/scss/vars-light';
5
- @import '@design-factory/tokens/scss/root';
6
-
7
- // stylelint-disable scss/dollar-variable-pattern
8
- // Variables
9
- //
10
- // Variables should follow the `$component-state-property-size` formula for
11
- // consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.
12
-
13
- // Color system
14
- // stylelint-disable-next-line scss/dollar-variable-default
15
- $prefix: df-;
16
-
17
- // scss-docs-start gray-color-variables
18
- $white: #fff !default;
19
- $black: #000 !default; // changed
20
-
21
- // DF specific colors
22
- // Grey colors
23
- $gray-1000: $df-theme-neutral-110 !default;
24
- $gray-900: $df-theme-neutral-100 !default; // cloud-100
25
- $gray-800: $df-theme-neutral-90 !default;
26
- $gray-700: $df-theme-neutral-80 !default;
27
- $gray-600: $df-theme-neutral-70 !default;
28
- $gray-500: $df-theme-neutral-60 !default;
29
- $gray-400: $df-theme-neutral-50 !default;
30
- $gray-300: $df-theme-neutral-40 !default;
31
- $gray-200: $df-theme-neutral-30 !default;
32
- $gray-100: $df-theme-neutral-20 !default;
33
- $gray-50: $df-theme-neutral-10 !default;
34
- $gray-0: $df-theme-neutral-0 !default;
35
- // scss-docs-end gray-color-variables
36
-
37
- // scss-docs-start color-variables
38
- // TODO attention maybe init this from the shades
39
- $blue: $df-colorPalette-sky-60 !default;
40
- $indigo: #6610f2 !default; // not changed
41
- $purple: $df-colorPalette-violet-60 !default;
42
- $pink: $df-colorPalette-fuchsia-60 !default; // fuchsia
43
- $red: $df-colorPalette-crimson-60 !default;
44
- $orange: $df-colorPalette-pumpkin-40 !default; // orange 400
45
- $yellow: $df-colorPalette-canary-60 !default;
46
- $green: $df-colorPalette-forest-60 !default;
47
- $teal: $df-colorPalette-sky-60 !default; // put to blue, temporary ?
48
- $cyan: #009dd1 !default; // not changed
49
-
50
- // DF specific colors
51
- $dark-orange: $df-colorPalette-pumpkin-70 !default; // TODO verify usaged not changed
52
- $light-blue: #9bcaeb !default; // TODO verify this one
53
- $brown: #9e6900 !default; // not changed
54
- // scss-docs-end color-variables
55
-
56
- // scss-docs-start theme-color-variables
57
- $primary: $blue !default;
58
- $secondary: $gray-700 !default; // not changed
59
- $success: $df-theme-success-60 !default;
60
- $info: $blue !default; // Sky 60
61
- $warning: $df-theme-warning-40 !default; // Orange 400
62
- $danger: $df-theme-danger-60 !default; // Crimson 500
63
- $light: $gray-50 !default; // changed
64
- $dark: $gray-700 !default; // changed
65
- $dark-sky: $df-theme-primary-90 !default; // added
66
- $light-primary: $df-theme-primary-20 !default; // create
67
- $tip: $purple !default;
68
- $chromatic1: $yellow !default;
69
- $chromatic2: $pink !default;
70
- $pacific: $light-blue !default; // to removed ? where used ?
71
- // scss-docs-end theme-color-variables
72
-
73
- // scss-docs-start theme-colors-map
74
- $theme-colors: (
75
- 'primary': $primary,
76
- 'success': $success,
77
- 'info': $info,
78
- 'warning': $warning,
79
- 'danger': $danger,
80
- 'neutral': $dark,
81
- 'tip': $tip,
82
- 'chromatic1': $chromatic1,
83
- 'chromatic2': $chromatic2
84
- ) !default;
85
- // scss-docs-end theme-colors-map
86
-
87
- // fusv-disable
88
- $blue-50: $df-colorPalette-sky-10 !default;
89
- $blue-100: $df-colorPalette-sky-20 !default;
90
- $blue-200: $df-colorPalette-sky-30 !default;
91
- $blue-300: $df-colorPalette-sky-40 !default;
92
- $blue-400: $df-colorPalette-sky-50 !default;
93
- $blue-500: $df-colorPalette-sky-60 !default;
94
- $blue-600: $df-colorPalette-sky-70 !default;
95
- $blue-700: $df-colorPalette-sky-80 !default;
96
- $blue-800: $df-colorPalette-sky-90 !default;
97
- $blue-900: $df-colorPalette-sky-100 !default;
98
-
99
- $primary-50: $df-theme-primary-10 !default;
100
- $primary-100: $df-theme-primary-20 !default;
101
- $primary-200: $df-theme-primary-30 !default;
102
- $primary-300: $df-theme-primary-40 !default;
103
- $primary-400: $df-theme-primary-50 !default;
104
- $primary-500: $df-theme-primary-60 !default;
105
- $primary-600: $df-theme-primary-70 !default;
106
- $primary-700: $df-theme-primary-80 !default;
107
- $primary-800: $df-theme-primary-90 !default;
108
- $primary-900: $df-theme-primary-100 !default;
109
-
110
- $info-50: $df-theme-info-10 !default;
111
- $info-100: $df-theme-info-20 !default;
112
- $info-200: $df-theme-info-30 !default;
113
- $info-300: $df-theme-info-40 !default;
114
- $info-400: $df-theme-info-50 !default;
115
- $info-500: $df-theme-info-60 !default;
116
- $info-600: $df-theme-info-70 !default;
117
- $info-700: $df-theme-info-80 !default;
118
- $info-800: $df-theme-info-90 !default;
119
- $info-900: $df-theme-info-100 !default;
120
-
121
- $purple-50: $df-colorPalette-violet-10 !default;
122
- $purple-100: $df-colorPalette-violet-20 !default;
123
- $purple-200: $df-colorPalette-violet-30 !default;
124
- $purple-300: $df-colorPalette-violet-40 !default;
125
- $purple-400: $df-colorPalette-violet-50 !default;
126
- $purple-500: $df-colorPalette-violet-60 !default;
127
- $purple-600: $df-colorPalette-violet-70 !default;
128
- $purple-700: $df-colorPalette-violet-80 !default;
129
- $purple-800: $df-colorPalette-violet-90 !default;
130
- $purple-900: $df-colorPalette-violet-100 !default;
131
-
132
- $pink-50: $df-colorPalette-fuchsia-10 !default;
133
- $pink-100: $df-colorPalette-fuchsia-20 !default;
134
- $pink-200: $df-colorPalette-fuchsia-30 !default;
135
- $pink-300: $df-colorPalette-fuchsia-40 !default;
136
- $pink-400: $df-colorPalette-fuchsia-50 !default;
137
- $pink-500: $df-colorPalette-fuchsia-60 !default;
138
- $pink-600: $df-colorPalette-fuchsia-70 !default;
139
- $pink-700: $df-colorPalette-fuchsia-80 !default;
140
- $pink-800: $df-colorPalette-fuchsia-90 !default;
141
- $pink-900: $df-colorPalette-fuchsia-100 !default;
142
-
143
- $red-50: $df-colorPalette-crimson-10 !default;
144
- $red-100: $df-colorPalette-crimson-20 !default;
145
- $red-200: $df-colorPalette-crimson-30 !default;
146
- $red-300: $df-colorPalette-crimson-40 !default;
147
- $red-400: $df-colorPalette-crimson-50 !default;
148
- $red-500: $df-colorPalette-crimson-60 !default;
149
- $red-600: $df-colorPalette-crimson-70 !default;
150
- $red-700: $df-colorPalette-crimson-80 !default;
151
- $red-800: $df-colorPalette-crimson-90 !default;
152
- $red-900: $df-colorPalette-crimson-100 !default;
153
-
154
- $orange-50: $df-colorPalette-pumpkin-10 !default;
155
- $orange-100: $df-colorPalette-pumpkin-20 !default;
156
- $orange-200: $df-colorPalette-pumpkin-30 !default;
157
- $orange-300: $df-colorPalette-pumpkin-40 !default;
158
- $orange-400: $df-colorPalette-pumpkin-50 !default;
159
- $orange-500: $df-colorPalette-pumpkin-60 !default;
160
- $orange-600: $df-colorPalette-pumpkin-70 !default;
161
- $orange-700: $df-colorPalette-pumpkin-80 !default;
162
- $orange-800: $df-colorPalette-pumpkin-90 !default;
163
- $orange-900: $df-colorPalette-pumpkin-100 !default;
164
-
165
- $yellow-50: $df-colorPalette-canary-10 !default;
166
- $yellow-100: $df-colorPalette-canary-20 !default;
167
- $yellow-200: $df-colorPalette-canary-30 !default;
168
- $yellow-300: $df-colorPalette-canary-40 !default;
169
- $yellow-400: $df-colorPalette-canary-50 !default;
170
- $yellow-500: $df-colorPalette-canary-60 !default;
171
- $yellow-600: $df-colorPalette-canary-70 !default;
172
- $yellow-700: $df-colorPalette-canary-80 !default;
173
- $yellow-800: $df-colorPalette-canary-90 !default;
174
- $yellow-900: $df-colorPalette-canary-100 !default;
175
-
176
- $green-50: $df-colorPalette-forest-10 !default;
177
- $green-100: $df-colorPalette-forest-20 !default;
178
- $green-200: $df-colorPalette-forest-30 !default;
179
- $green-300: $df-colorPalette-forest-40 !default;
180
- $green-400: $df-colorPalette-forest-50 !default;
181
- $green-500: $df-colorPalette-forest-60 !default;
182
- $green-600: $df-colorPalette-forest-70 !default;
183
- $green-700: $df-colorPalette-forest-80 !default;
184
- $green-800: $df-colorPalette-forest-90 !default;
185
- $green-900: $df-colorPalette-forest-100 !default;
186
-
187
- $teal-50: $df-colorPalette-sky-10 !default;
188
- $teal-100: $df-colorPalette-sky-20 !default;
189
- $teal-200: $df-colorPalette-sky-30 !default;
190
- $teal-300: $df-colorPalette-sky-40 !default;
191
- $teal-400: $df-colorPalette-sky-50 !default;
192
- $teal-500: $df-colorPalette-sky-60 !default;
193
- $teal-600: $df-colorPalette-sky-70 !default;
194
- $teal-700: $df-colorPalette-sky-80 !default;
195
- $teal-800: $df-colorPalette-sky-90 !default;
196
- $teal-900: $df-colorPalette-sky-100 !default;
197
-
198
- $danger-50: $df-theme-danger-10 !default;
199
- $danger-100: $df-theme-danger-20 !default;
200
- $danger-200: $df-theme-danger-30 !default;
201
- $danger-300: $df-theme-danger-40 !default;
202
- $danger-400: $df-theme-danger-50 !default;
203
- $danger-500: $df-theme-danger-60 !default;
204
- $danger-600: $df-theme-danger-70 !default;
205
- $danger-700: $df-theme-danger-80 !default;
206
- $danger-800: $df-theme-danger-90 !default;
207
- $danger-900: $df-theme-danger-100 !default;
208
-
209
- $warning-50: $df-theme-warning-10 !default;
210
- $warning-100: $df-theme-warning-20 !default;
211
- $warning-200: $df-theme-warning-30 !default;
212
- $warning-300: $df-theme-warning-40 !default;
213
- $warning-400: $df-theme-warning-50 !default;
214
- $warning-500: $df-theme-warning-60 !default;
215
- $warning-600: $df-theme-warning-70 !default;
216
- $warning-700: $df-theme-warning-80 !default;
217
- $warning-800: $df-theme-warning-90 !default;
218
- $warning-900: $df-theme-warning-100 !default;
219
-
220
- $success-50: $df-theme-success-10 !default;
221
- $success-100: $df-theme-success-20 !default;
222
- $success-200: $df-theme-success-30 !default;
223
- $success-300: $df-theme-success-40 !default;
224
- $success-400: $df-theme-success-50 !default;
225
- $success-500: $df-theme-success-60 !default;
226
- $success-600: $df-theme-success-70 !default;
227
- $success-700: $df-theme-success-80 !default;
228
- $success-800: $df-theme-success-90 !default;
229
- $success-900: $df-theme-success-100 !default;
230
-
231
- $dark-50: $gray-50 !default;
232
- $dark-100: $gray-100 !default;
233
- $dark-200: $gray-200 !default;
234
- $dark-300: $gray-300 !default;
235
- $dark-400: $gray-400 !default;
236
- $dark-500: $gray-500 !default;
237
- $dark-600: $gray-600 !default;
238
- $dark-700: $gray-700 !default;
239
- $dark-800: $gray-800 !default;
240
- $dark-900: $gray-900 !default;
241
-
242
- // scss-docs-start theme-bg-subtle-variables
243
- $primary-bg-subtle: var(--df-color-primary-subtle-background) !default;
244
- // TODO check where this is used in bootstrap
245
- $secondary-bg-subtle: var(--df-secondary-50) !default;
246
- $success-bg-subtle: var(--df-color-success-subtle-background) !default;
247
- $info-bg-subtle: var(--df-color-info-subtle-background) !default;
248
- $warning-bg-subtle: var(--df-color-warning-subtle-background) !default;
249
- $danger-bg-subtle: var(--df-color-danger-subtle-background) !default;
250
- // TODO check where this is used in bootstrap
251
- $light-bg-subtle: var(--df-white) !default;
252
-
253
- // scss-docs-end theme-bg-subtle-variables
254
-
255
- // scss-docs-start theme-border-subtle-variables
256
- // $primary-border-subtle: tint-color($primary, 60%) !default;
257
- // $secondary-border-subtle: tint-color($secondary, 60%) !default;
258
- // $success-border-subtle: tint-color($success, 60%) !default;
259
- // $info-border-subtle: tint-color($info, 60%) !default;
260
- // $warning-border-subtle: tint-color($warning, 60%) !default;
261
- // $danger-border-subtle: tint-color($danger, 60%) !default;
262
- // $light-border-subtle: $gray-200 !default;
263
- // $dark-border-subtle: $gray-500 !default;
264
- // scss-docs-end theme-border-subtle-variables
265
-
266
- // Spacing
267
- //
268
- // Control the default styling of most Bootstrap elements by modifying these
269
- // variables. Mostly focused on spacing.
270
- // You can add more entries to the $spacers map, should you need more variation.
271
-
272
- // scss-docs-start spacer-variables-maps
273
- $spacer: $df-spacing-5 !default;
274
- $spacers: () !default;
275
-
276
- $enable-negative-margins: false !default;
277
-
278
- @for $i from 0 through 12 {
279
- $spacers: map.set($spacers, $i, var(--df-spacing-#{$i}));
280
- }
281
-
282
- @if $enable-negative-margins {
283
- $negative-spacers: () !default;
284
- @for $i from 1 through 12 {
285
- $negative-spacers: map.set($negative-spacers, 'n' + $i, calc(-1 * var(--df-spacing-#{$i})));
286
- }
287
- } @else {
288
- $negative-spacers: null !default;
289
- }
290
-
291
- // scss-docs-end spacer-variables-maps
292
-
293
- $body-bg: $white !default;
294
- $body-color: $gray-900 !default;
295
- $color-contrast-dark: $body-color !default; // should be same as $body-color but not a CSS var
296
- $df-disabled-color: var(--df-gray-400) !default;
297
- $df-disabled-bg-color: var(--df-gray-200) !default;
298
- $input-btn-focus-box-shadow:
299
- 0 0 0 2px var(--df-inner-box-shadow-color, var(--df-body-bg)),
300
- 0 0 0 4px var(--df-box-shadow-color, $primary) !default;
301
-
302
- $df-box-shadow: 0px 0px 8px 0px rgba($gray-600, 0.75) !default;
303
- $df-hover-bg-color: var(--df-primary-100) !default;
304
-
305
- // scss-docs-start border-radius-variables
306
- $border-radius: var(--df-borderRadius-main-medium) !default;
307
- $border-radius-sm: var(--df-borderRadius-main-small) !default;
308
- $border-radius-lg: var(--df-borderRadius-main-large) !default;
309
- $border-radius-pill: var(--df-borderRadius-main-rounded) !default;
310
-
311
- // scss-docs-start input-btn-variables
312
- $input-btn-padding-x: $df-spacing-4 !default;
313
- $input-btn-padding-x-sm: $df-spacing-3 !default;
314
- $input-btn-padding-x-lg: $df-spacing-5 !default;
315
- // scss-docs-end input-btn-variables
@@ -1,98 +0,0 @@
1
- @use 'sass:color';
2
- @use 'sass:map';
3
- @use 'sass:math';
4
- @use 'sass:string';
5
- @use 'sass:list';
6
- @use 'sass:meta';
7
- @import 'rgb';
8
-
9
- // This function currently change all the colors #ffffff #bbbbbb and #cccccc (that you should put in the svg) by the one given in input
10
- // I put f for fill value.
11
- @function df-getSVGasURL($svg, $fig-color, $border-color, $background-color) {
12
- //add
13
- //TODO add end of line and multiple space replacing...
14
- $ret: str-replace($svg, '#bbbbbb', $border-color);
15
- $ret: str-replace($ret, '#cccccc', $background-color);
16
- $ret: str-replace($ret, '#ffffff', $fig-color);
17
- $ret: str-replace($ret, '#', '%23');
18
- $ret: str-replace($ret, '<', '%3C');
19
- $ret: str-replace($ret, '>', '%3E');
20
- @return url('data:image/svg+xml;charset=utf8,' + $ret);
21
- }
22
-
23
- //Default values
24
- $df-size-ratios: (
25
- 'sm': 0.875,
26
- 'md': 1,
27
- 'lg': 1.125,
28
- 'xl': 1.25
29
- ) !default;
30
-
31
- $df-sizing-ratios: (
32
- 'sm': 0.7,
33
- 'lg': 1.9,
34
- 'xl': 1.9
35
- ) !default;
36
-
37
- $df-box-shadow-transparent-amount: 0.8 !default;
38
- $df-box-shadow-color: #000 !default; // should be the same as $black
39
-
40
- $df-box-shadow: 0px 4px 8px 0px
41
- color.adjust(
42
- $color: $df-box-shadow-color,
43
- $alpha: - $df-box-shadow-transparent-amount
44
- ) !default;
45
-
46
- @function rgba-css-var($identifier, $target) {
47
- @if not list.index(neutral primary danger warning success info tip accent chromatic1 chromatic2, $identifier) {
48
- @error "#{$identifier} not managed, called with #{$target}";
49
- }
50
- @if $target == 'focus-ring' or $target == 'border' {
51
- @return var(--df-color-#{$identifier}-main-default-border);
52
- }
53
- @if $target == 'text' {
54
- @return var(--df-color-#{$identifier}-alt-default-foreground);
55
- } @else {
56
- @return var(--df-color-#{$identifier}-main-default-background);
57
- }
58
- }
59
-
60
- @function color-contrast(
61
- $background,
62
- $color-contrast-dark: $color-contrast-dark,
63
- $color-contrast-light: $color-contrast-light,
64
- $min-contrast-ratio: $min-contrast-ratio
65
- ) {
66
- @if meta.type-of($background) != color {
67
- @return str-replace($background, ')', '-color)');
68
- }
69
- $foregrounds: $color-contrast-light, $color-contrast-dark, $white, $black;
70
- $max-ratio: 0;
71
- $max-ratio-color: null;
72
-
73
- @each $color in $foregrounds {
74
- $contrast-ratio: contrast-ratio($background, $color);
75
- @if $contrast-ratio > $min-contrast-ratio {
76
- @return $color;
77
- } @else if $contrast-ratio > $max-ratio {
78
- $max-ratio: $contrast-ratio;
79
- $max-ratio-color: $color;
80
- }
81
- }
82
-
83
- @warn "Found no color leading to #{$min-contrast-ratio}:1 contrast ratio against #{$background}...";
84
-
85
- @return $max-ratio-color;
86
- }
87
-
88
- $df-size-ratios-font: (
89
- 'sm': var(--df-typo-sizing-small),
90
- 'lg': var(--df-typo-sizing-large),
91
- 'md': var(--df-typo-sizing-default),
92
- 'xl': var(--df-typo-sizing-2xlarge)
93
- ) !default;
94
-
95
- // TODO consider fully removing this function to use the bs class fs- instead
96
- @function get-font-sizing($extension, $ratio, $font-size-to-scale: $font-size-base, $body: false) {
97
- @return map.get($df-size-ratios-font, $extension);
98
- }
@@ -1,26 +0,0 @@
1
- $df-check-label-adjust-padding-left: 0.125rem !default;
2
- // mixins for radio and checkbox position
3
- @mixin df-checkboxradio-pos($df-margin-bottom) {
4
- display: inline-block;
5
- position: relative;
6
- &:not(.col-form-label) {
7
- margin-bottom: $df-margin-bottom;
8
- }
9
- @include ltr {
10
- padding-left: calc($form-check-padding-start + $df-check-label-adjust-padding-left); // add
11
- margin-left: -$form-check-padding-start; // add
12
- }
13
-
14
- @include rtl {
15
- padding-right: calc($form-check-padding-start + $df-check-label-adjust-padding-left); // add
16
- margin-right: -$form-check-padding-start; // add
17
- }
18
-
19
- &::before {
20
- // add
21
- position: absolute; // idem as custom-control-input from bootstrap to hide the browser input (mandatory)
22
- top: 50%; // New trick to use to center the icon with the title (works
23
- // with the transform on the element and display: inline-block, position: relative on the parent)
24
- transform: translateY(-50%);
25
- }
26
- }
@@ -1,10 +0,0 @@
1
- @use 'sass:meta';
2
- @use 'sass:color';
3
-
4
- // Override functions from BS
5
- @function to-rgb($value) {
6
- @if meta.type-of($value) != color {
7
- @return str-replace($value, ')', '-rgb)');
8
- }
9
- @return color.red($value), color.green($value), color.blue($value);
10
- }