@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.
Files changed (80) hide show
  1. package/dist/all.css +4800 -898
  2. package/dist/all.scss +1584 -237
  3. package/package.json +6 -3
  4. package/scss/_functions.scss +1 -37
  5. package/scss/_mixins.scss +7 -7
  6. package/scss/_variables.scss +75 -33
  7. package/scss/accessibility/_screen-readers.scss +2 -2
  8. package/scss/background/_background-color.scss +5 -0
  9. package/scss/background/index.import.scss +1 -0
  10. package/scss/border/_border-color.scss +1 -1
  11. package/scss/border/_border-radius.scss +1 -1
  12. package/scss/border/_border-style.scss +1 -1
  13. package/scss/border/_border-width.scss +8 -1
  14. package/scss/border/_outline-color.scss +1 -1
  15. package/scss/border/_outline-offset.scss +1 -1
  16. package/scss/border/_outline-style.scss +1 -1
  17. package/scss/border/_outline-width.scss +1 -1
  18. package/scss/flex-grid/_align-content.scss +1 -1
  19. package/scss/flex-grid/_align-items.scss +1 -1
  20. package/scss/flex-grid/_align-self.scss +1 -1
  21. package/scss/flex-grid/_flex-basis.scss +6 -5
  22. package/scss/flex-grid/_flex-direction.scss +15 -5
  23. package/scss/flex-grid/_flex-grow.scss +6 -3
  24. package/scss/flex-grid/_flex-shrink.scss +6 -3
  25. package/scss/flex-grid/_flex-wrap.scss +8 -4
  26. package/scss/flex-grid/_flex.scss +10 -5
  27. package/scss/flex-grid/_gap.scss +1 -1
  28. package/scss/flex-grid/_grid-auto-columns.scss +1 -1
  29. package/scss/flex-grid/_grid-auto-flow.scss +1 -1
  30. package/scss/flex-grid/_grid-auto-rows.scss +1 -1
  31. package/scss/flex-grid/_grid-column-start-end.scss +8 -3
  32. package/scss/flex-grid/_grid-row-start-end.scss +9 -3
  33. package/scss/flex-grid/_grid-template-columns.scss +1 -1
  34. package/scss/flex-grid/_grid-template-rows.scss +1 -1
  35. package/scss/flex-grid/_justify-content.scss +1 -1
  36. package/scss/flex-grid/_justify-items.scss +1 -1
  37. package/scss/flex-grid/_justify-self.scss +1 -1
  38. package/scss/flex-grid/_order.scss +20 -2
  39. package/scss/flex-grid/_place-content.scss +1 -1
  40. package/scss/flex-grid/_place-items.scss +1 -1
  41. package/scss/flex-grid/_place-self.scss +1 -1
  42. package/scss/index.import.scss +1 -1
  43. package/scss/interactivity/_accent-color.scss +1 -1
  44. package/scss/interactivity/_appearance.scss +6 -3
  45. package/scss/interactivity/_caret-color.scss +1 -1
  46. package/scss/interactivity/_cursor.scss +1 -1
  47. package/scss/interactivity/_pointer-events.scss +8 -3
  48. package/scss/interactivity/_resize.scss +12 -5
  49. package/scss/interactivity/_scroll.scss +6 -6
  50. package/scss/interactivity/_touch-action.scss +6 -3
  51. package/scss/interactivity/_user-select.scss +16 -8
  52. package/scss/interactivity/_will-change.scss +1 -1
  53. package/scss/layout/_aspect-ratio.scss +26 -2
  54. package/scss/layout/_clear.scss +22 -2
  55. package/scss/layout/_display.scss +32 -12
  56. package/scss/layout/_float.scss +17 -2
  57. package/scss/layout/_overflow.scss +32 -16
  58. package/scss/layout/_position.scss +53 -8
  59. package/scss/layout/_visibility.scss +1 -1
  60. package/scss/layout/_zindex.scss +1 -1
  61. package/scss/sizing/_height.scss +3 -3
  62. package/scss/sizing/_width.scss +3 -3
  63. package/scss/spacing/_margin.scss +1 -1
  64. package/scss/spacing/_padding.scss +1 -1
  65. package/scss/table/_border-collapse.scss +1 -1
  66. package/scss/table/_table-layout.scss +8 -3
  67. package/scss/transform/_flip.scss +6 -3
  68. package/scss/transform/_origin.scss +1 -1
  69. package/scss/transform/_rotate.scss +40 -2
  70. package/scss/transform/_scale.scss +18 -5
  71. package/scss/transform/_skew.scss +1 -1
  72. package/scss/transform/_translate.scss +60 -2
  73. package/scss/typography/_font-size.scss +5 -1
  74. package/scss/typography/_font-style.scss +1 -1
  75. package/scss/typography/_font-weight.scss +5 -1
  76. package/scss/typography/_text-align.scss +12 -5
  77. package/scss/typography/_text-color.scss +9 -0
  78. package/scss/typography/_text-transform.scss +9 -5
  79. package/scss/typography/_white-space.scss +21 -7
  80. package/scss/typography/index.import.scss +7 -1
