@unlk/keymaster 1.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.
Files changed (168) hide show
  1. package/fonts/fa-brands-400.ttf +0 -0
  2. package/fonts/fa-brands-400.woff2 +0 -0
  3. package/fonts/fa-duotone-900.ttf +0 -0
  4. package/fonts/fa-duotone-900.woff2 +0 -0
  5. package/fonts/fa-duotone-light-300.ttf +0 -0
  6. package/fonts/fa-duotone-light-300.woff2 +0 -0
  7. package/fonts/fa-duotone-regular-400.ttf +0 -0
  8. package/fonts/fa-duotone-regular-400.woff2 +0 -0
  9. package/fonts/fa-duotone-thin-100.ttf +0 -0
  10. package/fonts/fa-duotone-thin-100.woff2 +0 -0
  11. package/fonts/fa-light-300.ttf +0 -0
  12. package/fonts/fa-light-300.woff2 +0 -0
  13. package/fonts/fa-regular-400.ttf +0 -0
  14. package/fonts/fa-regular-400.woff2 +0 -0
  15. package/fonts/fa-sharp-duotone-light-300.ttf +0 -0
  16. package/fonts/fa-sharp-duotone-light-300.woff2 +0 -0
  17. package/fonts/fa-sharp-duotone-regular-400.ttf +0 -0
  18. package/fonts/fa-sharp-duotone-regular-400.woff2 +0 -0
  19. package/fonts/fa-sharp-duotone-solid-900.ttf +0 -0
  20. package/fonts/fa-sharp-duotone-solid-900.woff2 +0 -0
  21. package/fonts/fa-sharp-duotone-thin-100.ttf +0 -0
  22. package/fonts/fa-sharp-duotone-thin-100.woff2 +0 -0
  23. package/fonts/fa-sharp-light-300.ttf +0 -0
  24. package/fonts/fa-sharp-light-300.woff2 +0 -0
  25. package/fonts/fa-sharp-regular-400.ttf +0 -0
  26. package/fonts/fa-sharp-regular-400.woff2 +0 -0
  27. package/fonts/fa-sharp-solid-900.ttf +0 -0
  28. package/fonts/fa-sharp-solid-900.woff2 +0 -0
  29. package/fonts/fa-sharp-thin-100.ttf +0 -0
  30. package/fonts/fa-sharp-thin-100.woff2 +0 -0
  31. package/fonts/fa-solid-900.ttf +0 -0
  32. package/fonts/fa-solid-900.woff2 +0 -0
  33. package/fonts/fa-thin-100.ttf +0 -0
  34. package/fonts/fa-thin-100.woff2 +0 -0
  35. package/fonts/fa-v4compatibility.ttf +0 -0
  36. package/fonts/fa-v4compatibility.woff2 +0 -0
  37. package/js/bootstrap.js +13 -0
  38. package/js/datepicker.js +78 -0
  39. package/package.json +81 -0
  40. package/scss/assets/bootstrap5/_accordion.scss +158 -0
  41. package/scss/assets/bootstrap5/_alert.scss +68 -0
  42. package/scss/assets/bootstrap5/_badge.scss +38 -0
  43. package/scss/assets/bootstrap5/_breadcrumb.scss +40 -0
  44. package/scss/assets/bootstrap5/_button-group.scss +142 -0
  45. package/scss/assets/bootstrap5/_buttons.scss +216 -0
  46. package/scss/assets/bootstrap5/_card.scss +239 -0
  47. package/scss/assets/bootstrap5/_carousel.scss +236 -0
  48. package/scss/assets/bootstrap5/_close.scss +63 -0
  49. package/scss/assets/bootstrap5/_containers.scss +41 -0
  50. package/scss/assets/bootstrap5/_dropdown.scss +250 -0
  51. package/scss/assets/bootstrap5/_forms.scss +9 -0
  52. package/scss/assets/bootstrap5/_functions.scss +302 -0
  53. package/scss/assets/bootstrap5/_grid.scss +39 -0
  54. package/scss/assets/bootstrap5/_helpers.scss +12 -0
  55. package/scss/assets/bootstrap5/_images.scss +42 -0
  56. package/scss/assets/bootstrap5/_list-group.scss +197 -0
  57. package/scss/assets/bootstrap5/_maps.scss +174 -0
  58. package/scss/assets/bootstrap5/_mixins.scss +42 -0
  59. package/scss/assets/bootstrap5/_modal.scss +236 -0
  60. package/scss/assets/bootstrap5/_nav.scss +197 -0
  61. package/scss/assets/bootstrap5/_navbar.scss +289 -0
  62. package/scss/assets/bootstrap5/_offcanvas.scss +143 -0
  63. package/scss/assets/bootstrap5/_pagination.scss +109 -0
  64. package/scss/assets/bootstrap5/_placeholders.scss +51 -0
  65. package/scss/assets/bootstrap5/_popover.scss +196 -0
  66. package/scss/assets/bootstrap5/_progress.scss +68 -0
  67. package/scss/assets/bootstrap5/_reboot.scss +611 -0
  68. package/scss/assets/bootstrap5/_root.scss +187 -0
  69. package/scss/assets/bootstrap5/_spinners.scss +85 -0
  70. package/scss/assets/bootstrap5/_tables.scss +171 -0
  71. package/scss/assets/bootstrap5/_toasts.scss +73 -0
  72. package/scss/assets/bootstrap5/_tooltip.scss +119 -0
  73. package/scss/assets/bootstrap5/_transitions.scss +27 -0
  74. package/scss/assets/bootstrap5/_type.scss +106 -0
  75. package/scss/assets/bootstrap5/_utilities.scss +806 -0
  76. package/scss/assets/bootstrap5/_variables-dark.scss +87 -0
  77. package/scss/assets/bootstrap5/_variables.scss +1751 -0
  78. package/scss/assets/bootstrap5/bootstrap-grid.scss +62 -0
  79. package/scss/assets/bootstrap5/bootstrap-reboot.scss +10 -0
  80. package/scss/assets/bootstrap5/bootstrap-utilities.scss +19 -0
  81. package/scss/assets/bootstrap5/bootstrap.scss +52 -0
  82. package/scss/assets/bootstrap5/forms/_floating-labels.scss +95 -0
  83. package/scss/assets/bootstrap5/forms/_form-check.scss +189 -0
  84. package/scss/assets/bootstrap5/forms/_form-control.scss +214 -0
  85. package/scss/assets/bootstrap5/forms/_form-range.scss +91 -0
  86. package/scss/assets/bootstrap5/forms/_form-select.scss +80 -0
  87. package/scss/assets/bootstrap5/forms/_form-text.scss +11 -0
  88. package/scss/assets/bootstrap5/forms/_input-group.scss +132 -0
  89. package/scss/assets/bootstrap5/forms/_labels.scss +36 -0
  90. package/scss/assets/bootstrap5/forms/_validation.scss +12 -0
  91. package/scss/assets/bootstrap5/helpers/_clearfix.scss +3 -0
  92. package/scss/assets/bootstrap5/helpers/_color-bg.scss +7 -0
  93. package/scss/assets/bootstrap5/helpers/_colored-links.scss +30 -0
  94. package/scss/assets/bootstrap5/helpers/_focus-ring.scss +5 -0
  95. package/scss/assets/bootstrap5/helpers/_icon-link.scss +25 -0
  96. package/scss/assets/bootstrap5/helpers/_position.scss +36 -0
  97. package/scss/assets/bootstrap5/helpers/_ratio.scss +26 -0
  98. package/scss/assets/bootstrap5/helpers/_stacks.scss +15 -0
  99. package/scss/assets/bootstrap5/helpers/_stretched-link.scss +15 -0
  100. package/scss/assets/bootstrap5/helpers/_text-truncation.scss +7 -0
  101. package/scss/assets/bootstrap5/helpers/_visually-hidden.scss +8 -0
  102. package/scss/assets/bootstrap5/helpers/_vr.scss +8 -0
  103. package/scss/assets/bootstrap5/mixins/_alert.scss +18 -0
  104. package/scss/assets/bootstrap5/mixins/_backdrop.scss +14 -0
  105. package/scss/assets/bootstrap5/mixins/_banner.scss +7 -0
  106. package/scss/assets/bootstrap5/mixins/_border-radius.scss +78 -0
  107. package/scss/assets/bootstrap5/mixins/_box-shadow.scss +18 -0
  108. package/scss/assets/bootstrap5/mixins/_breakpoints.scss +127 -0
  109. package/scss/assets/bootstrap5/mixins/_buttons.scss +70 -0
  110. package/scss/assets/bootstrap5/mixins/_caret.scss +69 -0
  111. package/scss/assets/bootstrap5/mixins/_clearfix.scss +9 -0
  112. package/scss/assets/bootstrap5/mixins/_color-mode.scss +21 -0
  113. package/scss/assets/bootstrap5/mixins/_color-scheme.scss +7 -0
  114. package/scss/assets/bootstrap5/mixins/_container.scss +11 -0
  115. package/scss/assets/bootstrap5/mixins/_deprecate.scss +10 -0
  116. package/scss/assets/bootstrap5/mixins/_forms.scss +163 -0
  117. package/scss/assets/bootstrap5/mixins/_gradients.scss +47 -0
  118. package/scss/assets/bootstrap5/mixins/_grid.scss +151 -0
  119. package/scss/assets/bootstrap5/mixins/_image.scss +16 -0
  120. package/scss/assets/bootstrap5/mixins/_list-group.scss +26 -0
  121. package/scss/assets/bootstrap5/mixins/_lists.scss +7 -0
  122. package/scss/assets/bootstrap5/mixins/_pagination.scss +10 -0
  123. package/scss/assets/bootstrap5/mixins/_reset-text.scss +17 -0
  124. package/scss/assets/bootstrap5/mixins/_resize.scss +6 -0
  125. package/scss/assets/bootstrap5/mixins/_table-variants.scss +24 -0
  126. package/scss/assets/bootstrap5/mixins/_text-truncate.scss +8 -0
  127. package/scss/assets/bootstrap5/mixins/_transition.scss +26 -0
  128. package/scss/assets/bootstrap5/mixins/_utilities.scss +97 -0
  129. package/scss/assets/bootstrap5/mixins/_visually-hidden.scss +33 -0
  130. package/scss/assets/bootstrap5/utilities/_api.scss +47 -0
  131. package/scss/assets/bootstrap5/vendor/_rfs.scss +348 -0
  132. package/scss/assets/fontawesome/_animated.scss +152 -0
  133. package/scss/assets/fontawesome/_bordered-pulled.scss +20 -0
  134. package/scss/assets/fontawesome/_core.scss +150 -0
  135. package/scss/assets/fontawesome/_duotone-icons.scss +12 -0
  136. package/scss/assets/fontawesome/_fixed-width.scss +7 -0
  137. package/scss/assets/fontawesome/_functions.scss +57 -0
  138. package/scss/assets/fontawesome/_icons.scss +13 -0
  139. package/scss/assets/fontawesome/_list.scss +18 -0
  140. package/scss/assets/fontawesome/_mixins.scss +89 -0
  141. package/scss/assets/fontawesome/_rotated-flipped.scss +31 -0
  142. package/scss/assets/fontawesome/_screen-reader.scss +14 -0
  143. package/scss/assets/fontawesome/_shims.scss +1578 -0
  144. package/scss/assets/fontawesome/_sizing.scss +16 -0
  145. package/scss/assets/fontawesome/_stacked.scss +32 -0
  146. package/scss/assets/fontawesome/_variables.scss +9734 -0
  147. package/scss/assets/fontawesome/brands.scss +30 -0
  148. package/scss/assets/fontawesome/duotone-light.scss +69 -0
  149. package/scss/assets/fontawesome/duotone-regular.scss +69 -0
  150. package/scss/assets/fontawesome/duotone-thin.scss +69 -0
  151. package/scss/assets/fontawesome/duotone.scss +65 -0
  152. package/scss/assets/fontawesome/fontawesome.scss +21 -0
  153. package/scss/assets/fontawesome/light.scss +27 -0
  154. package/scss/assets/fontawesome/regular.scss +27 -0
  155. package/scss/assets/fontawesome/sharp-duotone-light.scss +69 -0
  156. package/scss/assets/fontawesome/sharp-duotone-regular.scss +69 -0
  157. package/scss/assets/fontawesome/sharp-duotone-solid.scss +77 -0
  158. package/scss/assets/fontawesome/sharp-duotone-thin.scss +69 -0
  159. package/scss/assets/fontawesome/sharp-light.scss +27 -0
  160. package/scss/assets/fontawesome/sharp-regular.scss +27 -0
  161. package/scss/assets/fontawesome/sharp-solid.scss +27 -0
  162. package/scss/assets/fontawesome/sharp-thin.scss +27 -0
  163. package/scss/assets/fontawesome/solid.scss +27 -0
  164. package/scss/assets/fontawesome/thin.scss +27 -0
  165. package/scss/assets/fontawesome/v4-shims.scss +11 -0
  166. package/scss/keymaster.scss +14 -0
  167. package/scss/theme/_overrides.scss +266 -0
  168. package/scss/theme/_utility-overrides.scss +7 -0
