@broxus/react-uikit 0.8.1 → 0.9.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 (59) hide show
  1. package/dist/cjs/components/Article/Meta.d.ts +1 -1
  2. package/dist/cjs/components/Article/Title.d.ts +1 -1
  3. package/dist/cjs/components/Badge/index.d.ts +1 -1
  4. package/dist/cjs/components/Button/Button.d.ts +4 -4
  5. package/dist/cjs/components/Button/Button.js +1 -1
  6. package/dist/cjs/components/Button/index.scss +13 -12
  7. package/dist/cjs/components/Card/Badge.d.ts +1 -1
  8. package/dist/cjs/components/Card/Body.d.ts +1 -1
  9. package/dist/cjs/components/Card/Footer.d.ts +1 -1
  10. package/dist/cjs/components/Card/Header.d.ts +1 -1
  11. package/dist/cjs/components/Card/Media.d.ts +1 -1
  12. package/dist/cjs/components/Card/Title.d.ts +1 -1
  13. package/dist/cjs/components/Component/index.d.ts +1 -1
  14. package/dist/cjs/components/Container/index.d.ts +1 -1
  15. package/dist/cjs/components/Control/Select/index.scss +1 -1
  16. package/dist/cjs/components/Drawer/index.js +2 -6
  17. package/dist/cjs/components/Flex/Flex.d.ts +3 -3
  18. package/dist/cjs/components/Flex/Flex.js +39 -5
  19. package/dist/cjs/components/Heading/index.d.ts +1 -1
  20. package/dist/cjs/components/Link/index.d.ts +1 -1
  21. package/dist/cjs/components/Tabs/index.scss +2 -2
  22. package/dist/cjs/components/Text/index.d.ts +3 -2
  23. package/dist/cjs/components/Text/index.js +2 -1
  24. package/dist/cjs/components/Text/index.scss +315 -0
  25. package/dist/cjs/styles/mixins.scss +39 -5
  26. package/dist/cjs/styles/text.scss +1 -303
  27. package/dist/cjs/styles/variables.scss +4 -6
  28. package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
  29. package/dist/cjs/utils/get-breakpoints-config-classes.js +1 -1
  30. package/dist/esm/components/Article/Meta.d.ts +1 -1
  31. package/dist/esm/components/Article/Title.d.ts +1 -1
  32. package/dist/esm/components/Badge/index.d.ts +1 -1
  33. package/dist/esm/components/Button/Button.d.ts +4 -4
  34. package/dist/esm/components/Button/Button.js +1 -1
  35. package/dist/esm/components/Button/index.scss +13 -12
  36. package/dist/esm/components/Card/Badge.d.ts +1 -1
  37. package/dist/esm/components/Card/Body.d.ts +1 -1
  38. package/dist/esm/components/Card/Footer.d.ts +1 -1
  39. package/dist/esm/components/Card/Header.d.ts +1 -1
  40. package/dist/esm/components/Card/Media.d.ts +1 -1
  41. package/dist/esm/components/Card/Title.d.ts +1 -1
  42. package/dist/esm/components/Component/index.d.ts +1 -1
  43. package/dist/esm/components/Container/index.d.ts +1 -1
  44. package/dist/esm/components/Control/Select/index.scss +1 -1
  45. package/dist/esm/components/Drawer/index.js +2 -6
  46. package/dist/esm/components/Flex/Flex.d.ts +3 -3
  47. package/dist/esm/components/Flex/Flex.js +39 -5
  48. package/dist/esm/components/Heading/index.d.ts +1 -1
  49. package/dist/esm/components/Link/index.d.ts +1 -1
  50. package/dist/esm/components/Tabs/index.scss +2 -2
  51. package/dist/esm/components/Text/index.d.ts +3 -2
  52. package/dist/esm/components/Text/index.js +2 -1
  53. package/dist/esm/components/Text/index.scss +315 -0
  54. package/dist/esm/styles/mixins.scss +39 -5
  55. package/dist/esm/styles/text.scss +1 -303
  56. package/dist/esm/styles/variables.scss +4 -6
  57. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  58. package/dist/esm/utils/get-breakpoints-config-classes.js +1 -1
  59. package/package.json +10 -10