@@ -1,6 +1,31 @@
1
- // TODO DOCS
1
+ // Position documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/position.
2
+
3
+ /// 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.
4
+ /// @name .k-pos-static
5
+ /// @group position
6
+ /// @contextType css
7
+
8
+ /// 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.
9
+ /// @name .k-pos-relative
10
+ /// @group position
11
+ /// @contextType css
12
+
13
+ /// 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.
14
+ /// @name .k-pos-absolute
15
+ /// @group position
16
+ /// @contextType css
2
17
 
3
- $kendo-utils-position: map-get( $kendo-utils, "position" ) !default;
18
+ /// 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.
19
+ /// @name .k-pos-fixed
20
+ /// @group position
21
+ /// @contextType css
22
+
23
+ /// 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.
24
+ /// @name .k-pos-sticky
25
+ /// @group position
26
+ /// @contextType css
27
+
28
+ $kendo-utils-position: k-map-get( $kendo-utils, "position" ) !default;
4
29
 
5
30
  @include generate-utils( pos, position, $kendo-utils-position );
6
31
 
@@ -19,7 +44,7 @@ $kendo-utils-position: map-get( $kendo-utils, "position" ) !default;
19
44
 
20
45
  // TODO DOCS
21
46
 
22
- $kendo-utils-inset: map-get( $kendo-utils, "inset" ) !default;
47
+ $kendo-utils-inset: k-map-get( $kendo-utils, "inset" ) !default;
23
48
 
24
49
  @include generate-utils( inset, inset, $kendo-utils-inset );
25
50
  @include generate-utils( inset-x, inset-inline, $kendo-utils-inset );
@@ -31,30 +56,30 @@ $kendo-utils-inset: map-get( $kendo-utils, "inset" ) !default;
31
56
  @include generate-utils( top-left, ( top, left ), $kendo-utils-inset );
32
57
  @include generate-utils( top-right, ( top, right ), $kendo-utils-inset );
33
58
  @include generate-utils( bottom-left, ( bottom, left ), $kendo-utils-inset );
34
- @include generate-utils( bottom-right, ( bottom, right), $kendo-utils-inset );
59
+ @include generate-utils( bottom-right, ( bottom, right ), $kendo-utils-inset );
35
60
 
36
61
  .#{$kendo-prefix}top-start,
37
62
  .#{$kendo-prefix}pos-top-start {
38
63
  top: 0;
39
- left: 0;
64
+ inset-inline-start: 0;
40
65
  }
41
66
 
42
67
  .#{$kendo-prefix}top-end,
43
68
  .#{$kendo-prefix}pos-top-end {
44
69
  top: 0;
45
- right: 0;
70
+ inset-inline-end: 0;
46
71
  }
47
72
 
48
73
  .#{$kendo-prefix}bottom-start,
49
74
  .#{$kendo-prefix}pos-bottom-start {
50
75
  bottom: 0;
51
- left: 0;
76
+ inset-inline-start: 0;
52
77
  }
53
78
 
54
79
  .#{$kendo-prefix}bottom-end,
55
80
  .#{$kendo-prefix}pos-bottom-end {
56
81
  bottom: 0;
57
- right: 0;
82
+ inset-inline-end: 0;
58
83
  }
59
84
 
60
85
  .#{$kendo-prefix}top-center,
@@ -90,6 +115,26 @@ $kendo-utils-inset: map-get( $kendo-utils, "inset" ) !default;
90
115
  }
