fokus-styles 2.6.2 → 2.7.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 (82) hide show
  1. package/README.md +5 -0
  2. package/dist/css/components.css +534 -27
  3. package/dist/css/components.min.css +1 -1
  4. package/dist/css/fokus-components.css +534 -27
  5. package/dist/css/fokus-components.min.css +1 -1
  6. package/dist/css/fokus-core.css +42 -0
  7. package/dist/css/fokus-core.min.css +1 -1
  8. package/dist/css/fokus-dark.css +42 -0
  9. package/dist/css/fokus-dark.min.css +1 -1
  10. package/dist/css/fokus-helpers.css +646 -0
  11. package/dist/css/fokus-helpers.min.css +2 -0
  12. package/dist/css/fokus-rtl.css +9667 -2716
  13. package/dist/css/fokus-rtl.min.css +1 -1
  14. package/dist/css/fokus-utilities.css +9175 -2682
  15. package/dist/css/fokus-utilities.min.css +1 -1
  16. package/dist/css/fokus.css +9893 -2799
  17. package/dist/css/fokus.min.css +1 -1
  18. package/dist/css/forms.css +206 -28
  19. package/dist/css/forms.min.css +1 -1
  20. package/dist/css/helpers.css +9175 -2682
  21. package/dist/css/helpers.min.css +1 -1
  22. package/dist/css/layout.css +42 -0
  23. package/dist/css/layout.min.css +1 -1
  24. package/dist/js/fokus.js +91 -69
  25. package/dist/js/fokus.min.js +19 -19
  26. package/package.json +2 -1
  27. package/packages/fokus-components/scss/components/_button-group.scss +12 -0
  28. package/packages/fokus-components/scss/components/_buttons.scss +39 -6
  29. package/packages/fokus-components/scss/components/_datepicker.scss +47 -1
  30. package/packages/fokus-components/scss/components/_dropdown.scss +212 -6
  31. package/packages/fokus-components/scss/components/_index.scss +1 -0
  32. package/packages/fokus-components/scss/components/_menu.scss +95 -0
  33. package/packages/fokus-components/scss/components/_pagination.scss +43 -16
  34. package/packages/fokus-components/scss/components/_segmented-control.scss +16 -1
  35. package/packages/fokus-components/scss/components/_tabs.scss +58 -0
  36. package/packages/fokus-components/scss/components/_tag.scss +32 -0
  37. package/packages/fokus-components/scss/forms/_forms.scss +155 -28
  38. package/packages/fokus-components/scss/forms/_range.scss +29 -0
  39. package/packages/fokus-core/scss/base/_motion.scss +3 -1
  40. package/packages/fokus-core/scss/settings/_config.scss +39 -1
  41. package/packages/fokus-core/scss/settings/_index.scss +1 -0
  42. package/packages/fokus-core/scss/settings/_utilities.scss +86 -0
  43. package/packages/fokus-core/scss/themes/_dark.scss +9 -0
  44. package/packages/fokus-core/scss/tokens/_root.scss +23 -0
  45. package/packages/fokus-js/js/combobox.js +2 -6
  46. package/packages/fokus-js/js/command-palette.js +2 -6
  47. package/packages/fokus-js/js/core/positioning.d.ts +2 -0
  48. package/packages/fokus-js/js/core/positioning.js +2 -2
  49. package/packages/fokus-js/js/core/theme.js +8 -0
  50. package/packages/fokus-js/js/datatable.js +6 -2
  51. package/packages/fokus-js/js/datepicker.js +13 -5
  52. package/packages/fokus-js/js/dropdown.js +37 -5
  53. package/packages/fokus-js/js/nested-menu.js +2 -6
  54. package/packages/fokus-js/js/notification-center.js +2 -6
  55. package/packages/fokus-js/js/pagination.js +15 -9
  56. package/packages/fokus-js/js/popover.js +2 -6
  57. package/packages/fokus-js/js/select.js +4 -0
  58. package/packages/fokus-js/js/tabs.js +4 -4
  59. package/packages/fokus-js/js/tooltip.js +2 -6
  60. package/packages/fokus-utilities/scss/utilities/_api.scss +62 -69
  61. package/packages/fokus-utilities/scss/utilities/_borders.scss +39 -0
  62. package/packages/fokus-utilities/scss/utilities/_colors.scss +27 -0
  63. package/packages/fokus-utilities/scss/utilities/_display.scss +20 -16
  64. package/packages/fokus-utilities/scss/utilities/_effects.scss +53 -0
  65. package/packages/fokus-utilities/scss/utilities/_flex.scss +50 -35
  66. package/packages/fokus-utilities/scss/utilities/_generated.scss +21 -0
  67. package/packages/fokus-utilities/scss/utilities/_grid.scss +25 -0
  68. package/packages/fokus-utilities/scss/utilities/_helpers.scss +35 -0
  69. package/packages/fokus-utilities/scss/utilities/_index.scss +11 -0
  70. package/packages/fokus-utilities/scss/utilities/_interactivity.scss +51 -0
  71. package/packages/fokus-utilities/scss/utilities/_layout.scss +61 -0
  72. package/packages/fokus-utilities/scss/utilities/_motion.scss +51 -0
  73. package/packages/fokus-utilities/scss/utilities/_position.scss +6 -6
  74. package/packages/fokus-utilities/scss/utilities/_print.scss +22 -18
  75. package/packages/fokus-utilities/scss/utilities/_shadow.scss +7 -3
  76. package/packages/fokus-utilities/scss/utilities/_sizing.scss +46 -0
  77. package/packages/fokus-utilities/scss/utilities/_spacing.scss +40 -113
  78. package/packages/fokus-utilities/scss/utilities/_states.scss +26 -10
  79. package/packages/fokus-utilities/scss/utilities/_transforms.scss +67 -0
  80. package/packages/fokus-utilities/scss/utilities/_typography.scss +72 -94
  81. package/scss/entries/helpers-entry.scss +5 -0
  82. package/scss/entries/rtl-entry.scss +6 -3
