@progress/kendo-theme-utils 5.12.0 → 5.12.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all.css +4038 -774
- package/dist/all.scss +1458 -217
- package/package.json +6 -6
- package/scss/_functions.scss +1 -37
- package/scss/_mixins.scss +7 -7
- package/scss/_variables.scss +35 -20
- package/scss/accessibility/_screen-readers.scss +2 -2
- 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 +1 -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 +10 -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 +3 -3
- package/scss/flex-grid/_grid-row-start-end.scss +4 -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/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 +6 -3
- package/scss/interactivity/_resize.scss +10 -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 +22 -2
- package/scss/layout/_clear.scss +22 -2
- package/scss/layout/_display.scss +27 -12
- package/scss/layout/_float.scss +17 -2
- package/scss/layout/_overflow.scss +32 -16
- package/scss/layout/_position.scss +49 -4
- 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 +1 -1
- package/scss/typography/_font-style.scss +1 -1
- package/scss/typography/_font-weight.scss +1 -1
- package/scss/typography/_text-align.scss +10 -5
- package/scss/typography/_text-transform.scss +8 -4
- package/scss/typography/_white-space.scss +14 -7
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-theme-utils",
|
|
3
3
|
"description": "Utility first library alongside Kendo UI",
|
|
4
|
-
"version": "5.12.
|
|
4
|
+
"version": "5.12.1-dev.1",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "sass-build",
|
|
34
34
|
"sass": "sass-build",
|
|
35
|
+
"docs": "node ../../scripts/sassdoc.js",
|
|
36
|
+
"predocs": "npm run resolve-variables",
|
|
37
|
+
"resolve-variables": "node ../../scripts/resolve-variables.js",
|
|
35
38
|
"nuget-pack": "jq '.version' package.json | xargs nuget pack package.nuspec -Version",
|
|
36
39
|
"nuget-push": "nuget push *.nupkg -ApiKey $NUGET_API_KEY -Source $NUGET_FEED -SkipDuplicate",
|
|
37
40
|
"prepublishOnly": "node ../../scripts/themes-prepublish.js",
|
|
38
41
|
"postpublish": "echo 'no postpublish for utils'"
|
|
39
42
|
},
|
|
40
43
|
"dependencies": {
|
|
41
|
-
"@progress/kendo-theme-core": "^5.12.
|
|
44
|
+
"@progress/kendo-theme-core": "^5.12.1-dev.1"
|
|
42
45
|
},
|
|
43
|
-
"
|
|
44
|
-
"sass-build": "^1.1.0"
|
|
45
|
-
},
|
|
46
|
-
"gitHead": "9eaba5fe84f407f8f7240d2391cf6f5807f8eef4"
|
|
46
|
+
"gitHead": "1810e01c441cc3328d74864b2bfcb82167a3a0c1"
|
|
47
47
|
}
|
package/scss/_functions.scss
CHANGED
|
@@ -1,37 +1 @@
|
|
|
1
|
-
|
|
2
|
-
// Used on our SVG icon backgrounds for custom forms.
|
|
3
|
-
//
|
|
4
|
-
// @author Hugo Giraudel
|
|
5
|
-
// @param {String} $string - Initial string
|
|
6
|
-
// @param {String} $search - Substring to replace
|
|
7
|
-
// @param {String} $replace ('') - New value
|
|
8
|
-
// @return {String} - Updated string
|
|
9
|
-
@function str-replace($string, $search, $replace: "") {
|
|
10
|
-
@if type-of( $string ) == number {
|
|
11
|
-
$string: $string + "";
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
$index: str-index($string, $search);
|
|
15
|
-
|
|
16
|
-
@if $index {
|
|
17
|
-
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@return $string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
$_kendo-escape-class-name: (
|
|
25
|
-
".": "\\.",
|
|
26
|
-
"/": "\\/"
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
@function escape-class-name( $text ) {
|
|
30
|
-
$_text: $text;
|
|
31
|
-
|
|
32
|
-
@each $char, $rep in $_kendo-escape-class-name {
|
|
33
|
-
$_text: str-replace( $_text, unquote( $char ), unquote( $rep ) );
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@return $_text;
|
|
37
|
-
}
|
|
1
|
+
@import "@progress/kendo-theme-core/scss/functions/index.import.scss";
|
package/scss/_mixins.scss
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
@mixin generate-utils( $name, $props, $values, $function: "", $important: $kendo-important ) {
|
|
2
2
|
@if $values {
|
|
3
|
-
$_props: if( type-of($props) == list, $props, ( $props ) );
|
|
4
|
-
$_fn: if( function-exists( $function ), get-function( $function ), null );
|
|
3
|
+
$_props: if( k-meta-type-of($props) == list, $props, ( $props ) );
|
|
4
|
+
$_fn: if( k-meta-function-exists( $function ), k-meta-get-function( $function ), null );
|
|
5
5
|
|
|
6
6
|
@each $key, $val in $values {
|
|
7
|
-
$_key: escape-class-name( $key );
|
|
8
|
-
$_val: if( type-of($values) == list, $key, $val );
|
|
9
|
-
$_name: escape-class-name( $name );
|
|
7
|
+
$_key: k-escape-class-name( $key );
|
|
8
|
+
$_val: if( k-meta-type-of($values) == list, $key, $val );
|
|
9
|
+
$_name: k-escape-class-name( $name );
|
|
10
10
|
$_selector: if( $_key == DEFAULT, #{$kendo-prefix}#{$_name}, #{$kendo-prefix}#{$_name}-#{$_key});
|
|
11
11
|
|
|
12
12
|
@if $important != only {
|
|
13
13
|
.#{$_selector} {
|
|
14
14
|
@each $prop in $_props {
|
|
15
|
-
#{$prop}: if( $_fn, call($_fn, $_val), $_val );
|
|
15
|
+
#{$prop}: if( $_fn, k-meta-call($_fn, $_val), $_val );
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
@if $important {
|
|
20
20
|
.\!#{$_selector} {
|
|
21
21
|
@each $prop in $_props {
|
|
22
|
-
#{$prop}: if( $_fn, call($_fn, $_val), $_val ) !important; // sass-lint:disable-line no-important
|
|
22
|
+
#{$prop}: if( $_fn, k-meta-call($_fn, $_val), $_val ) !important; // sass-lint:disable-line no-important
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
package/scss/_variables.scss
CHANGED
|
@@ -2,32 +2,44 @@ $kendo-prefix: k- !default;
|
|
|
2
2
|
$kendo-important: true !default;
|
|
3
3
|
$kendo-colors: () !default;
|
|
4
4
|
$kendo-spacing: (
|
|
5
|
+
// sass-lint:disable-block leading-zero
|
|
5
6
|
0: 0,
|
|
6
|
-
|
|
7
|
+
1px: 1px,
|
|
8
|
+
0.5: .125rem,
|
|
7
9
|
1: .25rem,
|
|
8
10
|
1.5: .375rem,
|
|
9
11
|
2: .5rem,
|
|
10
|
-
2.5:
|
|
12
|
+
2.5: .625rem,
|
|
11
13
|
3: .75rem,
|
|
12
14
|
3.5: .875rem,
|
|
13
15
|
4: 1rem,
|
|
16
|
+
4.5: 1.125rem,
|
|
14
17
|
5: 1.25rem,
|
|
18
|
+
5.5: 1.375rem,
|
|
15
19
|
6: 1.5rem,
|
|
20
|
+
6.5: 1.625rem,
|
|
16
21
|
7: 1.75rem,
|
|
22
|
+
7.5: 1.875rem,
|
|
17
23
|
8: 2rem,
|
|
18
24
|
9: 2.25rem,
|
|
19
25
|
10: 2.5rem,
|
|
20
26
|
11: 2.75rem,
|
|
21
27
|
12: 3rem,
|
|
28
|
+
13: 3.25rem,
|
|
22
29
|
14: 3.5rem,
|
|
30
|
+
15: 3.75rem,
|
|
23
31
|
16: 4rem,
|
|
32
|
+
17: 4.25rem,
|
|
33
|
+
18: 4.5rem,
|
|
34
|
+
19: 4.75rem,
|
|
24
35
|
20: 5rem,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
36
|
+
21: 5.25rem,
|
|
37
|
+
22: 5.5rem,
|
|
38
|
+
23: 5.75rem,
|
|
39
|
+
24: 6rem
|
|
29
40
|
) !default;
|
|
30
|
-
|
|
41
|
+
|
|
42
|
+
$kendo-sizing: k-map-merge( $kendo-spacing, (
|
|
31
43
|
// sass-lint:disable-block indentation
|
|
32
44
|
"auto": auto,
|
|
33
45
|
"1/2": 50%,
|
|
@@ -72,8 +84,9 @@ $kendo-utils: (
|
|
|
72
84
|
// Layout
|
|
73
85
|
"aspect-ratio": (
|
|
74
86
|
auto: auto,
|
|
75
|
-
|
|
76
|
-
|
|
87
|
+
1: 1,
|
|
88
|
+
square: k-string-unquote("1 / 1"),
|
|
89
|
+
video: k-string-unquote("16 / 9")
|
|
77
90
|
),
|
|
78
91
|
"container": (),
|
|
79
92
|
"columns": (),
|
|
@@ -272,7 +285,7 @@ $kendo-utils: (
|
|
|
272
285
|
10: span 10 / span 10,
|
|
273
286
|
11: span 11 / span 11,
|
|
274
287
|
12: span 12 / span 12,
|
|
275
|
-
full: unquote("1 / -1"),
|
|
288
|
+
full: k-string-unquote("1 / -1"),
|
|
276
289
|
auto: auto
|
|
277
290
|
),
|
|
278
291
|
"grid-row-start": (
|
|
@@ -424,7 +437,7 @@ $kendo-utils: (
|
|
|
424
437
|
"space-between": (),
|
|
425
438
|
|
|
426
439
|
// Sizing
|
|
427
|
-
"width": map-merge( $kendo-sizing, (
|
|
440
|
+
"width": k-map-merge( $kendo-sizing, (
|
|
428
441
|
// sass-lint:disable-block indentation
|
|
429
442
|
screen: 100vw
|
|
430
443
|
)),
|
|
@@ -445,7 +458,7 @@ $kendo-utils: (
|
|
|
445
458
|
max: max-content,
|
|
446
459
|
fit: fit-content
|
|
447
460
|
),
|
|
448
|
-
"height": map-merge( $kendo-sizing, (
|
|
461
|
+
"height": k-map-merge( $kendo-sizing, (
|
|
449
462
|
// sass-lint:disable-block indentation
|
|
450
463
|
screen: 100vh
|
|
451
464
|
)),
|
|
@@ -596,13 +609,15 @@ $kendo-utils: (
|
|
|
596
609
|
// Transform
|
|
597
610
|
"flip": true,
|
|
598
611
|
"scale": (
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
612
|
+
// sass-lint:disable-block leading-zero
|
|
613
|
+
0: 0,
|
|
614
|
+
0.25: .25,
|
|
615
|
+
0.5: .5,
|
|
616
|
+
0.75: .75,
|
|
617
|
+
1: 1,
|
|
618
|
+
1.25: 1.25,
|
|
619
|
+
1.5: 1.5,
|
|
620
|
+
2: 2
|
|
606
621
|
),
|
|
607
622
|
"rotate": (
|
|
608
623
|
0: 0deg,
|
|
@@ -614,7 +629,7 @@ $kendo-utils: (
|
|
|
614
629
|
270: 270deg,
|
|
615
630
|
315: 315deg
|
|
616
631
|
),
|
|
617
|
-
"translate": map-remove( $kendo-sizing, "auto", "min", "max", "fit" ),
|
|
632
|
+
"translate": k-map-remove( $kendo-sizing, "auto", "min", "max", "fit" ),
|
|
618
633
|
"skew": (
|
|
619
634
|
0: 0deg,
|
|
620
635
|
1: 1deg,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
$kendo-utils-accessibility: map-get( $kendo-utils, "accessibility" ) !default;
|
|
1
|
+
$kendo-utils-accessibility: k-map-get( $kendo-utils, "accessibility" ) !default;
|
|
2
2
|
|
|
3
3
|
@if $kendo-utils-accessibility {
|
|
4
|
+
/// This class could be assigned to elements which should be visually hidden, but remain accessible for screen readers.
|
|
4
5
|
/// @name .k-sr-only
|
|
5
|
-
/// @description This class could be assigned to elements which should be visually hidden, but remain accessible for screen readers.
|
|
6
6
|
/// @group accessibility
|
|
7
7
|
.#{$kendo-prefix}sr-only {
|
|
8
8
|
margin: -1px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// TODO DOCS
|
|
2
2
|
|
|
3
|
-
$kendo-utils-border-color: map-get( $kendo-utils, "border-color" ) !default;
|
|
3
|
+
$kendo-utils-border-color: k-map-get( $kendo-utils, "border-color" ) !default;
|
|
4
4
|
|
|
5
5
|
@include generate-utils( border, border-color, $kendo-utils-border-color );
|
|
6
6
|
@include generate-utils( border-t, border-top-color, $kendo-utils-border-color );
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// TODO DOCS
|
|
2
2
|
|
|
3
|
-
$kendo-utils-border-radius: map-get( $kendo-utils, "border-radius" ) !default;
|
|
3
|
+
$kendo-utils-border-radius: k-map-get( $kendo-utils, "border-radius" ) !default;
|
|
4
4
|
|
|
5
5
|
@include generate-utils( rounded, border-radius, $kendo-utils-border-radius );
|
|
6
6
|
@include generate-utils( rounded-tl, border-top-left-radius, $kendo-utils-border-radius );
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// TODO DOCS
|
|
2
2
|
|
|
3
|
-
$kendo-utils-border-style: map-get( $kendo-utils, "border-style" ) !default;
|
|
3
|
+
$kendo-utils-border-style: k-map-get( $kendo-utils, "border-style" ) !default;
|
|
4
4
|
|
|
5
5
|
@include generate-utils( border, border-style, $kendo-utils-border-style );
|
|
6
6
|
@include generate-utils( border-t, border-top-style, $kendo-utils-border-style );
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// TODO DOCS
|
|
2
2
|
|
|
3
|
-
$kendo-utils-border-width: map-get( $kendo-utils, "border-width" ) !default;
|
|
3
|
+
$kendo-utils-border-width: k-map-get( $kendo-utils, "border-width" ) !default;
|
|
4
4
|
|
|
5
5
|
@include generate-utils( border, border-width, $kendo-utils-border-width );
|
|
6
6
|
@include generate-utils( border-t, border-top-width, $kendo-utils-border-width );
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// TODO DOCS
|
|
2
2
|
|
|
3
|
-
$kendo-utils-outline-offset: map-get( $kendo-utils, "outline-offset" ) !default;
|
|
3
|
+
$kendo-utils-outline-offset: k-map-get( $kendo-utils, "outline-offset" ) !default;
|
|
4
4
|
|
|
5
5
|
@include generate-utils( outline-offset, outline-offset, $kendo-utils-outline-offset );
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
/// 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.
|
|
1
2
|
/// @name .k-flex-basis-auto
|
|
2
|
-
/// @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.
|
|
3
3
|
/// @group flex-basis
|
|
4
|
+
/// @contextType css
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
/// 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.
|
|
7
7
|
/// @name .k-flex-basis-0
|
|
8
|
-
/// @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.
|
|
9
8
|
/// @group flex-basis
|
|
9
|
+
/// @contextType css
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// Flex basis utility classes
|
|
12
|
+
$kendo-utils-flex-basis: k-map-get( $kendo-utils, "flex-basis" ) !default;
|
|
12
13
|
|
|
13
14
|
@include generate-utils( basis, flex-basis, $kendo-utils-flex-basis );
|
|
14
15
|
@include generate-utils( flex-basis, flex-basis, $kendo-utils-flex-basis );
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
+
/// 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`.
|
|
1
2
|
/// @name .k-flex-row
|
|
2
|
-
/// @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`.
|
|
3
3
|
/// @group flex-direction
|
|
4
|
+
/// @contextType css
|
|
4
5
|
|
|
6
|
+
/// 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`.
|
|
5
7
|
/// @name .k-flex-row-reverse
|
|
6
|
-
/// @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`.
|
|
7
8
|
/// @group flex-direction
|
|
9
|
+
/// @contextType css
|
|
8
10
|
|
|
11
|
+
/// 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.
|
|
9
12
|
/// @name .k-flex-col
|
|
10
|
-
/// @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.
|
|
11
13
|
/// @group flex-direction
|
|
14
|
+
/// @contextType css
|
|
12
15
|
|
|
16
|
+
/// 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.
|
|
13
17
|
/// @name .k-flex-col-reverse
|
|
14
|
-
/// @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.
|
|
15
18
|
/// @group flex-direction
|
|
19
|
+
/// @contextType css
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
// Flex direction utility classes
|
|
22
|
+
$kendo-utils-flex-direction: k-map-get( $kendo-utils, "flex-direction" ) !default;
|
|
18
23
|
|
|
19
24
|
@include generate-utils( flex, flex-direction, $kendo-utils-flex-direction );
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
/// 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.
|
|
1
2
|
/// @name .k-flex-grow
|
|
2
|
-
/// @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.
|
|
3
3
|
/// @group flex-grow
|
|
4
|
+
/// @contextType css
|
|
4
5
|
|
|
6
|
+
/// This is equivalent to `flex-grow: 0`. The item will not grow.
|
|
5
7
|
/// @name .k-flex-grow-0
|
|
6
|
-
/// @description This is equivalent to `flex-grow: 0`. The item will not grow.
|
|
7
8
|
/// @group flex-grow
|
|
9
|
+
/// @contextType css
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
// Flex grow utility classes
|
|
12
|
+
$kendo-utils-flex-grow: k-map-get( $kendo-utils, "flex-grow" ) !default;
|
|
10
13
|
|
|
11
14
|
@include generate-utils( grow, flex-grow, $kendo-utils-flex-grow );
|
|
12
15
|
@include generate-utils( flex-grow, flex-grow, $kendo-utils-flex-grow );
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
/// 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.
|
|
1
2
|
/// @name .k-flex-shrink
|
|
2
|
-
/// @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.
|
|
3
3
|
/// @group flex-shrink
|
|
4
|
+
/// @contextType css
|
|
4
5
|
|
|
6
|
+
/// This is equivalent to `flex-shrink: 0`. The item will not shrink.
|
|
5
7
|
/// @name .k-flex-shrink-0
|
|
6
|
-
/// @description This is equivalent to `flex-shrink: 0`. The item will not shrink.
|
|
7
8
|
/// @group flex-shrink
|
|
9
|
+
/// @contextType css
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
// Flex shrink utility classes
|
|
12
|
+
$kendo-utils-flex-shrink: k-map-get( $kendo-utils, "flex-shrink" ) !default;
|
|
10
13
|
|
|
11
14
|
@include generate-utils( shrink, flex-shrink, $kendo-utils-flex-shrink );
|
|
12
15
|
@include generate-utils( flex-shrink, flex-shrink, $kendo-utils-flex-shrink );
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
/// This is equivalent to `flex-wrap: wrap`. It allows flex items to wrap as needed onto multiple lines, from top to bottom.
|
|
1
2
|
/// @name .k-flex-wrap
|
|
2
|
-
/// @description This is equivalent to `flex-wrap: wrap`. It allows flex items to wrap as needed onto multiple lines, from top to bottom.
|
|
3
3
|
/// @group flex-wrap
|
|
4
|
+
/// @contextType css
|
|
4
5
|
|
|
6
|
+
/// This is equivalent to `flex-wrap: nowrap`. All flex items will be on one line.
|
|
5
7
|
/// @name .k-flex-nowrap
|
|
6
|
-
/// @description This is equivalent to `flex-wrap: nowrap`. All flex items will be on one line.
|
|
7
8
|
/// @group flex-wrap
|
|
9
|
+
/// @contextType css
|
|
8
10
|
|
|
11
|
+
/// This is equivalent to `flex-wrap: wrap-reverse`. It allows flex items to wrap as needed onto multiple lines, from bottom to top.
|
|
9
12
|
/// @name .k-flex-wrap-reverse
|
|
10
|
-
/// @description This is equivalent to `flex-wrap: wrap-reverse`. It allows flex items to wrap as needed onto multiple lines, from bottom to top.
|
|
11
13
|
/// @group flex-wrap
|
|
14
|
+
/// @contextType css
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
// Flex wrap utility classes
|
|
17
|
+
$kendo-utils-flex-wrap: k-map-get( $kendo-utils, "flex-wrap" ) !default;
|
|
14
18
|
|
|
15
19
|
@include generate-utils( flex, flex-wrap, $kendo-utils-flex-wrap );
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
+
/// 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.
|
|
1
2
|
/// @name .k-flex-1
|
|
2
|
-
/// @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.
|
|
3
3
|
/// @group flex
|
|
4
|
+
/// @contextType css
|
|
4
5
|
|
|
6
|
+
/// 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`.
|
|
5
7
|
/// @name .k-flex-auto
|
|
6
|
-
/// @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`.
|
|
7
8
|
/// @group flex
|
|
9
|
+
/// @contextType css
|
|
8
10
|
|
|
11
|
+
/// 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.
|
|
9
12
|
/// @name .k-flex-initial
|
|
10
|
-
/// @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.
|
|
11
13
|
/// @group flex
|
|
14
|
+
/// @contextType css
|
|
12
15
|
|
|
16
|
+
/// 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.
|
|
13
17
|
/// @name .k-flex-none
|
|
14
|
-
/// @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.
|
|
15
18
|
/// @group flex
|
|
19
|
+
/// @contextType css
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
// Flex utility classes
|
|
22
|
+
$kendo-utils-flex: k-map-get( $kendo-utils, "flex" ) !default;
|
|
18
23
|
|
|
19
24
|
@include generate-utils( flex, flex, $kendo-utils-flex );
|
package/scss/flex-grid/_gap.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// TODO DOCS
|
|
2
2
|
|
|
3
|
-
$kendo-utils-grid-auto-columns: map-get( $kendo-utils, "grid-auto-columns" ) !default;
|
|
3
|
+
$kendo-utils-grid-auto-columns: k-map-get( $kendo-utils, "grid-auto-columns" ) !default;
|
|
4
4
|
|
|
5
5
|
@include generate-utils( grid-auto-cols, grid-auto-columns, $kendo-utils-grid-auto-columns );
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// TODO DOCS
|
|
2
2
|
|
|
3
|
-
$kendo-utils-grid-auto-rows: map-get( $kendo-utils, "grid-auto-rows" ) !default;
|
|
3
|
+
$kendo-utils-grid-auto-rows: k-map-get( $kendo-utils, "grid-auto-rows" ) !default;
|
|
4
4
|
|
|
5
5
|
@include generate-utils( grid-auto-rows, grid-auto-rows, $kendo-utils-grid-auto-rows );
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// TODO DOCS
|
|
2
2
|
|
|
3
|
-
$kendo-utils-grid-column-start: map-get( $kendo-utils, "grid-column-start" ) !default;
|
|
3
|
+
$kendo-utils-grid-column-start: k-map-get( $kendo-utils, "grid-column-start" ) !default;
|
|
4
4
|
|
|
5
5
|
@include generate-utils( col-start, grid-column-start, $kendo-utils-grid-column-start );
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
$kendo-utils-grid-column-end: map-get( $kendo-utils, "grid-column-end" ) !default;
|
|
8
|
+
$kendo-utils-grid-column-end: k-map-get( $kendo-utils, "grid-column-end" ) !default;
|
|
9
9
|
|
|
10
10
|
@include generate-utils( col-end, grid-column-end, $kendo-utils-grid-column-end );
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
$kendo-utils-grid-column-span: map-get( $kendo-utils, "grid-column-span" ) !default;
|
|
13
|
+
$kendo-utils-grid-column-span: k-map-get( $kendo-utils, "grid-column-span" ) !default;
|
|
14
14
|
|
|
15
15
|
@include generate-utils( col-span, grid-column, $kendo-utils-grid-column-span );
|
|
16
16
|
@include generate-utils( colspan, grid-column, $kendo-utils-grid-column-span );
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
// TODO DOCS
|
|
2
2
|
|
|
3
|
-
$kendo-utils-grid-row-start: map-get( $kendo-utils, "grid-row-start" ) !default;
|
|
3
|
+
$kendo-utils-grid-row-start: k-map-get( $kendo-utils, "grid-row-start" ) !default;
|
|
4
4
|
|
|
5
5
|
@include generate-utils( row-start, grid-row-start, $kendo-utils-grid-row-start );
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
$kendo-utils-grid-row-end: map-get( $kendo-utils, "grid-row-end" ) !default;
|
|
8
|
+
$kendo-utils-grid-row-end: k-map-get( $kendo-utils, "grid-row-end" ) !default;
|
|
9
9
|
|
|
10
10
|
@include generate-utils( row-end, grid-row-end, $kendo-utils-grid-row-end );
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
$kendo-utils-grid-row-span: map-get( $kendo-utils, "grid-row-span" ) !default;
|
|
13
|
+
$kendo-utils-grid-row-span: k-map-get( $kendo-utils, "grid-row-span" ) !default;
|
|
14
14
|
|
|
15
15
|
@include generate-utils( row-span, grid-row, $kendo-utils-grid-row-span );
|
|
16
|
+
@include generate-utils( rowspan, grid-row, $kendo-utils-grid-row-span );
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// TODO DOCS
|
|
2
2
|
|
|
3
|
-
$kendo-utils-grid-template-columns: map-get( $kendo-utils, "grid-template-columns" ) !default;
|
|
3
|
+
$kendo-utils-grid-template-columns: k-map-get( $kendo-utils, "grid-template-columns" ) !default;
|
|
4
4
|
|
|
5
5
|
@include generate-utils( grid-cols, grid-template-columns, $kendo-utils-grid-template-columns );
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// TODO DOCS
|
|
2
2
|
|
|
3
|
-
$kendo-utils-grid-template-rows: map-get( $kendo-utils, "grid-template-rows" ) !default;
|
|
3
|
+
$kendo-utils-grid-template-rows: k-map-get( $kendo-utils, "grid-template-rows" ) !default;
|
|
4
4
|
|
|
5
5
|
@include generate-utils( grid-rows, grid-template-rows, $kendo-utils-grid-template-rows );
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// TODO DOCS
|
|
2
2
|
|
|
3
|
-
$kendo-utils-justify-content: map-get( $kendo-utils, "justify-content" ) !default;
|
|
3
|
+
$kendo-utils-justify-content: k-map-get( $kendo-utils, "justify-content" ) !default;
|
|
4
4
|
|
|
5
5
|
@include generate-utils( justify-content, justify-content, $kendo-utils-justify-content );
|
|
6
6
|
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
/// This is equivalent to `order: -9999;`.
|
|
2
|
+
/// @name .k-order-first
|
|
3
|
+
/// @group order
|
|
4
|
+
/// @contextType css
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
/// This is equivalent to `order: 9999;`.
|
|
7
|
+
/// @name .k-order-last
|
|
8
|
+
/// @group order
|
|
9
|
+
/// @contextType css
|
|
10
|
+
|
|
11
|
+
/// This is equivalent to `order: 0;`.
|
|
12
|
+
/// @name .k-order-none
|
|
13
|
+
/// @group order
|
|
14
|
+
/// @contextType css
|
|
15
|
+
|
|
16
|
+
/// This is equivalent to `order: 1;`, `order: 2;`, `order: 12;`, etc.
|
|
17
|
+
/// @name .from k-order-1 to k-order-12
|
|
18
|
+
/// @group order
|
|
19
|
+
/// @contextType css
|
|
20
|
+
|
|
21
|
+
$kendo-utils-order: k-map-get( $kendo-utils, "order" ) !default;
|
|
4
22
|
|
|
5
23
|
@include generate-utils( order, order, $kendo-utils-order );
|