@@ -0,0 +1,315 @@
1
+ // Name: Text
2
+ // Description: Utilities for text
3
+ //
4
+ // Component: `uk-text-*`
5
+ //
6
+ // ========================================================================
7
+
8
+
9
+ // Variables
10
+ // ========================================================================
11
+
12
+ @import '../../styles/variables.scss';
13
+
14
+
15
+ /* ========================================================================
16
+ Component: Text
17
+ ========================================================================== */
18
+
19
+
20
+ /* Style modifiers
21
+ ========================================================================== */
22
+
23
+ .uk-text-lead {
24
+ color: var(--text-lead-color);
25
+ font-size: var(--text-lead-font-size);
26
+ line-height: var(--text-lead-line-height);
27
+ @if mixin-exists(hook-text-lead) {
28
+ @include hook-text-lead;
29
+ }
30
+ }
31
+
32
+ .uk-text-meta {
33
+ color: var(--text-meta-color);
34
+ font-size: var(--text-meta-font-size);
35
+ line-height: var(--text-meta-line-height);
36
+ @if mixin-exists(hook-text-meta) {
37
+ @include hook-text-meta;
38
+ }
39
+ }
40
+
41
+ .uk-text-base {
42
+ color: var(--text-base-font-size);
43
+ font-size: var(--text-base-font-size);
44
+ line-height: var(--text-base-line-height);
45
+ @if mixin-exists(hook-text-base) {
46
+ @include hook-text-base;
47
+ }
48
+ }
49
+
50
+
51
+ /* Size modifiers
52
+ ========================================================================== */
53
+
54
+ .uk-text-xsmall {
55
+ font-size: var(--text-xsmall-font-size);
56
+ line-height: var(--text-xsmall-line-height);
57
+ @if mixin-exists(hook-text-xsmall) {
58
+ @include hook-text-xsmall;
59
+ }
60
+ }
61
+
62
+ .uk-text-small {
63
+ font-size: var(--text-small-font-size);
64
+ line-height: var(--text-small-line-height);
65
+ @if mixin-exists(hook-text-small) {
66
+ @include hook-text-small;
67
+ }
68
+ }
69
+
70
+ .uk-text-large {
71
+ font-size: var(--text-large-font-size);
72
+ line-height: var(--text-large-line-height);
73
+ @if mixin-exists(hook-text-large) {
74
+ @include hook-text-large;
75
+ }
76
+ }
77
+
78
+ .uk-text-default {
79
+ font-size: var(--global-font-size);
80
+ line-height: var(--global-line-height);
81
+ }
82
+
83
+
84
+ /* Weight modifier
85
+ ========================================================================== */
86
+
87
+ .uk-text-thin { font-weight: 100; }
88
+ .uk-text-light { font-weight: 300; }
89
+ .uk-text-normal { font-weight: 400; }
90
+ .uk-text-medium { font-weight: 500; }
91
+ .uk-text-semibold { font-weight: 600; }
92
+ .uk-text-bold { font-weight: 700; }
93
+
94
+ .uk-text-lighter { font-weight: lighter; }
95
+ .uk-text-bolder { font-weight: bolder; }
96
+
97
+
98
+ /* Style modifier
99
+ ========================================================================== */
100
+
101
+ .uk-text-italic { font-style: italic; }
102
+
103
+
104
+ /* Transform modifier
105
+ ========================================================================== */
106
+
107
+ .uk-text-capitalize { text-transform: capitalize !important; }
108
+ .uk-text-uppercase { text-transform: uppercase !important; }
109
+ .uk-text-lowercase { text-transform: lowercase !important; }
110
+
111
+
112
+ /* Decoration modifier
113
+ ========================================================================== */
114
+
115
+ .uk-text-decoration-none { text-decoration: none !important; }
116
+
117
+
118
+ /* Color modifiers
119
+ ========================================================================== */
120
+
121
+ .uk-text-muted { color: var(--text-muted-color) !important; }
122
+ .uk-text-emphasis { color: var(--text-emphasis-color) !important; }
123
+ .uk-text-primary { color: var(--text-primary-color) !important; }
124
+ .uk-text-secondary { color: var(--text-secondary-color) !important; }
125
+ .uk-text-success { color: var(--text-success-color) !important; }
126
+ .uk-text-warning { color: var(--text-warning-color) !important; }
127
+ .uk-text-danger { color: var(--text-danger-color) !important; }
128
+
129
+
130
+ /* Background modifier
131
+ ========================================================================== */
132
+
133
+ /*
134
+ * 1. The background clips to the foreground text. Works in Chrome, Firefox, Safari, Edge and Opera
135
+ * Default color is set to transparent
136
+ * 2. Container fits the text
137
+ * 3. Fallback color for IE11
138
+ */
139
+
140
+ .uk-text-background {
141
+ /* 1 */
142
+ -webkit-background-clip: text;
143
+
144
+ /* 3 */
145
+ color: var(--text-background-color) !important;
146
+
147
+ /* 2 */
148
+ display: inline-block;
149
+ }
150
+
151
+ @supports (-webkit-background-clip: text) {
152
+ .uk-text-background {
153
+ background-color: var(--text-background-color);
154
+ color: transparent !important;
155
+ @if mixin-exists(hook-text-background) {
156
+ @include hook-text-background;
157
+ }
158
+ }
159
+ }
160
+
161
+
162
+ /* Alignment modifiers
163
+ ========================================================================== */
164
+
165
+ .uk-text-left { text-align: left !important; }
166
+ .uk-text-right { text-align: right !important; }
167
+ .uk-text-center { text-align: center !important; }
168
+ .uk-text-justify { text-align: justify !important; }
169
+
170
+ /* Phone landscape and bigger */
171
+ // noinspection Stylelint
172
+ @media (min-width: $breakpoint-small) {
173
+
174
+ .uk-text-left\@s { text-align: left !important; }
175
+ .uk-text-right\@s { text-align: right !important; }
176
+ .uk-text-center\@s { text-align: center !important; }
177
+
178
+ }
179
+
180
+ /* Tablet landscape and bigger */
181
+ // noinspection Stylelint
182
+ @media (min-width: $breakpoint-medium) {
183
+
184
+ .uk-text-left\@m { text-align: left !important; }
185
+ .uk-text-right\@m { text-align: right !important; }
186
+ .uk-text-center\@m { text-align: center !important; }
187
+
188
+ }
189
+
190
+ /* Desktop and bigger */
191
+ // noinspection Stylelint
192
+ @media (min-width: $breakpoint-large) {
193
+
194
+ .uk-text-left\@l { text-align: left !important; }
195
+ .uk-text-right\@l { text-align: right !important; }
196
+ .uk-text-center\@l { text-align: center !important; }
197
+
198
+ }
199
+
200
+ /* Large screen and bigger */
201
+ // noinspection Stylelint
202
+ @media (min-width: $breakpoint-xlarge) {
203
+
204
+ .uk-text-left\@xl { text-align: left !important; }
205
+ .uk-text-right\@xl { text-align: right !important; }
206
+ .uk-text-center\@xl { text-align: center !important; }
207
+
208
+ }
209
+
210
+ /*
211
+ * Vertical
212
+ */
213
+
214
+ .uk-text-top { vertical-align: top !important; }
215
+ .uk-text-middle { vertical-align: middle !important; }
216
+ .uk-text-bottom { vertical-align: bottom !important; }
217
+ .uk-text-baseline { vertical-align: baseline !important; }
218
+
219
+
220
+ /* Wrap modifiers
221
+ ========================================================================== */
222
+
223
+ /*
224
+ * Prevent text from wrapping onto multiple lines
225
+ */
226
+
227
+ .uk-text-nowrap { white-space: nowrap; }
228
+
229
+ /*
230
+ * 1. Make sure a max-width is set after which truncation can occur
231
+ * 2. Prevent text from wrapping onto multiple lines, and truncate with an ellipsis
232
+ * 3. Fix for table cells
233
+ */
234
+
235
+ .uk-text-truncate {
236
+ /* 1 */
237
+ max-width: 100%;
238
+
239
+ /* 2 */
240
+ overflow: hidden;
241
+ text-overflow: ellipsis;
242
+ white-space: nowrap;
243
+ }
244
+
245
+ /* 2 */
246
+ th.uk-text-truncate,
247
+ td.uk-text-truncate { max-width: 0; }
248
+
249
+
250
+ /*
251
+ * 1. Wrap long words onto the next line and break them if they are too long to fit
252
+ * 2. Legacy `word-wrap` as fallback for `overflow-wrap`
253
+ * 3. Fix `overflow-wrap` which doesn't work with table cells in Chrome, Opera, IE11 and Edge
254
+ * Must use `break-all` to support IE11 and Edge
255
+ * Note: Not using `hyphens: auto;` because it hyphenates text even if not needed
256
+ */
257
+
258
+ .uk-text-break {
259
+ /* 1 */
260
+ overflow-wrap: break-word;
261
+
262
+ /* 2 */
263
+ word-wrap: break-word;
264
+ }
265
+
266
+ /* 3 */
267
+ th.uk-text-break,
268
+ td.uk-text-break { word-break: break-all; }
269
+
270
+
271
+ // Hooks
272
+ // ========================================================================
273
+
274
+ @if mixin-exists(hook-text-misc) {
275
+ @include hook-text-misc;
276
+ }
277
+
278
+
279
+ // Vars
280
+ // ========================================================================
281
+
282
+ :root {
283
+ --text-base-font-size: var(--global-font-size);
284
+ --text-base-line-height: var(--global-line-height);
285
+ --text-base-color: var(--global-base-color);
286
+ --text-lead-font-size: var(--global-large-font-size);
287
+ --text-lead-line-height: #{$text-lead-line-height};
288
+ --text-lead-color: var(--global-emphasis-color);
289
+ --text-meta-font-size: var(--global-small-font-size);
290
+ --text-meta-line-height: #{$text-meta-line-height};
291
+ --text-meta-color: var(--global-muted-color);
292
+ --text-xsmall-font-size: var(--global-xsmall-font-size);
293
+ --text-xsmall-line-height: #{$text-xsmall-line-height};
294
+ --text-small-font-size: var(--global-small-font-size);
295
+ --text-small-line-height: #{$text-small-line-height};
296
+ --text-large-font-size: var(--global-large-font-size);
297
+ --text-large-line-height: #{$text-large-line-height};
298
+ --text-muted-color: var(--global-muted-color);
299
+ --text-emphasis-color: var(--global-emphasis-color);
300
+ --text-primary-color: var(--global-primary-background);
301
+ --text-secondary-color: var(--global-secondary-background);
302
+ --text-success-color: var(--global-success-background);
303
+ --text-warning-color: var(--global-warning-background);
304
+ --text-danger-color: var(--global-danger-background);
305
+ --text-background-color: var(--global-primary-background);
306
+
307
+ // Inverse
308
+ --inverse-text-lead-color: var(--inverse-global-color);
309
+ --inverse-text-meta-color: var(--inverse-global-muted-color);
310
+ --inverse-text-muted-color: var(--inverse-global-muted-color);
311
+ --inverse-text-emphasis-color: var(--inverse-global-emphasis-color);
312
+ --inverse-text-primary-color: var(--inverse-global-primary-background);
313
+ --inverse-text-secondary-color: var(--inverse-global-primary-background);
314
+ --inverse-text-tertiary-color: var(--inverse-global-primary-background);
315
+ }
@@ -2095,6 +2095,10 @@
2095
2095
  @mixin hook-inverse-tabs-tab-hover() {}