@@ -0,0 +1,46 @@
1
+ @use "../../../fokus-core/scss/settings" as *;
2
+ @use "../../../fokus-core/scss/tools" as *;
3
+
4
+ @layer utilities {
5
+ @if fs-config-list-enabled(sizing, width) {
6
+ @each $name, $value in $fs-utility-sizes {
7
+ .fs-u-w-#{$name} { width: $value !important; }
8
+ .fs-u-h-#{$name} { height: $value !important; }
9
+ .fs-u-size-#{$name} {
10
+ width: $value !important;
11
+ height: $value !important;
12
+ }
13
+ .fs-u-min-w-#{$name} { min-width: $value !important; }
14
+ .fs-u-max-w-#{$name} { max-width: $value !important; }
15
+ .fs-u-min-h-#{$name} { min-height: $value !important; }
16
+ .fs-u-max-h-#{$name} { max-height: $value !important; }
17
+ .fs-u-inline-size-#{$name} { inline-size: $value !important; }
18
+ .fs-u-block-size-#{$name} { block-size: $value !important; }
19
+ .fs-u-min-inline-size-#{$name} { min-inline-size: $value !important; }
20
+ .fs-u-max-inline-size-#{$name} { max-inline-size: $value !important; }
21
+ .fs-u-min-block-size-#{$name} { min-block-size: $value !important; }
22
+ .fs-u-max-block-size-#{$name} { max-block-size: $value !important; }
23
+ }
24
+
25
+ @each $breakpoint, $min in $breakpoints {
26
+ $infix: breakpoint-infix($breakpoint);
27
+
28
+ @if $min != 0 {
29
+ @include media-breakpoint-up($breakpoint) {
30
+ @each $name, $value in $fs-utility-sizes {
31
+ .fs-u-w#{$infix}-#{$name} { width: $value !important; }
32
+ .fs-u-h#{$infix}-#{$name} { height: $value !important; }
33
+ .fs-u-size#{$infix}-#{$name} {
34
+ width: $value !important;
35
+ height: $value !important;
36
+ }
37
+ .fs-u-min-w#{$infix}-#{$name} { min-width: $value !important; }
38
+ .fs-u-max-w#{$infix}-#{$name} { max-width: $value !important; }
39
+ .fs-u-min-h#{$infix}-#{$name} { min-height: $value !important; }
40
+ .fs-u-max-h#{$infix}-#{$name} { max-height: $value !important; }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
@@ -7,123 +7,50 @@
7
7
 
8
8
  @include media-breakpoint-up($breakpoint) {
9
9
  @each $key, $value in $spacers {
10
- .fs-u-m#{$infix}-#{$key} {
11
- margin: $value;
12
- }
13
-
14
- .fs-u-mt#{$infix}-#{$key} {
15
- margin-top: $value;
16
- }
17
-
18
- .fs-u-mr#{$infix}-#{$key} {
19
- margin-right: $value;
20
- }
21
-
22
- .fs-u-mb#{$infix}-#{$key} {
23
- margin-bottom: $value;
24
- }
25
-
26
- .fs-u-ml#{$infix}-#{$key} {
27
- margin-left: $value;
28
- }
29
-
30
- .fs-u-mx#{$infix}-#{$key} {
31
- margin-right: $value;
32
- margin-left: $value;
33
- }
34
-
35
- .fs-u-my#{$infix}-#{$key} {
36
- margin-top: $value;
37
- margin-bottom: $value;
38
- }
39
-
40
- .fs-u-p#{$infix}-#{$key} {
41
- padding: $value;
42
- }
43
-
44
- .fs-u-pt#{$infix}-#{$key} {
45
- padding-top: $value;
46
- }
47
-
48
- .fs-u-pr#{$infix}-#{$key} {
49
- padding-right: $value;
50
- }
51
-
52
- .fs-u-pb#{$infix}-#{$key} {
53
- padding-bottom: $value;
54
- }
55
-
56
- .fs-u-pl#{$infix}-#{$key} {
57
- padding-left: $value;
58
- }
59
-
60
- .fs-u-px#{$infix}-#{$key} {
61
- padding-right: $value;
62
- padding-left: $value;
63
- }
64
-
65
- .fs-u-py#{$infix}-#{$key} {
66
- padding-top: $value;
67
- padding-bottom: $value;
68
- }
69
-
70
- // Controla o gutter da grid (--fs-gutter-x/-y), consumido por .row/.row > *.
10
+ .fs-u-m#{$infix}-#{$key} { margin: $value !important; }
11
+ .fs-u-mt#{$infix}-#{$key} { margin-top: $value !important; }
12
+ .fs-u-mr#{$infix}-#{$key} { margin-right: $value !important; }
13
+ .fs-u-mb#{$infix}-#{$key} { margin-bottom: $value !important; }
14
+ .fs-u-ml#{$infix}-#{$key} { margin-left: $value !important; }
15
+ .fs-u-mx#{$infix}-#{$key} { margin-inline: $value !important; }
16
+ .fs-u-my#{$infix}-#{$key} { margin-block: $value !important; }
17
+ .fs-u-ms#{$infix}-#{$key} { margin-inline-start: $value !important; }
18
+ .fs-u-me#{$infix}-#{$key} { margin-inline-end: $value !important; }
19
+ .fs-u-mbs#{$infix}-#{$key} { margin-block-start: $value !important; }
20
+ .fs-u-mbe#{$infix}-#{$key} { margin-block-end: $value !important; }
21
+ .fs-u-p#{$infix}-#{$key} { padding: $value !important; }
22
+ .fs-u-pt#{$infix}-#{$key} { padding-top: $value !important; }
23
+ .fs-u-pr#{$infix}-#{$key} { padding-right: $value !important; }
24
+ .fs-u-pb#{$infix}-#{$key} { padding-bottom: $value !important; }
25
+ .fs-u-pl#{$infix}-#{$key} { padding-left: $value !important; }
26
+ .fs-u-px#{$infix}-#{$key} { padding-inline: $value !important; }
27
+ .fs-u-py#{$infix}-#{$key} { padding-block: $value !important; }
28
+ .fs-u-ps#{$infix}-#{$key} { padding-inline-start: $value !important; }
29
+ .fs-u-pe#{$infix}-#{$key} { padding-inline-end: $value !important; }
30
+ .fs-u-pbs#{$infix}-#{$key} { padding-block-start: $value !important; }
31
+ .fs-u-pbe#{$infix}-#{$key} { padding-block-end: $value !important; }
71
32
  .fs-u-g#{$infix}-#{$key} {