@@ -0,0 +1,348 @@
1
+ // stylelint-disable scss/dimension-no-non-numeric-values
2
+
3
+ // SCSS RFS mixin
4
+ //
5
+ // Automated responsive values for font sizes, paddings, margins and much more
6
+ //
7
+ // Licensed under MIT (https://github.com/twbs/rfs/blob/main/LICENSE)
8
+
9
+ // Configuration
10
+
11
+ // Base value
12
+ $rfs-base-value: 1.25rem !default;
13
+ $rfs-unit: rem !default;
14
+
15
+ @if $rfs-unit != rem and $rfs-unit != px {
16
+ @error "`#{$rfs-unit}` is not a valid unit for $rfs-unit. Use `px` or `rem`.";
17
+ }
18
+
19
+ // Breakpoint at where values start decreasing if screen width is smaller
20
+ $rfs-breakpoint: 1200px !default;
21
+ $rfs-breakpoint-unit: px !default;
22
+
23
+ @if $rfs-breakpoint-unit != px and $rfs-breakpoint-unit != em and $rfs-breakpoint-unit != rem {
24
+ @error "`#{$rfs-breakpoint-unit}` is not a valid unit for $rfs-breakpoint-unit. Use `px`, `em` or `rem`.";
25
+ }
26
+
27
+ // Resize values based on screen height and width
28
+ $rfs-two-dimensional: false !default;
29
+
30
+ // Factor of decrease
31
+ $rfs-factor: 10 !default;
32
+
33
+ @if type-of($rfs-factor) != number or $rfs-factor <= 1 {
34
+ @error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
35
+ }
36
+
37
+ // Mode. Possibilities: "min-media-query", "max-media-query"
38
+ $rfs-mode: min-media-query !default;
39
+
40
+ // Generate enable or disable classes. Possibilities: false, "enable" or "disable"
41
+ $rfs-class: false !default;
42
+
43
+ // 1 rem = $rfs-rem-value px
44
+ $rfs-rem-value: 16 !default;
45
+
46
+ // Safari iframe resize bug: https://github.com/twbs/rfs/issues/14
47
+ $rfs-safari-iframe-resize-bug-fix: false !default;
48
+
49
+ // Disable RFS by setting $enable-rfs to false
50
+ $enable-rfs: true !default;
51
+
52
+ // Cache $rfs-base-value unit
53
+ $rfs-base-value-unit: unit($rfs-base-value);
54
+
55
+ @function divide($dividend, $divisor, $precision: 10) {
56
+ $sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1);
57
+ $dividend: abs($dividend);
58
+ $divisor: abs($divisor);
59
+ @if $dividend == 0 {
60
+ @return 0;
61
+ }
62
+ @if $divisor == 0 {
63
+ @error "Cannot divide by 0";
64
+ }
65
+ $remainder: $dividend;
66
+ $result: 0;
67
+ $factor: 10;
68
+ @while ($remainder > 0 and $precision >= 0) {
69
+ $quotient: 0;
70
+ @while ($remainder >= $divisor) {
71
+ $remainder: $remainder - $divisor;
72
+ $quotient: $quotient + 1;
73
+ }
74
+ $result: $result * 10 + $quotient;
75
+ $factor: $factor * .1;
76
+ $remainder: $remainder * 10;
77
+ $precision: $precision - 1;
78
+ @if ($precision < 0 and $remainder >= $divisor * 5) {
79
+ $result: $result + 1;
80
+ }
81
+ }
82
+ $result: $result * $factor * $sign;
83
+ $dividend-unit: unit($dividend);
84
+ $divisor-unit: unit($divisor);
85
+ $unit-map: (
86
+ "px": 1px,
87
+ "rem": 1rem,
88
+ "em": 1em,
89
+ "%": 1%
90
+ );
91
+ @if ($dividend-unit != $divisor-unit and map-has-key($unit-map, $dividend-unit)) {
92
+ $result: $result * map-get($unit-map, $dividend-unit);
93
+ }
94
+ @return $result;
95
+ }
96
+
97
+ // Remove px-unit from $rfs-base-value for calculations
98
+ @if $rfs-base-value-unit == px {
99
+ $rfs-base-value: divide($rfs-base-value, $rfs-base-value * 0 + 1);
100
+ }
101
+ @else if $rfs-base-value-unit == rem {
102
+ $rfs-base-value: divide($rfs-base-value, divide($rfs-base-value * 0 + 1, $rfs-rem-value));
103
+ }
104
+
105
+ // Cache $rfs-breakpoint unit to prevent multiple calls
106
+ $rfs-breakpoint-unit-cache: unit($rfs-breakpoint);
107
+
108
+ // Remove unit from $rfs-breakpoint for calculations
109
+ @if $rfs-breakpoint-unit-cache == px {
110
+ $rfs-breakpoint: divide($rfs-breakpoint, $rfs-breakpoint * 0 + 1);
111
+ }
112
+ @else if $rfs-breakpoint-unit-cache == rem or $rfs-breakpoint-unit-cache == "em" {
113
+ $rfs-breakpoint: divide($rfs-breakpoint, divide($rfs-breakpoint * 0 + 1, $rfs-rem-value));
114
+ }
115
+
116
+ // Calculate the media query value
117
+ $rfs-mq-value: if($rfs-breakpoint-unit == px, #{$rfs-breakpoint}px, #{divide($rfs-breakpoint, $rfs-rem-value)}#{$rfs-breakpoint-unit});
118
+ $rfs-mq-property-width: if($rfs-mode == max-media-query, max-width, min-width);
119
+ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height);
120
+
121
+ // Internal mixin used to determine which media query needs to be used
122
+ @mixin _rfs-media-query {
123
+ @if $rfs-two-dimensional {
124
+ @if $rfs-mode == max-media-query {
125
+ @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}), (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {
126
+ @content;
127
+ }
128
+ }
129
+ @else {
130
+ @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) and (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {
131
+ @content;
132
+ }
133
+ }
134
+ }
135
+ @else {
136
+ @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) {
137
+ @content;
138
+ }
139
+ }
140
+ }
141
+
142
+ // Internal mixin that adds disable classes to the selector if needed.
143
+ @mixin _rfs-rule {
144
+ @if $rfs-class == disable and $rfs-mode == max-media-query {
145
+ // Adding an extra class increases specificity, which prevents the media query to override the property
146
+ &,
147
+ .disable-rfs &,
148
+ &.disable-rfs {
149
+ @content;
150
+ }
151
+ }
152
+ @else if $rfs-class == enable and $rfs-mode == min-media-query {
153
+ .enable-rfs &,
154
+ &.enable-rfs {
155
+ @content;
156
+ }
157
+ } @else {
158
+ @content;
159
+ }
160
+ }
161
+
162
+ // Internal mixin that adds enable classes to the selector if needed.
163
+ @mixin _rfs-media-query-rule {
164
+
165
+ @if $rfs-class == enable {
166
+ @if $rfs-mode == min-media-query {
167
+ @content;
168
+ }
169
+
170
+ @include _rfs-media-query () {
171
+ .enable-rfs &,
172
+ &.enable-rfs {
173
+ @content;
174
+ }
175
+ }
176
+ }
177
+ @else {
178
+ @if $rfs-class == disable and $rfs-mode == min-media-query {
179
+ .disable-rfs &,
180
+ &.disable-rfs {
181
+ @content;
182
+ }
183
+ }
184
+ @include _rfs-media-query () {
185
+ @content;
186
+ }
187
+ }
188
+ }
189
+
190
+ // Helper function to get the formatted non-responsive value
191
+ @function rfs-value($values) {
192
+ // Convert to list
193
+ $values: if(type-of($values) != list, ($values,), $values);
194
+
195
+ $val: "";
196
+
197
+ // Loop over each value and calculate value
198
+ @each $value in $values {
199
+ @if $value == 0 {
200
+ $val: $val + " 0";
201
+ }
202
+ @else {
203
+ // Cache $value unit
204
+ $unit: if(type-of($value) == "number", unit($value), false);
205
+
206
+ @if $unit == px {
207
+ // Convert to rem if needed
208
+ $val: $val + " " + if($rfs-unit == rem, #{divide($value, $value * 0 + $rfs-rem-value)}rem, $value);
209
+ }
210
+ @else if $unit == rem {
211
+ // Convert to px if needed
212
+ $val: $val + " " + if($rfs-unit == px, #{divide($value, $value * 0 + 1) * $rfs-rem-value}px, $value);
213
+ } @else {
214
+ // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
215
+ $val: $val + " " + $value;
216
+ }
217
+ }
218
+ }
219
+
220
+ // Remove first space
221
+ @return unquote(str-slice($val, 2));
222
+ }
223
+
224
+ // Helper function to get the responsive value calculated by RFS
225
+ @function rfs-fluid-value($values) {
226
+ // Convert to list
227
+ $values: if(type-of($values) != list, ($values,), $values);
228
+
229
+ $val: "";
230
+
231
+ // Loop over each value and calculate value
232
+ @each $value in $values {
233
+ @if $value == 0 {
234
+ $val: $val + " 0";
235
+ } @else {
236
+ // Cache $value unit
237
+ $unit: if(type-of($value) == "number", unit($value), false);
238
+
239
+ // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
240
+ @if not $unit or $unit != px and $unit != rem {
241
+ $val: $val + " " + $value;
242
+ } @else {
243
+ // Remove unit from $value for calculations
244
+ $value: divide($value, $value * 0 + if($unit == px, 1, divide(1, $rfs-rem-value)));
245
+
246
+ // Only add the media query if the value is greater than the minimum value
247
+ @if abs($value) <= $rfs-base-value or not $enable-rfs {
248
+ $val: $val + " " + if($rfs-unit == rem, #{divide($value, $rfs-rem-value)}rem, #{$value}px);
249
+ }
250
+ @else {
251
+ // Calculate the minimum value
252
+ $value-min: $rfs-base-value + divide(abs($value) - $rfs-base-value, $rfs-factor);
253
+
254
+ // Calculate difference between $value and the minimum value
255
+ $value-diff: abs($value) - $value-min;
256
+
257
+ // Base value formatting
258
+ $min-width: if($rfs-unit == rem, #{divide($value-min, $rfs-rem-value)}rem, #{$value-min}px);
259
+
260
+ // Use negative value if needed
261
+ $min-width: if($value < 0, -$min-width, $min-width);
262
+
263
+ // Use `vmin` if two-dimensional is enabled
264
+ $variable-unit: if($rfs-two-dimensional, vmin, vw);
265
+
266
+ // Calculate the variable width between 0 and $rfs-breakpoint
267
+ $variable-width: #{divide($value-diff * 100, $rfs-breakpoint)}#{$variable-unit};
268
+
269
+ // Return the calculated value
270
+ $val: $val + " calc(" + $min-width + if($value < 0, " - ", " + ") + $variable-width + ")";
271
+ }
272
+ }
273
+ }
274
+ }
275
+
276
+ // Remove first space
277
+ @return unquote(str-slice($val, 2));
278
+ }
279
+
280
+ // RFS mixin
281
+ @mixin rfs($values, $property: font-size) {
282
+ @if $values != null {
283
+ $val: rfs-value($values);
284
+ $fluid-val: rfs-fluid-value($values);
285
+
286
+ // Do not print the media query if responsive & non-responsive values are the same
287
+ @if $val == $fluid-val {
288
+ #{$property}: $val;
289
+ }
290
+ @else {
291
+ @include _rfs-rule () {
292
+ #{$property}: if($rfs-mode == max-media-query, $val, $fluid-val);
293
+
294
+ // Include safari iframe resize fix if needed
295
+ min-width: if($rfs-safari-iframe-resize-bug-fix, (0 * 1vw), null);
296
+ }
297
+
298
+ @include _rfs-media-query-rule () {
299
+ #{$property}: if($rfs-mode == max-media-query, $fluid-val, $val);
300
+ }
301
+ }
302
+ }
303
+ }
304
+
305
+ // Shorthand helper mixins
306
+ @mixin font-size($value) {
307
+ @include rfs($value);
308
+ }
309
+
310
+ @mixin padding($value) {
311
+ @include rfs($value, padding);
312
+ }
313
+
314
+ @mixin padding-top($value) {
315
+ @include rfs($value, padding-top);
316
+ }
317
+
318
+ @mixin padding-right($value) {
319
+ @include rfs($value, padding-right);
320
+ }
321
+
322
+ @mixin padding-bottom($value) {
323
+ @include rfs($value, padding-bottom);
324
+ }
325
+
326
+ @mixin padding-left($value) {
327
+ @include rfs($value, padding-left);
328
+ }
329
+
330
+ @mixin margin($value) {
331
+ @include rfs($value, margin);
332
+ }
333
+
334
+ @mixin margin-top($value) {
335
+ @include rfs($value, margin-top);
336
+ }
337
+
338
+ @mixin margin-right($value) {
339
+ @include rfs($value, margin-right);
340
+ }
341
+
342
+ @mixin margin-bottom($value) {
343
+ @include rfs($value, margin-bottom);
344
+ }
345
+
346
+ @mixin margin-left($value) {
347
+ @include rfs($value, margin-left);
348
+ }
@@ -0,0 +1,152 @@
1
+ // animating icons
2
+ // --------------------------
3
+
4
+ .#{$fa-css-prefix}-beat {
5
+ animation-name: #{$fa-css-prefix}-beat;
6
+ animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
7
+ animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
8
+ animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
9
+ animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
10
+ animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, ease-in-out);
11
+ }
12
+
13
+ .#{$fa-css-prefix}-bounce {
14
+ animation-name: #{$fa-css-prefix}-bounce;
15
+ animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
16
+ animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
17
+ animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
18
+ animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
19
+ animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(0.280, 0.840, 0.420, 1));
20
+ }
21
+
22
+ .#{$fa-css-prefix}-fade {
23
+ animation-name: #{$fa-css-prefix}-fade;
24
+ animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
25
+ animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
26
+ animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
27
+ animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
28
+ animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(.4,0,.6,1));
29
+ }
30
+
31
+ .#{$fa-css-prefix}-beat-fade {
32
+ animation-name: #{$fa-css-prefix}-beat-fade;
33
+ animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
34
+ animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
35
+ animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
36
+ animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
37
+ animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(.4,0,.6,1));
38
+ }
39
+
40
+ .#{$fa-css-prefix}-flip {
41
+ animation-name: #{$fa-css-prefix}-flip;
42
+ animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
43
+ animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
44
+ animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
45
+ animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
46
+ animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, ease-in-out);
47
+ }
48
+
49
+ .#{$fa-css-prefix}-shake {
50
+ animation-name: #{$fa-css-prefix}-shake;
51
+ animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
52
+ animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
53
+ animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
54
+ animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
55
+ animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, linear);
56
+ }
57
+
58
+ .#{$fa-css-prefix}-spin {
59
+ animation-name: #{$fa-css-prefix}-spin;
60
+ animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
61
+ animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
62
+ animation-duration: var(--#{$fa-css-prefix}-animation-duration, 2s);
63
+ animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
64
+ animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, linear);
65
+ }
66
+
67
+ .#{$fa-css-prefix}-spin-reverse {
68
+ --#{$fa-css-prefix}-animation-direction: reverse;
69
+ }
70
+
71
+ .#{$fa-css-prefix}-pulse,
72
+ .#{$fa-css-prefix}-spin-pulse {
73
+ animation-name: #{$fa-css-prefix}-spin;
74
+ animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
75
+ animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
76
+ animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
77
+ animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, steps(8));
78
+ }
79
+
80
+ // if agent or operating system prefers reduced motion, disable animations
81
+ // see: https://www.smashingmagazine.com/2020/09/design-reduced-motion-sensitivities/
82
+ // see: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
83
+ @media (prefers-reduced-motion: reduce) {
84
+ .#{$fa-css-prefix}-beat,
85
+ .#{$fa-css-prefix}-bounce,
86
+ .#{$fa-css-prefix}-fade,
87
+ .#{$fa-css-prefix}-beat-fade,
88
+ .#{$fa-css-prefix}-flip,
89
+ .#{$fa-css-prefix}-pulse,
90
+ .#{$fa-css-prefix}-shake,
91
+ .#{$fa-css-prefix}-spin,
92
+ .#{$fa-css-prefix}-spin-pulse {
93
+ animation-delay: -1ms;
94
+ animation-duration: 1ms;
95
+ animation-iteration-count: 1;
96
+ transition-delay: 0s;
97
+ transition-duration: 0s;
98
+ }
99
+ }
100
+
101
+ @keyframes #{$fa-css-prefix}-beat {
102
+ 0%, 90% { transform: scale(1); }
103
+ 45% { transform: scale(var(--#{$fa-css-prefix}-beat-scale, 1.25)); }
104
+ }
105
+
106
+ @keyframes #{$fa-css-prefix}-bounce {
107
+ 0% { transform: scale(1,1) translateY(0); }
108
+ 10% { transform: scale(var(--#{$fa-css-prefix}-bounce-start-scale-x, 1.1),var(--#{$fa-css-prefix}-bounce-start-scale-y, 0.9)) translateY(0); }
109
+ 30% { transform: scale(var(--#{$fa-css-prefix}-bounce-jump-scale-x, 0.9),var(--#{$fa-css-prefix}-bounce-jump-scale-y, 1.1)) translateY(var(--#{$fa-css-prefix}-bounce-height, -0.5em)); }
110
+ 50% { transform: scale(var(--#{$fa-css-prefix}-bounce-land-scale-x, 1.05),var(--#{$fa-css-prefix}-bounce-land-scale-y, 0.95)) translateY(0); }
111
+ 57% { transform: scale(1,1) translateY(var(--#{$fa-css-prefix}-bounce-rebound, -0.125em)); }
112
+ 64% { transform: scale(1,1) translateY(0); }
113
+ 100% { transform: scale(1,1) translateY(0); }
114
+ }
115
+
116
+ @keyframes #{$fa-css-prefix}-fade {
117
+ 50% { opacity: var(--#{$fa-css-prefix}-fade-opacity, 0.4); }
118
+ }
119
+
120
+ @keyframes #{$fa-css-prefix}-beat-fade {
121
+ 0%, 100% {
122
+ opacity: var(--#{$fa-css-prefix}-beat-fade-opacity, 0.4);
123
+ transform: scale(1);
124
+ }
125
+ 50% {
126
+ opacity: 1;
127
+ transform: scale(var(--#{$fa-css-prefix}-beat-fade-scale, 1.125));
128
+ }
129
+ }
130
+
131
+ @keyframes #{$fa-css-prefix}-flip {
132
+ 50% {
133
+ transform: rotate3d(var(--#{$fa-css-prefix}-flip-x, 0), var(--#{$fa-css-prefix}-flip-y, 1), var(--#{$fa-css-prefix}-flip-z, 0), var(--#{$fa-css-prefix}-flip-angle, -180deg));
134
+ }
135
+ }
136
+
137
+ @keyframes #{$fa-css-prefix}-shake {
138
+ 0% { transform: rotate(-15deg); }
139
+ 4% { transform: rotate(15deg); }
140
+ 8%, 24% { transform: rotate(-18deg); }
141
+ 12%, 28% { transform: rotate(18deg); }
142
+ 16% { transform: rotate(-22deg); }
143
+ 20% { transform: rotate(22deg); }
144
+ 32% { transform: rotate(-12deg); }
145
+ 36% { transform: rotate(12deg); }
146
+ 40%, 100% { transform: rotate(0deg); }
147
+ }
148
+
149
+ @keyframes #{$fa-css-prefix}-spin {
150
+ 0% { transform: rotate(0deg); }
151
+ 100% { transform: rotate(360deg); }
152
+ }
@@ -0,0 +1,20 @@
1
+ // bordered + pulled icons
2
+ // -------------------------
3
+
4
+ .#{$fa-css-prefix}-border {
5
+ border-color: var(--#{$fa-css-prefix}-border-color, #{$fa-border-color});
6
+ border-radius: var(--#{$fa-css-prefix}-border-radius, #{$fa-border-radius});
7
+ border-style: var(--#{$fa-css-prefix}-border-style, #{$fa-border-style});
8
+ border-width: var(--#{$fa-css-prefix}-border-width, #{$fa-border-width});
9
+ padding: var(--#{$fa-css-prefix}-border-padding, #{$fa-border-padding});
10
+ }
11
+
12
+ .#{$fa-css-prefix}-pull-left {
13
+ float: left;
14
+ margin-right: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
15
+ }
16
+
17
+ .#{$fa-css-prefix}-pull-right {
18
+ float: right;
19
+ margin-left: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
20
+ }
@@ -0,0 +1,150 @@
1
+ // base icon class definition
2
+ // -------------------------
3
+
4
+ .#{$fa-css-prefix} {
5
+ font-family: var(--#{$fa-css-prefix}-style-family, '#{$fa-style-family}');
6
+ font-weight: var(--#{$fa-css-prefix}-style, #{$fa-style});
7
+ }
8
+
9
+ .fas,
10
+ .fass,
11
+ .far,
12
+ .fasr,
13
+ .fal,
14
+ .fasl,
15
+ .fat,
16
+ .fast,
17
+ .fad,
18
+ .fadr,
19
+ .fadl,
20
+ .fadt,
21
+ .fasds,
22
+ .fasdr,
23
+ .fasdl,
24
+ .fasdt,
25
+ .fab,
26
+ .#{$fa-css-prefix}-solid,
27
+ .#{$fa-css-prefix}-regular,
28
+ .#{$fa-css-prefix}-light,
29
+ .#{$fa-css-prefix}-thin,
30
+ .#{$fa-css-prefix}-brands,
31
+ .#{$fa-css-prefix}-classic,
32
+ .#{$fa-css-prefix}-duotone,
33
+ .#{$fa-css-prefix}-sharp,
34
+ .#{$fa-css-prefix}-sharp-duotone,
35
+ .#{$fa-css-prefix} {
36
+ -moz-osx-font-smoothing: grayscale;
37
+ -webkit-font-smoothing: antialiased;
38
+ display: var(--#{$fa-css-prefix}-display, #{$fa-display});
39
+ font-style: normal;
40
+ font-variant: normal;
41
+ line-height: 1;
42
+ text-rendering: auto;
43
+ }
44
+
45
+ .fas::before,
46
+ .fass::before,
47
+ .far::before,
48
+ .fasr::before,
49
+ .fal::before,
50
+ .fasl::before,
51
+ .fat::before,
52
+ .fast::before,
53
+ .fad::before,
54
+ .fadr::before,
55
+ .fadl::before,
56
+ .fadt::before,
57
+ .fasds::before,
58
+ .fasdr::before,
59
+ .fasdl::before,
60
+ .fasdt::before,
61
+ .fab::before,
62
+ .#{$fa-css-prefix}-solid::before,
63
+ .#{$fa-css-prefix}-regular::before,
64
+ .#{$fa-css-prefix}-light::before,
65
+ .#{$fa-css-prefix}-thin::before,
66
+ .#{$fa-css-prefix}-brands::before,
67
+ .#{$fa-css-prefix}-classic::before,
68
+ .#{$fa-css-prefix}-duotone::before,
69
+ .#{$fa-css-prefix}-sharp::before,
70
+ .#{$fa-css-prefix}-sharp-duotone::before,
71
+ .#{$fa-css-prefix}::before {
72
+ content: var(#{$fa-icon-property});
73
+ }.fad::after,
74
+ .#{$fa-css-prefix}-duotone.#{$fa-css-prefix}-solid::after,
75
+ .#{$fa-css-prefix}-duotone::after,
76
+ .fadr::after,
77
+ .#{$fa-css-prefix}-duotone.#{$fa-css-prefix}-regular::after,
78
+ .fadl::after,
79
+ .#{$fa-css-prefix}-duotone.#{$fa-css-prefix}-light::after,
80
+ .fadt::after,
81
+ .#{$fa-css-prefix}-duotone.#{$fa-css-prefix}-thin::after,
82
+ .fasds::after,
83
+ .#{$fa-css-prefix}-sharp-duotone.#{$fa-css-prefix}-solid::after,
84
+ .#{$fa-css-prefix}-sharp-duotone::after,
85
+ .fasdr::after,
86
+ .#{$fa-css-prefix}-sharp-duotone.#{$fa-css-prefix}-regular::after,
87
+ .fasdl::after,
88
+ .#{$fa-css-prefix}-sharp-duotone.#{$fa-css-prefix}-light::after,
89
+ .fasdt::after,
90
+ .#{$fa-css-prefix}-sharp-duotone.#{$fa-css-prefix}-thin::after {
91
+ content: var(#{$fa-duotone-icon-property});
92
+ }
93
+
94
+ .#{$fa-css-prefix}-classic.#{$fa-css-prefix}-duotone {
95
+ font-family: 'Font Awesome 6 Duotone';
96
+ }
97
+
98
+ .fass,
99
+ .#{$fa-css-prefix}-sharp {
100
+ font-weight: 900;
101
+ }
102
+ .fad,
103
+ .#{$fa-css-prefix}-duotone {
104
+ font-weight: 900;
105
+ }
106
+ .fasds,
107
+ .#{$fa-css-prefix}-sharp-duotone {
108
+ font-weight: 900;
109
+ }
110
+
111
+ .#{$fa-css-prefix}-classic,
112
+ .fas,
113
+ .#{$fa-css-prefix}-solid,
114
+ .far,
115
+ .#{$fa-css-prefix}-regular,
116
+ .fal,
117
+ .#{$fa-css-prefix}-light,
118
+ .fat,
119
+ .#{$fa-css-prefix}-thin {
120
+ font-family: 'Font Awesome 6 Pro';
121
+ }
122
+ .#{$fa-css-prefix}-duotone,
123
+ .fad,
124
+ .fadr,
125
+ .fadl,
126
+ .fadt {
127
+ font-family: 'Font Awesome 6 Duotone';
128
+ }
129
+ .#{$fa-css-prefix}-brands,
130
+ .fab {
131
+ font-family: 'Font Awesome 6 Brands';
132
+ }
133
+ .#{$fa-css-prefix}-sharp,
134
+ .fass,
135
+ .fasr,
136
+ .fasl,
137
+ .fast {
138
+ font-family: 'Font Awesome 6 Sharp';
139
+ }
140
+ .#{$fa-css-prefix}-sharp-duotone,
141
+ .fasds,
142
+ .fasdr,
143
+ .fasdl,
144
+ .fasdt {
145
+ font-family: 'Font Awesome 6 Sharp Duotone';
146
+ }
147
+
148
+ %fa-icon {
149
+ @include fa-icon;
150
+ }
@@ -0,0 +1,12 @@
1
+ // specific duotone icon class definition
2
+ // -------------------------
3
+
4
+ /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen readers do not read off random characters that represent icons */
5
+
6
+
7
+ @each $name, $icon in $fa-icons {
8
+ .fad.#{$fa-css-prefix}-#{$name}::after, .#{$fa-css-prefix}-duotone.#{$fa-css-prefix}-#{$name}::after {
9
+ content: unquote("\"#{ $icon }#{ $icon }\"");
10
+ }
11
+ }
12
+
@@ -0,0 +1,7 @@
1
+ // fixed-width icons
2
+ // -------------------------
3
+
4
+ .#{$fa-css-prefix}-fw {
5
+ text-align: center;
6
+ width: $fa-fw-width;
7
+ }