@progress/kendo-theme-utils 5.12.1-dev.0 → 5.12.1-dev.2
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.
- package/dist/all.css +4800 -898
- package/dist/all.scss +1584 -237
- package/package.json +6 -3
- package/scss/_functions.scss +1 -37
- package/scss/_mixins.scss +7 -7
- package/scss/_variables.scss +75 -33
- package/scss/accessibility/_screen-readers.scss +2 -2
- package/scss/background/_background-color.scss +5 -0
- package/scss/background/index.import.scss +1 -0
- package/scss/border/_border-color.scss +1 -1
- package/scss/border/_border-radius.scss +1 -1
- package/scss/border/_border-style.scss +1 -1
- package/scss/border/_border-width.scss +8 -1
- package/scss/border/_outline-color.scss +1 -1
- package/scss/border/_outline-offset.scss +1 -1
- package/scss/border/_outline-style.scss +1 -1
- package/scss/border/_outline-width.scss +1 -1
- package/scss/flex-grid/_align-content.scss +1 -1
- package/scss/flex-grid/_align-items.scss +1 -1
- package/scss/flex-grid/_align-self.scss +1 -1
- package/scss/flex-grid/_flex-basis.scss +6 -5
- package/scss/flex-grid/_flex-direction.scss +15 -5
- package/scss/flex-grid/_flex-grow.scss +6 -3
- package/scss/flex-grid/_flex-shrink.scss +6 -3
- package/scss/flex-grid/_flex-wrap.scss +8 -4
- package/scss/flex-grid/_flex.scss +10 -5
- package/scss/flex-grid/_gap.scss +1 -1
- package/scss/flex-grid/_grid-auto-columns.scss +1 -1
- package/scss/flex-grid/_grid-auto-flow.scss +1 -1
- package/scss/flex-grid/_grid-auto-rows.scss +1 -1
- package/scss/flex-grid/_grid-column-start-end.scss +8 -3
- package/scss/flex-grid/_grid-row-start-end.scss +9 -3
- package/scss/flex-grid/_grid-template-columns.scss +1 -1
- package/scss/flex-grid/_grid-template-rows.scss +1 -1
- package/scss/flex-grid/_justify-content.scss +1 -1
- package/scss/flex-grid/_justify-items.scss +1 -1
- package/scss/flex-grid/_justify-self.scss +1 -1
- package/scss/flex-grid/_order.scss +20 -2
- package/scss/flex-grid/_place-content.scss +1 -1
- package/scss/flex-grid/_place-items.scss +1 -1
- package/scss/flex-grid/_place-self.scss +1 -1
- package/scss/index.import.scss +1 -1
- package/scss/interactivity/_accent-color.scss +1 -1
- package/scss/interactivity/_appearance.scss +6 -3
- package/scss/interactivity/_caret-color.scss +1 -1
- package/scss/interactivity/_cursor.scss +1 -1
- package/scss/interactivity/_pointer-events.scss +8 -3
- package/scss/interactivity/_resize.scss +12 -5
- package/scss/interactivity/_scroll.scss +6 -6
- package/scss/interactivity/_touch-action.scss +6 -3
- package/scss/interactivity/_user-select.scss +16 -8
- package/scss/interactivity/_will-change.scss +1 -1
- package/scss/layout/_aspect-ratio.scss +26 -2
- package/scss/layout/_clear.scss +22 -2
- package/scss/layout/_display.scss +32 -12
- package/scss/layout/_float.scss +17 -2
- package/scss/layout/_overflow.scss +32 -16
- package/scss/layout/_position.scss +53 -8
- package/scss/layout/_visibility.scss +1 -1
- package/scss/layout/_zindex.scss +1 -1
- package/scss/sizing/_height.scss +3 -3
- package/scss/sizing/_width.scss +3 -3
- package/scss/spacing/_margin.scss +1 -1
- package/scss/spacing/_padding.scss +1 -1
- package/scss/table/_border-collapse.scss +1 -1
- package/scss/table/_table-layout.scss +8 -3
- package/scss/transform/_flip.scss +6 -3
- package/scss/transform/_origin.scss +1 -1
- package/scss/transform/_rotate.scss +40 -2
- package/scss/transform/_scale.scss +18 -5
- package/scss/transform/_skew.scss +1 -1
- package/scss/transform/_translate.scss +60 -2
- package/scss/typography/_font-size.scss +5 -1
- package/scss/typography/_font-style.scss +1 -1
- package/scss/typography/_font-weight.scss +5 -1
- package/scss/typography/_text-align.scss +12 -5
- package/scss/typography/_text-color.scss +9 -0
- package/scss/typography/_text-transform.scss +9 -5
- package/scss/typography/_white-space.scss +21 -7
- package/scss/typography/index.import.scss +7 -1
package/dist/all.scss
CHANGED
|
@@ -3,76 +3,992 @@
|
|
|
3
3
|
|
|
4
4
|
// #region @import "./index.import.scss"; -> packages/utils/scss/index.import.scss
|
|
5
5
|
// #region @import "./_functions.scss"; -> packages/utils/scss/_functions.scss
|
|
6
|
-
//
|
|
7
|
-
//
|
|
6
|
+
// #region @import "@progress/kendo-theme-core/scss/functions/index.import.scss"; -> packages/utils/node_modules/@progress/kendo-theme-core/scss/functions/index.import.scss
|
|
7
|
+
// #region @import "../_variables.scss"; -> packages/utils/node_modules/@progress/kendo-theme-core/scss/_variables.scss
|
|
8
|
+
// Equilateral triangle variables
|
|
9
|
+
$equilateral-index: 1.7320508076 !default;
|
|
10
|
+
$equilateral-height: .8660254038 !default;
|
|
11
|
+
|
|
12
|
+
// #endregion
|
|
13
|
+
|
|
14
|
+
// #region @import "./_color.import.scss"; -> packages/utils/node_modules/@progress/kendo-theme-core/scss/functions/_color.import.scss
|
|
15
|
+
@function k-color-alpha( $color ) {
|
|
16
|
+
@return alpha( $color );
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@function k-color-red( $color ) {
|
|
20
|
+
@return red( $color );
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@function k-color-green( $color ) {
|
|
24
|
+
@return green( $color );
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@function k-color-blue( $color ) {
|
|
28
|
+
@return blue( $color );
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@function k-color-hue( $color ) {
|
|
32
|
+
@return hue( $color );
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@function k-color-saturation( $color ) {
|
|
36
|
+
@return saturation( $color );
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@function k-color-lightness( $color ) {
|
|
40
|
+
@return lightness( $color );
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@function k-color-mix( $color1, $color2, $weight: 50% ) {
|
|
44
|
+
@return mix( $color1, $color2, $weight );
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@function k-color-darken( $color, $amount) {
|
|
48
|
+
@return darken( $color, $amount );
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@function k-color-lighten( $color, $amount) {
|
|
52
|
+
@return lighten( $color, $amount );
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@function k-color-adjust-hue( $color, $degrees ) {
|
|
56
|
+
@return adjust-hue( $color, $degrees );
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@function k-color-saturate( $color, $amount ) {
|
|
60
|
+
@return saturate( $color, $amount );
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@function k-color-desaturate( $color, $amount ) {
|
|
64
|
+
@return desaturate( $color, $amount );
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@function k-color-grayscale( $color ) {
|
|
68
|
+
@return grayscale( $color );
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@function k-color-complement( $color ) {
|
|
72
|
+
@return complement( $color );
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@function k-color-invert( $color ) {
|
|
76
|
+
@return invert( $color );
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// #endregion
|
|
80
|
+
// #region @import "./_color-contrast.import.scss"; -> packages/utils/node_modules/@progress/kendo-theme-core/scss/functions/_color-contrast.import.scss
|
|
81
|
+
// Adapted from https://gist.github.com/sgomes/ccc72f71137fe29039c92c0a9fe9b657
|
|
82
|
+
// Adapted from https://github.com/twbs/bootstrap/commit/03908ea37a55eaa44c12ce5694dddc1630c980b3
|
|
83
|
+
|
|
84
|
+
// Precomputed linear color channel values, for use in contrast calculations.
|
|
85
|
+
// See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
8
86
|
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
87
|
+
// Algorithm, for c in 0 to 255:
|
|
88
|
+
// f(c) {
|
|
89
|
+
// c = c / 255;
|
|
90
|
+
// return c < 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
|
|
91
|
+
// }
|
|
92
|
+
//
|
|
93
|
+
// This lookup table is needed since there is no `pow` in SASS.
|
|
94
|
+
// stylelint-disable-next-line scss/dollar-variable-default
|
|
95
|
+
$linear-channel-values: (
|
|
96
|
+
0
|
|
97
|
+
.0003035269835488375
|
|
98
|
+
.000607053967097675
|
|
99
|
+
.0009105809506465125
|
|
100
|
+
.00121410793419535
|
|
101
|
+
.0015176349177441874
|
|
102
|
+
.001821161901293025
|
|
103
|
+
.0021246888848418626
|
|
104
|
+
.0024282158683907
|
|
105
|
+
.0027317428519395373
|
|
106
|
+
.003035269835488375
|
|
107
|
+
.003346535763899161
|
|
108
|
+
.003676507324047436
|
|
109
|
+
.004024717018496307
|
|
110
|
+
.004391442037410293
|
|
111
|
+
.004776953480693729
|
|
112
|
+
.005181516702338386
|
|
113
|
+
.005605391624202723
|
|
114
|
+
.006048833022857054
|
|
115
|
+
.006512090792594475
|
|
116
|
+
.006995410187265387
|
|
117
|
+
.007499032043226175
|
|
118
|
+
.008023192985384994
|
|
119
|
+
.008568125618069307
|
|
120
|
+
.009134058702220787
|
|
121
|
+
.00972121732023785
|
|
122
|
+
.010329823029626936
|
|
123
|
+
.010960094006488246
|
|
124
|
+
.011612245179743885
|
|
125
|
+
.012286488356915872
|
|
126
|
+
.012983032342173012
|
|
127
|
+
.013702083047289686
|
|
128
|
+
.014443843596092545
|
|
129
|
+
.01520851442291271
|
|
130
|
+
.01599629336550963
|
|
131
|
+
.016807375752887384
|
|
132
|
+
.017641954488384078
|
|
133
|
+
.018500220128379697
|
|
134
|
+
.019382360956935723
|
|
135
|
+
.0202885630566524
|
|
136
|
+
.021219010376003555
|
|
137
|
+
.022173884793387385
|
|
138
|
+
.02315336617811041
|
|
139
|
+
.024157632448504756
|
|
140
|
+
.02518685962736163
|
|
141
|
+
.026241221894849898
|
|
142
|
+
.027320891639074894
|
|
143
|
+
.028426039504420793
|
|
144
|
+
.0295568344378088
|
|
145
|
+
.030713443732993635
|
|
146
|
+
.03189603307301153
|
|
147
|
+
.033104766570885055
|
|
148
|
+
.03433980680868217
|
|
149
|
+
.03560131487502034
|
|
150
|
+
.03688945040110004
|
|
151
|
+
.0382043715953465
|
|
152
|
+
.03954623527673284
|
|
153
|
+
.04091519690685319
|
|
154
|
+
.042311410620809675
|
|
155
|
+
.043735029256973465
|
|
156
|
+
.04518620438567554
|
|
157
|
+
.046665086336880095
|
|
158
|
+
.04817182422688942
|
|
159
|
+
.04970656598412723
|
|
160
|
+
.05126945837404324
|
|
161
|
+
.052860647023180246
|
|
162
|
+
.05448027644244237
|
|
163
|
+
.05612849004960009
|
|
164
|
+
.05780543019106723
|
|
165
|
+
.0595112381629812
|
|
166
|
+
.06124605423161761
|
|
167
|
+
.06301001765316767
|
|
168
|
+
.06480326669290577
|
|
169
|
+
.06662593864377289
|
|
170
|
+
.06847816984440017
|
|
171
|
+
.07036009569659588
|
|
172
|
+
.07227185068231748
|
|
173
|
+
.07421356838014963
|
|
174
|
+
.07618538148130785
|
|
175
|
+
.07818742180518633
|
|
176
|
+
.08021982031446832
|
|
177
|
+
.0822827071298148
|
|
178
|
+
.08437621154414882
|
|
179
|
+
.08650046203654976
|
|
180
|
+
.08865558628577294
|
|
181
|
+
.09084171118340768
|
|
182
|
+
.09305896284668745
|
|
183
|
+
.0953074666309647
|
|
184
|
+
.09758734714186246
|
|
185
|
+
.09989872824711389
|
|
186
|
+
.10224173308810132
|
|
187
|
+
.10461648409110419
|
|
188
|
+
.10702310297826761
|
|
189
|
+
.10946171077829933
|
|
190
|
+
.1119324278369056
|
|
191
|
+
.11443537382697373
|
|
192
|
+
.11697066775851084
|
|
193
|
+
.11953842798834562
|
|
194
|
+
.12213877222960187
|
|
195
|
+
.12477181756095049
|
|
196
|
+
.12743768043564743
|
|
197
|
+
.1301364766903643
|
|
198
|
+
.13286832155381798
|
|
199
|
+
.13563332965520566
|
|
200
|
+
.13843161503245183
|
|
201
|
+
.14126329114027164
|
|
202
|
+
.14412847085805777
|
|
203
|
+
.14702726649759498
|
|
204
|
+
.14995978981060856
|
|
205
|
+
.15292615199615017
|
|
206
|
+
.1559264637078274
|
|
207
|
+
.1589608350608804
|
|
208
|
+
.162029375639111
|
|
209
|
+
.1651321945016676
|
|
210
|
+
.16826940018969075
|
|
211
|
+
.1714411007328226
|
|
212
|
+
.17464740365558504
|
|
213
|
+
.17788841598362912
|
|
214
|
+
.18116424424986022
|
|
215
|
+
.184474994500441
|
|
216
|
+
.18782077230067787
|
|
217
|
+
.19120168274079138
|
|
218
|
+
.1946178304415758
|
|
219
|
+
.19806931955994886
|
|
220
|
+
.20155625379439707
|
|
221
|
+
.20507873639031693
|
|
222
|
+
.20863687014525575
|
|
223
|
+
.21223075741405523
|
|
224
|
+
.21586050011389926
|
|
225
|
+
.2195261997292692
|
|
226
|
+
.2232279573168085
|
|
227
|
+
.22696587351009836
|
|
228
|
+
.23074004852434915
|
|
229
|
+
.23455058216100522
|
|
230
|
+
.238397573812271
|
|
231
|
+
.24228112246555486
|
|
232
|
+
.24620132670783548
|
|
233
|
+
.25015828472995344
|
|
234
|
+
.25415209433082675
|
|
235
|
+
.2581828529215958
|
|
236
|
+
.26225065752969623
|
|
237
|
+
.26635560480286247
|
|
238
|
+
.2704977910130658
|
|
239
|
+
.27467731206038465
|
|
240
|
+
.2788942634768104
|
|
241
|
+
.2831487404299921
|
|
242
|
+
.2874408377269175
|
|
243
|
+
.29177064981753587
|
|
244
|
+
.2961382707983211
|
|
245
|
+
.3005437944157765
|
|
246
|
+
.3049873140698863
|
|
247
|
+
.30946892281750854
|
|
248
|
+
.31398871337571754
|
|
249
|
+
.31854677812509186
|
|
250
|
+
.32314320911295075
|
|
251
|
+
.3277780980565422
|
|
252
|
+
.33245153634617935
|
|
253
|
+
.33716361504833037
|
|
254
|
+
.3419144249086609
|
|
255
|
+
.3467040563550296
|
|
256
|
+
.35153259950043936
|
|
257
|
+
.3564001441459435
|
|
258
|
+
.3613067797835095
|
|
259
|
+
.3662525955988395
|
|
260
|
+
.3712376804741491
|
|
261
|
+
.3762621229909065
|
|
262
|
+
.38132601143253014
|
|
263
|
+
.386429433787049
|
|
264
|
+
.39157247774972326
|
|
265
|
+
.39675523072562685
|
|
266
|
+
.4019777798321958
|
|
267
|
+
.4072402119017367
|
|
268
|
+
.41254261348390375
|
|
269
|
+
.4178850708481375
|
|
270
|
+
.4232676699860717
|
|
271
|
+
.4286904966139066
|
|
272
|
+
.43415363617474895
|
|
273
|
+
.4396571738409188
|
|
274
|
+
.44520119451622786
|
|
275
|
+
.45078578283822346
|
|
276
|
+
.45641102318040466
|
|
277
|
+
.4620769996544071
|
|
278
|
+
.467783796112159
|
|
279
|
+
.47353149614800955
|
|
280
|
+
.4793201831008268
|
|
281
|
+
.4851499400560704
|
|
282
|
+
.4910208498478356
|
|
283
|
+
.4969329950608704
|
|
284
|
+
.5028864580325687
|
|
285
|
+
.5088813208549338
|
|
286
|
+
.5149176653765214
|
|
287
|
+
.5209955732043543
|
|
288
|
+
.5271151257058131
|
|
289
|
+
.5332764040105052
|
|
290
|
+
.5394794890121072
|
|
291
|
+
.5457244613701866
|
|
292
|
+
.5520114015120001
|
|
293
|
+
.5583403896342679
|
|
294
|
+
.5647115057049292
|
|
295
|
+
.5711248294648731
|
|
296
|
+
.5775804404296506
|
|
297
|
+
.5840784178911641
|
|
298
|
+
.5906188409193369
|
|
299
|
+
.5972017883637634
|
|
300
|
+
.6038273388553378
|
|
301
|
+
.6104955708078648
|
|
302
|
+
.6172065624196511
|
|
303
|
+
.6239603916750761
|
|
304
|
+
.6307571363461468
|
|
305
|
+
.6375968739940326
|
|
306
|
+
.6444796819705821
|
|
307
|
+
.6514056374198242
|
|
308
|
+
.6583748172794485
|
|
309
|
+
.665387298282272
|
|
310
|
+
.6724431569576875
|
|
311
|
+
.6795424696330938
|
|
312
|
+
.6866853124353135
|
|
313
|
+
.6938717612919899
|
|
314
|
+
.7011018919329731
|
|
315
|
+
.7083757798916868
|
|
316
|
+
.7156935005064807
|
|
317
|
+
.7230551289219693
|
|
318
|
+
.7304607400903537
|
|
319
|
+
.7379104087727308
|
|
320
|
+
.7454042095403874
|
|
321
|
+
.7529422167760779
|
|
322
|
+
.7605245046752924
|
|
323
|
+
.768151147247507
|
|
324
|
+
.7758222183174236
|
|
325
|
+
.7835377915261935
|
|
326
|
+
.7912979403326302
|
|
327
|
+
.799102738014409
|
|
328
|
+
.8069522576692516
|
|
329
|
+
.8148465722161012
|
|
330
|
+
.8227857543962835
|
|
331
|
+
.8307698767746546
|
|
332
|
+
.83879901174074
|
|
333
|
+
.846873231509858
|
|
334
|
+
.8549926081242338
|
|
335
|
+
.8631572134541023
|
|
336
|
+
.8713671191987972
|
|
337
|
+
.8796223968878317
|
|
338
|
+
.8879231178819663
|
|
339
|
+
.8962693533742664
|
|
340
|
+
.9046611743911496
|
|
341
|
+
.9130986517934192
|
|
342
|
+
.9215818562772946
|
|
343
|
+
.9301108583754237
|
|
344
|
+
.938685728457888
|
|
345
|
+
.9473065367331999
|
|
346
|
+
.9559733532492861
|
|
347
|
+
.9646862478944651
|
|
348
|
+
.9734452903984125
|
|
349
|
+
.9822505503331171
|
|
350
|
+
.9911020971138298
|
|
351
|
+
1
|
|
352
|
+
);
|
|
353
|
+
|
|
354
|
+
// The contrast ratio to reach against white, to determine if color changes from "light" to "dark".
|
|
355
|
+
// Acceptable values for WCAG 2.0 are 3, 4.5 and 7.
|
|
356
|
+
// See https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast
|
|
357
|
+
// See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
358
|
+
$wcag-min-contrast-ratio: 7 !default;
|
|
359
|
+
$wcag-dark: black !default;
|
|
360
|
+
$wcag-light: white !default;
|
|
361
|
+
|
|
362
|
+
// Calculate the luminance for a color.
|
|
363
|
+
// See https://www.w3.org/TR/WCAG/#dfn-relative-luminance
|
|
364
|
+
// See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
365
|
+
@function k-color-luminance( $color ) {
|
|
366
|
+
$red: k-list-nth( $linear-channel-values, k-color-red( $color ) + 1 );
|
|
367
|
+
$green: k-list-nth( $linear-channel-values, k-color-green( $color ) + 1 );
|
|
368
|
+
$blue: k-list-nth( $linear-channel-values, k-color-blue( $color ) + 1 );
|
|
369
|
+
|
|
370
|
+
@return .2126 * $red + .7152 * $green + .0722 * $blue;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// Calculate the luminance for a color.
|
|
374
|
+
// See https://www.w3.org/TR/WCAG/#dfn-contrast-ratio
|
|
375
|
+
// See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
376
|
+
@function k-color-contrast-ratio( $background, $foreground ) {
|
|
377
|
+
// sass-lint:disable-block variable-name-format
|
|
378
|
+
$backLum: k-color-luminance( $background ) + .05;
|
|
379
|
+
$foreLum: k-color-luminance( $foreground ) + .05;
|
|
380
|
+
|
|
381
|
+
@return k-math-div( k-math-max( $backLum, $foreLum ), k-math-min( $backLum, $foreLum ) );
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
@function k-is-dark( $color ) {
|
|
385
|
+
@return if( k-color-luminance( $color ) < .5, true, false );
|
|
386
|
+
}
|
|
387
|
+
@function k-is-light( $color ) {
|
|
388
|
+
@return if( k-color-luminance( $color ) < .5, false, true );
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
// Contrast functions
|
|
393
|
+
@function k-contrast-color( $background, $dark: $wcag-dark, $light: $wcag-light, $min-ratio: $wcag-min-contrast-ratio ) {
|
|
394
|
+
$foregrounds: $light, $dark, #ffffff, #000000;
|
|
395
|
+
$max-ratio: 0;
|
|
396
|
+
$max-ratio-color: null;
|
|
397
|
+
|
|
398
|
+
@each $color in $foregrounds {
|
|
399
|
+
$contrast-ratio: k-color-contrast-ratio( $background, $color );
|
|
400
|
+
|
|
401
|
+
@if ( $contrast-ratio > $min-ratio ) {
|
|
402
|
+
@return $color;
|
|
403
|
+
} @else if ( $contrast-ratio > $max-ratio ) {
|
|
404
|
+
$max-ratio: $contrast-ratio;
|
|
405
|
+
$max-ratio-color: $color;
|
|
406
|
+
}
|
|
17
407
|
}
|
|
18
408
|
|
|
19
|
-
|
|
409
|
+
// sass-lint:disable-block no-warn
|
|
410
|
+
@warn "Found no color leading to #{$min-ratio}:1 contrast ratio against #{$background}...";
|
|
20
411
|
|
|
21
|
-
@
|
|
22
|
-
|
|
412
|
+
@return $max-ratio-color;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
// Legacy functions
|
|
417
|
+
@function k-yiq-luma-information($color) {
|
|
418
|
+
$r: k-color-red($color);
|
|
419
|
+
$g: k-color-green($color);
|
|
420
|
+
$b: k-color-blue($color);
|
|
421
|
+
|
|
422
|
+
$yiq: k-math-div( (($r * 299) + ($g * 587) + ($b * 114)), 1000 );
|
|
423
|
+
|
|
424
|
+
@return $yiq;
|
|
425
|
+
}
|
|
426
|
+
@function k-contrast-yiq($color, $dark: $yiq-dark, $light: $yiq-light) {
|
|
427
|
+
$yiq: k-yiq-luma-information($color);
|
|
428
|
+
$out: if($yiq >= $yiq-threshold, $dark, $light);
|
|
429
|
+
// @debug yiq;
|
|
430
|
+
@return $out;
|
|
431
|
+
}
|
|
432
|
+
@function k-contrast-legacy($color, $dark: $wcag-dark, $light: $wcag-light) {
|
|
433
|
+
$luma: k-color-luminance($color);
|
|
434
|
+
$out: if($luma < .5, $light, $dark);
|
|
435
|
+
// @debug $luma;
|
|
436
|
+
@return $out;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
// #endregion
|
|
440
|
+
// #region @import "./_color-manipulation.import.scss"; -> packages/utils/node_modules/@progress/kendo-theme-core/scss/functions/_color-manipulation.import.scss
|
|
441
|
+
/// Set a specific jump point for requesting color jumps
|
|
442
|
+
/// @group color-system
|
|
443
|
+
/// @access private
|
|
444
|
+
$kendo-color-level-step: 8% !default;
|
|
445
|
+
|
|
446
|
+
@function k-color-level( $color, $level: 0 ) {
|
|
447
|
+
|
|
448
|
+
@if ( $level == 0 ) or ( $level == 0% ) {
|
|
449
|
+
@return $color;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
$base: if( $level < 0, #ffffff, #000000 );
|
|
453
|
+
$level: k-math-abs( $level );
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
@if ( k-math-unit($level) == "%" ) {
|
|
457
|
+
@return k-color-mix( $base, $color, $level );
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
@return k-color-mix( $base, $color, $level * $kendo-color-level-step );
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
@function k-color-tint( $color, $level: 1 ) {
|
|
464
|
+
@return k-color-level( $color, -$level );
|
|
465
|
+
}
|
|
466
|
+
@function k-color-shade( $color, $level: 1 ) {
|
|
467
|
+
@return k-color-level( $color, $level );
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
@function k-try-shade( $color, $level: 1 ) {
|
|
471
|
+
$_dark-theme: if( k-meta-variable-exists( dark-theme ), $dark-theme, false );
|
|
472
|
+
|
|
473
|
+
@if $_dark-theme {
|
|
474
|
+
@return k-color-tint( $color, $level );
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
@return k-color-shade( $color, $level );
|
|
478
|
+
}
|
|
479
|
+
@function k-try-tint( $color, $level: 1 ) {
|
|
480
|
+
$_dark-theme: if( k-meta-variable-exists( dark-theme ), $dark-theme, false );
|
|
481
|
+
|
|
482
|
+
@if $_dark-theme {
|
|
483
|
+
@return k-color-shade( $color, $level );
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
@return k-color-tint( $color, $level );
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
@function k-try-darken( $color, $amount ) {
|
|
491
|
+
$_dark-theme: if( k-meta-variable-exists( dark-theme ), $dark-theme, false );
|
|
492
|
+
|
|
493
|
+
@if $_dark-theme {
|
|
494
|
+
@return k-color-lighten( $color, $amount );
|
|
495
|
+
}
|
|
496
|
+
@return k-color-darken( $color, $amount );
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
@function k-try-lighten( $color, $amount ) {
|
|
500
|
+
$_dark-theme: if( k-meta-variable-exists( dark-theme ), $dark-theme, false );
|
|
501
|
+
|
|
502
|
+
@if $_dark-theme {
|
|
503
|
+
@return k-color-darken( $color, $amount );
|
|
504
|
+
}
|
|
505
|
+
@return k-color-lighten( $color, $amount );
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
@function k-rgba-to-mix( $color, $bg ) {
|
|
509
|
+
$percent: k-color-alpha( $color ) * 100%;
|
|
510
|
+
|
|
511
|
+
@return k-color-mix( rgba( $color, 1 ), $bg, $percent );
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
// TODO: Remove this function or rethink the logic
|
|
515
|
+
@function k-true-mix( $color1, $color2, $weight: 50% ) {
|
|
516
|
+
@return k-color-mix( rgba( $color1, 1 ), rgba( $color2, 1 ), $weight );
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
// #endregion
|
|
520
|
+
// #region @import "./_custom-properties.import.scss"; -> packages/utils/node_modules/@progress/kendo-theme-core/scss/functions/_custom-properties.import.scss
|
|
521
|
+
@function k-var( $prefix: kendo-, $var: null, $fallback: null ) {
|
|
522
|
+
$_prefix: $prefix;
|
|
523
|
+
$_var: $var;
|
|
524
|
+
$_fallback: $fallback;
|
|
525
|
+
|
|
526
|
+
@if ( k-string-index( $prefix, "--" ) == 1 ) {
|
|
527
|
+
$_prefix: "";
|
|
528
|
+
$_var: k-string-slice( $prefix, 3 );
|
|
529
|
+
$_fallback: $var;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
@if not $_var {
|
|
533
|
+
@return null;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
@if $_prefix == null {
|
|
537
|
+
$_prefix: "";
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
@if ($_fallback != null and $_fallback != "") {
|
|
541
|
+
@return var( --#{$_prefix}#{$_var}, #{$_fallback} );
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
@return var( --#{$_prefix}#{$_var} );
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
@function k-vars( $prefix: kendo-, $vars... ) {
|
|
548
|
+
$vars: k-list-reverse( $vars );
|
|
549
|
+
$result: null;
|
|
550
|
+
|
|
551
|
+
// @debug $prefix;
|
|
552
|
+
@each $var in $vars {
|
|
553
|
+
$result: k-var( $prefix, $var, $result );
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
@return $result;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
// #endregion
|
|
560
|
+
// #region @import "./_escape-string.import.scss"; -> packages/utils/node_modules/@progress/kendo-theme-core/scss/functions/_escape-string.import.scss
|
|
561
|
+
$_kendo-svg-escaped-characters: (
|
|
562
|
+
("%", "%25"),
|
|
563
|
+
("<", "%3c"),
|
|
564
|
+
(">", "%3e"),
|
|
565
|
+
("#", "%23"),
|
|
566
|
+
("(", "%28"),
|
|
567
|
+
(")", "%29")
|
|
568
|
+
) !default;
|
|
569
|
+
|
|
570
|
+
// See https://codepen.io/kevinweber/pen/dXWoRw
|
|
571
|
+
@function k-escape-svg($string) {
|
|
572
|
+
@if k-string-index($string, "data:image/svg+xml") {
|
|
573
|
+
@each $char, $encoded in $_kendo-svg-escaped-characters {
|
|
574
|
+
// Do not escape the url brackets
|
|
575
|
+
@if k-string-index($string, "url(") == 1 {
|
|
576
|
+
$string: url("#{k-string-replace(k-string-slice($string, 6, -3), $char, $encoded)}");
|
|
577
|
+
} @else {
|
|
578
|
+
$string: k-string-replace($string, $char, $encoded);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
23
581
|
}
|
|
24
582
|
|
|
25
583
|
@return $string;
|
|
26
584
|
}
|
|
27
585
|
|
|
28
586
|
|
|
587
|
+
|
|
29
588
|
$_kendo-escape-class-name: (
|
|
30
589
|
".": "\\.",
|
|
31
590
|
"/": "\\/"
|
|
32
591
|
);
|
|
33
592
|
|
|
34
|
-
@function escape-class-name( $text ) {
|
|
593
|
+
@function k-escape-class-name( $text ) {
|
|
35
594
|
$_text: $text;
|
|
36
595
|
|
|
37
596
|
@each $char, $rep in $_kendo-escape-class-name {
|
|
38
|
-
$_text:
|
|
597
|
+
$_text: k-string-replace( $_text, k-string-unquote( $char ), k-string-unquote( $rep ) );
|
|
39
598
|
}
|
|
40
599
|
|
|
41
600
|
@return $_text;
|
|
42
601
|
}
|
|
43
602
|
|
|
603
|
+
// #endregion
|
|
604
|
+
// #region @import "./_lang.import.scss"; -> packages/utils/node_modules/@progress/kendo-theme-core/scss/functions/_lang.import.scss
|
|
605
|
+
@function k-if-var( $var, $fallback ) {
|
|
606
|
+
@return if( $var != null, $var, $fallback );
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
// #endregion
|
|
610
|
+
// #region @import "./_list.import.scss"; -> packages/utils/node_modules/@progress/kendo-theme-core/scss/functions/_list.import.scss
|
|
611
|
+
@function k-list-append( $list, $val, $separator: auto ) {
|
|
612
|
+
@return append( $list, $val, $separator );
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
@function k-list-includes( $list, $value ) {
|
|
616
|
+
@return k-list-index( $list, $value ) != null;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
@function k-list-index( $list, $value ) {
|
|
620
|
+
@return index( $list, $value );
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
@function k-list-is-bracketed( $list ) {
|
|
624
|
+
@return is-bracketed( $list );
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
@function k-list-join( $list1, $list2, $separator: auto, $bracketed: auto ) {
|
|
628
|
+
@return join( $list1, $list2, $separator, $bracketed );
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
@function k-list-length( $list ) {
|
|
632
|
+
@return length( $list );
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
@function k-list-nth( $list, $n ) {
|
|
636
|
+
@return nth( $list, $n );
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
@function k-list-reverse( $list: null ) {
|
|
640
|
+
$result: ();
|
|
641
|
+
|
|
642
|
+
@if ($list) {
|
|
643
|
+
$len: k-list-length( $list );
|
|
644
|
+
|
|
645
|
+
@for $i from $len through 1 {
|
|
646
|
+
$result: k-list-append( $result, k-list-nth( $list, $i ) );
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
@return $result;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
// sass-lint:disable-block no-warn
|
|
653
|
+
@warn "No list passed.";
|
|
654
|
+
@return $result;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
@function k-list-separator( $list ) {
|
|
658
|
+
@return list-separator( $list );
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
@function k-list-set-nth( $list, $n, $value ) {
|
|
662
|
+
@return set-nth( $list, $n, $value );
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
@function k-list-zip( $lists... ) {
|
|
666
|
+
@return zip( $lists... );
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
// #endregion
|
|
670
|
+
// #region @import "./_math.import.scss"; -> packages/utils/node_modules/@progress/kendo-theme-core/scss/functions/_math.import.scss
|
|
671
|
+
@function k-math-abs( $number ) {
|
|
672
|
+
@return abs( $number );
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
@function k-math-ceil( $number ) {
|
|
676
|
+
@return ceil( $number );
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
@function k-math-clamp( $value, $min, $max ) {
|
|
680
|
+
@return k-math-max( $min, k-math-min( $max, $value ) );
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
@function k-math-compatible( $a, $b ) {
|
|
684
|
+
@return comparable( $a, $b );
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
@function k-math-div( $a, $b ) {
|
|
688
|
+
@return ( $a / $b );
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
@function k-math-is-unitless( $number ) {
|
|
692
|
+
@return unitless( $number );
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
@function k-math-max( $a, $b ) {
|
|
696
|
+
@return max( $a, $b );
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
@function k-math-min( $a, $b ) {
|
|
700
|
+
@return min( $a, $b );
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
@function k-math-mod( $a, $b ) {
|
|
704
|
+
@return ( $a % $b );
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
@function k-math-mul( $a, $b ) {
|
|
708
|
+
@return ( $a * $b );
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
@function k-math-percentage( $number ) {
|
|
712
|
+
@return ( $number * 100% );
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
@function k-math-pow( $x, $n ) {
|
|
716
|
+
$ret: 1;
|
|
717
|
+
|
|
718
|
+
@if ( $n == 0 ) {
|
|
719
|
+
@return $ret;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
@if ( $n > 0 ) {
|
|
723
|
+
@for $i from 1 through $n {
|
|
724
|
+
$ret: $ret * $x;
|
|
725
|
+
}
|
|
726
|
+
@return $ret;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
@for $i from $n to 0 {
|
|
730
|
+
$ret: k-math-div( $ret, $x );
|
|
731
|
+
}
|
|
732
|
+
@return $ret;
|
|
733
|
+
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
@function k-math-percentage( $number ) {
|
|
737
|
+
@return percentage( $number );
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
@function k-math-random( $limit: null ) {
|
|
741
|
+
@if ( $limit == null ) {
|
|
742
|
+
@return random();
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
@return random( $limit );
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
@function k-math-round( $number, $precision: 0 ) {
|
|
749
|
+
|
|
750
|
+
@if ( $precision == 0 ) {
|
|
751
|
+
@return round( $number );
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
$pow: k-math-pow( 10, $precision );
|
|
755
|
+
|
|
756
|
+
@return k-math-div( round( $number * $pow ), $pow );
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
@function k-math-unit( $number ) {
|
|
760
|
+
@return unit( $number );
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
@function k-math-strip-unit($number) {
|
|
764
|
+
@if ( k-meta-type-of( $number ) == "number" ) and not k-math-is-unitless( $number ) {
|
|
765
|
+
@return k-math-div( $number, 1 * k-math-unit( $number) );
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
@return $number;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
// #endregion
|
|
772
|
+
// #region @import "./_map.import.scss"; -> packages/utils/node_modules/@progress/kendo-theme-core/scss/functions/_map.import.scss
|
|
773
|
+
@function k-map-get( $map, $keys... ) {
|
|
774
|
+
@each $key in $keys {
|
|
775
|
+
$map: map-get( $map, $key );
|
|
776
|
+
}
|
|
777
|
+
@return $map;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
@function k-map-has-key( $map, $key ) {
|
|
781
|
+
@return map-has-key( $map, $key );
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
@function k-map-keys( $map ) {
|
|
785
|
+
@return map-keys( $map );
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
@function k-map-merge( $map, $args... ) {
|
|
789
|
+
@each $arg in $args {
|
|
790
|
+
$map: map-merge( $map, $arg );
|
|
791
|
+
}
|
|
792
|
+
@return $map;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
@function k-map-remove( $map, $keys... ) {
|
|
796
|
+
@return map-remove( $map, $keys... );
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
@function k-map-set( $map, $key, $value ) {
|
|
800
|
+
@return k-map-merge( $map, ( $key: $value ) );
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
@function k-map-values( $map ) {
|
|
804
|
+
@return map-values( $map );
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
// #endregion
|
|
808
|
+
// #region @import "./_meta.import.scss"; -> packages/utils/node_modules/@progress/kendo-theme-core/scss/functions/_meta.import.scss
|
|
809
|
+
// Adapted from https://css-tricks.com/snippets/sass/advanced-type-checking/
|
|
810
|
+
|
|
811
|
+
@function k-meta-call( $function, $args... ) {
|
|
812
|
+
@return call( $function, $args... );
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
@function k-meta-function-exists( $name ) {
|
|
816
|
+
@return function-exists( $name );
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
@function k-meta-get-function( $name, $args... ) {
|
|
820
|
+
@return get-function( $name, $args... );
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
@function k-meta-inspect( $value ) {
|
|
824
|
+
@return inspect( $value );
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
@function k-meta-keywords( $args ) {
|
|
828
|
+
@return keywords( $args );
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
@function k-meta-type-of( $value ) {
|
|
832
|
+
@return type-of( $value );
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
@function k-meta-variable-exists( $name ) {
|
|
836
|
+
@return variable-exists( $name );
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
@function k-meta-is-number( $value ) {
|
|
840
|
+
@return k-meta-type-of( $value ) == "number";
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
@function k-meta-is-integer( $value ) {
|
|
844
|
+
@return k-meta-is-number( $value ) and k-math-round( $value ) == $value;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
@function k-meta-is-time( $value ) {
|
|
848
|
+
@return k-meta-is-number( $value ) and k-string-index( "ms" "s", k-math-unit( $value ) ) != null;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
@function k-meta-is-duration( $value ) {
|
|
852
|
+
@return k-meta-is-time( $value );
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
@function k-meta-is-angle( $value ) {
|
|
856
|
+
@return k-meta-is-number( $value ) and k-string-index( "deg" "rad" "grad" "turn", k-math-unit( $value ) ) != null;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
@function k-meta-is-frequency( $value ) {
|
|
860
|
+
@return k-meta-is-number( $value ) and k-string-index( "Hz" "kHz", k-math-unit( $value ) ) != null;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
@function k-meta-is-relative-length( $value ) {
|
|
864
|
+
@return k-meta-is-number( $value ) and k-string-index( "em" "ex" "ch" "rem" "vw" "vh" "vmin" "vmax", k-math-unit( $value ) ) != null;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
@function k-meta-is-absolute-length( $value ) {
|
|
868
|
+
@return k-meta-is-number( $value ) and k-string-index( "cm" "mm" "in" "px" "pt" "pc", k-math-unit( $value ) ) != null;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
@function k-meta-is-percentage( $value ) {
|
|
872
|
+
@return k-meta-is-number( $value ) and k-math-unit( $value ) == "%";
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
@function k-meta-is-length( $value ) {
|
|
876
|
+
@return k-meta-is-relative-length( $value ) or k-meta-is-absolute-length( $value );
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
@function k-meta-is-resolution( $value ) {
|
|
880
|
+
@return k-meta-is-number( $value ) and k-string-index( "dpi" "dpcm" "dppx", k-math-unit( $value ) ) != null;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
@function k-meta-is-position( $value ) {
|
|
884
|
+
@return k-meta-is-length( $value ) or k-meta-is-percentage( $value ) or k-string-index( "top" "right" "bottom" "left" "center", $value ) != null;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
// #endregion
|
|
888
|
+
// #region @import "./_string.import.scss"; -> packages/utils/node_modules/@progress/kendo-theme-core/scss/functions/_string.import.scss
|
|
889
|
+
@function k-string-index( $string, $substring ) {
|
|
890
|
+
@return str-index( $string, $substring );
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
@function k-string-insert( $string, $insert, $index ) {
|
|
894
|
+
@return str-insert( $string, $insert, $index );
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
@function k-string-length( $string ) {
|
|
898
|
+
@return str-length( $string );
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
@function k-string-quote( $string ) {
|
|
902
|
+
@return quote( $string );
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
// See https://www.sassmeister.com/gist/1b4f2da5527830088e4d
|
|
906
|
+
@function k-string-replace( $string, $search, $replace: "" ) {
|
|
907
|
+
@if k-meta-type-of( $string ) == number {
|
|
908
|
+
$string: $string + "";
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
$index: k-string-index( $string, $search );
|
|
912
|
+
|
|
913
|
+
@if $index {
|
|
914
|
+
@return k-string-slice( $string, 1, $index - 1 ) + $replace + k-string-replace( k-string-slice( $string, $index + k-string-length( $search ) ), $search, $replace );
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
@return $string;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
@function k-string-slice( $string, $start-at, $end-at: -1 ) {
|
|
921
|
+
@return str-slice( $string, $start-at, $end-at );
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
@function k-string-to-lower-case( $string ) {
|
|
925
|
+
@return to-lower-case( $string );
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
@function k-string-to-upper-case( $string ) {
|
|
929
|
+
@return to-upper-case( $string );
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
@function k-string-unique-id() {
|
|
933
|
+
@return unique-id();
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
@function k-string-unquote( $string ) {
|
|
937
|
+
@return unquote( $string );
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
// #endregion
|
|
941
|
+
|
|
942
|
+
// #endregion
|
|
943
|
+
|
|
44
944
|
// #endregion
|
|
45
945
|
// #region @import "./_variables.scss"; -> packages/utils/scss/_variables.scss
|
|
46
946
|
$kendo-prefix: k- !default;
|
|
47
947
|
$kendo-important: true !default;
|
|
48
|
-
|
|
948
|
+
|
|
949
|
+
$kendo-theme-colors: () !default;
|
|
950
|
+
|
|
951
|
+
$kendo-font-sizes: () !default;
|
|
952
|
+
|
|
49
953
|
$kendo-spacing: (
|
|
954
|
+
// sass-lint:disable-block leading-zero
|
|
50
955
|
0: 0,
|
|
51
|
-
|
|
956
|
+
1px: 1px,
|
|
957
|
+
0.5: .125rem,
|
|
52
958
|
1: .25rem,
|
|
53
959
|
1.5: .375rem,
|
|
54
960
|
2: .5rem,
|
|
55
|
-
2.5:
|
|
961
|
+
2.5: .625rem,
|
|
56
962
|
3: .75rem,
|
|
57
963
|
3.5: .875rem,
|
|
58
964
|
4: 1rem,
|
|
965
|
+
4.5: 1.125rem,
|
|
59
966
|
5: 1.25rem,
|
|
967
|
+
5.5: 1.375rem,
|
|
60
968
|
6: 1.5rem,
|
|
969
|
+
6.5: 1.625rem,
|
|
61
970
|
7: 1.75rem,
|
|
971
|
+
7.5: 1.875rem,
|
|
62
972
|
8: 2rem,
|
|
63
973
|
9: 2.25rem,
|
|
64
974
|
10: 2.5rem,
|
|
65
975
|
11: 2.75rem,
|
|
66
976
|
12: 3rem,
|
|
977
|
+
13: 3.25rem,
|
|
67
978
|
14: 3.5rem,
|
|
979
|
+
15: 3.75rem,
|
|
68
980
|
16: 4rem,
|
|
981
|
+
17: 4.25rem,
|
|
982
|
+
18: 4.5rem,
|
|
983
|
+
19: 4.75rem,
|
|
69
984
|
20: 5rem,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
985
|
+
21: 5.25rem,
|
|
986
|
+
22: 5.5rem,
|
|
987
|
+
23: 5.75rem,
|
|
988
|
+
24: 6rem
|
|
74
989
|
) !default;
|
|
75
|
-
|
|
990
|
+
|
|
991
|
+
$kendo-sizing: k-map-merge( $kendo-spacing, (
|
|
76
992
|
// sass-lint:disable-block indentation
|
|
77
993
|
"auto": auto,
|
|
78
994
|
"1/2": 50%,
|
|
@@ -107,6 +1023,15 @@ $kendo-sizing: map-merge( $kendo-spacing, (
|
|
|
107
1023
|
"fit": fit-content
|
|
108
1024
|
)) !default;
|
|
109
1025
|
|
|
1026
|
+
$kendo-border-radii: (
|
|
1027
|
+
DEFAULT: .25rem,
|
|
1028
|
+
0: 0,
|
|
1029
|
+
sm: .125rem,
|
|
1030
|
+
md: .25rem,
|
|
1031
|
+
lg: .5rem,
|
|
1032
|
+
full: 9999px
|
|
1033
|
+
) !default;
|
|
1034
|
+
|
|
110
1035
|
//
|
|
111
1036
|
|
|
112
1037
|
$kendo-utils: (
|
|
@@ -117,8 +1042,9 @@ $kendo-utils: (
|
|
|
117
1042
|
// Layout
|
|
118
1043
|
"aspect-ratio": (
|
|
119
1044
|
auto: auto,
|
|
120
|
-
|
|
121
|
-
|
|
1045
|
+
1: 1,
|
|
1046
|
+
square: k-string-unquote("1 / 1"),
|
|
1047
|
+
video: k-string-unquote("16 / 9")
|
|
122
1048
|
),
|
|
123
1049
|
"container": (),
|
|
124
1050
|
"columns": (),
|
|
@@ -317,7 +1243,7 @@ $kendo-utils: (
|
|
|
317
1243
|
10: span 10 / span 10,
|
|
318
1244
|
11: span 11 / span 11,
|
|
319
1245
|
12: span 12 / span 12,
|
|
320
|
-
full: unquote("1 / -1"),
|
|
1246
|
+
full: k-string-unquote("1 / -1"),
|
|
321
1247
|
auto: auto
|
|
322
1248
|
),
|
|
323
1249
|
"grid-row-start": (
|
|
@@ -372,7 +1298,8 @@ $kendo-utils: (
|
|
|
372
1298
|
row: row,
|
|
373
1299
|
col: column,
|
|
374
1300
|
row-dense: row dense,
|
|
375
|
-
col-dense: column dense
|
|
1301
|
+
col-dense: column dense,
|
|
1302
|
+
unset: unset
|
|
376
1303
|
),
|
|
377
1304
|
"grid-auto-columns": (
|
|
378
1305
|
auto: auto,
|
|
@@ -469,7 +1396,7 @@ $kendo-utils: (
|
|
|
469
1396
|
"space-between": (),
|
|
470
1397
|
|
|
471
1398
|
// Sizing
|
|
472
|
-
"width": map-merge( $kendo-sizing, (
|
|
1399
|
+
"width": k-map-merge( $kendo-sizing, (
|
|
473
1400
|
// sass-lint:disable-block indentation
|
|
474
1401
|
screen: 100vw
|
|
475
1402
|
)),
|
|
@@ -490,7 +1417,7 @@ $kendo-utils: (
|
|
|
490
1417
|
max: max-content,
|
|
491
1418
|
fit: fit-content
|
|
492
1419
|
),
|
|
493
|
-
"height": map-merge( $kendo-sizing, (
|
|
1420
|
+
"height": k-map-merge( $kendo-sizing, (
|
|
494
1421
|
// sass-lint:disable-block indentation
|
|
495
1422
|
screen: 100vh
|
|
496
1423
|
)),
|
|
@@ -542,7 +1469,14 @@ $kendo-utils: (
|
|
|
542
1469
|
center,
|
|
543
1470
|
justify
|
|
544
1471
|
),
|
|
545
|
-
"text-color": (
|
|
1472
|
+
"text-color": k-map-merge( $kendo-theme-colors, (
|
|
1473
|
+
// sass-lint:disable-block indentation
|
|
1474
|
+
"inherit": inherit,
|
|
1475
|
+
"current": currentColor,
|
|
1476
|
+
"transparent": transparent,
|
|
1477
|
+
"black": black,
|
|
1478
|
+
"white": white
|
|
1479
|
+
)),
|
|
546
1480
|
"text-decoration": (),
|
|
547
1481
|
"text-decoration-width": (),
|
|
548
1482
|
"text-decoration-style": (),
|
|
@@ -568,6 +1502,13 @@ $kendo-utils: (
|
|
|
568
1502
|
"word-break": (),
|
|
569
1503
|
|
|
570
1504
|
// Background
|
|
1505
|
+
"background-color": k-map-merge( $kendo-theme-colors, (
|
|
1506
|
+
// sass-lint:disable-block indentation
|
|
1507
|
+
"inherit": inherit,
|
|
1508
|
+
"transparent": transparent,
|
|
1509
|
+
"black": black,
|
|
1510
|
+
"white": white
|
|
1511
|
+
)),
|
|
571
1512
|
|
|
572
1513
|
// Border
|
|
573
1514
|
"border-width": (
|
|
@@ -585,16 +1526,15 @@ $kendo-utils: (
|
|
|
585
1526
|
hidden,
|
|
586
1527
|
none
|
|
587
1528
|
),
|
|
588
|
-
"border-color": (
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
),
|
|
1529
|
+
"border-color": k-map-merge( $kendo-theme-colors, (
|
|
1530
|
+
// sass-lint:disable-block indentation
|
|
1531
|
+
"inherit": inherit,
|
|
1532
|
+
"current": currentColor,
|
|
1533
|
+
"transparent": transparent,
|
|
1534
|
+
"black": black,
|
|
1535
|
+
"white": white
|
|
1536
|
+
)),
|
|
1537
|
+
"border-radius": $kendo-border-radii,
|
|
598
1538
|
"outline-width": (
|
|
599
1539
|
DEFAULT: 1px,
|
|
600
1540
|
0: 0,
|
|
@@ -641,13 +1581,15 @@ $kendo-utils: (
|
|
|
641
1581
|
// Transform
|
|
642
1582
|
"flip": true,
|
|
643
1583
|
"scale": (
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
1584
|
+
// sass-lint:disable-block leading-zero
|
|
1585
|
+
0: 0,
|
|
1586
|
+
0.25: .25,
|
|
1587
|
+
0.5: .5,
|
|
1588
|
+
0.75: .75,
|
|
1589
|
+
1: 1,
|
|
1590
|
+
1.25: 1.25,
|
|
1591
|
+
1.5: 1.5,
|
|
1592
|
+
2: 2
|
|
651
1593
|
),
|
|
652
1594
|
"rotate": (
|
|
653
1595
|
0: 0deg,
|
|
@@ -659,7 +1601,7 @@ $kendo-utils: (
|
|
|
659
1601
|
270: 270deg,
|
|
660
1602
|
315: 315deg
|
|
661
1603
|
),
|
|
662
|
-
"translate": map-remove( $kendo-sizing, "auto", "min", "max", "fit" ),
|
|
1604
|
+
"translate": k-map-remove( $kendo-sizing, "auto", "min", "max", "fit" ),
|
|
663
1605
|
"skew": (
|
|
664
1606
|
0: 0deg,
|
|
665
1607
|
1: 1deg,
|
|
@@ -796,26 +1738,26 @@ $kendo-utils: (
|
|
|
796
1738
|
// #region @import "./_mixins.scss"; -> packages/utils/scss/_mixins.scss
|
|
797
1739
|
@mixin generate-utils( $name, $props, $values, $function: "", $important: $kendo-important ) {
|
|
798
1740
|
@if $values {
|
|
799
|
-
$_props: if( type-of($props) == list, $props, ( $props ) );
|
|
800
|
-
$_fn: if( function-exists( $function ), get-function( $function ), null );
|
|
1741
|
+
$_props: if( k-meta-type-of($props) == list, $props, ( $props ) );
|
|
1742
|
+
$_fn: if( k-meta-function-exists( $function ), k-meta-get-function( $function ), null );
|
|
801
1743
|
|
|
802
1744
|
@each $key, $val in $values {
|
|
803
|
-
$_key: escape-class-name( $key );
|
|
804
|
-
$_val: if( type-of($values) == list, $key, $val );
|
|
805
|
-
$_name: escape-class-name( $name );
|
|
1745
|
+
$_key: k-escape-class-name( $key );
|
|
1746
|
+
$_val: if( k-meta-type-of($values) == list, $key, $val );
|
|
1747
|
+
$_name: k-escape-class-name( $name );
|
|
806
1748
|
$_selector: if( $_key == DEFAULT, #{$kendo-prefix}#{$_name}, #{$kendo-prefix}#{$_name}-#{$_key});
|
|
807
1749
|
|
|
808
1750
|
@if $important != only {
|
|
809
1751
|
.#{$_selector} {
|
|
810
1752
|
@each $prop in $_props {
|
|
811
|
-
#{$prop}: if( $_fn, call($_fn, $_val), $_val );
|
|
1753
|
+
#{$prop}: if( $_fn, k-meta-call($_fn, $_val), $_val );
|
|
812
1754
|
}
|
|
813
1755
|
}
|
|
814
1756
|
}
|
|
815
1757
|
@if $important {
|
|
816
1758
|
.\!#{$_selector} {
|
|
817
1759
|
@each $prop in $_props {
|
|
818
|
-
#{$prop}: if( $_fn, call($_fn, $_val), $_val ) !important; // sass-lint:disable-line no-important
|
|
1760
|
+
#{$prop}: if( $_fn, k-meta-call($_fn, $_val), $_val ) !important; // sass-lint:disable-line no-important
|
|
819
1761
|
}
|
|
820
1762
|
}
|
|
821
1763
|
}
|
|
@@ -827,11 +1769,11 @@ $kendo-utils: (
|
|
|
827
1769
|
|
|
828
1770
|
// #region @import "./accessibility/index.import.scss"; -> packages/utils/scss/accessibility/index.import.scss
|
|
829
1771
|
// #region @import "./_screen-readers.scss"; -> packages/utils/scss/accessibility/_screen-readers.scss
|
|
830
|
-
$kendo-utils-accessibility: map-get( $kendo-utils, "accessibility" ) !default;
|
|
1772
|
+
$kendo-utils-accessibility: k-map-get( $kendo-utils, "accessibility" ) !default;
|
|
831
1773
|
|
|
832
1774
|
@if $kendo-utils-accessibility {
|
|
1775
|
+
/// This class could be assigned to elements which should be visually hidden, but remain accessible for screen readers.
|
|
833
1776
|
/// @name .k-sr-only
|
|
834
|
-
/// @description This class could be assigned to elements which should be visually hidden, but remain accessible for screen readers.
|
|
835
1777
|
/// @group accessibility
|
|
836
1778
|
.#{$kendo-prefix}sr-only {
|
|
837
1779
|
margin: -1px;
|
|
@@ -861,149 +1803,269 @@ $kendo-utils-accessibility: map-get( $kendo-utils, "accessibility" ) !default;
|
|
|
861
1803
|
// #endregion
|
|
862
1804
|
// #region @import "./layout/index.import.scss"; -> packages/utils/scss/layout/index.import.scss
|
|
863
1805
|
// #region @import "./_aspect-ratio.scss"; -> packages/utils/scss/layout/_aspect-ratio.scss
|
|
864
|
-
//
|
|
1806
|
+
// Aspect-ratio documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio.
|
|
1807
|
+
|
|
1808
|
+
/// This is equivalent to `aspect-ratio: auto;`. Replaced elements with an intrinsic aspect ratio use that aspect ratio, otherwise the box has no preferred aspect ratio. Size calculations involving intrinsic aspect ratio always work with the content box dimensions.
|
|
1809
|
+
/// @name .k-aspect-ratio-auto
|
|
1810
|
+
/// @group aspect-ratio
|
|
1811
|
+
/// @contextType css
|
|
1812
|
+
|
|
1813
|
+
/// This is equivalent to `aspect-ratio: 1;`. The box's preferred aspect ratio is the specified ratio of 1. Size calculations involving preferred aspect ratio work with the dimensions of the box specified by box-sizing.
|
|
1814
|
+
/// @name .k-aspect-ratio-1
|
|
1815
|
+
/// @group aspect-ratio
|
|
1816
|
+
/// @contextType css
|
|
865
1817
|
|
|
866
|
-
|
|
1818
|
+
/// This is equivalent to `aspect-ratio: 1 / 1;`. The box's preferred aspect ratio is the specified ratio of 1. Size calculations involving preferred aspect ratio work with the dimensions of the box specified by box-sizing.
|
|
1819
|
+
/// @name .k-aspect-ratio-square
|
|
1820
|
+
/// @group aspect-ratio
|
|
1821
|
+
/// @contextType css
|
|
1822
|
+
|
|
1823
|
+
/// This is equivalent to `aspect-ratio: 16 / 9;`. The box's preferred aspect ratio is the specified ratio of 16 : 9. Size calculations involving preferred aspect ratio work with the dimensions of the box specified by box-sizing.
|
|
1824
|
+
/// @name .k-aspect-ratio-video
|
|
1825
|
+
/// @group aspect-ratio
|
|
1826
|
+
/// @contextType css
|
|
1827
|
+
|
|
1828
|
+
$kendo-utils-aspect-ratio: k-map-get( $kendo-utils, "aspect-ratio" ) !default;
|
|
867
1829
|
|
|
868
1830
|
@include generate-utils( ratio, aspect-ratio, $kendo-utils-aspect-ratio );
|
|
869
1831
|
|
|
1832
|
+
|
|
1833
|
+
// Legacy aliases
|
|
1834
|
+
@include generate-utils( aspect-ratio, aspect-ratio, $kendo-utils-aspect-ratio );
|
|
1835
|
+
|
|
870
1836
|
// #endregion
|
|
871
1837
|
// #region @import "./_display.scss"; -> packages/utils/scss/layout/_display.scss
|
|
1838
|
+
/// This is equivalent to `display: none;`. Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.
|
|
872
1839
|
/// @name .k-d-none
|
|
873
|
-
/// @description This is equivalent to `display: none;`. Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.
|
|
874
1840
|
/// @group display
|
|
1841
|
+
/// @contextType css
|
|
875
1842
|
|
|
1843
|
+
/// This is equivalent to `display: block;`. The element generates a block element box, generating line breaks both before and after the element when in the normal flow.
|
|
876
1844
|
/// @name .k-d-block
|
|
877
|
-
/// @description This is equivalent to `display: block;`. The element generates a block element box, generating line breaks both before and after the element when in the normal flow.
|
|
878
1845
|
/// @group display
|
|
1846
|
+
/// @contextType css
|
|
879
1847
|
|
|
1848
|
+
/// This is equivalent to `display: inline;`. The element generates one or more inline element boxes that do not generate line breaks before or after themselves. In normal flow, the next element will be on the same line if there is space.
|
|
880
1849
|
/// @name .k-d-inline
|
|
881
|
-
/// @description This is equivalent to `display: inline;`. The element generates one or more inline element boxes that do not generate line breaks before or after themselves. In normal flow, the next element will be on the same line if there is space.
|
|
882
1850
|
/// @group display
|
|
1851
|
+
/// @contextType css
|
|
883
1852
|
|
|
1853
|
+
/// This is equivalent to `display: inline-block;`. The element generates a block element box that will be flowed with surrounding content as if it were a single inline box (behaving much like a replaced element would).
|
|
884
1854
|
/// @name .k-d-inline-block
|
|
885
|
-
/// @description This is equivalent to `display: inline-block;`. The element generates a block element box that will be flowed with surrounding content as if it were a single inline box (behaving much like a replaced element would).
|
|
886
1855
|
/// @group display
|
|
1856
|
+
/// @contextType css
|
|
887
1857
|
|
|
1858
|
+
/// This is equivalent to `display: flex;`. The element behaves like a block element and lays out its content according to the flexbox model.
|
|
888
1859
|
/// @name .k-d-flex
|
|
889
|
-
/// @description This is equivalent to `display: flex;`. The element behaves like a block element and lays out its content according to the flexbox model.
|
|
890
1860
|
/// @group display
|
|
1861
|
+
/// @contextType css
|
|
891
1862
|
|
|
1863
|
+
/// This is equivalent to `display: inline-flex;`. The element behaves like an inline element and lays out its content according to the flexbox model.
|
|
892
1864
|
/// @name .k-d-inline-flex
|
|
893
|
-
/// @description This is equivalent to `display: inline-flex;`. The element behaves like an inline element and lays out its content according to the flexbox model.
|
|
894
1865
|
/// @group display
|
|
1866
|
+
/// @contextType css
|
|
895
1867
|
|
|
1868
|
+
/// This is equivalent to `display: grid`. It defines the element as a grid container and establishes a new grid formatting context for its contents.
|
|
896
1869
|
/// @name .k-d-grid
|
|
897
|
-
/// @description This is equivalent to `display: grid`. It defines the element as a grid container and establishes a new grid formatting context for its contents.
|
|
898
1870
|
/// @group display
|
|
1871
|
+
/// @contextType css
|
|
899
1872
|
|
|
1873
|
+
/// This is equivalent to `display: inline-grid`. It defines the element as a grid container and establishes a new grid formatting context for its contents.
|
|
900
1874
|
/// @name .k-d-inline-grid
|
|
901
|
-
/// @description This is equivalent to `display: inline-grid`. It defines the element as a grid container and establishes a new grid formatting context for its contents.
|
|
902
1875
|
/// @group display
|
|
1876
|
+
/// @contextType css
|
|
903
1877
|
|
|
1878
|
+
/// This is equivalent to `display: table;`. These elements behave like HTML `<table>` elements. It defines a block-level box.
|
|
904
1879
|
/// @name .k-d-table
|
|
905
|
-
/// @description This is equivalent to `display: table;`. These elements behave like HTML `<table>` elements. It defines a block-level box.
|
|
906
1880
|
/// @group display
|
|
1881
|
+
/// @contextType css
|
|
907
1882
|
|
|
1883
|
+
/// This is equivalent to `display: inline-table;`. The inline-table value does not have a direct mapping in HTML. It behaves like an HTML `<table>` element, but as an inline box, rather than a block-level box. Inside the table box is a block-level context.
|
|
908
1884
|
/// @name .k-d-inline-table
|
|
909
|
-
/// @description This is equivalent to `display: inline-table;`. The inline-table value does not have a direct mapping in HTML. It behaves like an HTML `<table>` element, but as an inline box, rather than a block-level box. Inside the table box is a block-level context.
|
|
910
1885
|
/// @group display
|
|
1886
|
+
/// @contextType css
|
|
911
1887
|
|
|
1888
|
+
/// This is equivalent to `display: list-item;`. These elements behave like HTML `<LI>` elements. It defines a block-level box.
|
|
912
1889
|
/// @name .k-d-list-item
|
|
913
|
-
/// @description This is equivalent to `display: list-item;`. These elements behave like HTML `<LI>` elements. It defines a block-level box.
|
|
914
1890
|
/// @group display
|
|
1891
|
+
/// @contextType css
|
|
915
1892
|
|
|
916
|
-
|
|
1893
|
+
// Display utility classes
|
|
1894
|
+
$kendo-utils-display: k-map-get( $kendo-utils, "display" ) !default;
|
|
917
1895
|
|
|
918
1896
|
@include generate-utils( d, display, $kendo-utils-display );
|
|
919
1897
|
|
|
1898
|
+
|
|
1899
|
+
// Legacy alias
|
|
1900
|
+
@include generate-utils( display, display, $kendo-utils-display );
|
|
1901
|
+
.#{$kendo-prefix}d-flex-row { @extend .#{$kendo-prefix}d-flex, .#{$kendo-prefix}flex-row !optional; }
|
|
1902
|
+
.\!#{$kendo-prefix}d-flex-row { @extend .\!#{$kendo-prefix}d-flex, .\!#{$kendo-prefix}flex-row !optional; } // sass-lint:disable-line class-name-format
|
|
1903
|
+
.#{$kendo-prefix}d-flex-col { @extend .#{$kendo-prefix}d-flex, .#{$kendo-prefix}flex-col !optional; }
|
|
1904
|
+
.\!#{$kendo-prefix}d-flex-col { @extend .\!#{$kendo-prefix}d-flex, .\!#{$kendo-prefix}flex-row !optional; } // sass-lint:disable-line class-name-format
|
|
1905
|
+
|
|
920
1906
|
// #endregion
|
|
921
1907
|
// #region @import "./_float.scss"; -> packages/utils/scss/layout/_float.scss
|
|
922
|
-
//
|
|
1908
|
+
// Float documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/float.
|
|
1909
|
+
|
|
1910
|
+
/// This is equivalent to `float: left;`. The element must float on the left side of its containing block.
|
|
1911
|
+
/// @name .k-float-left
|
|
1912
|
+
/// @group float
|
|
1913
|
+
/// @contextType css
|
|
1914
|
+
|
|
1915
|
+
/// This is equivalent to `float: right;`. The element must float on the right side of its containing block.
|
|
1916
|
+
/// @name .k-float-right
|
|
1917
|
+
/// @group float
|
|
1918
|
+
/// @contextType css
|
|
923
1919
|
|
|
924
|
-
|
|
1920
|
+
/// This is equivalent to `float: none;`. The element must not float.
|
|
1921
|
+
/// @name .k-float-none
|
|
1922
|
+
/// @group float
|
|
1923
|
+
/// @contextType css
|
|
1924
|
+
|
|
1925
|
+
$kendo-utils-float: k-map-get( $kendo-utils, "float" ) !default;
|
|
925
1926
|
|
|
926
1927
|
@include generate-utils( float, float, $kendo-utils-float );
|
|
927
1928
|
|
|
928
1929
|
// #endregion
|
|
929
1930
|
// #region @import "./_clear.scss"; -> packages/utils/scss/layout/_clear.scss
|
|
930
|
-
//
|
|
1931
|
+
// Clear documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/clear.
|
|
1932
|
+
|
|
1933
|
+
/// This is equivalent to `clear: left;`. Is a keyword indicating that the element is moved down to clear past left floats.
|
|
1934
|
+
/// @name .k-clear-left
|
|
1935
|
+
/// @group float
|
|
1936
|
+
/// @contextType css
|
|
1937
|
+
|
|
1938
|
+
/// This is equivalent to `clear: right;`. Is a keyword indicating that the element is moved down to clear past right floats.
|
|
1939
|
+
/// @name .k-clear-right
|
|
1940
|
+
/// @group float
|
|
1941
|
+
/// @contextType css
|
|
931
1942
|
|
|
932
|
-
|
|
1943
|
+
/// This is equivalent to `clear: both;`. Is a keyword indicating that the element is moved down to clear past both left and right floats.
|
|
1944
|
+
/// @name .k-clear-both
|
|
1945
|
+
/// @group float
|
|
1946
|
+
/// @contextType css
|
|
1947
|
+
|
|
1948
|
+
/// This is equivalent to `clear: none;`. Is a keyword indicating that the element is not moved down to clear past floating elements.
|
|
1949
|
+
/// @name .k-clear-none
|
|
1950
|
+
/// @group float
|
|
1951
|
+
/// @contextType css
|
|
1952
|
+
|
|
1953
|
+
$kendo-utils-clear: k-map-get( $kendo-utils, "clear" ) !default;
|
|
933
1954
|
|
|
934
1955
|
@include generate-utils( clear, clear, $kendo-utils-clear );
|
|
935
1956
|
|
|
936
1957
|
// #endregion
|
|
937
1958
|
// #region @import "./_overflow.scss"; -> packages/utils/scss/layout/_overflow.scss
|
|
1959
|
+
/// This is equivalent to `overflow: auto;`. Depends on the user agent. If content fits inside the padding box, it looks the same as visible, but still establishes a new block formatting context. Desktop browsers provide scrollbar if content overflows.
|
|
938
1960
|
/// @name .k-overflow-auto
|
|
939
|
-
/// @description This is equivalent to `overflow: auto;`. Depends on the user agent. If content fits inside the padding box, it looks the same as visible, but still establishes a new block formatting context. Desktop browsers provide scrollbar if content overflows.
|
|
940
1961
|
/// @group overflow
|
|
1962
|
+
/// @contextType css
|
|
941
1963
|
|
|
1964
|
+
/// This is equivalent to `overflow: hidden;`. Content is clipped if necessary to fit the padding box. No scrollbar is provided, and no support for allowing the user to scroll (such as by dragging or using a scroll wheel) is allowed. The content can be scrolled programmatically (for example, by setting the value of a property such as offsetLeft), so the element is still a scroll container.
|
|
942
1965
|
/// @name .k-overflow-hidden
|
|
943
|
-
/// @description This is equivalent to `overflow: hidden;`. Content is clipped if necessary to fit the padding box. No scrollbar is provided, and no support for allowing the user to scroll (such as by dragging or using a scroll wheel) is allowed. The content can be scrolled programmatically (for example, by setting the value of a property such as offsetLeft), so the element is still a scroll container.
|
|
944
1966
|
/// @group overflow
|
|
1967
|
+
/// @contextType css
|
|
945
1968
|
|
|
1969
|
+
/// This is equivalent to `overflow: visible;`. Content is not clipped and may be rendered outside the padding box.
|
|
946
1970
|
/// @name .k-overflow-visible
|
|
947
|
-
/// @description This is equivalent to `overflow: visible;`. Content is not clipped and may be rendered outside the padding box.
|
|
948
1971
|
/// @group overflow
|
|
1972
|
+
/// @contextType css
|
|
949
1973
|
|
|
1974
|
+
/// This is equivalent to `overflow: scroll;`. Content is clipped if necessary to fit the padding box. Browsers always display scrollbar whether or not any content is actually clipped, preventing scrollbar from appearing or disappearing as content changes. Printers may still print overflowing content.
|
|
950
1975
|
/// @name .k-overflow-scroll
|
|
951
|
-
/// @description This is equivalent to `overflow: scroll;`. Content is clipped if necessary to fit the padding box. Browsers always display scrollbar whether or not any content is actually clipped, preventing scrollbar from appearing or disappearing as content changes. Printers may still print overflowing content.
|
|
952
1976
|
/// @group overflow
|
|
1977
|
+
/// @contextType css
|
|
953
1978
|
|
|
1979
|
+
/// This is equivalent to `overflow: clip;`. Like for hidden, the content is clipped to the element's padding box. The difference between clip and hidden is that the clip keyword also forbids all scrolling, including programmatic scrolling.
|
|
954
1980
|
/// @name .k-overflow-clip
|
|
955
|
-
/// @description This is equivalent to `overflow: clip;`. Like for hidden, the content is clipped to the element's padding box. The difference between clip and hidden is that the clip keyword also forbids all scrolling, including programmatic scrolling.
|
|
956
1981
|
/// @group overflow
|
|
1982
|
+
/// @contextType css
|
|
957
1983
|
|
|
1984
|
+
/// This is equivalent to `overflow-x: auto;`.
|
|
958
1985
|
/// @name .k-overflow-x-auto
|
|
959
|
-
/// @description This is equivalent to `overflow-x: auto;`.
|
|
960
1986
|
/// @group overflow
|
|
1987
|
+
/// @contextType css
|
|
961
1988
|
|
|
1989
|
+
/// This is equivalent to `overflow-x: hidden;`.
|
|
962
1990
|
/// @name .k-overflow-x-hidden
|
|
963
|
-
/// @description This is equivalent to `overflow-x: hidden;`.
|
|
964
1991
|
/// @group overflow
|
|
1992
|
+
/// @contextType css
|
|
965
1993
|
|
|
1994
|
+
/// This is equivalent to `overflow-x: visible;`.
|
|
966
1995
|
/// @name .k-overflow-x-visible
|
|
967
|
-
/// @description This is equivalent to `overflow-x: visible;`.
|
|
968
1996
|
/// @group overflow
|
|
1997
|
+
/// @contextType css
|
|
969
1998
|
|
|
1999
|
+
/// This is equivalent to `overflow-x: scroll;`.
|
|
970
2000
|
/// @name .k-overflow-x-scroll
|
|
971
|
-
/// @description This is equivalent to `overflow-x: scroll;`.
|
|
972
2001
|
/// @group overflow
|
|
2002
|
+
/// @contextType css
|
|
973
2003
|
|
|
2004
|
+
/// This is equivalent to `overflow-x: clip;`.
|
|
974
2005
|
/// @name .k-overflow-x-clip
|
|
975
|
-
/// @description This is equivalent to `overflow-x: clip;`.
|
|
976
2006
|
/// @group overflow
|
|
2007
|
+
/// @contextType css
|
|
977
2008
|
|
|
2009
|
+
/// This is equivalent to `overflow-y: auto;`.
|
|
978
2010
|
/// @name .k-overflow-y-auto
|
|
979
|
-
/// @description This is equivalent to `overflow-y: auto;`.
|
|
980
2011
|
/// @group overflow
|
|
2012
|
+
/// @contextType css
|
|
981
2013
|
|
|
2014
|
+
/// This is equivalent to `overflow-y: hidden;`.
|
|
982
2015
|
/// @name .k-overflow-y-hidden
|
|
983
|
-
/// @description This is equivalent to `overflow-y: hidden;`.
|
|
984
2016
|
/// @group overflow
|
|
2017
|
+
/// @contextType css
|
|
985
2018
|
|
|
2019
|
+
/// This is equivalent to `overflow-y: visible;`.
|
|
986
2020
|
/// @name .k-overflow-y-visible
|
|
987
|
-
/// @description This is equivalent to `overflow-y: visible;`.
|
|
988
2021
|
/// @group overflow
|
|
2022
|
+
/// @contextType css
|
|
989
2023
|
|
|
2024
|
+
/// This is equivalent to `overflow-y: scroll;`.
|
|
990
2025
|
/// @name .k-overflow-y-scroll
|
|
991
|
-
/// @description This is equivalent to `overflow-y: scroll;`.
|
|
992
2026
|
/// @group overflow
|
|
2027
|
+
/// @contextType css
|
|
993
2028
|
|
|
2029
|
+
/// This is equivalent to `overflow-y: clip;`.
|
|
994
2030
|
/// @name .k-overflow-y-clip
|
|
995
|
-
/// @description This is equivalent to `overflow-y: clip;`.
|
|
996
2031
|
/// @group overflow
|
|
2032
|
+
/// @contextType css
|
|
997
2033
|
|
|
998
|
-
|
|
2034
|
+
// Overflow utility classes
|
|
2035
|
+
$kendo-utils-overflow: k-map-get( $kendo-utils, "overflow" ) !default;
|
|
999
2036
|
|
|
1000
2037
|
@include generate-utils( overflow, overflow, $kendo-utils-overflow );
|
|
1001
2038
|
|
|
1002
2039
|
// #endregion
|
|
1003
2040
|
// #region @import "./_position.scss"; -> packages/utils/scss/layout/_position.scss
|
|
1004
|
-
//
|
|
2041
|
+
// Position documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/position.
|
|
1005
2042
|
|
|
1006
|
-
|
|
2043
|
+
/// This is equivalent to `position: static;`. The element is positioned according to the normal flow of the document. The top, right, bottom, left, and z-index properties have no effect. This is the default value.
|
|
2044
|
+
/// @name .k-pos-static
|
|
2045
|
+
/// @group position
|
|
2046
|
+
/// @contextType css
|
|
2047
|
+
|
|
2048
|
+
/// This is equivalent to `position: relative;`. The element is positioned according to the normal flow of the document, and then offset relative to itself based on the values of top, right, bottom, and left. The offset does not affect the position of any other elements; thus, the space given for the element in the page layout is the same as if position were static.
|
|
2049
|
+
/// @name .k-pos-relative
|
|
2050
|
+
/// @group position
|
|
2051
|
+
/// @contextType css
|
|
2052
|
+
|
|
2053
|
+
/// This is equivalent to `position: absolute;`. The element is removed from the normal document flow, and no space is created for the element in the page layout. It is positioned relative to its closest positioned ancestor, if any; otherwise, it is placed relative to the initial containing block. Its final position is determined by the values of top, right, bottom, and left.
|
|
2054
|
+
/// @name .k-pos-absolute
|
|
2055
|
+
/// @group position
|
|
2056
|
+
/// @contextType css
|
|
2057
|
+
|
|
2058
|
+
/// This is equivalent to `position: fixed;`. The element is removed from the normal document flow, and no space is created for the element in the page layout. It is positioned relative to the initial containing block established by the viewport, except when one of its ancestors has a transform, perspective, or filter property set to something other than none (see the CSS Transforms Spec), in which case that ancestor behaves as the containing block. (Note that there are browser inconsistencies with perspective and filter contributing to containing block formation.) Its final position is determined by the values of top, right, bottom, and left.
|
|
2059
|
+
/// @name .k-pos-fixed
|
|
2060
|
+
/// @group position
|
|
2061
|
+
/// @contextType css
|
|
2062
|
+
|
|
2063
|
+
/// This is equivalent to `position: sticky;`. The element is positioned according to the normal flow of the document, and then offset relative to its nearest scrolling ancestor and containing block (nearest block-level ancestor), including table-related elements, based on the values of top, right, bottom, and left. The offset does not affect the position of any other elements.
|
|
2064
|
+
/// @name .k-pos-sticky
|
|
2065
|
+
/// @group position
|
|
2066
|
+
/// @contextType css
|
|
2067
|
+
|
|
2068
|
+
$kendo-utils-position: k-map-get( $kendo-utils, "position" ) !default;
|
|
1007
2069
|
|
|
1008
2070
|
@include generate-utils( pos, position, $kendo-utils-position );
|
|
1009
2071
|
|
|
@@ -1022,7 +2084,7 @@ $kendo-utils-position: map-get( $kendo-utils, "position" ) !default;
|
|
|
1022
2084
|
|
|
1023
2085
|
// TODO DOCS
|
|
1024
2086
|
|
|
1025
|
-
$kendo-utils-inset: map-get( $kendo-utils, "inset" ) !default;
|
|
2087
|
+
$kendo-utils-inset: k-map-get( $kendo-utils, "inset" ) !default;
|
|
1026
2088
|
|
|
1027
2089
|
@include generate-utils( inset, inset, $kendo-utils-inset );
|
|
1028
2090
|
@include generate-utils( inset-x, inset-inline, $kendo-utils-inset );
|
|
@@ -1034,30 +2096,30 @@ $kendo-utils-inset: map-get( $kendo-utils, "inset" ) !default;
|
|
|
1034
2096
|
@include generate-utils( top-left, ( top, left ), $kendo-utils-inset );
|
|
1035
2097
|
@include generate-utils( top-right, ( top, right ), $kendo-utils-inset );
|
|
1036
2098
|
@include generate-utils( bottom-left, ( bottom, left ), $kendo-utils-inset );
|
|
1037
|
-
@include generate-utils( bottom-right, ( bottom, right), $kendo-utils-inset );
|
|
2099
|
+
@include generate-utils( bottom-right, ( bottom, right ), $kendo-utils-inset );
|
|
1038
2100
|
|
|
1039
2101
|
.#{$kendo-prefix}top-start,
|
|
1040
2102
|
.#{$kendo-prefix}pos-top-start {
|
|
1041
2103
|
top: 0;
|
|
1042
|
-
|
|
2104
|
+
inset-inline-start: 0;
|
|
1043
2105
|
}
|
|
1044
2106
|
|
|
1045
2107
|
.#{$kendo-prefix}top-end,
|
|
1046
2108
|
.#{$kendo-prefix}pos-top-end {
|
|
1047
2109
|
top: 0;
|
|
1048
|
-
|
|
2110
|
+
inset-inline-end: 0;
|
|
1049
2111
|
}
|
|
1050
2112
|
|
|
1051
2113
|
.#{$kendo-prefix}bottom-start,
|
|
1052
2114
|
.#{$kendo-prefix}pos-bottom-start {
|
|
1053
2115
|
bottom: 0;
|
|
1054
|
-
|
|
2116
|
+
inset-inline-start: 0;
|
|
1055
2117
|
}
|
|
1056
2118
|
|
|
1057
2119
|
.#{$kendo-prefix}bottom-end,
|
|
1058
2120
|
.#{$kendo-prefix}pos-bottom-end {
|
|
1059
2121
|
bottom: 0;
|
|
1060
|
-
|
|
2122
|
+
inset-inline-end: 0;
|
|
1061
2123
|
}
|
|
1062
2124
|
|
|
1063
2125
|
.#{$kendo-prefix}top-center,
|
|
@@ -1093,6 +2155,26 @@ $kendo-utils-inset: map-get( $kendo-utils, "inset" ) !default;
|
|
|
1093
2155
|
}
|
|
1094
2156
|
|
|
1095
2157
|
|
|
2158
|
+
/// This is equivalent to `top: 0;`.
|
|
2159
|
+
/// @name .k-pos-top
|
|
2160
|
+
/// @group position
|
|
2161
|
+
/// @contextType css
|
|
2162
|
+
|
|
2163
|
+
/// This is equivalent to `right: 0;`.
|
|
2164
|
+
/// @name .k-pos-right
|
|
2165
|
+
/// @group position
|
|
2166
|
+
/// @contextType css
|
|
2167
|
+
|
|
2168
|
+
/// This is equivalent to `bottom: 0;`.
|
|
2169
|
+
/// @name .k-pos-bottom
|
|
2170
|
+
/// @group position
|
|
2171
|
+
/// @contextType css
|
|
2172
|
+
|
|
2173
|
+
/// This is equivalent to `left: 0;`.
|
|
2174
|
+
/// @name .k-pos-left
|
|
2175
|
+
/// @group position
|
|
2176
|
+
/// @contextType css
|
|
2177
|
+
|
|
1096
2178
|
@each $side in (top, right, bottom, left) {
|
|
1097
2179
|
.#{$kendo-prefix}#{$side},
|
|
1098
2180
|
.#{$kendo-prefix}pos-#{$side} { #{$side}: 0; } // sass-lint:disable-line brace-style
|
|
@@ -1102,7 +2184,7 @@ $kendo-utils-inset: map-get( $kendo-utils, "inset" ) !default;
|
|
|
1102
2184
|
// #region @import "./_visibility.scss"; -> packages/utils/scss/layout/_visibility.scss
|
|
1103
2185
|
// TODO DOCS
|
|
1104
2186
|
|
|
1105
|
-
$kendo-utils-visibility: map-get( $kendo-utils, "visibility" ) !default;
|
|
2187
|
+
$kendo-utils-visibility: k-map-get( $kendo-utils, "visibility" ) !default;
|
|
1106
2188
|
|
|
1107
2189
|
@include generate-utils( visibility, visibility, $kendo-utils-visibility );
|
|
1108
2190
|
|
|
@@ -1116,7 +2198,7 @@ $kendo-utils-visibility: map-get( $kendo-utils, "visibility" ) !default;
|
|
|
1116
2198
|
// #region @import "./_zindex.scss"; -> packages/utils/scss/layout/_zindex.scss
|
|
1117
2199
|
// TODO DOCS
|
|
1118
2200
|
|
|
1119
|
-
$kendo-utils-zindex: map-get( $kendo-utils, "zindex" ) !default;
|
|
2201
|
+
$kendo-utils-zindex: k-map-get( $kendo-utils, "zindex" ) !default;
|
|
1120
2202
|
|
|
1121
2203
|
@include generate-utils( z, z-index, $kendo-utils-zindex );
|
|
1122
2204
|
|
|
@@ -1125,118 +2207,162 @@ $kendo-utils-zindex: map-get( $kendo-utils, "zindex" ) !default;
|
|
|
1125
2207
|
// #endregion
|
|
1126
2208
|
// #region @import "./flex-grid/index.import.scss"; -> packages/utils/scss/flex-grid/index.import.scss
|
|
1127
2209
|
// #region @import "./_flex-direction.scss"; -> packages/utils/scss/flex-grid/_flex-direction.scss
|
|
2210
|
+
/// This is equivalent to `flex-direction: row`. This establishes the main-axis to be horizontal, thus defining the direction flex items are placed in the flex container: left to right in `ltr`; right to left in `rtl`.
|
|
1128
2211
|
/// @name .k-flex-row
|
|
1129
|
-
/// @description This is equivalent to `flex-direction: row`. This establishes the main-axis to be horizontal, thus defining the direction flex items are placed in the flex container: left to right in `ltr`; right to left in `rtl`.
|
|
1130
2212
|
/// @group flex-direction
|
|
2213
|
+
/// @contextType css
|
|
1131
2214
|
|
|
2215
|
+
/// This is equivalent to `flex-direction: row-reverse`. This establishes the main-axis to be horizontal, thus defining the direction flex items are placed in the flex container: right to left in `ltr`; left to right in `rtl`.
|
|
1132
2216
|
/// @name .k-flex-row-reverse
|
|
1133
|
-
/// @description This is equivalent to `flex-direction: row-reverse`. This establishes the main-axis to be horizontal, thus defining the direction flex items are placed in the flex container: right to left in `ltr`; left to right in `rtl`.
|
|
1134
2217
|
/// @group flex-direction
|
|
2218
|
+
/// @contextType css
|
|
1135
2219
|
|
|
2220
|
+
/// This is equivalent to `flex-direction: column`. This establishes the main-axis to be vertical, thus defining the direction flex items are placed in the flex container: top to bottom.
|
|
1136
2221
|
/// @name .k-flex-col
|
|
1137
|
-
/// @description This is equivalent to `flex-direction: column`. This establishes the main-axis to be vertical, thus defining the direction flex items are placed in the flex container: top to bottom.
|
|
1138
2222
|
/// @group flex-direction
|
|
2223
|
+
/// @contextType css
|
|
1139
2224
|
|
|
2225
|
+
/// This is equivalent to `flex-direction: column-reverse`. This establishes the main-axis to be vertical, thus defining the direction flex items are placed in the flex container: bottom to top.
|
|
1140
2226
|
/// @name .k-flex-col-reverse
|
|
1141
|
-
/// @description This is equivalent to `flex-direction: column-reverse`. This establishes the main-axis to be vertical, thus defining the direction flex items are placed in the flex container: bottom to top.
|
|
1142
2227
|
/// @group flex-direction
|
|
2228
|
+
/// @contextType css
|
|
1143
2229
|
|
|
1144
|
-
|
|
2230
|
+
// Flex direction utility classes
|
|
2231
|
+
$kendo-utils-flex-direction: k-map-get( $kendo-utils, "flex-direction" ) !default;
|
|
1145
2232
|
|
|
1146
2233
|
@include generate-utils( flex, flex-direction, $kendo-utils-flex-direction );
|
|
1147
2234
|
|
|
2235
|
+
|
|
2236
|
+
// Legacy aliases
|
|
2237
|
+
.#{$kendo-prefix}flex-column { @extend .#{$kendo-prefix}flex-col !optional; }
|
|
2238
|
+
.#{$kendo-prefix}flex-column-reverse { @extend .#{$kendo-prefix}flex-col-reverse !optional; }
|
|
2239
|
+
|
|
1148
2240
|
// #endregion
|
|
1149
2241
|
// #region @import "./_flex-wrap.scss"; -> packages/utils/scss/flex-grid/_flex-wrap.scss
|
|
2242
|
+
/// This is equivalent to `flex-wrap: wrap`. It allows flex items to wrap as needed onto multiple lines, from top to bottom.
|
|
1150
2243
|
/// @name .k-flex-wrap
|
|
1151
|
-
/// @description This is equivalent to `flex-wrap: wrap`. It allows flex items to wrap as needed onto multiple lines, from top to bottom.
|
|
1152
2244
|
/// @group flex-wrap
|
|
2245
|
+
/// @contextType css
|
|
1153
2246
|
|
|
2247
|
+
/// This is equivalent to `flex-wrap: nowrap`. All flex items will be on one line.
|
|
1154
2248
|
/// @name .k-flex-nowrap
|
|
1155
|
-
/// @description This is equivalent to `flex-wrap: nowrap`. All flex items will be on one line.
|
|
1156
2249
|
/// @group flex-wrap
|
|
2250
|
+
/// @contextType css
|
|
1157
2251
|
|
|
2252
|
+
/// This is equivalent to `flex-wrap: wrap-reverse`. It allows flex items to wrap as needed onto multiple lines, from bottom to top.
|
|
1158
2253
|
/// @name .k-flex-wrap-reverse
|
|
1159
|
-
/// @description This is equivalent to `flex-wrap: wrap-reverse`. It allows flex items to wrap as needed onto multiple lines, from bottom to top.
|
|
1160
2254
|
/// @group flex-wrap
|
|
2255
|
+
/// @contextType css
|
|
1161
2256
|
|
|
1162
|
-
|
|
2257
|
+
// Flex wrap utility classes
|
|
2258
|
+
$kendo-utils-flex-wrap: k-map-get( $kendo-utils, "flex-wrap" ) !default;
|
|
1163
2259
|
|
|
1164
2260
|
@include generate-utils( flex, flex-wrap, $kendo-utils-flex-wrap );
|
|
1165
2261
|
|
|
1166
2262
|
// #endregion
|
|
1167
2263
|
// #region @import "./_flex.scss"; -> packages/utils/scss/flex-grid/_flex.scss
|
|
2264
|
+
/// This is equivalent to `flex: 1 1 0%`. It sizes the item not based on its `width`/`height` properties, but based on the available space. This is similar to `flex: 1 1 auto` except it is allowed to shrink beyond its initial size.
|
|
1168
2265
|
/// @name .k-flex-1
|
|
1169
|
-
/// @description This is equivalent to `flex: 1 1 0%`. It sizes the item not based on its `width`/`height` properties, but based on the available space. This is similar to `flex: 1 1 auto` except it is allowed to shrink beyond its initial size.
|
|
1170
2266
|
/// @group flex
|
|
2267
|
+
/// @contextType css
|
|
1171
2268
|
|
|
2269
|
+
/// This is equivalent to `flex: 1 1 auto`. Beware, this is not the default value. It sizes the item based on its `width`/`height` properties, but makes it fully flexible so that they absorb any extra space along the main axis. If all items are either `flex: auto`, `flex: initial`, or `flex: none`, any remaining space after the items have been sized will be distributed evenly to the items with `flex: auto`.
|
|
1172
2270
|
/// @name .k-flex-auto
|
|
1173
|
-
/// @description This is equivalent to `flex: 1 1 auto`. Beware, this is not the default value. It sizes the item based on its `width`/`height` properties, but makes it fully flexible so that they absorb any extra space along the main axis. If all items are either `flex: auto`, `flex: initial`, or `flex: none`, any remaining space after the items have been sized will be distributed evenly to the items with `flex: auto`.
|
|
1174
2271
|
/// @group flex
|
|
2272
|
+
/// @contextType css
|
|
1175
2273
|
|
|
2274
|
+
/// This is the same as `flex: initial;` and the shorthand for the default value: `flex: 0 1 auto`. It sizes the item based on its `width`/`height` properties (or its content if not set). It makes the flex item inflexible when there is some free space left, but allows it to shrink to its minimum when there is not enough space. The alignment abilities or `auto` margins can be used to align flex items along the main axis.
|
|
1176
2275
|
/// @name .k-flex-initial
|
|
1177
|
-
/// @description This is the same as `flex: initial;` and the shorthand for the default value: `flex: 0 1 auto`. It sizes the item based on its `width`/`height` properties (or its content if not set). It makes the flex item inflexible when there is some free space left, but allows it to shrink to its minimum when there is not enough space. The alignment abilities or `auto` margins can be used to align flex items along the main axis.
|
|
1178
2276
|
/// @group flex
|
|
2277
|
+
/// @contextType css
|
|
1179
2278
|
|
|
2279
|
+
/// This is equivalent to `flex: 0 0 auto`. It sizes the item according to its `width`/`height` properties, but makes it fully inflexible. This is similar to `flex: initial` except it is not allowed to shrink, even in an overflow situation.
|
|
1180
2280
|
/// @name .k-flex-none
|
|
1181
|
-
/// @description This is equivalent to `flex: 0 0 auto`. It sizes the item according to its `width`/`height` properties, but makes it fully inflexible. This is similar to `flex: initial` except it is not allowed to shrink, even in an overflow situation.
|
|
1182
2281
|
/// @group flex
|
|
2282
|
+
/// @contextType css
|
|
1183
2283
|
|
|
1184
|
-
|
|
2284
|
+
// Flex utility classes
|
|
2285
|
+
$kendo-utils-flex: k-map-get( $kendo-utils, "flex" ) !default;
|
|
1185
2286
|
|
|
1186
2287
|
@include generate-utils( flex, flex, $kendo-utils-flex );
|
|
1187
2288
|
|
|
1188
2289
|
// #endregion
|
|
1189
2290
|
// #region @import "./_flex-grow.scss"; -> packages/utils/scss/flex-grid/_flex-grow.scss
|
|
2291
|
+
/// This is equivalent to `flex-grow: 1`. It defines the ability for a flex item to grow if necessary. It accepts a unitless value that serves as a proportion. It dictates what amount of the available space inside the flex container the item should take up.
|
|
1190
2292
|
/// @name .k-flex-grow
|
|
1191
|
-
/// @description This is equivalent to `flex-grow: 1`. It defines the ability for a flex item to grow if necessary. It accepts a unitless value that serves as a proportion. It dictates what amount of the available space inside the flex container the item should take up.
|
|
1192
2293
|
/// @group flex-grow
|
|
2294
|
+
/// @contextType css
|
|
1193
2295
|
|
|
2296
|
+
/// This is equivalent to `flex-grow: 0`. The item will not grow.
|
|
1194
2297
|
/// @name .k-flex-grow-0
|
|
1195
|
-
/// @description This is equivalent to `flex-grow: 0`. The item will not grow.
|
|
1196
2298
|
/// @group flex-grow
|
|
2299
|
+
/// @contextType css
|
|
1197
2300
|
|
|
1198
|
-
|
|
2301
|
+
// Flex grow utility classes
|
|
2302
|
+
$kendo-utils-flex-grow: k-map-get( $kendo-utils, "flex-grow" ) !default;
|
|
1199
2303
|
|
|
1200
2304
|
@include generate-utils( grow, flex-grow, $kendo-utils-flex-grow );
|
|
1201
2305
|
@include generate-utils( flex-grow, flex-grow, $kendo-utils-flex-grow );
|
|
1202
2306
|
|
|
1203
2307
|
// #endregion
|
|
1204
2308
|
// #region @import "./_flex-shrink.scss"; -> packages/utils/scss/flex-grid/_flex-shrink.scss
|
|
2309
|
+
/// This is equivalent to `flex-shrink: 1`. It determines how much the flex item will shrink relative to the rest of the flex items in the flex container when there isn't enough space on the row.
|
|
1205
2310
|
/// @name .k-flex-shrink
|
|
1206
|
-
/// @description This is equivalent to `flex-shrink: 1`. It determines how much the flex item will shrink relative to the rest of the flex items in the flex container when there isn't enough space on the row.
|
|
1207
2311
|
/// @group flex-shrink
|
|
2312
|
+
/// @contextType css
|
|
1208
2313
|
|
|
2314
|
+
/// This is equivalent to `flex-shrink: 0`. The item will not shrink.
|
|
1209
2315
|
/// @name .k-flex-shrink-0
|
|
1210
|
-
/// @description This is equivalent to `flex-shrink: 0`. The item will not shrink.
|
|
1211
2316
|
/// @group flex-shrink
|
|
2317
|
+
/// @contextType css
|
|
1212
2318
|
|
|
1213
|
-
|
|
2319
|
+
// Flex shrink utility classes
|
|
2320
|
+
$kendo-utils-flex-shrink: k-map-get( $kendo-utils, "flex-shrink" ) !default;
|
|
1214
2321
|
|
|
1215
2322
|
@include generate-utils( shrink, flex-shrink, $kendo-utils-flex-shrink );
|
|
1216
2323
|
@include generate-utils( flex-shrink, flex-shrink, $kendo-utils-flex-shrink );
|
|
1217
2324
|
|
|
1218
2325
|
// #endregion
|
|
1219
2326
|
// #region @import "./_flex-basis.scss"; -> packages/utils/scss/flex-grid/_flex-basis.scss
|
|
2327
|
+
/// This is equivalent to `flex-basis: auto`. It specifies the initial size of the flex item, before any available space is distributed according to the flex factors. It sizes the element according to its size property.
|
|
1220
2328
|
/// @name .k-flex-basis-auto
|
|
1221
|
-
/// @description This is equivalent to `flex-basis: auto`. It specifies the initial size of the flex item, before any available space is distributed according to the flex factors. It sizes the element according to its size property.
|
|
1222
2329
|
/// @group flex-basis
|
|
2330
|
+
/// @contextType css
|
|
1223
2331
|
|
|
1224
|
-
|
|
1225
|
-
|
|
2332
|
+
/// This is equivalent to `flex-basis: 0`. It specifies the initial size of the flex item, before any available space is distributed according to the flex factors. It disregards the element' size property.
|
|
1226
2333
|
/// @name .k-flex-basis-0
|
|
1227
|
-
/// @description This is equivalent to `flex-basis: 0`. It specifies the initial size of the flex item, before any available space is distributed according to the flex factors. It disregards the element' size property.
|
|
1228
2334
|
/// @group flex-basis
|
|
2335
|
+
/// @contextType css
|
|
1229
2336
|
|
|
1230
|
-
|
|
2337
|
+
// Flex basis utility classes
|
|
2338
|
+
$kendo-utils-flex-basis: k-map-get( $kendo-utils, "flex-basis" ) !default;
|
|
1231
2339
|
|
|
1232
2340
|
@include generate-utils( basis, flex-basis, $kendo-utils-flex-basis );
|
|
1233
2341
|
@include generate-utils( flex-basis, flex-basis, $kendo-utils-flex-basis );
|
|
1234
2342
|
|
|
1235
2343
|
// #endregion
|
|
1236
2344
|
// #region @import "./_order.scss"; -> packages/utils/scss/flex-grid/_order.scss
|
|
1237
|
-
|
|
2345
|
+
/// This is equivalent to `order: -9999;`.
|
|
2346
|
+
/// @name .k-order-first
|
|
2347
|
+
/// @group order
|
|
2348
|
+
/// @contextType css
|
|
2349
|
+
|
|
2350
|
+
/// This is equivalent to `order: 9999;`.
|
|
2351
|
+
/// @name .k-order-last
|
|
2352
|
+
/// @group order
|
|
2353
|
+
/// @contextType css
|
|
2354
|
+
|
|
2355
|
+
/// This is equivalent to `order: 0;`.
|
|
2356
|
+
/// @name .k-order-none
|
|
2357
|
+
/// @group order
|
|
2358
|
+
/// @contextType css
|
|
1238
2359
|
|
|
1239
|
-
|
|
2360
|
+
/// This is equivalent to `order: 1;`, `order: 2;`, `order: 12;`, etc.
|
|
2361
|
+
/// @name .from k-order-1 to k-order-12
|
|
2362
|
+
/// @group order
|
|
2363
|
+
/// @contextType css
|
|
2364
|
+
|
|
2365
|
+
$kendo-utils-order: k-map-get( $kendo-utils, "order" ) !default;
|
|
1240
2366
|
|
|
1241
2367
|
@include generate-utils( order, order, $kendo-utils-order );
|
|
1242
2368
|
|
|
@@ -1244,7 +2370,7 @@ $kendo-utils-order: map-get( $kendo-utils, "order" ) !default;
|
|
|
1244
2370
|
// #region @import "./_grid-template-columns.scss"; -> packages/utils/scss/flex-grid/_grid-template-columns.scss
|
|
1245
2371
|
// TODO DOCS
|
|
1246
2372
|
|
|
1247
|
-
$kendo-utils-grid-template-columns: map-get( $kendo-utils, "grid-template-columns" ) !default;
|
|
2373
|
+
$kendo-utils-grid-template-columns: k-map-get( $kendo-utils, "grid-template-columns" ) !default;
|
|
1248
2374
|
|
|
1249
2375
|
@include generate-utils( grid-cols, grid-template-columns, $kendo-utils-grid-template-columns );
|
|
1250
2376
|
|
|
@@ -1252,7 +2378,7 @@ $kendo-utils-grid-template-columns: map-get( $kendo-utils, "grid-template-column
|
|
|
1252
2378
|
// #region @import "./_grid-template-rows.scss"; -> packages/utils/scss/flex-grid/_grid-template-rows.scss
|
|
1253
2379
|
// TODO DOCS
|
|
1254
2380
|
|
|
1255
|
-
$kendo-utils-grid-template-rows: map-get( $kendo-utils, "grid-template-rows" ) !default;
|
|
2381
|
+
$kendo-utils-grid-template-rows: k-map-get( $kendo-utils, "grid-template-rows" ) !default;
|
|
1256
2382
|
|
|
1257
2383
|
@include generate-utils( grid-rows, grid-template-rows, $kendo-utils-grid-template-rows );
|
|
1258
2384
|
|
|
@@ -1260,44 +2386,55 @@ $kendo-utils-grid-template-rows: map-get( $kendo-utils, "grid-template-rows" ) !
|
|
|
1260
2386
|
// #region @import "./_grid-column-start-end.scss"; -> packages/utils/scss/flex-grid/_grid-column-start-end.scss
|
|
1261
2387
|
// TODO DOCS
|
|
1262
2388
|
|
|
1263
|
-
$kendo-utils-grid-column-start: map-get( $kendo-utils, "grid-column-start" ) !default;
|
|
2389
|
+
$kendo-utils-grid-column-start: k-map-get( $kendo-utils, "grid-column-start" ) !default;
|
|
1264
2390
|
|
|
1265
2391
|
@include generate-utils( col-start, grid-column-start, $kendo-utils-grid-column-start );
|
|
1266
2392
|
|
|
1267
2393
|
|
|
1268
|
-
$kendo-utils-grid-column-end: map-get( $kendo-utils, "grid-column-end" ) !default;
|
|
2394
|
+
$kendo-utils-grid-column-end: k-map-get( $kendo-utils, "grid-column-end" ) !default;
|
|
1269
2395
|
|
|
1270
2396
|
@include generate-utils( col-end, grid-column-end, $kendo-utils-grid-column-end );
|
|
1271
2397
|
|
|
1272
2398
|
|
|
1273
|
-
$kendo-utils-grid-column-span: map-get( $kendo-utils, "grid-column-span" ) !default;
|
|
2399
|
+
$kendo-utils-grid-column-span: k-map-get( $kendo-utils, "grid-column-span" ) !default;
|
|
1274
2400
|
|
|
1275
2401
|
@include generate-utils( col-span, grid-column, $kendo-utils-grid-column-span );
|
|
2402
|
+
|
|
2403
|
+
|
|
2404
|
+
// Legacy aliases
|
|
1276
2405
|
@include generate-utils( colspan, grid-column, $kendo-utils-grid-column-span );
|
|
2406
|
+
.#{$kendo-prefix}colspan-all { @extend .#{$kendo-prefix}colspan-full !optional; } // sass-lint:disable-line class-name-format
|
|
2407
|
+
.\!#{$kendo-prefix}colspan-all { @extend .\!#{$kendo-prefix}colspan-full !optional; } // sass-lint:disable-line class-name-format
|
|
1277
2408
|
|
|
1278
2409
|
// #endregion
|
|
1279
2410
|
// #region @import "./_grid-row-start-end.scss"; -> packages/utils/scss/flex-grid/_grid-row-start-end.scss
|
|
1280
2411
|
// TODO DOCS
|
|
1281
2412
|
|
|
1282
|
-
$kendo-utils-grid-row-start: map-get( $kendo-utils, "grid-row-start" ) !default;
|
|
2413
|
+
$kendo-utils-grid-row-start: k-map-get( $kendo-utils, "grid-row-start" ) !default;
|
|
1283
2414
|
|
|
1284
2415
|
@include generate-utils( row-start, grid-row-start, $kendo-utils-grid-row-start );
|
|
1285
2416
|
|
|
1286
2417
|
|
|
1287
|
-
$kendo-utils-grid-row-end: map-get( $kendo-utils, "grid-row-end" ) !default;
|
|
2418
|
+
$kendo-utils-grid-row-end: k-map-get( $kendo-utils, "grid-row-end" ) !default;
|
|
1288
2419
|
|
|
1289
2420
|
@include generate-utils( row-end, grid-row-end, $kendo-utils-grid-row-end );
|
|
1290
2421
|
|
|
1291
2422
|
|
|
1292
|
-
$kendo-utils-grid-row-span: map-get( $kendo-utils, "grid-row-span" ) !default;
|
|
2423
|
+
$kendo-utils-grid-row-span: k-map-get( $kendo-utils, "grid-row-span" ) !default;
|
|
1293
2424
|
|
|
1294
2425
|
@include generate-utils( row-span, grid-row, $kendo-utils-grid-row-span );
|
|
1295
2426
|
|
|
2427
|
+
|
|
2428
|
+
// Legacy aliases
|
|
2429
|
+
@include generate-utils( rowspan, grid-row, $kendo-utils-grid-row-span );
|
|
2430
|
+
.#{$kendo-prefix}rowspan-all { @extend .#{$kendo-prefix}rowspan-full !optional; } // sass-lint:disable-line class-name-format
|
|
2431
|
+
.\!#{$kendo-prefix}rowspan-all { @extend .\!#{$kendo-prefix}rowspan-full !optional; } // sass-lint:disable-line class-name-format
|
|
2432
|
+
|
|
1296
2433
|
// #endregion
|
|
1297
2434
|
// #region @import "./_grid-auto-flow.scss"; -> packages/utils/scss/flex-grid/_grid-auto-flow.scss
|
|
1298
2435
|
// TODO DOCS
|
|
1299
2436
|
|
|
1300
|
-
$kendo-utils-grid-auto-flow: map-get( $kendo-utils, "grid-auto-flow" ) !default;
|
|
2437
|
+
$kendo-utils-grid-auto-flow: k-map-get( $kendo-utils, "grid-auto-flow" ) !default;
|
|
1301
2438
|
|
|
1302
2439
|
@include generate-utils( grid-flow, grid-auto-flow, $kendo-utils-grid-auto-flow );
|
|
1303
2440
|
|
|
@@ -1305,7 +2442,7 @@ $kendo-utils-grid-auto-flow: map-get( $kendo-utils, "grid-auto-flow" ) !default;
|
|
|
1305
2442
|
// #region @import "./_grid-auto-columns.scss"; -> packages/utils/scss/flex-grid/_grid-auto-columns.scss
|
|
1306
2443
|
// TODO DOCS
|
|
1307
2444
|
|
|
1308
|
-
$kendo-utils-grid-auto-columns: map-get( $kendo-utils, "grid-auto-columns" ) !default;
|
|
2445
|
+
$kendo-utils-grid-auto-columns: k-map-get( $kendo-utils, "grid-auto-columns" ) !default;
|
|
1309
2446
|
|
|
1310
2447
|
@include generate-utils( grid-auto-cols, grid-auto-columns, $kendo-utils-grid-auto-columns );
|
|
1311
2448
|
|
|
@@ -1313,7 +2450,7 @@ $kendo-utils-grid-auto-columns: map-get( $kendo-utils, "grid-auto-columns" ) !de
|
|
|
1313
2450
|
// #region @import "./_grid-auto-rows.scss"; -> packages/utils/scss/flex-grid/_grid-auto-rows.scss
|
|
1314
2451
|
// TODO DOCS
|
|
1315
2452
|
|
|
1316
|
-
$kendo-utils-grid-auto-rows: map-get( $kendo-utils, "grid-auto-rows" ) !default;
|
|
2453
|
+
$kendo-utils-grid-auto-rows: k-map-get( $kendo-utils, "grid-auto-rows" ) !default;
|
|
1317
2454
|
|
|
1318
2455
|
@include generate-utils( grid-auto-rows, grid-auto-rows, $kendo-utils-grid-auto-rows );
|
|
1319
2456
|
|
|
@@ -1321,7 +2458,7 @@ $kendo-utils-grid-auto-rows: map-get( $kendo-utils, "grid-auto-rows" ) !default;
|
|
|
1321
2458
|
// #region @import "./_gap.scss"; -> packages/utils/scss/flex-grid/_gap.scss
|
|
1322
2459
|
// TODO DOCS
|
|
1323
2460
|
|
|
1324
|
-
$kendo-utils-gap: map-get( $kendo-utils, "gap" ) !default;
|
|
2461
|
+
$kendo-utils-gap: k-map-get( $kendo-utils, "gap" ) !default;
|
|
1325
2462
|
|
|
1326
2463
|
@include generate-utils( gap, gap, $kendo-utils-gap );
|
|
1327
2464
|
@include generate-utils( gap-x, column-gap, $kendo-utils-gap );
|
|
@@ -1331,7 +2468,7 @@ $kendo-utils-gap: map-get( $kendo-utils, "gap" ) !default;
|
|
|
1331
2468
|
// #region @import "./_align-content.scss"; -> packages/utils/scss/flex-grid/_align-content.scss
|
|
1332
2469
|
// TODO DOCS
|
|
1333
2470
|
|
|
1334
|
-
$kendo-utils-align-content: map-get( $kendo-utils, "align-content" ) !default;
|
|
2471
|
+
$kendo-utils-align-content: k-map-get( $kendo-utils, "align-content" ) !default;
|
|
1335
2472
|
|
|
1336
2473
|
@include generate-utils( align-content, align-content, $kendo-utils-align-content );
|
|
1337
2474
|
|
|
@@ -1339,7 +2476,7 @@ $kendo-utils-align-content: map-get( $kendo-utils, "align-content" ) !default;
|
|
|
1339
2476
|
// #region @import "./_align-items.scss"; -> packages/utils/scss/flex-grid/_align-items.scss
|
|
1340
2477
|
// TODO DOCS
|
|
1341
2478
|
|
|
1342
|
-
$kendo-utils-align-items: map-get( $kendo-utils, "align-items" ) !default;
|
|
2479
|
+
$kendo-utils-align-items: k-map-get( $kendo-utils, "align-items" ) !default;
|
|
1343
2480
|
|
|
1344
2481
|
@include generate-utils( align-items, align-items, $kendo-utils-align-items );
|
|
1345
2482
|
|
|
@@ -1347,7 +2484,7 @@ $kendo-utils-align-items: map-get( $kendo-utils, "align-items" ) !default;
|
|
|
1347
2484
|
// #region @import "./_align-self.scss"; -> packages/utils/scss/flex-grid/_align-self.scss
|
|
1348
2485
|
// TODO DOCS
|
|
1349
2486
|
|
|
1350
|
-
$kendo-utils-align-self: map-get( $kendo-utils, "align-self" ) !default;
|
|
2487
|
+
$kendo-utils-align-self: k-map-get( $kendo-utils, "align-self" ) !default;
|
|
1351
2488
|
|
|
1352
2489
|
@include generate-utils( align-self, align-self, $kendo-utils-align-self );
|
|
1353
2490
|
|
|
@@ -1355,7 +2492,7 @@ $kendo-utils-align-self: map-get( $kendo-utils, "align-self" ) !default;
|
|
|
1355
2492
|
// #region @import "./_justify-content.scss"; -> packages/utils/scss/flex-grid/_justify-content.scss
|
|
1356
2493
|
// TODO DOCS
|
|
1357
2494
|
|
|
1358
|
-
$kendo-utils-justify-content: map-get( $kendo-utils, "justify-content" ) !default;
|
|
2495
|
+
$kendo-utils-justify-content: k-map-get( $kendo-utils, "justify-content" ) !default;
|
|
1359
2496
|
|
|
1360
2497
|
@include generate-utils( justify-content, justify-content, $kendo-utils-justify-content );
|
|
1361
2498
|
|
|
@@ -1366,7 +2503,7 @@ $kendo-utils-justify-content: map-get( $kendo-utils, "justify-content" ) !defaul
|
|
|
1366
2503
|
// #region @import "./_justify-items.scss"; -> packages/utils/scss/flex-grid/_justify-items.scss
|
|
1367
2504
|
// TODO DOCS
|
|
1368
2505
|
|
|
1369
|
-
$kendo-utils-justify-items: map-get( $kendo-utils, "justify-items" ) !default;
|
|
2506
|
+
$kendo-utils-justify-items: k-map-get( $kendo-utils, "justify-items" ) !default;
|
|
1370
2507
|
|
|
1371
2508
|
@include generate-utils( justify-items, justify-items, $kendo-utils-justify-items );
|
|
1372
2509
|
|
|
@@ -1374,7 +2511,7 @@ $kendo-utils-justify-items: map-get( $kendo-utils, "justify-items" ) !default;
|
|
|
1374
2511
|
// #region @import "./_justify-self.scss"; -> packages/utils/scss/flex-grid/_justify-self.scss
|
|
1375
2512
|
// TODO DOCS
|
|
1376
2513
|
|
|
1377
|
-
$kendo-utils-justify-self: map-get( $kendo-utils, "justify-self" ) !default;
|
|
2514
|
+
$kendo-utils-justify-self: k-map-get( $kendo-utils, "justify-self" ) !default;
|
|
1378
2515
|
|
|
1379
2516
|
@include generate-utils( justify-self, justify-self, $kendo-utils-justify-self );
|
|
1380
2517
|
|
|
@@ -1382,7 +2519,7 @@ $kendo-utils-justify-self: map-get( $kendo-utils, "justify-self" ) !default;
|
|
|
1382
2519
|
// #region @import "./_place-content.scss"; -> packages/utils/scss/flex-grid/_place-content.scss
|
|
1383
2520
|
// TODO DOCS
|
|
1384
2521
|
|
|
1385
|
-
$kendo-utils-place-content: map-get( $kendo-utils, "place-content" ) !default;
|
|
2522
|
+
$kendo-utils-place-content: k-map-get( $kendo-utils, "place-content" ) !default;
|
|
1386
2523
|
|
|
1387
2524
|
@include generate-utils( place-content, place-content, $kendo-utils-place-content );
|
|
1388
2525
|
|
|
@@ -1390,7 +2527,7 @@ $kendo-utils-place-content: map-get( $kendo-utils, "place-content" ) !default;
|
|
|
1390
2527
|
// #region @import "./_place-items.scss"; -> packages/utils/scss/flex-grid/_place-items.scss
|
|
1391
2528
|
// TODO DOCS
|
|
1392
2529
|
|
|
1393
|
-
$kendo-utils-place-items: map-get( $kendo-utils, "place-items" ) !default;
|
|
2530
|
+
$kendo-utils-place-items: k-map-get( $kendo-utils, "place-items" ) !default;
|
|
1394
2531
|
|
|
1395
2532
|
@include generate-utils( place-items, place-items, $kendo-utils-place-items );
|
|
1396
2533
|
|
|
@@ -1398,7 +2535,7 @@ $kendo-utils-place-items: map-get( $kendo-utils, "place-items" ) !default;
|
|
|
1398
2535
|
// #region @import "./_place-self.scss"; -> packages/utils/scss/flex-grid/_place-self.scss
|
|
1399
2536
|
// TODO DOCS
|
|
1400
2537
|
|
|
1401
|
-
$kendo-utils-place-self: map-get( $kendo-utils, "place-self" ) !default;
|
|
2538
|
+
$kendo-utils-place-self: k-map-get( $kendo-utils, "place-self" ) !default;
|
|
1402
2539
|
|
|
1403
2540
|
@include generate-utils( place-self, place-self, $kendo-utils-place-self );
|
|
1404
2541
|
|
|
@@ -1409,7 +2546,7 @@ $kendo-utils-place-self: map-get( $kendo-utils, "place-self" ) !default;
|
|
|
1409
2546
|
// #region @import "./_margin.scss"; -> packages/utils/scss/spacing/_margin.scss
|
|
1410
2547
|
// TODO DOCS
|
|
1411
2548
|
|
|
1412
|
-
$kendo-utils-margin: map-get( $kendo-utils, "margin" ) !default;
|
|
2549
|
+
$kendo-utils-margin: k-map-get( $kendo-utils, "margin" ) !default;
|
|
1413
2550
|
|
|
1414
2551
|
@include generate-utils( m, margin, $kendo-utils-margin );
|
|
1415
2552
|
@include generate-utils( mt, margin-top, $kendo-utils-margin );
|
|
@@ -1423,7 +2560,7 @@ $kendo-utils-margin: map-get( $kendo-utils, "margin" ) !default;
|
|
|
1423
2560
|
// #region @import "./_padding.scss"; -> packages/utils/scss/spacing/_padding.scss
|
|
1424
2561
|
// TODO DOCS
|
|
1425
2562
|
|
|
1426
|
-
$kendo-utils-padding: map-get( $kendo-utils, "padding" ) !default;
|
|
2563
|
+
$kendo-utils-padding: k-map-get( $kendo-utils, "padding" ) !default;
|
|
1427
2564
|
|
|
1428
2565
|
@include generate-utils( p, padding, $kendo-utils-padding );
|
|
1429
2566
|
@include generate-utils( pt, padding-top, $kendo-utils-padding );
|
|
@@ -1443,17 +2580,17 @@ $kendo-utils-padding: map-get( $kendo-utils, "padding" ) !default;
|
|
|
1443
2580
|
// #region @import "./_width.scss"; -> packages/utils/scss/sizing/_width.scss
|
|
1444
2581
|
// TODO DOCS
|
|
1445
2582
|
|
|
1446
|
-
$kendo-utils-width: map-get( $kendo-utils, "width" ) !default;
|
|
2583
|
+
$kendo-utils-width: k-map-get( $kendo-utils, "width" ) !default;
|
|
1447
2584
|
|
|
1448
2585
|
@include generate-utils( w, width, $kendo-utils-width );
|
|
1449
2586
|
|
|
1450
2587
|
|
|
1451
|
-
$kendo-utils-min-width: map-get( $kendo-utils, "min-width" ) !default;
|
|
2588
|
+
$kendo-utils-min-width: k-map-get( $kendo-utils, "min-width" ) !default;
|
|
1452
2589
|
|
|
1453
2590
|
@include generate-utils( min-w, min-width, $kendo-utils-min-width );
|
|
1454
2591
|
|
|
1455
2592
|
|
|
1456
|
-
$kendo-utils-max-width: map-get( $kendo-utils, "max-width" ) !default;
|
|
2593
|
+
$kendo-utils-max-width: k-map-get( $kendo-utils, "max-width" ) !default;
|
|
1457
2594
|
|
|
1458
2595
|
@include generate-utils( max-w, max-width, $kendo-utils-max-width );
|
|
1459
2596
|
|
|
@@ -1461,17 +2598,17 @@ $kendo-utils-max-width: map-get( $kendo-utils, "max-width" ) !default;
|
|
|
1461
2598
|
// #region @import "./_height.scss"; -> packages/utils/scss/sizing/_height.scss
|
|
1462
2599
|
// TODO DOCS
|
|
1463
2600
|
|
|
1464
|
-
$kendo-utils-height: map-get( $kendo-utils, "height" ) !default;
|
|
2601
|
+
$kendo-utils-height: k-map-get( $kendo-utils, "height" ) !default;
|
|
1465
2602
|
|
|
1466
2603
|
@include generate-utils( h, height, $kendo-utils-height );
|
|
1467
2604
|
|
|
1468
2605
|
|
|
1469
|
-
$kendo-utils-min-height: map-get( $kendo-utils, "min-height" ) !default;
|
|
2606
|
+
$kendo-utils-min-height: k-map-get( $kendo-utils, "min-height" ) !default;
|
|
1470
2607
|
|
|
1471
2608
|
@include generate-utils( min-h, min-height, $kendo-utils-min-height );
|
|
1472
2609
|
|
|
1473
2610
|
|
|
1474
|
-
$kendo-utils-max-height: map-get( $kendo-utils, "max-height" ) !default;
|
|
2611
|
+
$kendo-utils-max-height: k-map-get( $kendo-utils, "max-height" ) !default;
|
|
1475
2612
|
|
|
1476
2613
|
@include generate-utils( max-h, max-height, $kendo-utils-max-height );
|
|
1477
2614
|
|
|
@@ -1483,16 +2620,20 @@ $kendo-utils-max-height: map-get( $kendo-utils, "max-height" ) !default;
|
|
|
1483
2620
|
// #region @import "./_font-size.scss"; -> packages/utils/scss/typography/_font-size.scss
|
|
1484
2621
|
// TODO DOCS
|
|
1485
2622
|
|
|
1486
|
-
$kendo-utils-font-size: map-get( $kendo-utils, "font-size" ) !default;
|
|
2623
|
+
$kendo-utils-font-size: k-map-get( $kendo-utils, "font-size" ) !default;
|
|
1487
2624
|
|
|
1488
2625
|
@include generate-utils( font-size, font-size, $kendo-utils-font-size );
|
|
1489
2626
|
|
|
2627
|
+
|
|
2628
|
+
// Legacy aliases
|
|
2629
|
+
@include generate-utils( fs, font-size, $kendo-utils-font-size );
|
|
2630
|
+
|
|
1490
2631
|
// #endregion
|
|
1491
2632
|
// font smoothing
|
|
1492
2633
|
// #region @import "./_font-style.scss"; -> packages/utils/scss/typography/_font-style.scss
|
|
1493
2634
|
// TODO DOCS
|
|
1494
2635
|
|
|
1495
|
-
$kendo-utils-font-style: map-get( $kendo-utils, "font-style" ) !default;
|
|
2636
|
+
$kendo-utils-font-style: k-map-get( $kendo-utils, "font-style" ) !default;
|
|
1496
2637
|
|
|
1497
2638
|
@include generate-utils( font, font-style, $kendo-utils-font-style );
|
|
1498
2639
|
|
|
@@ -1500,55 +2641,81 @@ $kendo-utils-font-style: map-get( $kendo-utils, "font-style" ) !default;
|
|
|
1500
2641
|
// #region @import "./_font-weight.scss"; -> packages/utils/scss/typography/_font-weight.scss
|
|
1501
2642
|
// TODO DOCS
|
|
1502
2643
|
|
|
1503
|
-
$kendo-utils-font-weight: map-get( $kendo-utils, "font-weight" ) !default;
|
|
2644
|
+
$kendo-utils-font-weight: k-map-get( $kendo-utils, "font-weight" ) !default;
|
|
1504
2645
|
|
|
1505
2646
|
@include generate-utils( font, font-weight, $kendo-utils-font-weight );
|
|
1506
2647
|
|
|
2648
|
+
|
|
2649
|
+
// Legacy aliases
|
|
2650
|
+
@include generate-utils( font-weight, font-weight, $kendo-utils-font-weight );
|
|
2651
|
+
|
|
1507
2652
|
// #endregion
|
|
1508
2653
|
// font variant
|
|
1509
2654
|
// letter spacing
|
|
1510
2655
|
// line height
|
|
1511
2656
|
// list style
|
|
1512
2657
|
// #region @import "./_text-align.scss"; -> packages/utils/scss/typography/_text-align.scss
|
|
2658
|
+
// Text-align documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/text-align.
|
|
2659
|
+
|
|
2660
|
+
/// This is equivalent to `text-align: left;`. The inline contents are aligned to the left edge of the line box.
|
|
1513
2661
|
/// @name .k-text-left
|
|
1514
|
-
/// @description This is equivalent to `text-align: left;`. The inline contents are aligned to the left edge of the line box.
|
|
1515
2662
|
/// @group text-align
|
|
2663
|
+
/// @contextType css
|
|
1516
2664
|
|
|
2665
|
+
/// This is equivalent to `text-align: right;`. The inline contents are aligned to the right edge of the line box.
|
|
1517
2666
|
/// @name .k-text-right
|
|
1518
|
-
/// @description This is equivalent to `text-align: right;`. The inline contents are aligned to the right edge of the line box.
|
|
1519
2667
|
/// @group text-align
|
|
2668
|
+
/// @contextType css
|
|
1520
2669
|
|
|
2670
|
+
/// This is equivalent to `text-align: center;`. The inline contents are centered within the line box.
|
|
1521
2671
|
/// @name .k-text-center
|
|
1522
|
-
/// @description This is equivalent to `text-align: center;`. The inline contents are centered within the line box.
|
|
1523
2672
|
/// @group text-align
|
|
2673
|
+
/// @contextType css
|
|
1524
2674
|
|
|
2675
|
+
/// This is equivalent to `text-align: justify;`. The inline contents are justified. Text should be spaced to line up its left and right edges to the left and right edges of the line box, except for the last line.
|
|
1525
2676
|
/// @name .k-text-justify
|
|
1526
|
-
/// @description This is equivalent to `text-align: justify;`. The inline contents are justified. Text should be spaced to line up its left and right edges to the left and right edges of the line box, except for the last line.
|
|
1527
2677
|
/// @group text-align
|
|
2678
|
+
/// @contextType css
|
|
1528
2679
|
|
|
1529
|
-
|
|
2680
|
+
// Text align utility classes
|
|
2681
|
+
$kendo-utils-text-align: k-map-get( $kendo-utils, "text-align" ) !default;
|
|
1530
2682
|
|
|
1531
2683
|
@include generate-utils( text, text-align, $kendo-utils-text-align );
|
|
1532
2684
|
|
|
1533
2685
|
// #endregion
|
|
1534
|
-
//
|
|
2686
|
+
// #region @import "./_text-color.scss"; -> packages/utils/scss/typography/_text-color.scss
|
|
2687
|
+
// TODO DOCS
|
|
2688
|
+
|
|
2689
|
+
$kendo-utils-text-color: k-map-get( $kendo-utils, "text-color" ) !default;
|
|
2690
|
+
|
|
2691
|
+
@include generate-utils( text, color, $kendo-utils-text-color );
|
|
2692
|
+
|
|
2693
|
+
|
|
2694
|
+
// Legacy aliases
|
|
2695
|
+
@include generate-utils( color, color, $kendo-utils-text-color );
|
|
2696
|
+
|
|
2697
|
+
// #endregion
|
|
1535
2698
|
// text decoration
|
|
1536
2699
|
// #region @import "./_text-transform.scss"; -> packages/utils/scss/typography/_text-transform.scss
|
|
1537
|
-
//
|
|
2700
|
+
// Text-transform documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform.
|
|
1538
2701
|
|
|
2702
|
+
/// This is equivalent to `text-transform: lowercase;`. Is a keyword that converts all characters to lowercase.
|
|
1539
2703
|
/// @name k-text-lowercase
|
|
1540
|
-
/// @description This is equivalent to `text-transform: lowercase;`. Is a keyword that converts all characters to lowercase.
|
|
1541
2704
|
/// @group text-transform
|
|
2705
|
+
/// @contextType css
|
|
1542
2706
|
|
|
2707
|
+
/// This is equivalent to `text-transform: uppercase;`. Is a keyword that converts all characters to uppercase.
|
|
1543
2708
|
/// @name k-text-uppercase
|
|
1544
|
-
/// @description This is equivalent to `text-transform: uppercase;`. Is a keyword that converts all characters to uppercase.
|
|
1545
2709
|
/// @group text-transform
|
|
2710
|
+
/// @contextType css
|
|
1546
2711
|
|
|
2712
|
+
/// This is equivalent to `text-transform: capitalize;`. Is a keyword that converts the first letter of each word to uppercase. Other characters remain unchanged (they retain their original case as written in the element's text).
|
|
1547
2713
|
/// @name k-text-capitalize
|
|
1548
|
-
/// @description This is equivalent to `text-transform: capitalize;`. Is a keyword that converts the first letter of each word to uppercase. Other characters remain unchanged (they retain their original case as written in the element's text).
|
|
1549
2714
|
/// @group text-transform
|
|
2715
|
+
/// @contextType css
|
|
1550
2716
|
|
|
1551
|
-
|
|
2717
|
+
// Text transform utility classes
|
|
2718
|
+
$kendo-utils-text-transform: k-map-get( $kendo-utils, "text-transform" ) !default;
|
|
1552
2719
|
|
|
1553
2720
|
@include generate-utils( text, text-transform, $kendo-utils-text-transform );
|
|
1554
2721
|
|
|
@@ -1557,43 +2724,73 @@ $kendo-utils-text-transform: map-get( $kendo-utils, "text-transform" ) !default;
|
|
|
1557
2724
|
// text indent
|
|
1558
2725
|
// vertical align
|
|
1559
2726
|
// #region @import "./_white-space.scss"; -> packages/utils/scss/typography/_white-space.scss
|
|
2727
|
+
// White-space documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/white-space.
|
|
2728
|
+
|
|
2729
|
+
/// This is equivalent to `white-space: normal;`. Sequences of white space are collapsed. Newline characters in the source are handled the same as other white space. Lines are broken as necessary to fill line boxes.
|
|
1560
2730
|
/// @name .k-white-space-normal
|
|
1561
|
-
/// @description This is equivalent to `white-space: normal;`. Sequences of white space are collapsed. Newline characters in the source are handled the same as other white space. Lines are broken as necessary to fill line boxes.
|
|
1562
2731
|
/// @group white-space
|
|
2732
|
+
/// @contextType css
|
|
1563
2733
|
|
|
2734
|
+
/// This is equivalent to `white-space: nowrap;`. Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source.
|
|
1564
2735
|
/// @name .k-white-space-nowrap
|
|
1565
|
-
/// @description This is equivalent to `white-space: nowrap;`. Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source.
|
|
1566
2736
|
/// @group white-space
|
|
2737
|
+
/// @contextType css
|
|
1567
2738
|
|
|
2739
|
+
/// This is equivalent to `white-space: pre;`. Sequences of white space are preserved. Lines are only broken at newline characters in the source and at <br> elements.
|
|
1568
2740
|
/// @name .k-white-space-pre
|
|
1569
|
-
/// @description This is equivalent to `white-space: pre;`. Sequences of white space are preserved. Lines are only broken at newline characters in the source and at <br> elements.
|
|
1570
2741
|
/// @group white-space
|
|
2742
|
+
/// @contextType css
|
|
1571
2743
|
|
|
2744
|
+
/// This is equivalent to `white-space: pre-wrap;`. Sequences of white space are preserved. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes.
|
|
1572
2745
|
/// @name .k-white-space-pre-wrap
|
|
1573
|
-
/// @description This is equivalent to `white-space: pre-wrap;`. Sequences of white space are preserved. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes.
|
|
1574
2746
|
/// @group white-space
|
|
2747
|
+
/// @contextType css
|
|
1575
2748
|
|
|
2749
|
+
/// This is equivalent to `white-space: pre-line;`. Sequences of white space are collapsed. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes.
|
|
1576
2750
|
/// @name .k-white-space-pre-line
|
|
1577
|
-
/// @description This is equivalent to `white-space: pre-line;`. Sequences of white space are collapsed. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes.
|
|
1578
2751
|
/// @group white-space
|
|
2752
|
+
/// @contextType css
|
|
1579
2753
|
|
|
2754
|
+
/// This is equivalent to `white-space: break-spaces;`. Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source.
|
|
1580
2755
|
/// @name .k-white-space-break-spaces
|
|
1581
|
-
/// @description This is equivalent to `white-space: break-spaces;`. Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source.
|
|
1582
2756
|
/// @group white-space
|
|
2757
|
+
/// @contextType css
|
|
1583
2758
|
|
|
1584
|
-
|
|
2759
|
+
// White space utility classes
|
|
2760
|
+
$kendo-utils-white-space: k-map-get( $kendo-utils, "white-space" ) !default;
|
|
1585
2761
|
|
|
1586
2762
|
@include generate-utils( white-space, white-space, $kendo-utils-white-space );
|
|
2763
|
+
@include generate-utils( whitespace, white-space, $kendo-utils-white-space );
|
|
2764
|
+
|
|
2765
|
+
|
|
2766
|
+
// Legacy aliases
|
|
2767
|
+
.#{$kendo-prefix}text-nowrap { @extend .#{$kendo-prefix}white-space-nowrap !optional; }
|
|
2768
|
+
|
|
2769
|
+
// #endregion
|
|
2770
|
+
|
|
2771
|
+
|
|
2772
|
+
/// This is equivalent to `white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`.
|
|
2773
|
+
/// @name .k-text-ellipsis
|
|
2774
|
+
/// @group text
|
|
2775
|
+
.#{$kendo-prefix}text-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } // sass-lint:disable-line one-declaration-per-line
|
|
2776
|
+
|
|
2777
|
+
// #endregion
|
|
2778
|
+
// #region @import "./background/index.import.scss"; -> packages/utils/scss/background/index.import.scss
|
|
2779
|
+
// #region @import "./_background-color.scss"; -> packages/utils/scss/background/_background-color.scss
|
|
2780
|
+
// TODO DOCS
|
|
2781
|
+
|
|
2782
|
+
$kendo-utils-background-color: k-map-get( $kendo-utils, "background-color" ) !default;
|
|
2783
|
+
|
|
2784
|
+
@include generate-utils( bg, background-color, $kendo-utils-background-color );
|
|
1587
2785
|
|
|
1588
2786
|
// #endregion
|
|
1589
2787
|
|
|
1590
2788
|
// #endregion
|
|
1591
|
-
// background
|
|
1592
2789
|
// #region @import "./border/index.import.scss"; -> packages/utils/scss/border/index.import.scss
|
|
1593
2790
|
// #region @import "./_border-width.scss"; -> packages/utils/scss/border/_border-width.scss
|
|
1594
2791
|
// TODO DOCS
|
|
1595
2792
|
|
|
1596
|
-
$kendo-utils-border-width: map-get( $kendo-utils, "border-width" ) !default;
|
|
2793
|
+
$kendo-utils-border-width: k-map-get( $kendo-utils, "border-width" ) !default;
|
|
1597
2794
|
|
|
1598
2795
|
@include generate-utils( border, border-width, $kendo-utils-border-width );
|
|
1599
2796
|
@include generate-utils( border-t, border-top-width, $kendo-utils-border-width );
|
|
@@ -1603,11 +2800,18 @@ $kendo-utils-border-width: map-get( $kendo-utils, "border-width" ) !default;
|
|
|
1603
2800
|
@include generate-utils( border-x, border-inline-width, $kendo-utils-border-width );
|
|
1604
2801
|
@include generate-utils( border-y, border-block-width, $kendo-utils-border-width );
|
|
1605
2802
|
|
|
2803
|
+
|
|
2804
|
+
// Legacy aliases
|
|
2805
|
+
@include generate-utils( border-top, border-top-width, $kendo-utils-border-width );
|
|
2806
|
+
@include generate-utils( border-right, border-right-width, $kendo-utils-border-width );
|
|
2807
|
+
@include generate-utils( border-bottom, border-bottom-width, $kendo-utils-border-width );
|
|
2808
|
+
@include generate-utils( border-left, border-left-width, $kendo-utils-border-width );
|
|
2809
|
+
|
|
1606
2810
|
// #endregion
|
|
1607
2811
|
// #region @import "./_border-style.scss"; -> packages/utils/scss/border/_border-style.scss
|
|
1608
2812
|
// TODO DOCS
|
|
1609
2813
|
|
|
1610
|
-
$kendo-utils-border-style: map-get( $kendo-utils, "border-style" ) !default;
|
|
2814
|
+
$kendo-utils-border-style: k-map-get( $kendo-utils, "border-style" ) !default;
|
|
1611
2815
|
|
|
1612
2816
|
@include generate-utils( border, border-style, $kendo-utils-border-style );
|
|
1613
2817
|
@include generate-utils( border-t, border-top-style, $kendo-utils-border-style );
|
|
@@ -1621,7 +2825,7 @@ $kendo-utils-border-style: map-get( $kendo-utils, "border-style" ) !default;
|
|
|
1621
2825
|
// #region @import "./_border-color.scss"; -> packages/utils/scss/border/_border-color.scss
|
|
1622
2826
|
// TODO DOCS
|
|
1623
2827
|
|
|
1624
|
-
$kendo-utils-border-color: map-get( $kendo-utils, "border-color" ) !default;
|
|
2828
|
+
$kendo-utils-border-color: k-map-get( $kendo-utils, "border-color" ) !default;
|
|
1625
2829
|
|
|
1626
2830
|
@include generate-utils( border, border-color, $kendo-utils-border-color );
|
|
1627
2831
|
@include generate-utils( border-t, border-top-color, $kendo-utils-border-color );
|
|
@@ -1635,7 +2839,7 @@ $kendo-utils-border-color: map-get( $kendo-utils, "border-color" ) !default;
|
|
|
1635
2839
|
// #region @import "./_border-radius.scss"; -> packages/utils/scss/border/_border-radius.scss
|
|
1636
2840
|
// TODO DOCS
|
|
1637
2841
|
|
|
1638
|
-
$kendo-utils-border-radius: map-get( $kendo-utils, "border-radius" ) !default;
|
|
2842
|
+
$kendo-utils-border-radius: k-map-get( $kendo-utils, "border-radius" ) !default;
|
|
1639
2843
|
|
|
1640
2844
|
@include generate-utils( rounded, border-radius, $kendo-utils-border-radius );
|
|
1641
2845
|
@include generate-utils( rounded-tl, border-top-left-radius, $kendo-utils-border-radius );
|
|
@@ -1651,7 +2855,7 @@ $kendo-utils-border-radius: map-get( $kendo-utils, "border-radius" ) !default;
|
|
|
1651
2855
|
// #region @import "./_outline-width.scss"; -> packages/utils/scss/border/_outline-width.scss
|
|
1652
2856
|
// TODO DOCS
|
|
1653
2857
|
|
|
1654
|
-
$kendo-utils-outline-width: map-get( $kendo-utils, "outline-width" ) !default;
|
|
2858
|
+
$kendo-utils-outline-width: k-map-get( $kendo-utils, "outline-width" ) !default;
|
|
1655
2859
|
|
|
1656
2860
|
@include generate-utils( outline, outline-width, $kendo-utils-outline-width );
|
|
1657
2861
|
|
|
@@ -1659,7 +2863,7 @@ $kendo-utils-outline-width: map-get( $kendo-utils, "outline-width" ) !default;
|
|
|
1659
2863
|
// #region @import "./_outline-style.scss"; -> packages/utils/scss/border/_outline-style.scss
|
|
1660
2864
|
// TODO DOCS
|
|
1661
2865
|
|
|
1662
|
-
$kendo-utils-outline-style: map-get( $kendo-utils, "outline-style" ) !default;
|
|
2866
|
+
$kendo-utils-outline-style: k-map-get( $kendo-utils, "outline-style" ) !default;
|
|
1663
2867
|
|
|
1664
2868
|
@include generate-utils( outline, outline-style, $kendo-utils-outline-style );
|
|
1665
2869
|
|
|
@@ -1667,7 +2871,7 @@ $kendo-utils-outline-style: map-get( $kendo-utils, "outline-style" ) !default;
|
|
|
1667
2871
|
// #region @import "./_outline-color.scss"; -> packages/utils/scss/border/_outline-color.scss
|
|
1668
2872
|
// TODO DOCS
|
|
1669
2873
|
|
|
1670
|
-
$kendo-utils-outline-color: map-get( $kendo-utils, "outline-color" ) !default;
|
|
2874
|
+
$kendo-utils-outline-color: k-map-get( $kendo-utils, "outline-color" ) !default;
|
|
1671
2875
|
|
|
1672
2876
|
@include generate-utils( outline, outline-color, $kendo-utils-outline-color );
|
|
1673
2877
|
|
|
@@ -1675,7 +2879,7 @@ $kendo-utils-outline-color: map-get( $kendo-utils, "outline-color" ) !default;
|
|
|
1675
2879
|
// #region @import "./_outline-offset.scss"; -> packages/utils/scss/border/_outline-offset.scss
|
|
1676
2880
|
// TODO DOCS
|
|
1677
2881
|
|
|
1678
|
-
$kendo-utils-outline-offset: map-get( $kendo-utils, "outline-offset" ) !default;
|
|
2882
|
+
$kendo-utils-outline-offset: k-map-get( $kendo-utils, "outline-offset" ) !default;
|
|
1679
2883
|
|
|
1680
2884
|
@include generate-utils( outline-offset, outline-offset, $kendo-utils-outline-offset );
|
|
1681
2885
|
|
|
@@ -1688,21 +2892,26 @@ $kendo-utils-outline-offset: map-get( $kendo-utils, "outline-offset" ) !default;
|
|
|
1688
2892
|
// #region @import "./_border-collapse.scss"; -> packages/utils/scss/table/_border-collapse.scss
|
|
1689
2893
|
// TODO DOCS
|
|
1690
2894
|
|
|
1691
|
-
$kendo-utils-border-collapse: map-get( $kendo-utils, "border-collapse" ) !default;
|
|
2895
|
+
$kendo-utils-border-collapse: k-map-get( $kendo-utils, "border-collapse" ) !default;
|
|
1692
2896
|
|
|
1693
2897
|
@include generate-utils( border, border-collapse, $kendo-utils-border-collapse );
|
|
1694
2898
|
|
|
1695
2899
|
// #endregion
|
|
1696
2900
|
// #region @import "./_table-layout.scss"; -> packages/utils/scss/table/_table-layout.scss
|
|
2901
|
+
// Table-layout documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout.
|
|
2902
|
+
|
|
2903
|
+
/// This is equivalent to `table-layout: auto;`. By default, most browsers use an automatic table layout algorithm. The widths of the table and its cells are adjusted to fit the content.
|
|
1697
2904
|
/// @name .k-table-layout-auto
|
|
1698
|
-
/// @description This is equivalent to `table-layout: auto;`. By default, most browsers use an automatic table layout algorithm. The widths of the table and its cells are adjusted to fit the content.
|
|
1699
2905
|
/// @group table-layout
|
|
2906
|
+
/// @contextType css
|
|
1700
2907
|
|
|
2908
|
+
/// This is equivalent to `table-layout: fixed;`. Table and column widths are set by the widths of table and col elements or by the width of the first row of cells. Cells in subsequent rows do not affect column widths.
|
|
1701
2909
|
/// @name .k-table-layout-fixed
|
|
1702
|
-
/// @description This is equivalent to `table-layout: fixed;`. Table and column widths are set by the widths of table and col elements or by the width of the first row of cells. Cells in subsequent rows do not affect column widths.
|
|
1703
2910
|
/// @group table-layout
|
|
2911
|
+
/// @contextType css
|
|
1704
2912
|
|
|
1705
|
-
|
|
2913
|
+
// Table layout utility classes
|
|
2914
|
+
$kendo-utils-table-layout: k-map-get( $kendo-utils, "table-layout" ) !default;
|
|
1706
2915
|
|
|
1707
2916
|
@include generate-utils( table, table-layout, $kendo-utils-table-layout );
|
|
1708
2917
|
@include generate-utils( table-layout, table-layout, $kendo-utils-table-layout );
|
|
@@ -1713,15 +2922,18 @@ $kendo-utils-table-layout: map-get( $kendo-utils, "table-layout" ) !default;
|
|
|
1713
2922
|
// transition
|
|
1714
2923
|
// #region @import "./transform/index.import.scss"; -> packages/utils/scss/transform/index.import.scss
|
|
1715
2924
|
// #region @import "./_flip.scss"; -> packages/utils/scss/transform/_flip.scss
|
|
2925
|
+
/// This is equivalent to `transform: scaleX( -1 );`. Flips the element horizontally.
|
|
1716
2926
|
/// @name .k-flip-h
|
|
1717
|
-
/// @description This is equivalent to `transform: scaleX( -1 );`. Flips the element horizontally.
|
|
1718
2927
|
/// @group transform
|
|
2928
|
+
/// @contextType css
|
|
1719
2929
|
|
|
2930
|
+
/// This is equivalent to `transform: scaleY( -1 );`. Flips the element vertically.
|
|
1720
2931
|
/// @name .k-flip-v
|
|
1721
|
-
/// @description This is equivalent to `transform: scaleY( -1 );`. Flips the element vertically.
|
|
1722
2932
|
/// @group transform
|
|
2933
|
+
/// @contextType css
|
|
1723
2934
|
|
|
1724
|
-
|
|
2935
|
+
// Flip utility classes
|
|
2936
|
+
$kendo-utils-flip: k-map-get( $kendo-utils, "flip" ) !default;
|
|
1725
2937
|
|
|
1726
2938
|
@if $kendo-utils-flip {
|
|
1727
2939
|
.#{$kendo-prefix}flip-h { transform: scaleX( -1 ); }
|
|
@@ -1740,19 +2952,32 @@ $kendo-utils-flip: map-get( $kendo-utils, "flip" ) !default;
|
|
|
1740
2952
|
|
|
1741
2953
|
// #endregion
|
|
1742
2954
|
// #region @import "./_scale.scss"; -> packages/utils/scss/transform/_scale.scss
|
|
1743
|
-
|
|
2955
|
+
/// This is equivalent to `transform: scale( 0, 0 );`. The element is shrunk and no longer visible.
|
|
2956
|
+
/// @name .k-scale-0
|
|
2957
|
+
/// @group transform
|
|
2958
|
+
/// @contextType css
|
|
2959
|
+
|
|
2960
|
+
/// This is equivalent to `transform: scale( 1, 1 );`. The element has its default scale.
|
|
2961
|
+
/// @name .k-scale-1
|
|
2962
|
+
/// @group transform
|
|
2963
|
+
/// @contextType css
|
|
1744
2964
|
|
|
1745
|
-
|
|
2965
|
+
/// This is equivalent to `transform: scale( 2, 2 );`. The element is scaling two times in both directions.
|
|
2966
|
+
/// @name .k-scale-2
|
|
2967
|
+
/// @group transform
|
|
2968
|
+
/// @contextType css
|
|
2969
|
+
|
|
2970
|
+
$kendo-utils-scale: k-map-get( $kendo-utils, "scale" ) !default;
|
|
1746
2971
|
|
|
1747
2972
|
// sass-lint:disable function-name-format
|
|
1748
2973
|
@function __scale( $val ) {
|
|
1749
|
-
@return scale(
|
|
2974
|
+
@return scale( $val );
|
|
1750
2975
|
}
|
|
1751
2976
|
@function __scale-x( $val ) {
|
|
1752
|
-
@return scaleX(
|
|
2977
|
+
@return scaleX( $val );
|
|
1753
2978
|
}
|
|
1754
2979
|
@function __scale-y( $val ) {
|
|
1755
|
-
@return scaleY(
|
|
2980
|
+
@return scaleY( $val );
|
|
1756
2981
|
}
|
|
1757
2982
|
// sass-lint:enable function-name-format
|
|
1758
2983
|
|
|
@@ -1762,9 +2987,47 @@ $kendo-utils-scale: map-get( $kendo-utils, "scale" ) !default;
|
|
|
1762
2987
|
|
|
1763
2988
|
// #endregion
|
|
1764
2989
|
// #region @import "./_rotate.scss"; -> packages/utils/scss/transform/_rotate.scss
|
|
1765
|
-
|
|
2990
|
+
/// This is equivalent to `transform: rotate( 0 );`. Does not rotate the element.
|
|
2991
|
+
/// @name .k-rotate-0
|
|
2992
|
+
/// @group transform
|
|
2993
|
+
/// @contextType css
|
|
2994
|
+
|
|
2995
|
+
/// This is equivalent to `transform: rotate( 45deg );`. Rotates the element by 45 degrees.
|
|
2996
|
+
/// @name .k-rotate-45
|
|
2997
|
+
/// @group transform
|
|
2998
|
+
/// @contextType css
|
|
2999
|
+
|
|
3000
|
+
/// This is equivalent to `transform: rotate( 90deg );`. Rotates the element by 90 degrees.
|
|
3001
|
+
/// @name .k-rotate-90
|
|
3002
|
+
/// @group transform
|
|
3003
|
+
/// @contextType css
|
|
3004
|
+
|
|
3005
|
+
/// This is equivalent to `transform: rotate( 135deg );`. Rotates the element by 135 degrees.
|
|
3006
|
+
/// @name .k-rotate-135
|
|
3007
|
+
/// @group transform
|
|
3008
|
+
/// @contextType css
|
|
3009
|
+
|
|
3010
|
+
/// This is equivalent to `transform: rotate( 180deg );`. Rotates the element by 180 degrees.
|
|
3011
|
+
/// @name .k-rotate-180
|
|
3012
|
+
/// @group transform
|
|
3013
|
+
/// @contextType css
|
|
3014
|
+
|
|
3015
|
+
/// This is equivalent to `transform: rotate( 225deg );`. Rotates the element by 225 degrees.
|
|
3016
|
+
/// @name .k-rotate-225
|
|
3017
|
+
/// @group transform
|
|
3018
|
+
/// @contextType css
|
|
3019
|
+
|
|
3020
|
+
/// This is equivalent to `transform: rotate( 270deg );`. Rotates the element by 270 degrees.
|
|
3021
|
+
/// @name .k-rotate-270
|
|
3022
|
+
/// @group transform
|
|
3023
|
+
/// @contextType css
|
|
3024
|
+
|
|
3025
|
+
/// This is equivalent to `transform: rotate( 315deg );`. Rotates the element by 315 degrees.
|
|
3026
|
+
/// @name .k-rotate-315
|
|
3027
|
+
/// @group transform
|
|
3028
|
+
/// @contextType css
|
|
1766
3029
|
|
|
1767
|
-
$kendo-utils-rotate: map-get( $kendo-utils, "rotate" ) !default;
|
|
3030
|
+
$kendo-utils-rotate: k-map-get( $kendo-utils, "rotate" ) !default;
|
|
1768
3031
|
|
|
1769
3032
|
// sass-lint:disable function-name-format
|
|
1770
3033
|
@function __rotate( $val ) {
|
|
@@ -1776,11 +3039,68 @@ $kendo-utils-rotate: map-get( $kendo-utils, "rotate" ) !default;
|
|
|
1776
3039
|
|
|
1777
3040
|
// #endregion
|
|
1778
3041
|
// #region @import "./_translate.scss"; -> packages/utils/scss/transform/_translate.scss
|
|
1779
|
-
|
|
3042
|
+
/// This is equivalent to `transform: translate( 0, 0 );`. The element does not move.
|
|
3043
|
+
/// @name .k-translate-0
|
|
3044
|
+
/// @group transform
|
|
3045
|
+
/// @contextType css
|
|
3046
|
+
|
|
3047
|
+
/// This is equivalent to `transform: translate( 0, 50% );`. The element moves vertically by 50% of its height.
|
|
3048
|
+
/// @name .k-translate-0-50
|
|
3049
|
+
/// @group transform
|
|
3050
|
+
/// @contextType css
|
|
3051
|
+
|
|
3052
|
+
/// This is equivalent to `transform: translate( 0, 100% );`. The element moves vertically by 100% of its height.
|
|
3053
|
+
/// @name .k-translate-0-100
|
|
3054
|
+
/// @group transform
|
|
3055
|
+
/// @contextType css
|
|
1780
3056
|
|
|
1781
|
-
|
|
3057
|
+
/// This is equivalent to `transform: translate( 50%, 0 );`. The element moves horizontally by 50% of its width.
|
|
3058
|
+
/// @name .k-translate-50-0
|
|
3059
|
+
/// @group transform
|
|
3060
|
+
/// @contextType css
|
|
3061
|
+
|
|
3062
|
+
/// This is equivalent to `transform: translate( 50%, 50% );`. The element moves horizontally by 50% of its width and vertically by 50% of its height.
|
|
3063
|
+
/// @name .k-translate-50-50
|
|
3064
|
+
/// @group transform
|
|
3065
|
+
/// @contextType css
|
|
3066
|
+
|
|
3067
|
+
/// This is equivalent to `transform: translate( 50%, 100% );`. The element moves horizontally by 50% of its width and vertically by 100% of its height.
|
|
3068
|
+
/// @name .k-translate-50-100
|
|
3069
|
+
/// @group transform
|
|
3070
|
+
/// @contextType css
|
|
3071
|
+
|
|
3072
|
+
/// This is equivalent to `transform: translate( 100%, 0 );`. The element moves horizontally by 100% of its width.
|
|
3073
|
+
/// @name .k-translate-100-0
|
|
3074
|
+
/// @group transform
|
|
3075
|
+
/// @contextType css
|
|
3076
|
+
|
|
3077
|
+
/// This is equivalent to `transform: translate( 100%, 50% );`. The element moves horizontally by 100% of its width and vertically by 50% of its height.
|
|
3078
|
+
/// @name .k-translate-100-50
|
|
3079
|
+
/// @group transform
|
|
3080
|
+
/// @contextType css
|
|
3081
|
+
|
|
3082
|
+
/// This is equivalent to `transform: translate( 100%, 100% );`. The element moves horizontally by 100% of its width and vertically by 100% of its height.
|
|
3083
|
+
/// @name .k-translate-100-100
|
|
3084
|
+
/// @group transform
|
|
3085
|
+
/// @contextType css
|
|
3086
|
+
|
|
3087
|
+
$kendo-utils-translate: k-map-get( $kendo-utils, "translate" ) !default;
|
|
3088
|
+
$kendo-utils-translate-xy: (
|
|
3089
|
+
"0": ( 0, 0 ),
|
|
3090
|
+
"0-50": ( 0, 50% ),
|
|
3091
|
+
"0-100": ( 0, 100% ),
|
|
3092
|
+
"50-0": ( 50%, 0 ),
|
|
3093
|
+
"50-50": ( 50%, 50% ),
|
|
3094
|
+
"50-100": ( 50%, 100% ),
|
|
3095
|
+
"100-0": ( 100%, 0 ),
|
|
3096
|
+
"100-50": ( 100%, 50% ),
|
|
3097
|
+
"100-100": ( 100%, 100% )
|
|
3098
|
+
) !default;
|
|
1782
3099
|
|
|
1783
3100
|
// sass-lint:disable function-name-format
|
|
3101
|
+
@function __translate( $val ) {
|
|
3102
|
+
@return translate( $val );
|
|
3103
|
+
}
|
|
1784
3104
|
@function __translate-x( $val ) {
|
|
1785
3105
|
@return translateX( $val );
|
|
1786
3106
|
}
|
|
@@ -1789,6 +3109,7 @@ $kendo-utils-translate: map-get( $kendo-utils, "translate" ) !default;
|
|
|
1789
3109
|
}
|
|
1790
3110
|
// sass-lint:enable function-name-format
|
|
1791
3111
|
|
|
3112
|
+
@include generate-utils( translate, transform, $kendo-utils-translate-xy, __translate );
|
|
1792
3113
|
@include generate-utils( translate-x, transform, $kendo-utils-translate, __translate-x );
|
|
1793
3114
|
@include generate-utils( translate-y, transform, $kendo-utils-translate, __translate-y );
|
|
1794
3115
|
|
|
@@ -1796,7 +3117,7 @@ $kendo-utils-translate: map-get( $kendo-utils, "translate" ) !default;
|
|
|
1796
3117
|
// #region @import "./_skew.scss"; -> packages/utils/scss/transform/_skew.scss
|
|
1797
3118
|
// TODO DOCS
|
|
1798
3119
|
|
|
1799
|
-
$kendo-utils-skew: map-get( $kendo-utils, "skew" ) !default;
|
|
3120
|
+
$kendo-utils-skew: k-map-get( $kendo-utils, "skew" ) !default;
|
|
1800
3121
|
|
|
1801
3122
|
// sass-lint:disable function-name-format
|
|
1802
3123
|
@function __skew-x( $val ) {
|
|
@@ -1814,7 +3135,7 @@ $kendo-utils-skew: map-get( $kendo-utils, "skew" ) !default;
|
|
|
1814
3135
|
// #region @import "./_origin.scss"; -> packages/utils/scss/transform/_origin.scss
|
|
1815
3136
|
// TODO DOCS
|
|
1816
3137
|
|
|
1817
|
-
$kendo-utils-origin: map-get( $kendo-utils, "origin" ) !default;
|
|
3138
|
+
$kendo-utils-origin: k-map-get( $kendo-utils, "origin" ) !default;
|
|
1818
3139
|
|
|
1819
3140
|
@include generate-utils( origin, transform-origin, $kendo-utils-origin );
|
|
1820
3141
|
|
|
@@ -1825,21 +3146,24 @@ $kendo-utils-origin: map-get( $kendo-utils, "origin" ) !default;
|
|
|
1825
3146
|
// #region @import "./_accent-color.scss"; -> packages/utils/scss/interactivity/_accent-color.scss
|
|
1826
3147
|
// TODO DOCS
|
|
1827
3148
|
|
|
1828
|
-
$kendo-utils-accent-color: map-get( $kendo-utils, "accent-color" ) !default;
|
|
3149
|
+
$kendo-utils-accent-color: k-map-get( $kendo-utils, "accent-color" ) !default;
|
|
1829
3150
|
|
|
1830
3151
|
@include generate-utils( accent-color, accent-color, $kendo-utils-accent-color );
|
|
1831
3152
|
|
|
1832
3153
|
// #endregion
|
|
1833
3154
|
// #region @import "./_appearance.scss"; -> packages/utils/scss/interactivity/_appearance.scss
|
|
3155
|
+
/// This is equivalent to `appearance: none;`. Resets any browser specific styling on an element.
|
|
1834
3156
|
/// @name .k-appearance-none
|
|
1835
|
-
/// @description This is equivalent to `appearance: none;`. Resets any browser specific styling on an element.
|
|
1836
3157
|
/// @group appearance
|
|
3158
|
+
/// @contextType css
|
|
1837
3159
|
|
|
3160
|
+
/// This is equivalent to `appearance: auto;`. The user agent selects the appropriate special styling based on the element. Acts as `none` on elements with no special styling.
|
|
1838
3161
|
/// @name .k-appearance-auto
|
|
1839
|
-
/// @description This is equivalent to `appearance: auto;`. The user agent selects the appropriate special styling based on the element. Acts as `none` on elements with no special styling.
|
|
1840
3162
|
/// @group appearance
|
|
3163
|
+
/// @contextType css
|
|
1841
3164
|
|
|
1842
|
-
|
|
3165
|
+
// Appearance utility classes
|
|
3166
|
+
$kendo-utils-appearance: k-map-get( $kendo-utils, "appearance" ) !default;
|
|
1843
3167
|
|
|
1844
3168
|
@include generate-utils( appearance, appearance, $kendo-utils-appearance );
|
|
1845
3169
|
|
|
@@ -1847,7 +3171,7 @@ $kendo-utils-appearance: map-get( $kendo-utils, "appearance" ) !default;
|
|
|
1847
3171
|
// #region @import "./_cursor.scss"; -> packages/utils/scss/interactivity/_cursor.scss
|
|
1848
3172
|
// TODO DOCS
|
|
1849
3173
|
|
|
1850
|
-
$kendo-utils-cursor: map-get( $kendo-utils, "cursor" ) !default;
|
|
3174
|
+
$kendo-utils-cursor: k-map-get( $kendo-utils, "cursor" ) !default;
|
|
1851
3175
|
|
|
1852
3176
|
@include generate-utils( cursor, cursor, $kendo-utils-cursor );
|
|
1853
3177
|
|
|
@@ -1855,43 +3179,55 @@ $kendo-utils-cursor: map-get( $kendo-utils, "cursor" ) !default;
|
|
|
1855
3179
|
// #region @import "./_caret-color.scss"; -> packages/utils/scss/interactivity/_caret-color.scss
|
|
1856
3180
|
// TODO DOCS
|
|
1857
3181
|
|
|
1858
|
-
$kendo-utils-caret-color: map-get( $kendo-utils, "caret-color" ) !default;
|
|
3182
|
+
$kendo-utils-caret-color: k-map-get( $kendo-utils, "caret-color" ) !default;
|
|
1859
3183
|
|
|
1860
3184
|
@include generate-utils( caret, caret-color, $kendo-utils-caret-color );
|
|
1861
3185
|
|
|
1862
3186
|
// #endregion
|
|
1863
3187
|
// #region @import "./_pointer-events.scss"; -> packages/utils/scss/interactivity/_pointer-events.scss
|
|
3188
|
+
// Pointer-events documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events.
|
|
3189
|
+
|
|
3190
|
+
/// This is equivalent to `pointer-events: none;`. The element is never the target of pointer events; however, pointer events may target its descendant elements if those descendants have pointer-events set to some other value. In these circumstances, pointer events will trigger event listeners on this parent element as appropriate on their way to/from the descendant during the event capture/bubble phases.
|
|
1864
3191
|
/// @name .k-pointer-events-none
|
|
1865
|
-
/// @description This is equivalent to `pointer-events: none;`. The element is never the target of pointer events; however, pointer events may target its descendant elements if those descendants have pointer-events set to some other value. In these circumstances, pointer events will trigger event listeners on this parent element as appropriate on their way to/from the descendant during the event capture/bubble phases.
|
|
1866
3192
|
/// @group pointer-events
|
|
3193
|
+
/// @contextType css
|
|
1867
3194
|
|
|
3195
|
+
/// This is equivalent to `pointer-events: auto;`. The element behaves as it would if the pointer-events property were not specified. In SVG content, this value and the value visiblePainted have the same effect.
|
|
1868
3196
|
/// @name .k-pointer-events-auto
|
|
1869
|
-
/// @description This is equivalent to `pointer-events: auto;`. The element behaves as it would if the pointer-events property were not specified. In SVG content, this value and the value visiblePainted have the same effect.
|
|
1870
3197
|
/// @group pointer-events
|
|
3198
|
+
/// @contextType css
|
|
1871
3199
|
|
|
1872
|
-
|
|
3200
|
+
// Pointer events utility classes
|
|
3201
|
+
$kendo-utils-pointer-events: k-map-get( $kendo-utils, "pointer-events" ) !default;
|
|
1873
3202
|
|
|
1874
3203
|
@include generate-utils( pointer-events, pointer-events, $kendo-utils-pointer-events );
|
|
1875
3204
|
|
|
1876
3205
|
// #endregion
|
|
1877
3206
|
// #region @import "./_resize.scss"; -> packages/utils/scss/interactivity/_resize.scss
|
|
3207
|
+
// Resize documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/resize.
|
|
3208
|
+
|
|
3209
|
+
/// This is equivalent to `resize: both;`. The element displays a mechanism for allowing the user to resize it, which may be resized both horizontally and vertically.
|
|
1878
3210
|
/// @name .k-resize
|
|
1879
|
-
/// @description This is equivalent to `resize: both;`. The element displays a mechanism for allowing the user to resize it, which may be resized both horizontally and vertically.
|
|
1880
3211
|
/// @group resize
|
|
3212
|
+
/// @contextType css
|
|
1881
3213
|
|
|
3214
|
+
/// This is equivalent to `resize: none;`. The element offers no user-controllable method for resizing it.
|
|
1882
3215
|
/// @name .k-resize-none
|
|
1883
|
-
/// @description This is equivalent to `resize: none;`. The element offers no user-controllable method for resizing it.
|
|
1884
3216
|
/// @group resize
|
|
3217
|
+
/// @contextType css
|
|
1885
3218
|
|
|
3219
|
+
/// This is equivalent to `resize: horizontal;`. The element displays a mechanism for allowing the user to resize it in the horizontal direction.
|
|
1886
3220
|
/// @name .k-resize-x
|
|
1887
|
-
/// @description This is equivalent to `resize: horizontal;`. The element displays a mechanism for allowing the user to resize it in the horizontal direction.
|
|
1888
3221
|
/// @group resize
|
|
3222
|
+
/// @contextType css
|
|
1889
3223
|
|
|
3224
|
+
/// This is equivalent to `resize: vertical;`. The element displays a mechanism for allowing the user to resize it in the vertical direction.
|
|
1890
3225
|
/// @name .k-resize-y
|
|
1891
|
-
/// @description This is equivalent to `resize: vertical;`. The element displays a mechanism for allowing the user to resize it in the vertical direction.
|
|
1892
3226
|
/// @group resize
|
|
3227
|
+
/// @contextType css
|
|
1893
3228
|
|
|
1894
|
-
|
|
3229
|
+
// Resize utility classes
|
|
3230
|
+
$kendo-utils-resize: k-map-get( $kendo-utils, "resize" ) !default;
|
|
1895
3231
|
|
|
1896
3232
|
@include generate-utils( resize, resize, $kendo-utils-resize );
|
|
1897
3233
|
|
|
@@ -1899,12 +3235,12 @@ $kendo-utils-resize: map-get( $kendo-utils, "resize" ) !default;
|
|
|
1899
3235
|
// #region @import "./_scroll.scss"; -> packages/utils/scss/interactivity/_scroll.scss
|
|
1900
3236
|
// TODO DOCS
|
|
1901
3237
|
|
|
1902
|
-
$kendo-utils-scroll-behavior: map-get( $kendo-utils, "scroll-behavior" ) !default;
|
|
3238
|
+
$kendo-utils-scroll-behavior: k-map-get( $kendo-utils, "scroll-behavior" ) !default;
|
|
1903
3239
|
|
|
1904
3240
|
@include generate-utils( scroll, scroll-behavior, $kendo-utils-scroll-behavior );
|
|
1905
3241
|
|
|
1906
3242
|
|
|
1907
|
-
$kendo-utils-scroll-snap-type: map-get( $kendo-utils, "scroll-snap-type" ) !default;
|
|
3243
|
+
$kendo-utils-scroll-snap-type: k-map-get( $kendo-utils, "scroll-snap-type" ) !default;
|
|
1908
3244
|
|
|
1909
3245
|
@include generate-utils( scroll-snap, scroll-snap-type, $kendo-utils-scroll-snap-type );
|
|
1910
3246
|
|
|
@@ -1912,17 +3248,17 @@ $kendo-utils-scroll-snap-type: map-get( $kendo-utils, "scroll-snap-type" ) !defa
|
|
|
1912
3248
|
.#{$kendo-prefix}scroll-snap-proximity { #{--#{$kendo-prefix}scroll-snap-strictness}: proximity; }
|
|
1913
3249
|
|
|
1914
3250
|
|
|
1915
|
-
$kendo-utils-scroll-snap-stop: map-get( $kendo-utils, "scroll-snap-stop" ) !default;
|
|
3251
|
+
$kendo-utils-scroll-snap-stop: k-map-get( $kendo-utils, "scroll-snap-stop" ) !default;
|
|
1916
3252
|
|
|
1917
3253
|
@include generate-utils( scroll-snap-stop, scroll-snap-stop, $kendo-utils-scroll-snap-stop );
|
|
1918
3254
|
|
|
1919
3255
|
|
|
1920
|
-
$kendo-utils-scroll-snap-align: map-get( $kendo-utils, "scroll-snap-align" ) !default;
|
|
3256
|
+
$kendo-utils-scroll-snap-align: k-map-get( $kendo-utils, "scroll-snap-align" ) !default;
|
|
1921
3257
|
|
|
1922
3258
|
@include generate-utils( scroll-snap-align, scroll-snap-align, $kendo-utils-scroll-snap-align );
|
|
1923
3259
|
|
|
1924
3260
|
|
|
1925
|
-
$kendo-utils-scroll-margin: map-get( $kendo-utils, "scroll-margin" ) !default;
|
|
3261
|
+
$kendo-utils-scroll-margin: k-map-get( $kendo-utils, "scroll-margin" ) !default;
|
|
1926
3262
|
|
|
1927
3263
|
@include generate-utils( scroll-m, scroll-margin, $kendo-utils-scroll-margin );
|
|
1928
3264
|
@include generate-utils( scroll-mt, scroll-margin-top, $kendo-utils-scroll-margin );
|
|
@@ -1933,7 +3269,7 @@ $kendo-utils-scroll-margin: map-get( $kendo-utils, "scroll-margin" ) !default;
|
|
|
1933
3269
|
@include generate-utils( scroll-my, scroll-margin-block, $kendo-utils-scroll-margin );
|
|
1934
3270
|
|
|
1935
3271
|
|
|
1936
|
-
$kendo-utils-scroll-padding: map-get( $kendo-utils, "scroll-padding" ) !default;
|
|
3272
|
+
$kendo-utils-scroll-padding: k-map-get( $kendo-utils, "scroll-padding" ) !default;
|
|
1937
3273
|
|
|
1938
3274
|
@include generate-utils( scroll-p, scroll-padding, $kendo-utils-scroll-padding );
|
|
1939
3275
|
@include generate-utils( scroll-pt, scroll-padding-top, $kendo-utils-scroll-padding );
|
|
@@ -1947,41 +3283,52 @@ $kendo-utils-scroll-padding: map-get( $kendo-utils, "scroll-padding" ) !default;
|
|
|
1947
3283
|
// #region @import "./_touch-action.scss"; -> packages/utils/scss/interactivity/_touch-action.scss
|
|
1948
3284
|
// TODO DOCS
|
|
1949
3285
|
|
|
3286
|
+
/// This is equivalent to `touch-action: none;`. Disable browser handling of all panning and zooming gestures.
|
|
1950
3287
|
/// @name .k-touch-action-none
|
|
1951
|
-
/// @description This is equivalent to `touch-action: none;`. Disable browser handling of all panning and zooming gestures.
|
|
1952
3288
|
/// @group touch-action
|
|
3289
|
+
/// @contextType css
|
|
1953
3290
|
|
|
3291
|
+
/// This is equivalent to `touch-action: auto;`. Enable browser handling of all panning and zooming gestures.
|
|
1954
3292
|
/// @name .k-touch-action-auto
|
|
1955
|
-
/// @description This is equivalent to `touch-action: auto;`. Enable browser handling of all panning and zooming gestures.
|
|
1956
3293
|
/// @group touch-action
|
|
3294
|
+
/// @contextType css
|
|
1957
3295
|
|
|
1958
|
-
|
|
3296
|
+
// Touch-action utility classes
|
|
3297
|
+
$kendo-utils-touch-action: k-map-get( $kendo-utils, "touch-action" ) !default;
|
|
1959
3298
|
|
|
1960
3299
|
@include generate-utils( touch-action, touch-action, $kendo-utils-touch-action );
|
|
1961
3300
|
|
|
1962
3301
|
// #endregion
|
|
1963
3302
|
// #region @import "./_user-select.scss"; -> packages/utils/scss/interactivity/_user-select.scss
|
|
1964
|
-
|
|
1965
|
-
/// @description This is equivalent to `user-select: auto;`. This is the default value of the `user-select` property.
|
|
1966
|
-
/// @group user-select
|
|
3303
|
+
// User-select documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/user-select.
|
|
1967
3304
|
|
|
3305
|
+
/// This is equivalent to `user-select: none;`. The text of the element and its sub-elements is not selectable. Note that the Selection object can contain these elements.
|
|
1968
3306
|
/// @name .k-user-select-none
|
|
1969
|
-
/// @description This is equivalent to `user-select: none;`. The text of the element and its sub-elements is not selectable. Note that the Selection object can contain these elements.
|
|
1970
3307
|
/// @group user-select
|
|
3308
|
+
/// @contextType css
|
|
3309
|
+
|
|
3310
|
+
/// This is equivalent to `user-select: auto;`. This is the default value of the `user-select` property.
|
|
3311
|
+
/// @name .k-user-select-auto
|
|
3312
|
+
/// @group user-select
|
|
3313
|
+
/// @contextType css
|
|
1971
3314
|
|
|
3315
|
+
/// This is equivalent to `user-select: text;`. The text can be selected by the user.
|
|
1972
3316
|
/// @name .k-user-select-text
|
|
1973
|
-
/// @description This is equivalent to `user-select: text;`. The text can be selected by the user.
|
|
1974
3317
|
/// @group user-select
|
|
3318
|
+
/// @contextType css
|
|
1975
3319
|
|
|
3320
|
+
/// This is equivalent to `user-select: all;`. The content of the element shall be selected atomically: If a selection would contain part of the element, then the selection must contain the entire element including all its descendants. If a double-click or context-click occurred in sub-elements, the highest ancestor with this value will be selected.
|
|
1976
3321
|
/// @name .k-user-select-all
|
|
1977
|
-
/// @description This is equivalent to `user-select: all;`. The content of the element shall be selected atomically: If a selection would contain part of the element, then the selection must contain the entire element including all its descendants. If a double-click or context-click occurred in sub-elements, the highest ancestor with this value will be selected.
|
|
1978
3322
|
/// @group user-select
|
|
3323
|
+
/// @contextType css
|
|
1979
3324
|
|
|
3325
|
+
/// This is equivalent to `user-select: contain;`. Enables selection to start within the element; however, the selection will be contained by the bounds of that element.
|
|
1980
3326
|
/// @name .k-user-select-contain
|
|
1981
|
-
/// @description This is equivalent to `user-select: contain;`. Enables selection to start within the element; however, the selection will be contained by the bounds of that element.
|
|
1982
3327
|
/// @group user-select
|
|
3328
|
+
/// @contextType css
|
|
1983
3329
|
|
|
1984
|
-
|
|
3330
|
+
// User select utility classes
|
|
3331
|
+
$kendo-utils-user-select: k-map-get( $kendo-utils, "user-select" ) !default;
|
|
1985
3332
|
|
|
1986
3333
|
@include generate-utils( user-select, user-select, $kendo-utils-user-select );
|
|
1987
3334
|
|
|
@@ -1989,7 +3336,7 @@ $kendo-utils-user-select: map-get( $kendo-utils, "user-select" ) !default;
|
|
|
1989
3336
|
// #region @import "./_will-change.scss"; -> packages/utils/scss/interactivity/_will-change.scss
|
|
1990
3337
|
// TODO DOCS
|
|
1991
3338
|
|
|
1992
|
-
$kendo-utils-will-change: map-get( $kendo-utils, "will-change" ) !default;
|
|
3339
|
+
$kendo-utils-will-change: k-map-get( $kendo-utils, "will-change" ) !default;
|
|
1993
3340
|
|
|
1994
3341
|
@include generate-utils( will-change, will-change, $kendo-utils-will-change );
|
|
1995
3342
|
|