72
33
  --fs-gutter-x: #{$value};
73
34
  --fs-gutter-y: #{$value};
74
35
  }
75
-
76
- .fs-u-gx#{$infix}-#{$key} {
77
- --fs-gutter-x: #{$value};
78
- }
79
-
80
- .fs-u-gy#{$infix}-#{$key} {
81
- --fs-gutter-y: #{$value};
82
- }
83
-
84
- // Gap literal (flex/grid), independente da grid de colunas.
85
- .fs-u-gap#{$infix}-#{$key} {
86
- gap: $value;
87
- }
88
-
89
- .fs-u-gap-x#{$infix}-#{$key} {
90
- column-gap: $value;
91
- }
92
-
93
- .fs-u-gap-y#{$infix}-#{$key} {
94
- row-gap: $value;
95
- }
96
- }
97
-
98
- .fs-u-m#{$infix}-auto {
99
- margin: auto;
100
- }
101
-
102
- .fs-u-mt#{$infix}-auto {
103
- margin-top: auto;
104
- }
105
-
106
- .fs-u-mr#{$infix}-auto {
107
- margin-right: auto;
108
- }
109
-
110
- .fs-u-mb#{$infix}-auto {
111
- margin-bottom: auto;
112
- }
113
-
114
- .fs-u-ml#{$infix}-auto {
115
- margin-left: auto;
116
- }
117
-
118
- .fs-u-mx#{$infix}-auto {
119
- margin-right: auto;
120
- margin-left: auto;
121
- }
122
-
123
- .fs-u-my#{$infix}-auto {
124
- margin-top: auto;
125
- margin-bottom: auto;
126
- }
36
+ .fs-u-gx#{$infix}-#{$key} { --fs-gutter-x: #{$value}; }
37
+ .fs-u-gy#{$infix}-#{$key} { --fs-gutter-y: #{$value}; }
38
+ .fs-u-gap#{$infix}-#{$key} { gap: $value !important; }
39
+ .fs-u-gap-x#{$infix}-#{$key} { column-gap: $value !important; }
40
+ .fs-u-gap-y#{$infix}-#{$key} { row-gap: $value !important; }
41
+ .fs-u-row-gap#{$infix}-#{$key} { row-gap: $value !important; }
42
+ .fs-u-column-gap#{$infix}-#{$key} { column-gap: $value !important; }
43
+ }
44
+
45
+ .fs-u-m#{$infix}-auto { margin: auto !important; }
46
+ .fs-u-mt#{$infix}-auto { margin-top: auto !important; }
47
+ .fs-u-mr#{$infix}-auto { margin-right: auto !important; }
48
+ .fs-u-mb#{$infix}-auto { margin-bottom: auto !important; }
49
+ .fs-u-ml#{$infix}-auto { margin-left: auto !important; }
50
+ .fs-u-mx#{$infix}-auto { margin-inline: auto !important; }
51
+ .fs-u-my#{$infix}-auto { margin-block: auto !important; }
52
+ .fs-u-ms#{$infix}-auto { margin-inline-start: auto !important; }
53
+ .fs-u-me#{$infix}-auto { margin-inline-end: auto !important; }
127
54
  }