91
116
 
92
117
 
118
+ /// This is equivalent to `top: 0;`.
119
+ /// @name .k-pos-top
120
+ /// @group position
121
+ /// @contextType css
122
+
123
+ /// This is equivalent to `right: 0;`.
124
+ /// @name .k-pos-right
125
+ /// @group position
126
+ /// @contextType css
127
+
128
+ /// This is equivalent to `bottom: 0;`.
129
+ /// @name .k-pos-bottom
130
+ /// @group position
131
+ /// @contextType css
132
+
133
+ /// This is equivalent to `left: 0;`.
134
+ /// @name .k-pos-left
135
+ /// @group position
136
+ /// @contextType css
137
+
93
138
  @each $side in (top, right, bottom, left) {
94
139
  .#{$kendo-prefix}#{$side},
95
140
  .#{$kendo-prefix}pos-#{$side} { #{$side}: 0; } // sass-lint:disable-line brace-style
@@ -1,6 +1,6 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-visibility: map-get( $kendo-utils, "visibility" ) !default;
3
+ $kendo-utils-visibility: k-map-get( $kendo-utils, "visibility" ) !default;
4
4
 
5
5
  @include generate-utils( visibility, visibility, $kendo-utils-visibility );
6
6
 
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-zindex: map-get( $kendo-utils, "zindex" ) !default;
3
+ $kendo-utils-zindex: k-map-get( $kendo-utils, "zindex" ) !default;
4
4
 
5
5
  @include generate-utils( z, z-index, $kendo-utils-zindex );
@@ -1,15 +1,15 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-height: map-get( $kendo-utils, "height" ) !default;
3
+ $kendo-utils-height: k-map-get( $kendo-utils, "height" ) !default;
4
4
 
5
5
  @include generate-utils( h, height, $kendo-utils-height );
6
6
 
7
7
 
8
- $kendo-utils-min-height: map-get( $kendo-utils, "min-height" ) !default;
8
+ $kendo-utils-min-height: k-map-get( $kendo-utils, "min-height" ) !default;
9
9
 
10
10
  @include generate-utils( min-h, min-height, $kendo-utils-min-height );
11
11
 
12
12
 
13
- $kendo-utils-max-height: map-get( $kendo-utils, "max-height" ) !default;
13
+ $kendo-utils-max-height: k-map-get( $kendo-utils, "max-height" ) !default;
14
14
 
15
15
  @include generate-utils( max-h, max-height, $kendo-utils-max-height );
@@ -1,15 +1,15 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-width: map-get( $kendo-utils, "width" ) !default;
3
+ $kendo-utils-width: k-map-get( $kendo-utils, "width" ) !default;
4
4
 
5
5
  @include generate-utils( w, width, $kendo-utils-width );
6
6
 
7
7
 
8
- $kendo-utils-min-width: map-get( $kendo-utils, "min-width" ) !default;
8
+ $kendo-utils-min-width: k-map-get( $kendo-utils, "min-width" ) !default;
9
9
 
10
10
  @include generate-utils( min-w, min-width, $kendo-utils-min-width );
11
11
 
12
12
 
13
- $kendo-utils-max-width: map-get( $kendo-utils, "max-width" ) !default;
13
+ $kendo-utils-max-width: k-map-get( $kendo-utils, "max-width" ) !default;
14
14
 
15
15
  @include generate-utils( max-w, max-width, $kendo-utils-max-width );
@@ -1,6 +1,6 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-margin: map-get( $kendo-utils, "margin" ) !default;
3
+ $kendo-utils-margin: k-map-get( $kendo-utils, "margin" ) !default;
4
4
 
5
5
  @include generate-utils( m, margin, $kendo-utils-margin );
6
6
  @include generate-utils( mt, margin-top, $kendo-utils-margin );
@@ -1,6 +1,6 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-padding: map-get( $kendo-utils, "padding" ) !default;
3
+ $kendo-utils-padding: k-map-get( $kendo-utils, "padding" ) !default;
4
4
 
5
5
  @include generate-utils( p, padding, $kendo-utils-padding );
6
6
  @include generate-utils( pt, padding-top, $kendo-utils-padding );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-border-collapse: map-get( $kendo-utils, "border-collapse" ) !default;
3
+ $kendo-utils-border-collapse: k-map-get( $kendo-utils, "border-collapse" ) !default;
4
4
 
5
5
  @include generate-utils( border, border-collapse, $kendo-utils-border-collapse );
@@ -1,12 +1,17 @@
1
+ // Table-layout documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout.
2
+
3
+ /// 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.
1
4
  /// @name .k-table-layout-auto
2
- /// @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.
3
5
  /// @group table-layout
6
+ /// @contextType css
4
7
 
8
+ /// 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.
5
9
  /// @name .k-table-layout-fixed
6
- /// @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.
7
10
  /// @group table-layout
11
+ /// @contextType css
8
12
 
9
- $kendo-utils-table-layout: map-get( $kendo-utils, "table-layout" ) !default;
13
+ // Table layout utility classes
14
+ $kendo-utils-table-layout: k-map-get( $kendo-utils, "table-layout" ) !default;
10
15
 
11
16
  @include generate-utils( table, table-layout, $kendo-utils-table-layout );
12
17
  @include generate-utils( table-layout, table-layout, $kendo-utils-table-layout );
@@ -1,12 +1,15 @@
1
+ /// This is equivalent to `transform: scaleX( -1 );`. Flips the element horizontally.
1
2
  /// @name .k-flip-h
2
- /// @description This is equivalent to `transform: scaleX( -1 );`. Flips the element horizontally.
3
3
  /// @group transform
4
+ /// @contextType css
4
5
 
6
+ /// This is equivalent to `transform: scaleY( -1 );`. Flips the element vertically.
5
7
  /// @name .k-flip-v
6
- /// @description This is equivalent to `transform: scaleY( -1 );`. Flips the element vertically.
7
8
  /// @group transform
9
+ /// @contextType css
8
10
 
9
- $kendo-utils-flip: map-get( $kendo-utils, "flip" ) !default;
11
+ // Flip utility classes
12
+ $kendo-utils-flip: k-map-get( $kendo-utils, "flip" ) !default;
10
13
 
11
14
  @if $kendo-utils-flip {
12
15
  .#{$kendo-prefix}flip-h { transform: scaleX( -1 ); }
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-origin: map-get( $kendo-utils, "origin" ) !default;
3
+ $kendo-utils-origin: k-map-get( $kendo-utils, "origin" ) !default;
4
4
 
5
5
  @include generate-utils( origin, transform-origin, $kendo-utils-origin );
@@ -1,6 +1,44 @@
1
- // TODO DOCS
1
+ /// This is equivalent to `transform: rotate( 0 );`. Does not rotate the element.
2
+ /// @name .k-rotate-0
3
+ /// @group transform
4
+ /// @contextType css
2
5
 
3
- $kendo-utils-rotate: map-get( $kendo-utils, "rotate" ) !default;
6
+ /// This is equivalent to `transform: rotate( 45deg );`. Rotates the element by 45 degrees.
7
+ /// @name .k-rotate-45
8
+ /// @group transform
9
+ /// @contextType css
10
+
11
+ /// This is equivalent to `transform: rotate( 90deg );`. Rotates the element by 90 degrees.
12
+ /// @name .k-rotate-90
13
+ /// @group transform
14
+ /// @contextType css
15
+
16
+ /// This is equivalent to `transform: rotate( 135deg );`. Rotates the element by 135 degrees.
17
+ /// @name .k-rotate-135
18
+ /// @group transform
19
+ /// @contextType css
20
+
21
+ /// This is equivalent to `transform: rotate( 180deg );`. Rotates the element by 180 degrees.
22
+ /// @name .k-rotate-180
23
+ /// @group transform
24
+ /// @contextType css
25
+
26
+ /// This is equivalent to `transform: rotate( 225deg );`. Rotates the element by 225 degrees.
27
+ /// @name .k-rotate-225
28
+ /// @group transform
29
+ /// @contextType css
30
+
31
+ /// This is equivalent to `transform: rotate( 270deg );`. Rotates the element by 270 degrees.
32
+ /// @name .k-rotate-270
33
+ /// @group transform
34
+ /// @contextType css
35
+
36
+ /// This is equivalent to `transform: rotate( 315deg );`. Rotates the element by 315 degrees.
37
+ /// @name .k-rotate-315
38
+ /// @group transform
39
+ /// @contextType css
40
+
41
+ $kendo-utils-rotate: k-map-get( $kendo-utils, "rotate" ) !default;
4
42
 
5
43
  // sass-lint:disable function-name-format
6
44
  @function __rotate( $val ) {
@@ -1,16 +1,29 @@
1
- // TODO DOCS
1
+ /// This is equivalent to `transform: scale( 0, 0 );`. The element is shrunk and no longer visible.
2
+ /// @name .k-scale-0
3
+ /// @group transform
4
+ /// @contextType css
2
5
 
3
- $kendo-utils-scale: map-get( $kendo-utils, "scale" ) !default;
6
+ /// This is equivalent to `transform: scale( 1, 1 );`. The element has its default scale.
7
+ /// @name .k-scale-1
8
+ /// @group transform
9
+ /// @contextType css
10
+
11
+ /// This is equivalent to `transform: scale( 2, 2 );`. The element is scaling two times in both directions.
12
+ /// @name .k-scale-2
13
+ /// @group transform
14
+ /// @contextType css
15
+
16
+ $kendo-utils-scale: k-map-get( $kendo-utils, "scale" ) !default;
4
17
 
5
18
  // sass-lint:disable function-name-format
6
19
  @function __scale( $val ) {
7
- @return scale( unquote($val) );
20
+ @return scale( $val );
8
21
  }
9
22
  @function __scale-x( $val ) {
10
- @return scaleX( unquote($val) );
23
+ @return scaleX( $val );
11
24
  }
12
25
  @function __scale-y( $val ) {
13
- @return scaleY( unquote($val) );
26
+ @return scaleY( $val );
14
27
  }
15
28
  // sass-lint:enable function-name-format
16
29
 
@@ -1,6 +1,6 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-skew: map-get( $kendo-utils, "skew" ) !default;
3
+ $kendo-utils-skew: k-map-get( $kendo-utils, "skew" ) !default;
4
4
 
5
5
  // sass-lint:disable function-name-format
6
6
  @function __skew-x( $val ) {
@@ -1,8 +1,65 @@
1
- // TODO DOCS
1
+ /// This is equivalent to `transform: translate( 0, 0 );`. The element does not move.
2
+ /// @name .k-translate-0
3
+ /// @group transform
4
+ /// @contextType css
2
5
 
3
- $kendo-utils-translate: map-get( $kendo-utils, "translate" ) !default;
6
+ /// This is equivalent to `transform: translate( 0, 50% );`. The element moves vertically by 50% of its height.
7
+ /// @name .k-translate-0-50
8
+ /// @group transform
9
+ /// @contextType css
10
+
11
+ /// This is equivalent to `transform: translate( 0, 100% );`. The element moves vertically by 100% of its height.
12
+ /// @name .k-translate-0-100
13
+ /// @group transform
14
+ /// @contextType css
15
+
16
+ /// This is equivalent to `transform: translate( 50%, 0 );`. The element moves horizontally by 50% of its width.
17
+ /// @name .k-translate-50-0
18
+ /// @group transform
19
+ /// @contextType css
20
+
21
+ /// This is equivalent to `transform: translate( 50%, 50% );`. The element moves horizontally by 50% of its width and vertically by 50% of its height.
22
+ /// @name .k-translate-50-50
23
+ /// @group transform
24
+ /// @contextType css
25
+
26
+ /// This is equivalent to `transform: translate( 50%, 100% );`. The element moves horizontally by 50% of its width and vertically by 100% of its height.
27
+ /// @name .k-translate-50-100
28
+ /// @group transform
29
+ /// @contextType css
30
+
31
+ /// This is equivalent to `transform: translate( 100%, 0 );`. The element moves horizontally by 100% of its width.
32
+ /// @name .k-translate-100-0
33
+ /// @group transform
34
+ /// @contextType css
35
+
36
+ /// This is equivalent to `transform: translate( 100%, 50% );`. The element moves horizontally by 100% of its width and vertically by 50% of its height.
37
+ /// @name .k-translate-100-50
38
+ /// @group transform
39
+ /// @contextType css
40
+
41
+ /// This is equivalent to `transform: translate( 100%, 100% );`. The element moves horizontally by 100% of its width and vertically by 100% of its height.
42
+ /// @name .k-translate-100-100
43
+ /// @group transform
44
+ /// @contextType css
45
+
46
+ $kendo-utils-translate: k-map-get( $kendo-utils, "translate" ) !default;
47
+ $kendo-utils-translate-xy: (
48
+ "0": ( 0, 0 ),
49
+ "0-50": ( 0, 50% ),
50
+ "0-100": ( 0, 100% ),
51
+ "50-0": ( 50%, 0 ),
52
+ "50-50": ( 50%, 50% ),
53
+ "50-100": ( 50%, 100% ),
54
+ "100-0": ( 100%, 0 ),
55
+ "100-50": ( 100%, 50% ),
56
+ "100-100": ( 100%, 100% )
57
+ ) !default;
4
58
 
5
59
  // sass-lint:disable function-name-format
60
+ @function __translate( $val ) {
61
+ @return translate( $val );
62
+ }
6
63
  @function __translate-x( $val ) {
7
64
  @return translateX( $val );
8
65
  }
@@ -11,5 +68,6 @@ $kendo-utils-translate: map-get( $kendo-utils, "translate" ) !default;
11
68
  }
12
69
  // sass-lint:enable function-name-format
13
70
 
71
+ @include generate-utils( translate, transform, $kendo-utils-translate-xy, __translate );
14
72
  @include generate-utils( translate-x, transform, $kendo-utils-translate, __translate-x );
15
73
  @include generate-utils( translate-y, transform, $kendo-utils-translate, __translate-y );
@@ -1,5 +1,9 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-font-size: map-get( $kendo-utils, "font-size" ) !default;
3
+ $kendo-utils-font-size: k-map-get( $kendo-utils, "font-size" ) !default;
4
4
 
5
5
  @include generate-utils( font-size, font-size, $kendo-utils-font-size );
6
+
7
+
8
+ // Legacy aliases
9
+ @include generate-utils( fs, font-size, $kendo-utils-font-size );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-font-style: map-get( $kendo-utils, "font-style" ) !default;
3
+ $kendo-utils-font-style: k-map-get( $kendo-utils, "font-style" ) !default;
4
4
 
5
5
  @include generate-utils( font, font-style, $kendo-utils-font-style );
@@ -1,5 +1,9 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-font-weight: map-get( $kendo-utils, "font-weight" ) !default;
3
+ $kendo-utils-font-weight: k-map-get( $kendo-utils, "font-weight" ) !default;
4
4
 
5
5
  @include generate-utils( font, font-weight, $kendo-utils-font-weight );
6
+
7
+
8
+ // Legacy aliases
9
+ @include generate-utils( font-weight, font-weight, $kendo-utils-font-weight );
@@ -1,19 +1,26 @@
1
+ // Text-align documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/text-align.
2
+
3
+ /// This is equivalent to `text-align: left;`. The inline contents are aligned to the left edge of the line box.
1
4
  /// @name .k-text-left
2
- /// @description This is equivalent to `text-align: left;`. The inline contents are aligned to the left edge of the line box.
3
5
  /// @group text-align
6
+ /// @contextType css
4
7
 
8
+ /// This is equivalent to `text-align: right;`. The inline contents are aligned to the right edge of the line box.
5
9
  /// @name .k-text-right
6
- /// @description This is equivalent to `text-align: right;`. The inline contents are aligned to the right edge of the line box.
7
10
  /// @group text-align
11
+ /// @contextType css
8
12
 
13
+ /// This is equivalent to `text-align: center;`. The inline contents are centered within the line box.
9
14
  /// @name .k-text-center
10
- /// @description This is equivalent to `text-align: center;`. The inline contents are centered within the line box.
11
15
  /// @group text-align
16
+ /// @contextType css
12
17
 
18
+ /// 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.
13
19
  /// @name .k-text-justify
14
- /// @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.
15
20
  /// @group text-align
21
+ /// @contextType css
16
22
 
17
- $kendo-utils-text-align: map-get( $kendo-utils, "text-align" ) !default;
23
+ // Text align utility classes
24
+ $kendo-utils-text-align: k-map-get( $kendo-utils, "text-align" ) !default;
18
25
 
19
26
  @include generate-utils( text, text-align, $kendo-utils-text-align );
@@ -0,0 +1,9 @@
1
+ // TODO DOCS
2
+
3
+ $kendo-utils-text-color: k-map-get( $kendo-utils, "text-color" ) !default;
4
+
5
+ @include generate-utils( text, color, $kendo-utils-text-color );
6
+
7
+
8
+ // Legacy aliases
9
+ @include generate-utils( color, color, $kendo-utils-text-color );
@@ -1,17 +1,21 @@
1
- // TODO DOCS
1
+ // Text-transform documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform.
2
2
 
3
+ /// This is equivalent to `text-transform: lowercase;`. Is a keyword that converts all characters to lowercase.
3
4
  /// @name k-text-lowercase
4
- /// @description This is equivalent to `text-transform: lowercase;`. Is a keyword that converts all characters to lowercase.
5
5
  /// @group text-transform
6
+ /// @contextType css
6
7
 
8
+ /// This is equivalent to `text-transform: uppercase;`. Is a keyword that converts all characters to uppercase.
7
9
  /// @name k-text-uppercase
8
- /// @description This is equivalent to `text-transform: uppercase;`. Is a keyword that converts all characters to uppercase.
9
10
  /// @group text-transform
11
+ /// @contextType css
10
12
 
13
+ /// 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).
11
14
  /// @name k-text-capitalize
12
- /// @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).
13
15
  /// @group text-transform
16
+ /// @contextType css
14
17
 
15
- $kendo-utils-text-transform: map-get( $kendo-utils, "text-transform" ) !default;
18
+ // Text transform utility classes
19
+ $kendo-utils-text-transform: k-map-get( $kendo-utils, "text-transform" ) !default;
16
20
 
17
21
  @include generate-utils( text, text-transform, $kendo-utils-text-transform );
@@ -1,27 +1,41 @@
1
+ // White-space documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/white-space.
2
+
3
+ /// 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.
1
4
  /// @name .k-white-space-normal
2
- /// @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.
3
5
  /// @group white-space
6
+ /// @contextType css
4
7
 
8
+ /// This is equivalent to `white-space: nowrap;`. Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source.
5
9
  /// @name .k-white-space-nowrap
6
- /// @description This is equivalent to `white-space: nowrap;`. Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source.
7
10
  /// @group white-space
11
+ /// @contextType css
8
12
 
13
+ /// 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.
9
14
  /// @name .k-white-space-pre
10
- /// @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.
11
15
  /// @group white-space
16
+ /// @contextType css
12
17
 
18
+ /// 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.
13
19
  /// @name .k-white-space-pre-wrap
14
- /// @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.
15
20
  /// @group white-space
21
+ /// @contextType css
16
22
 
23
+ /// 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.
17
24
  /// @name .k-white-space-pre-line
18
- /// @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.
19
25
  /// @group white-space
26
+ /// @contextType css
20
27
 
28
+ /// This is equivalent to `white-space: break-spaces;`. Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source.
21
29
  /// @name .k-white-space-break-spaces
22
- /// @description This is equivalent to `white-space: break-spaces;`. Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source.
23
30
  /// @group white-space
31
+ /// @contextType css
24
32
 
25
- $kendo-utils-white-space: map-get( $kendo-utils, "white-space" ) !default;
33
+ // White space utility classes
34
+ $kendo-utils-white-space: k-map-get( $kendo-utils, "white-space" ) !default;
26
35
 
27
36
  @include generate-utils( white-space, white-space, $kendo-utils-white-space );
37
+ @include generate-utils( whitespace, white-space, $kendo-utils-white-space );
38
+
39
+
40
+ // Legacy aliases
41
+ .#{$kendo-prefix}text-nowrap { @extend .#{$kendo-prefix}white-space-nowrap !optional; }
@@ -8,10 +8,16 @@
8
8
  // line height
9
9
  // list style
10
10
  @import "./_text-align.scss";
11
- // text color
11
+ @import "./_text-color.scss";
12
12
  // text decoration
13
13
  @import "./_text-transform.scss";
14
14
  // text overflow
15
15
  // text indent
16
16
  // vertical align
17
17
  @import "./_white-space.scss";
18
+
19
+
20
+ /// This is equivalent to `white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`.
21
+ /// @name .k-text-ellipsis
22
+ /// @group text
23
+ .#{$kendo-prefix}text-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } // sass-lint:disable-line one-declaration-per-line