2096
2096
  @mixin hook-inverse-tabs-tab-active() {}
2097
2097
  @mixin hook-inverse-tabs-tab-disabled() {}
2098
+ @mixin hook-inverse-tabs-tab-remove() {}
2099
+ @mixin hook-inverse-tabs-tab-remove-hover() {}
2100
+ @mixin hook-inverse-tabs-tab-remove-active() {}
2101
+ @mixin hook-inverse-tabs-ink-bar() {}
2098
2102
  @mixin hook-inverse-component-tabs() {
2099
2103
  .uk-tabs {
2100
2104
  @if mixin-exists(hook-inverse-tabs) {
@@ -2102,34 +2106,64 @@
2102
2106
  }
2103
2107
  }
2104
2108
 
2105
- .uk-tabs > * > a {
2109
+ .uk-tabs-tab,
2110
+ .uk-tabs-nav-more,
2111
+ .uk-tabs-nav-add {
2106
2112
  color: var(--inverse-tabs-tab-color);
2107
2113
  @if mixin-exists(hook-inverse-tabs-tab) {
2108
2114
  @include hook-inverse-tabs-tab;
2109
2115
  }
2110
2116
  }
2111
2117
 
2112
- .uk-tabs > * > a:hover,
2113
- .uk-tabs > * > a:focus {
2118
+ .uk-tabs-tab:not(.uk-tabs-tab-disabled):hover,
2119
+ .uk-tabs-tab:not(.uk-tabs-tab-disabled):focus,
2120
+ .uk-tabs-nav-add:hover,
2121
+ .uk-tabs-nav-add:focus {
2114
2122
  color: var(--inverse-tabs-tab-hover-color);
2115
2123
  @if mixin-exists(hook-inverse-tabs-tab-hover) {
2116
2124
  @include hook-inverse-tabs-tab-hover;
2117
2125
  }
2118
2126
  }
2119
2127
 
2120
- .uk-tabs > .uk-active > a {
2128
+ .uk-tabs-tab-active:not(.uk-tabs-tab-disabled) {
2121
2129
  color: var(--inverse-tabs-tab-active-color);
2122
2130
  @if mixin-exists(hook-inverse-tabs-tab-active) {
2123
2131
  @include hook-inverse-tabs-tab-active;
2124
2132
  }
2125
2133
  }
2126
2134
 
2127
- .uk-tabs > .uk-disabled > a {
2135
+ .uk-tabs-tab-disabled {
2128
2136
  color: var(--inverse-tabs-tab-disabled-color);
2129
2137
  @if mixin-exists(hook-inverse-tabs-tab-disabled) {
2130
2138
  @include hook-inverse-tabs-tab-disabled;
2131
2139
  }
2132
2140
  }
2141
+
2142
+ .uk-tabs-tab-remove {
2143
+ @if mixin-exists(hook-inverse-tabs-tab-remove) {
2144
+ @include hook-inverse-tabs-tab-remove;
2145
+ }
2146
+ }
2147
+
2148
+ .uk-tabs-tab-remove:hover {
2149
+ @if mixin-exists(hook-inverse-tabs-tab-remove-hover) {
2150
+ @include hook-inverse-tabs-tab-remove-hover;
2151
+ }
2152
+ }
2153
+
2154
+ .uk-tabs-tab-remove:focus,
2155
+ .uk-tabs-tab-remove:active {
2156
+ @if mixin-exists(hook-inverse-tabs-tab-remove-active) {
2157
+ @include hook-inverse-tabs-tab-remove-active;
2158
+ }
2159
+ }
2160
+
2161
+ .uk-tabs-ink-bar {
2162
+ background: var(--inverse-tabs-ink-bar-color);
2163
+ @if mixin-exists(hook-inverse-tabs-ink-bar) {
2164
+ @include hook-inverse-tabs-ink-bar;
2165
+ }
2166
+ }
2133
2167
  }
2134
2168
 
2135
2169
  @mixin hook-table() {}
@@ -1,303 +1 @@
1
- // Name: Text
2
- // Description: Utilities for text
3
- //
4
- // Component: `uk-text-*`
5
- //
6
- // ========================================================================
7
-
8
-
9
- // Variables
10
- // ========================================================================
11
-
12
- @import 'variables.scss';
13
-
14
-
15
- /* ========================================================================
16
- Component: Text
17
- ========================================================================== */
18
-
19
-
20
- /* Style modifiers
21
- ========================================================================== */
22
-
23
- .uk-text-lead {
24
- color: var(--text-lead-color);
25
- font-size: var(--text-lead-font-size);
26
- line-height: var(--text-lead-line-height);
27
- @if mixin-exists(hook-text-lead) {
28
- @include hook-text-lead;
29
- }
30
- }
31
-
32
- .uk-text-meta {
33
- color: var(--text-meta-color);
34
- font-size: var(--text-meta-font-size);
35
- line-height: var(--text-meta-line-height);
36
- @if mixin-exists(hook-text-meta) {
37
- @include hook-text-meta;
38
- }
39
- }
40
-
41
-
42
- /* Size modifiers
43
- ========================================================================== */
44
-
45
- .uk-text-xsmall {
46
- font-size: var(--text-xsmall-font-size);
47
- line-height: var(--text-xsmall-line-height);
48
- @if mixin-exists(hook-text-xsmall) {
49
- @include hook-text-xsmall;
50
- }
51
- }
52
-
53
- .uk-text-small {
54
- font-size: var(--text-small-font-size);
55
- line-height: var(--text-small-line-height);
56
- @if mixin-exists(hook-text-small) {
57
- @include hook-text-small;
58
- }
59
- }
60
-
61
- .uk-text-large {
62
- font-size: var(--text-large-font-size);
63
- line-height: var(--text-large-line-height);
64
- @if mixin-exists(hook-text-large) {
65
- @include hook-text-large;
66
- }
67
- }
68
-
69
- .uk-text-default {
70
- font-size: var(--global-font-size);
71
- line-height: var(--global-line-height);
72
- }
73
-
74
-
75
- /* Weight modifier
76
- ========================================================================== */
77
-
78
- .uk-text-thin { font-weight: 100; }
79
- .uk-text-light { font-weight: 300; }
80
- .uk-text-normal { font-weight: 400; }
81
- .uk-text-medium { font-weight: 500; }
82
- .uk-text-semibold { font-weight: 600; }
83
- .uk-text-bold { font-weight: 700; }
84
-
85
- .uk-text-lighter { font-weight: lighter; }
86
- .uk-text-bolder { font-weight: bolder; }
87
-
88
-
89
- /* Style modifier
90
- ========================================================================== */
91
-
92
- .uk-text-italic { font-style: italic; }
93
-
94
-
95
- /* Transform modifier
96
- ========================================================================== */
97
-
98
- .uk-text-capitalize { text-transform: capitalize !important; }
99
- .uk-text-uppercase { text-transform: uppercase !important; }
100
- .uk-text-lowercase { text-transform: lowercase !important; }
101
-
102
-
103
- /* Decoration modifier
104
- ========================================================================== */
105
-
106
- .uk-text-decoration-none { text-decoration: none !important; }
107
-
108
-
109
- /* Color modifiers
110
- ========================================================================== */
111
-
112
- .uk-text-muted { color: var(--text-muted-color) !important; }
113
- .uk-text-emphasis { color: var(--text-emphasis-color) !important; }
114
- .uk-text-primary { color: var(--text-primary-color) !important; }
115
- .uk-text-secondary { color: var(--text-secondary-color) !important; }
116
- .uk-text-success { color: var(--text-success-color) !important; }
117
- .uk-text-warning { color: var(--text-warning-color) !important; }
118
- .uk-text-danger { color: var(--text-danger-color) !important; }
119
-
120
-
121
- /* Background modifier
122
- ========================================================================== */
123
-
124
- /*
125
- * 1. The background clips to the foreground text. Works in Chrome, Firefox, Safari, Edge and Opera
126
- * Default color is set to transparent
127
- * 2. Container fits the text
128
- * 3. Fallback color for IE11
129
- */
130
-
131
- .uk-text-background {
132
- /* 1 */
133
- -webkit-background-clip: text;
134
-
135
- /* 3 */
136
- color: var(--text-background-color) !important;
137
-
138
- /* 2 */
139
- display: inline-block;
140
- }
141
-
142
- @supports (-webkit-background-clip: text) {
143
- .uk-text-background {
144
- background-color: var(--text-background-color);
145
- color: transparent !important;
146
- @if mixin-exists(hook-text-background) {
147
- @include hook-text-background;
148
- }
149
- }
150
- }
151
-
152
-
153
- /* Alignment modifiers
154
- ========================================================================== */
155
-
156
- .uk-text-left { text-align: left !important; }
157
- .uk-text-right { text-align: right !important; }
158
- .uk-text-center { text-align: center !important; }
159
- .uk-text-justify { text-align: justify !important; }
160
-
161
- /* Phone landscape and bigger */
162
- // noinspection Stylelint
163
- @media (min-width: $breakpoint-small) {
164
-
165
- .uk-text-left\@s { text-align: left !important; }
166
- .uk-text-right\@s { text-align: right !important; }
167
- .uk-text-center\@s { text-align: center !important; }
168
-
169
- }
170
-
171
- /* Tablet landscape and bigger */
172
- // noinspection Stylelint
173
- @media (min-width: $breakpoint-medium) {
174
-
175
- .uk-text-left\@m { text-align: left !important; }
176
- .uk-text-right\@m { text-align: right !important; }
177
- .uk-text-center\@m { text-align: center !important; }
178
-
179
- }
180
-
181
- /* Desktop and bigger */
182
- // noinspection Stylelint
183
- @media (min-width: $breakpoint-large) {
184
-
185
- .uk-text-left\@l { text-align: left !important; }
186
- .uk-text-right\@l { text-align: right !important; }
187
- .uk-text-center\@l { text-align: center !important; }
188
-
189
- }
190
-
191
- /* Large screen and bigger */
192
- // noinspection Stylelint
193
- @media (min-width: $breakpoint-xlarge) {
194
-
195
- .uk-text-left\@xl { text-align: left !important; }
196
- .uk-text-right\@xl { text-align: right !important; }
197
- .uk-text-center\@xl { text-align: center !important; }
198
-
199
- }
200
-
201
- /*
202
- * Vertical
203
- */
204
-
205
- .uk-text-top { vertical-align: top !important; }
206
- .uk-text-middle { vertical-align: middle !important; }
207
- .uk-text-bottom { vertical-align: bottom !important; }
208
- .uk-text-baseline { vertical-align: baseline !important; }
209
-
210
-
211
- /* Wrap modifiers
212
- ========================================================================== */
213
-
214
- /*
215
- * Prevent text from wrapping onto multiple lines
216
- */
217
-
218
- .uk-text-nowrap { white-space: nowrap; }
219
-
220
- /*
221
- * 1. Make sure a max-width is set after which truncation can occur
222
- * 2. Prevent text from wrapping onto multiple lines, and truncate with an ellipsis
223
- * 3. Fix for table cells
224
- */
225
-
226
- .uk-text-truncate {
227
- /* 1 */
228
- max-width: 100%;
229
-
230
- /* 2 */
231
- overflow: hidden;
232
- text-overflow: ellipsis;
233
- white-space: nowrap;
234
- }
235
-
236
- /* 2 */
237
- th.uk-text-truncate,
238
- td.uk-text-truncate { max-width: 0; }
239
-
240
-
241
- /*
242
- * 1. Wrap long words onto the next line and break them if they are too long to fit
243
- * 2. Legacy `word-wrap` as fallback for `overflow-wrap`
244
- * 3. Fix `overflow-wrap` which doesn't work with table cells in Chrome, Opera, IE11 and Edge
245
- * Must use `break-all` to support IE11 and Edge
246
- * Note: Not using `hyphens: auto;` because it hyphenates text even if not needed
247
- */
248
-
249
- .uk-text-break {
250
- /* 1 */
251
- overflow-wrap: break-word;
252
-
253
- /* 2 */
254
- word-wrap: break-word;
255
- }
256
-
257
- /* 3 */
258
- th.uk-text-break,
259
- td.uk-text-break { word-break: break-all; }
260
-
261
-
262
- // Hooks
263
- // ========================================================================
264
-
265
- @if mixin-exists(hook-text-misc) {
266
- @include hook-text-misc;
267
- }
268
-
269
-
270
- // Vars
271
- // ========================================================================
272
-
273
- :root {
274
- --text-lead-font-size: var(--global-large-font-size);
275
- --text-lead-line-height: #{$text-lead-line-height};
276
- --text-lead-color: var(--global-emphasis-color);
277
- --text-meta-font-size: var(--global-small-font-size);
278
- --text-meta-line-height: #{$text-meta-line-height};
279
- --text-meta-color: var(--global-muted-color);
280
- --text-xsmall-font-size: var(--global-xsmall-font-size);
281
- --text-xsmall-line-height: #{$text-xsmall-line-height};
282
- --text-small-font-size: var(--global-small-font-size);
283
- --text-small-line-height: #{$text-small-line-height};
284
- --text-large-font-size: var(--global-large-font-size);
285
- --text-large-line-height: #{$text-large-line-height};
286
- --text-muted-color: var(--global-muted-color);
287
- --text-emphasis-color: var(--global-emphasis-color);
288
- --text-primary-color: var(--global-primary-background);
289
- --text-secondary-color: var(--global-secondary-background);
290
- --text-success-color: var(--global-success-background);
291
- --text-warning-color: var(--global-warning-background);
292
- --text-danger-color: var(--global-danger-background);
293
- --text-background-color: var(--global-primary-background);
294
-
295
- // Inverse
296
- --inverse-text-lead-color: var(--inverse-global-color);
297
- --inverse-text-meta-color: var(--inverse-global-muted-color);
298
- --inverse-text-muted-color: var(--inverse-global-muted-color);
299
- --inverse-text-emphasis-color: var(--inverse-global-emphasis-color);
300
- --inverse-text-primary-color: var(--inverse-global-primary-background);
301
- --inverse-text-secondary-color: var(--inverse-global-primary-background);
302
- --inverse-text-tertiary-color: var(--inverse-global-primary-background);
303
- }
1
+ @import '../components/Text/index.scss';