128
55
  }
129
56
  }
@@ -1,15 +1,31 @@
1
1
  @layer utilities {
2
- .fs-u-focus-ring:focus-visible {
3
- outline: var(--fs-focus-width) solid var(--fs-focus-color);
4
- outline-offset: var(--fs-focus-offset);
5
- box-shadow: 0 0 0 var(--fs-focus-ring-size) var(--fs-focus-ring-color);
6
- }
2
+ @if fs-config-list-enabled(states, states) {
3
+ .fs-u-focus-ring:focus-visible {
4
+ outline: var(--fs-focus-width) solid var(--fs-focus-color);
5
+ outline-offset: var(--fs-focus-offset);
6
+ box-shadow: 0 0 0 var(--fs-focus-ring-size) var(--fs-focus-ring-color);
7
+ }
8
+
9
+ .fs-u-disabled,
10
+ .fs-u-disabled[aria-disabled="true"] {
11
+ cursor: not-allowed;
12
+ opacity: var(--fs-disabled-opacity);
13
+ pointer-events: none;
14
+ }
15
+
16
+ @media (prefers-contrast: more) {
17
+ .fs-u-focus-ring:focus-visible {
18
+ outline-width: max(3px, var(--fs-focus-width));
19
+ }
20
+ }
7
21
 
8
- .fs-u-disabled,
9
- .fs-u-disabled[aria-disabled="true"] {
10
- cursor: not-allowed;
11
- opacity: var(--fs-disabled-opacity);
12
- pointer-events: none;
22
+ @media (forced-colors: active) {
23
+ .fs-u-focus-ring:focus-visible {
24
+ outline: 3px solid Highlight;
25
+ outline-offset: 2px;
26
+ box-shadow: none;
27
+ }
28
+ }
13
29
  }
14
30
 
15
31
  @media print {
@@ -0,0 +1,67 @@
1
+ @use "sass:string";
2
+ @use "../../../fokus-core/scss/settings" as *;
3
+
4
+ @layer utilities {
5
+ @if fs-config-list-enabled(effects, transform) {
6
+ @each $name, $value in (none: none, center: center, top: top, top-right: top right, right: right, bottom-right: bottom right, bottom: bottom, bottom-left: bottom left, left: left, top-left: top left) {
7
+ .fs-u-origin-#{$name} { transform-origin: $value !important; }
8
+ }
9
+
10
+ @each $name, $value in (0: 0deg, 45: 45deg, 90: 90deg, 180: 180deg, -45: -45deg, -90: -90deg) {
11
+ .fs-u-rotate-#{$name} {
12
+ --fs-u-rotate: #{$value};
13
+
14
+ transform: translate(var(--fs-u-translate-x, 0), var(--fs-u-translate-y, 0)) rotate(var(--fs-u-rotate, 0deg)) scale(var(--fs-u-scale-x, 1), var(--fs-u-scale-y, 1)) skew(var(--fs-u-skew-x, 0deg), var(--fs-u-skew-y, 0deg)) !important;
15
+ }
16
+ }
17
+
18
+ @each $name, $value in (0: 0, 50: 0.5, 75: 0.75, 90: 0.9, 95: 0.95, 100: 1, 105: 1.05, 110: 1.1, 125: 1.25, 150: 1.5) {
19
+ .fs-u-scale-#{$name} {
20
+ --fs-u-scale-x: #{$value};
21
+ --fs-u-scale-y: #{$value};
22
+
23
+ transform: translate(var(--fs-u-translate-x, 0), var(--fs-u-translate-y, 0)) rotate(var(--fs-u-rotate, 0deg)) scale(var(--fs-u-scale-x, 1), var(--fs-u-scale-y, 1)) skew(var(--fs-u-skew-x, 0deg), var(--fs-u-skew-y, 0deg)) !important;
24
+ }
25
+ }
26
+ .fs-u-transform-none { transform: none !important; }
27
+
28
+ .fs-u-translate-none {
29
+ --fs-u-translate-x: 0;
30
+ --fs-u-translate-y: 0;
31
+
32
+ transform: translate(0, 0) rotate(var(--fs-u-rotate, 0deg)) scale(var(--fs-u-scale-x, 1), var(--fs-u-scale-y, 1)) !important;
33
+ }
34
+
35
+ .fs-u-translate-x-full {
36
+ --fs-u-translate-x: 100%;
37
+
38
+ transform: translate(var(--fs-u-translate-x), var(--fs-u-translate-y, 0)) rotate(var(--fs-u-rotate, 0deg)) scale(var(--fs-u-scale-x, 1), var(--fs-u-scale-y, 1)) !important;
39
+ }
40
+
41
+ .fs-u-translate-x-half {
42
+ --fs-u-translate-x: 50%;
43
+
44
+ transform: translate(var(--fs-u-translate-x), var(--fs-u-translate-y, 0)) rotate(var(--fs-u-rotate, 0deg)) scale(var(--fs-u-scale-x, 1), var(--fs-u-scale-y, 1)) !important;
45
+ }
46
+
47
+ .fs-u-translate-y-full {
48
+ --fs-u-translate-y: 100%;
49
+
50
+ transform: translate(var(--fs-u-translate-x, 0), var(--fs-u-translate-y)) rotate(var(--fs-u-rotate, 0deg)) scale(var(--fs-u-scale-x, 1), var(--fs-u-scale-y, 1)) !important;
51
+ }
52
+
53
+ .fs-u-translate-y-half {
54
+ --fs-u-translate-y: 50%;
55
+
56
+ transform: translate(var(--fs-u-translate-x, 0), var(--fs-u-translate-y)) rotate(var(--fs-u-rotate, 0deg)) scale(var(--fs-u-scale-x, 1), var(--fs-u-scale-y, 1)) !important;
57
+ }
58
+
59
+ @each $axis, $value in (x-3: 3deg, x-6: 6deg, y-3: 3deg, y-6: 6deg) {
60
+ .fs-u-skew-#{$axis} {
61
+ --fs-u-skew-#{string.slice($axis, 1, 1)}: #{$value};
62
+
63
+ transform: translate(var(--fs-u-translate-x, 0), var(--fs-u-translate-y, 0)) rotate(var(--fs-u-rotate, 0deg)) scale(var(--fs-u-scale-x, 1), var(--fs-u-scale-y, 1)) skew(var(--fs-u-skew-x, 0deg), var(--fs-u-skew-y, 0deg)) !important;
64
+ }
65
+ }
66
+ }
67
+ }
@@ -2,99 +2,77 @@
2
2
  @use "../../../fokus-core/scss/tools" as *;
3
3
 
4
4
  @layer utilities {
5
- .fs-u-text-start {
6
- text-align: left;
7
- }
8
-
9
- .fs-u-text-center {
10
- text-align: center;
11
- }
12
-
13
- .fs-u-text-end {
14
- text-align: right;
15
- }
16
-
17
- .fs-u-text-lowercase {
18
- text-transform: lowercase;
19
- }
20
-
21
- .fs-u-text-uppercase {
22
- text-transform: uppercase;
23
- }
24
-
25
- .fs-u-text-capitalize {
26
- text-transform: capitalize;
27
- }
28
-
29
- .fs-u-text-truncate {
30
- @include truncate;
31
- }
32
-
33
- .fs-u-fw-regular {
34
- font-weight: $font-weight-regular;
35
- }
36
-
37
- .fs-u-fw-medium {
38
- font-weight: $font-weight-medium;
39
- }
40
-
41
- .fs-u-fw-semibold {
42
- font-weight: $font-weight-semibold;
43
- }
44
-
45
- .fs-u-fw-bold {
46
- font-weight: $font-weight-bold;
47
- }
48
-
49
- .fs-u-fs-xs {
50
- font-size: $font-size-xs;
51
- }
52
-
53
- .fs-u-fs-sm {
54
- font-size: $font-size-sm;
55
- }
56
-
57
- .fs-u-fs-md {
58
- font-size: $font-size-md;
59
- }
60
-
61
- .fs-u-fs-lg {
62
- font-size: $font-size-lg;
63
- }
64
-
65
- .fs-u-fs-xl {
66
- font-size: $font-size-xl;
67
- }
68
-
69
- .fs-u-fs-h1 {
70
- font-size: $font-size-h1;
71
- }
72
-
73
- .fs-u-fs-h2 {
74
- font-size: $font-size-h2;
75
- }
76
-
77
- .fs-u-fs-h3 {
78
- font-size: $font-size-h3;
79
- }
80
-
81
- .fs-u-fs-h4 {
82
- font-size: $font-size-h4;
83
- }
84
-
85
- .fs-u-fs-h5 {
86
- font-size: $font-size-h5;
87
- }
88
-
89
- .fs-u-fs-h6 {
90
- font-size: $font-size-h6;
91
- }
92
-
93
- .fs-u-font-sans {
94
- font-family: var(--fs-font-sans);
95
- }
96
-
97
- .fs-u-font-mono {
98
- font-family: var(--fs-font-mono);
5
+ @if fs-config-list-enabled(typography, typography) {
6
+ .fs-u-text-start { text-align: start !important; }
7
+ .fs-u-text-center { text-align: center !important; }
8
+ .fs-u-text-end { text-align: end !important; }
9
+ .fs-u-text-justify { text-align: justify !important; }
10
+ .fs-u-text-lowercase { text-transform: lowercase !important; }
11
+ .fs-u-text-uppercase { text-transform: uppercase !important; }
12
+ .fs-u-text-capitalize { text-transform: capitalize !important; }
13
+ .fs-u-text-normal { font-style: normal !important; }
14
+ .fs-u-text-italic { font-style: italic !important; }
15
+ .fs-u-text-wrap { white-space: normal !important; }
16
+ .fs-u-text-nowrap { white-space: nowrap !important; }
17
+ .fs-u-text-pre { white-space: pre !important; }
18
+ .fs-u-text-pre-wrap { white-space: pre-wrap !important; }
19
+ .fs-u-text-break { overflow-wrap: anywhere !important; }
20
+ .fs-u-text-break-all { word-break: break-all !important; }
21
+ .fs-u-text-keep-all { word-break: keep-all !important; }
22
+ .fs-u-text-balance { text-wrap: balance !important; }
23
+ .fs-u-text-pretty { text-wrap: pretty !important; }
24
+
25
+ .fs-u-text-truncate {
26
+ overflow: hidden !important;
27
+ text-overflow: ellipsis !important;
28
+ white-space: nowrap !important;
29
+ }
30
+ .fs-u-text-underline { text-decoration-line: underline !important; }
31
+ .fs-u-text-no-underline { text-decoration-line: none !important; }
32
+ .fs-u-underline-dotted { text-decoration-style: dotted !important; }
33
+ .fs-u-underline-dashed { text-decoration-style: dashed !important; }
34
+ .fs-u-underline-solid { text-decoration-style: solid !important; }
35
+ .fs-u-underline-1 { text-decoration-thickness: 1px !important; }
36
+ .fs-u-underline-2 { text-decoration-thickness: 2px !important; }
37
+ .fs-u-underline-auto { text-decoration-thickness: auto !important; }
38
+ .fs-u-align-baseline { vertical-align: baseline !important; }
39
+ .fs-u-align-middle { vertical-align: middle !important; }
40
+ .fs-u-align-top { vertical-align: top !important; }
41
+ .fs-u-align-bottom { vertical-align: bottom !important; }
42
+ .fs-u-font-sans { font-family: var(--fs-font-sans) !important; }
43
+ .fs-u-font-mono { font-family: var(--fs-font-mono) !important; }
44
+
45
+
46
+ @each $name, $value in (regular: $font-weight-regular, medium: $font-weight-medium, semibold: $font-weight-semibold, bold: $font-weight-bold) {
47
+ .fs-u-fw-#{$name} { font-weight: $value !important; }
48
+ }
49
+
50
+ @each $name, $value in (xs: $font-size-xs, sm: $font-size-sm, md: $font-size-md, lg: $font-size-lg, xl: $font-size-xl, h1: $font-size-h1, h2: $font-size-h2, h3: $font-size-h3, h4: $font-size-h4, h5: $font-size-h5, h6: $font-size-h6) {
51
+ .fs-u-fs-#{$name} { font-size: $value !important; }
52
+ }
53
+
54
+ @each $name, $value in (base: $line-height-base, heading: $line-height-heading, none: 1, tight: 1.25, relaxed: 1.75) {
55
+ .fs-u-leading-#{$name} { line-height: $value !important; }
56
+ }
57
+
58
+ @each $name, $value in (tighter: -0.05em, tight: -0.025em, normal: 0, wide: 0.025em, wider: 0.05em) {
59
+ .fs-u-tracking-#{$name} { letter-spacing: $value !important; }
60
+ }
61
+
62
+ @each $breakpoint, $min in $breakpoints {
63
+ $infix: breakpoint-infix($breakpoint);
64
+
65
+ @if $min != 0 {
66
+ @include media-breakpoint-up($breakpoint) {
67
+ .fs-u-text#{$infix}-start { text-align: start !important; }
68
+ .fs-u-text#{$infix}-center { text-align: center !important; }
69
+ .fs-u-text#{$infix}-end { text-align: end !important; }
70
+
71
+ @each $name, $value in (xs: $font-size-xs, sm: $font-size-sm, md: $font-size-md, lg: $font-size-lg, xl: $font-size-xl) {
72
+ .fs-u-fs#{$infix}-#{$name} { font-size: $value !important; }
73
+ }
74
+ }
75
+ }
76
+ }
99
77
  }
100
78
  }
@@ -0,0 +1,5 @@
1
+ @charset "UTF-8";
2
+ @use "../../packages/fokus-core/scss/tokens";
3
+ @use "../../packages/fokus-core/scss/base";
4
+ @use "../../packages/fokus-utilities/scss/utilities/helpers";
5
+ @use "../../packages/fokus-core/scss/themes";
@@ -4,8 +4,11 @@
4
4
  @use "../../packages/fokus-core/scss/layout";
5
5
  @use "../../packages/fokus-components/scss/components";
6
6
  @use "../../packages/fokus-utilities/scss/utilities";
7
+ @use "../../packages/fokus-core/scss/settings" as *;
7
8
 
8
- [dir="rtl"] {
9
- direction: rtl;
10
- text-align: start;
9
+ @if fs-feature-enabled(rtl, true) {
10
+ [dir="rtl"] {
11
+ direction: rtl;
12
+ text-align: start;
13
+ }
11
14
  }