@progress/kendo-theme-utils 6.2.1-dev.0 → 6.2.1-dev.151

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 (94) hide show
  1. package/dist/all.css +5166 -1018
  2. package/dist/all.scss +5365 -511
  3. package/dist/meta/sassdoc-data.json +25209 -1198
  4. package/dist/meta/sassdoc-raw-data.json +25209 -1198
  5. package/dist/meta/variables.json +1 -1
  6. package/package.json +3 -3
  7. package/scss/_variables.scss +188 -32
  8. package/scss/background/_background-clip.scss +31 -0
  9. package/scss/background/_background-color.scss +23 -1
  10. package/scss/background/index.import.scss +2 -0
  11. package/scss/border/_border-color.scss +30 -1
  12. package/scss/border/_border-radius.scss +323 -1
  13. package/scss/border/_border-style.scss +246 -1
  14. package/scss/border/_border-width.scss +211 -1
  15. package/scss/border/_outline-color.scss +29 -1
  16. package/scss/border/_outline-offset.scss +29 -1
  17. package/scss/border/_outline-style.scss +35 -1
  18. package/scss/border/_outline-width.scss +29 -1
  19. package/scss/effects/_opacity.scss +19 -0
  20. package/scss/effects/index.import.scss +7 -0
  21. package/scss/filter/_backdrop.scss +37 -0
  22. package/scss/filter/index.import.scss +5 -0
  23. package/scss/flex-grid/_align-content.scss +77 -1
  24. package/scss/flex-grid/_align-items.scss +71 -1
  25. package/scss/flex-grid/_align-self.scss +77 -1
  26. package/scss/flex-grid/_flex-basis.scss +4 -2
  27. package/scss/flex-grid/_flex-direction.scss +8 -4
  28. package/scss/flex-grid/_flex-grow.scss +4 -2
  29. package/scss/flex-grid/_flex-shrink.scss +4 -2
  30. package/scss/flex-grid/_flex-wrap.scss +6 -3
  31. package/scss/flex-grid/_flex.scss +7 -3
  32. package/scss/flex-grid/_gap.scss +179 -1
  33. package/scss/flex-grid/_grid-auto-columns.scss +23 -1
  34. package/scss/flex-grid/_grid-auto-flow.scss +35 -1
  35. package/scss/flex-grid/_grid-auto-rows.scss +23 -1
  36. package/scss/flex-grid/_grid-column-start-end.scss +17 -1
  37. package/scss/flex-grid/_grid-row-start-end.scss +17 -1
  38. package/scss/flex-grid/_grid-template-columns.scss +17 -1
  39. package/scss/flex-grid/_grid-template-rows.scss +17 -1
  40. package/scss/flex-grid/_justify-content.scss +77 -1
  41. package/scss/flex-grid/_justify-items.scss +83 -1
  42. package/scss/flex-grid/_justify-self.scss +77 -1
  43. package/scss/flex-grid/_order.scss +9 -0
  44. package/scss/flex-grid/_place-content.scss +77 -1
  45. package/scss/flex-grid/_place-items.scss +59 -1
  46. package/scss/flex-grid/_place-self.scss +65 -1
  47. package/scss/index.import.scss +6 -2
  48. package/scss/interactivity/_appearance.scss +4 -2
  49. package/scss/interactivity/_cursor.scss +23 -1
  50. package/scss/interactivity/_pointer-events.scss +4 -4
  51. package/scss/interactivity/_resize.scss +8 -6
  52. package/scss/interactivity/_scroll.scss +325 -1
  53. package/scss/interactivity/_touch-action.scss +52 -4
  54. package/scss/interactivity/_user-select.scss +10 -7
  55. package/scss/layout/_aspect-ratio.scss +8 -6
  56. package/scss/layout/_box-sizing.scss +19 -0
  57. package/scss/layout/_clear.scss +8 -6
  58. package/scss/layout/_columns.scss +85 -0
  59. package/scss/layout/_display.scss +38 -9
  60. package/scss/layout/_float.scss +6 -5
  61. package/scss/layout/_object-fit.scss +43 -0
  62. package/scss/layout/_object-position.scss +61 -0
  63. package/scss/layout/_overflow.scss +22 -6
  64. package/scss/layout/_placement.scss +174 -0
  65. package/scss/layout/_position.scss +10 -111
  66. package/scss/layout/_visibility.scss +17 -2
  67. package/scss/layout/_zindex.scss +41 -1
  68. package/scss/layout/index.import.scss +10 -0
  69. package/scss/sizing/_height.scss +143 -1
  70. package/scss/sizing/_width.scss +143 -1
  71. package/scss/spacing/_margin.scss +545 -1
  72. package/scss/spacing/_padding.scss +545 -1
  73. package/scss/svg/_fill.scss +43 -0
  74. package/scss/svg/_stroke.scss +43 -0
  75. package/scss/svg/index.import.scss +7 -0
  76. package/scss/table/_border-collapse.scss +11 -1
  77. package/scss/table/_table-layout.scss +6 -6
  78. package/scss/transform/_flip.scss +4 -2
  79. package/scss/transform/_origin.scss +53 -1
  80. package/scss/transform/_rotate.scss +16 -8
  81. package/scss/transform/_scale.scss +6 -3
  82. package/scss/transform/_skew.scss +23 -1
  83. package/scss/transform/_translate.scss +18 -9
  84. package/scss/typography/_font-size.scss +29 -1
  85. package/scss/typography/_font-style.scss +11 -1
  86. package/scss/typography/_font-weight.scss +53 -1
  87. package/scss/typography/_list-style.scss +25 -0
  88. package/scss/typography/_text-align.scss +8 -6
  89. package/scss/typography/_text-decoration.scss +31 -0
  90. package/scss/typography/_text-overflow.scss +12 -0
  91. package/scss/typography/_text-transform.scss +9 -8
  92. package/scss/typography/_vertical-align.scss +55 -0
  93. package/scss/typography/_white-space.scss +12 -8
  94. package/scss/typography/index.import.scss +6 -3
@@ -1,58 +1,87 @@
1
- /// 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.
1
+ /// This is equivalent to `display: none;`.
2
+ /// @example display: none;
2
3
  /// @name .k-d-none
3
4
  /// @group display
4
5
  /// @contextType css
5
6
 
6
- /// 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.
7
+ /// This is equivalent to `display: contents;`.
8
+ /// @example display: contents;
9
+ /// @name .k-d-contents
10
+ /// @group display
11
+ /// @contextType css
12
+
13
+ /// This is equivalent to `display: block;`.
14
+ /// @example display: block;
7
15
  /// @name .k-d-block
8
16
  /// @group display
9
17
  /// @contextType css
10
18
 
11
- /// 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.
19
+ /// This is equivalent to `display: inline;`.
20
+ /// @example display: inline;
12
21
  /// @name .k-d-inline
13
22
  /// @group display
14
23
  /// @contextType css
15
24
 
16
- /// 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).
25
+ /// This is equivalent to `display: inline-block;`.
26
+ /// @example display: inline-block;
17
27
  /// @name .k-d-inline-block
18
28
  /// @group display
19
29
  /// @contextType css
20
30
 
21
- /// This is equivalent to `display: flex;`. The element behaves like a block element and lays out its content according to the flexbox model.
31
+ /// This is equivalent to `display: flex;`.
32
+ /// @example display: flex;
22
33
  /// @name .k-d-flex
23
34
  /// @group display
24
35
  /// @contextType css
25
36
 
26
- /// This is equivalent to `display: inline-flex;`. The element behaves like an inline element and lays out its content according to the flexbox model.
37
+ /// This is equivalent to `display: inline-flex;`.
38
+ /// @example display: inline-flex;
27
39
  /// @name .k-d-inline-flex
28
40
  /// @group display
29
41
  /// @contextType css
30
42
 
31
43
  /// This is equivalent to `display: grid`. It defines the element as a grid container and establishes a new grid formatting context for its contents.
44
+ /// @example display: grid
32
45
  /// @name .k-d-grid
33
46
  /// @group display
34
47
  /// @contextType css
35
48
 
36
49
  /// 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.
50
+ /// @example display: inline-grid
37
51
  /// @name .k-d-inline-grid
38
52
  /// @group display
39
53
  /// @contextType css
40
54
 
41
- /// This is equivalent to `display: table;`. These elements behave like HTML `<table>` elements. It defines a block-level box.
55
+ /// This is equivalent to `display: table;`.
56
+ /// @example display: table;
42
57
  /// @name .k-d-table
43
58
  /// @group display
44
59
  /// @contextType css
45
60
 
46
- /// 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.
61
+ /// This is equivalent to `display: inline-table;`.
62
+ /// @example display: inline-table;
47
63
  /// @name .k-d-inline-table
48
64
  /// @group display
49
65
  /// @contextType css
50
66
 
51
- /// This is equivalent to `display: list-item;`. These elements behave like HTML `<LI>` elements. It defines a block-level box.
67
+ /// This is equivalent to `display: list-item;`.
68
+ /// @example display: list-item;
52
69
  /// @name .k-d-list-item
53
70
  /// @group display
54
71
  /// @contextType css
55
72
 
73
+ /// This is equivalent to `display: table-row;`.
74
+ /// @example display: table-row;
75
+ /// @name .k-d-table-row
76
+ /// @group display
77
+ /// @contextType css
78
+
79
+ /// This is equivalent to `display: table-cell;`.
80
+ /// @example display: table-cell;
81
+ /// @name .k-d-table-cell
82
+ /// @group display
83
+ /// @contextType css
84
+
56
85
  @mixin kendo-utils--layout--display() {
57
86
 
58
87
  // Display utility classes
@@ -1,16 +1,17 @@
1
- // Float documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/float.
2
-
3
- /// This is equivalent to `float: left;`. The element must float on the left side of its containing block.
1
+ /// This is equivalent to `float: left;`.
2
+ /// @example float: left;
4
3
  /// @name .k-float-left
5
4
  /// @group float
6
5
  /// @contextType css
7
6
 
8
- /// This is equivalent to `float: right;`. The element must float on the right side of its containing block.
7
+ /// This is equivalent to `float: right;`.
8
+ /// @example float: right;
9
9
  /// @name .k-float-right
10
10
  /// @group float
11
11
  /// @contextType css
12
12
 
13
- /// This is equivalent to `float: none;`. The element must not float.
13
+ /// This is equivalent to `float: none;`.
14
+ /// @example float: none;
14
15
  /// @name .k-float-none
15
16
  /// @group float
16
17
  /// @contextType css
@@ -0,0 +1,43 @@
1
+ /// This is equivalent to `object-fit: contain;`.
2
+ /// @example object-fit: contain;
3
+ /// @name .k-object-fit-contain
4
+ /// @group object-fit
5
+ /// @contextType css
6
+
7
+ /// This is equivalent to `object-fit: cover;`.
8
+ /// @example object-fit: cover;
9
+ /// @name .k-object-fit-cover
10
+ /// @group object-fit
11
+ /// @contextType css
12
+
13
+ /// This is equivalent to `object-fit: fill;`.
14
+ /// @example object-fit: fill;
15
+ /// @name .k-object-fit-fill
16
+ /// @group object-fit
17
+ /// @contextType css
18
+
19
+ /// This is equivalent to `object-fit: scale-down;`.
20
+ /// @example object-fit: scale-down;
21
+ /// @name .k-object-fit-scale-down
22
+ /// @group object-fit
23
+ /// @contextType css
24
+
25
+ /// This is equivalent to `object-fit: initial;`.
26
+ /// @example object-fit: initial;
27
+ /// @name .k-object-fit-initial
28
+ /// @group object-fit
29
+ /// @contextType css
30
+
31
+ /// This is equivalent to `object-fit: none;`.
32
+ /// @example object-fit: none;
33
+ /// @name .k-object-fit-none
34
+ /// @group object-fit
35
+ /// @contextType css
36
+
37
+ @mixin kendo-utils--layout--object-fit() {
38
+
39
+ // object-fit utility classes
40
+ $kendo-utils-object-fit: k-map-get( $kendo-utils, "object-fit" ) !default;
41
+ @include generate-utils( object-fit, object-fit, $kendo-utils-object-fit );
42
+
43
+ }
@@ -0,0 +1,61 @@
1
+ /// This is equivalent to `object-position: center;`.
2
+ /// @example object-position: center;
3
+ /// @name .k-object-position-center
4
+ /// @group object-position
5
+ /// @contextType css
6
+
7
+ /// This is equivalent to `object-position: top;`.
8
+ /// @example object-position: top;
9
+ /// @name .k-object-position-top
10
+ /// @group object-position
11
+ /// @contextType css
12
+
13
+ /// This is equivalent to `object-position: right;`.
14
+ /// @example object-position: right;
15
+ /// @name .k-object-position-right
16
+ /// @group object-position
17
+ /// @contextType css
18
+
19
+ /// This is equivalent to `object-position: bottom;`.
20
+ /// @example object-position: bottom;
21
+ /// @name .k-object-position-bottom
22
+ /// @group object-position
23
+ /// @contextType css
24
+
25
+ /// This is equivalent to `object-position: left;`.
26
+ /// @example object-position: left;
27
+ /// @name .k-object-position-left
28
+ /// @group object-position
29
+ /// @contextType css
30
+
31
+ /// This is equivalent to `object-position: top left;`.
32
+ /// @example object-position: top left;
33
+ /// @name .k-object-position-top-left
34
+ /// @group object-position
35
+ /// @contextType css
36
+
37
+ /// This is equivalent to `object-position: top right;`.
38
+ /// @example object-position: top right;
39
+ /// @name .k-object-position-top-right
40
+ /// @group object-position
41
+ /// @contextType css
42
+
43
+ /// This is equivalent to `object-position: bottom left;`.
44
+ /// @example object-position: bottom left;
45
+ /// @name .k-object-position-bottom-left
46
+ /// @group object-position
47
+ /// @contextType css
48
+
49
+ /// This is equivalent to `object-position: bottom right;`.
50
+ /// @example object-position: bottom right;
51
+ /// @name .k-object-position-bottom-right
52
+ /// @group object-position
53
+ /// @contextType css
54
+
55
+ @mixin kendo-utils--layout--object-position() {
56
+
57
+ // object-position utility classes
58
+ $kendo-utils-object-position: k-map-get( $kendo-utils, "object-position" ) !default;
59
+ @include generate-utils( object-position, object-position, $kendo-utils-object-position );
60
+
61
+ }
@@ -1,74 +1,89 @@
1
- /// 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.
1
+ /// This is equivalent to `overflow: auto;`.
2
+ /// @example overflow: auto;
2
3
  /// @name .k-overflow-auto
3
4
  /// @group overflow
4
5
  /// @contextType css
5
6
 
6
- /// 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.
7
+ /// This is equivalent to `overflow: hidden;`.
8
+ /// @example overflow: hidden;
7
9
  /// @name .k-overflow-hidden
8
10
  /// @group overflow
9
11
  /// @contextType css
10
12
 
11
- /// This is equivalent to `overflow: visible;`. Content is not clipped and may be rendered outside the padding box.
13
+ /// This is equivalent to `overflow: visible;`.
14
+ /// @example overflow: visible;
12
15
  /// @name .k-overflow-visible
13
16
  /// @group overflow
14
17
  /// @contextType css
15
18
 
16
- /// 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.
19
+ /// This is equivalent to `overflow: scroll;`.
20
+ /// @example overflow: scroll;
17
21
  /// @name .k-overflow-scroll
18
22
  /// @group overflow
19
23
  /// @contextType css
20
24
 
21
- /// 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.
25
+ /// This is equivalent to `overflow: clip;`.
26
+ /// @example overflow: clip;
22
27
  /// @name .k-overflow-clip
23
28
  /// @group overflow
24
29
  /// @contextType css
25
30
 
26
31
  /// This is equivalent to `overflow-x: auto;`.
32
+ /// @example overflow-x: auto;
27
33
  /// @name .k-overflow-x-auto
28
34
  /// @group overflow
29
35
  /// @contextType css
30
36
 
31
37
  /// This is equivalent to `overflow-x: hidden;`.
38
+ /// @example overflow-x: hidden;
32
39
  /// @name .k-overflow-x-hidden
33
40
  /// @group overflow
34
41
  /// @contextType css
35
42
 
36
43
  /// This is equivalent to `overflow-x: visible;`.
44
+ /// @example overflow-x: visible;
37
45
  /// @name .k-overflow-x-visible
38
46
  /// @group overflow
39
47
  /// @contextType css
40
48
 
41
49
  /// This is equivalent to `overflow-x: scroll;`.
50
+ /// @example overflow-x: scroll;
42
51
  /// @name .k-overflow-x-scroll
43
52
  /// @group overflow
44
53
  /// @contextType css
45
54
 
46
55
  /// This is equivalent to `overflow-x: clip;`.
56
+ /// @example overflow-x: clip;
47
57
  /// @name .k-overflow-x-clip
48
58
  /// @group overflow
49
59
  /// @contextType css
50
60
 
51
61
  /// This is equivalent to `overflow-y: auto;`.
62
+ /// @example overflow-y: auto;
52
63
  /// @name .k-overflow-y-auto
53
64
  /// @group overflow
54
65
  /// @contextType css
55
66
 
56
67
  /// This is equivalent to `overflow-y: hidden;`.
68
+ /// @example overflow-y: hidden;
57
69
  /// @name .k-overflow-y-hidden
58
70
  /// @group overflow
59
71
  /// @contextType css
60
72
 
61
73
  /// This is equivalent to `overflow-y: visible;`.
74
+ /// @example overflow-y: visible;
62
75
  /// @name .k-overflow-y-visible
63
76
  /// @group overflow
64
77
  /// @contextType css
65
78
 
66
79
  /// This is equivalent to `overflow-y: scroll;`.
80
+ /// @example overflow-y: scroll;
67
81
  /// @name .k-overflow-y-scroll
68
82
  /// @group overflow
69
83
  /// @contextType css
70
84
 
71
85
  /// This is equivalent to `overflow-y: clip;`.
86
+ /// @example overflow-y: clip;
72
87
  /// @name .k-overflow-y-clip
73
88
  /// @group overflow
74
89
  /// @contextType css
@@ -78,5 +93,6 @@
78
93
  // Overflow utility classes
79
94
  $kendo-utils-overflow: k-map-get( $kendo-utils, "overflow" ) !default;
80
95
  @include generate-utils( overflow, overflow, $kendo-utils-overflow );
81
-
96
+ @include generate-utils( overflow-x, overflow-x, $kendo-utils-overflow );
97
+ @include generate-utils( overflow-y, overflow-y, $kendo-utils-overflow );
82
98
  }
@@ -0,0 +1,174 @@
1
+ /// This is equivalent to `top: 0;`.
2
+ /// @example top: 0;
3
+ /// @name .k-top-0
4
+ /// @group position
5
+ /// @contextType css
6
+
7
+ /// This is equivalent to `right: 0;`.
8
+ /// @example right: 0;
9
+ /// @name .k-right-0
10
+ /// @group position
11
+ /// @contextType css
12
+
13
+ /// This is equivalent to `bottom: 0;`.
14
+ /// @example bottom: 0;
15
+ /// @name .k-bottom-0
16
+ /// @group position
17
+ /// @contextType css
18
+
19
+ /// This is equivalent to `left: 0;`.
20
+ /// @example left: 0;
21
+ /// @name .k-left-0
22
+ /// @group position
23
+ /// @contextType css
24
+
25
+ /// This is equivalent to `top: 0;`.
26
+ /// @example top: 0;
27
+ /// @name .k-pos-top-0
28
+ /// @group position
29
+ /// @contextType css
30
+
31
+ /// This is equivalent to `right: 0;`.
32
+ /// @example right: 0;
33
+ /// @name .k-pos-right-0
34
+ /// @group position
35
+ /// @contextType css
36
+
37
+ /// This is equivalent to `bottom: 0;`.
38
+ /// @example bottom: 0;
39
+ /// @name .k-pos-bottom-0
40
+ /// @group position
41
+ /// @contextType css
42
+
43
+ /// This is equivalent to `left: 0;`.
44
+ /// @example left: 0;
45
+ /// @name .k-pos-left-0
46
+ /// @group position
47
+ /// @contextType css
48
+
49
+ /// This is equivalent to `top: 0; left: 0;`.
50
+ /// @example top: 0; left: 0;
51
+ /// @name .k-top-left-0
52
+ /// @group position
53
+ /// @contextType css
54
+
55
+ /// This is equivalent to `top: 0; right: 0;`.
56
+ /// @example top: 0; right: 0;
57
+ /// @name .k-top-right-0
58
+ /// @group position
59
+ /// @contextType css
60
+
61
+ /// This is equivalent to `bottom: 0; left: 0;`.
62
+ /// @example bottom: 0; left: 0;
63
+ /// @name .k-bottom-left-0
64
+ /// @group position
65
+ /// @contextType css
66
+
67
+ /// This is equivalent to `bottom: 0; right: 0;`.
68
+ /// @example bottom: 0; right: 0;
69
+ /// @name .k-bottom-right-0
70
+ /// @group position
71
+ /// @contextType css
72
+
73
+ /// This is equivalent to `inset: 0;`.This is a shorthand that corresponds to the top: 0; right: 0; bottom: 0; and/or left: 0 properties. It has the same multi-value syntax of the margin shorthand.
74
+ /// @example inset: 0;
75
+ /// @name .k-inset-0
76
+ /// @group position
77
+ /// @contextType css
78
+
79
+ /// This is equivalent to `inset-inline: 0;`.
80
+ /// @example inset-inline: 0;
81
+ /// @name .k-inset-x-0
82
+ /// @group position
83
+ /// @contextType css
84
+
85
+ /// This is equivalent to `inset-block: 0;`.
86
+ /// @example inset-block: 0;
87
+ /// @name .k-inset-y-0
88
+ /// @group position
89
+ /// @contextType css
90
+
91
+ @mixin kendo-utils--layout--placement() {
92
+ // Top / right / bottom / left
93
+ $kendo-utils-placement: k-map-get( $kendo-utils, "placement" ) !default;
94
+ @include generate-utils( top, top, $kendo-utils-placement );
95
+ @include generate-utils( right, right, $kendo-utils-placement );
96
+ @include generate-utils( bottom, bottom, $kendo-utils-placement );
97
+ @include generate-utils( left, left, $kendo-utils-placement );
98
+
99
+
100
+ // Position length utility classes
101
+ @each $side in (top, right, bottom, left) {
102
+ .#{$kendo-prefix}#{$side},
103
+ .#{$kendo-prefix}pos-#{$side} { #{$side}: 0; } // sass-lint:disable-line brace-style
104
+ }
105
+
106
+ // Inset utility classes
107
+ $kendo-utils-inset: k-map-get( $kendo-utils, "inset" ) !default;
108
+ @include generate-utils( inset, inset, $kendo-utils-inset );
109
+ @include generate-utils( inset-x, inset-inline, $kendo-utils-inset );
110
+ @include generate-utils( inset-y, inset-block, $kendo-utils-inset );
111
+ @include generate-utils( top-left, ( top, left ), $kendo-utils-inset );
112
+ @include generate-utils( top-right, ( top, right ), $kendo-utils-inset );
113
+ @include generate-utils( bottom-left, ( bottom, left ), $kendo-utils-inset );
114
+ @include generate-utils( bottom-right, ( bottom, right ), $kendo-utils-inset );
115
+
116
+
117
+ // Legacy aliases
118
+ .#{$kendo-prefix}top-start,
119
+ .#{$kendo-prefix}pos-top-start {
120
+ top: 0;
121
+ inset-inline-start: 0;
122
+ }
123
+
124
+ .#{$kendo-prefix}top-end,
125
+ .#{$kendo-prefix}pos-top-end {
126
+ top: 0;
127
+ inset-inline-end: 0;
128
+ }
129
+
130
+ .#{$kendo-prefix}bottom-start,
131
+ .#{$kendo-prefix}pos-bottom-start {
132
+ bottom: 0;
133
+ inset-inline-start: 0;
134
+ }
135
+
136
+ .#{$kendo-prefix}bottom-end,
137
+ .#{$kendo-prefix}pos-bottom-end {
138
+ bottom: 0;
139
+ inset-inline-end: 0;
140
+ }
141
+
142
+ .#{$kendo-prefix}top-center,
143
+ .#{$kendo-prefix}pos-top-center {
144
+ top: 0;
145
+ left: 50%;
146
+ transform: translateX(-50%);
147
+ }
148
+ .#{$kendo-prefix}middle-left,
149
+ .#{$kendo-prefix}middle-start,
150
+ .#{$kendo-prefix}pos-middle-start {
151
+ top: 50%;
152
+ left: 0;
153
+ transform: translateY(-50%);
154
+ }
155
+ .#{$kendo-prefix}middle-center {
156
+ top: 50%;
157
+ left: 50%;
158
+ transform: translateY(-50%);
159
+ }
160
+ .#{$kendo-prefix}middle-right,
161
+ .#{$kendo-prefix}middle-end,
162
+ .#{$kendo-prefix}pos-middle-end {
163
+ top: 50%;
164
+ right: 0;
165
+ transform: translateY(-50%);
166
+ }
167
+ .#{$kendo-prefix}bottom-center,
168
+ .#{$kendo-prefix}pos-bottom-center {
169
+ bottom: 0;
170
+ left: 50%;
171
+ transform: translateX(-50%);
172
+ }
173
+
174
+ }
@@ -1,54 +1,33 @@
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.
1
+ /// This is equivalent to `position: static;`.
2
+ /// @example position: static;
4
3
  /// @name .k-pos-static
5
4
  /// @group position
6
5
  /// @contextType css
7
6
 
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.
7
+ /// This is equivalent to `position: relative;`.
8
+ /// @example position: relative;
9
9
  /// @name .k-pos-relative
10
10
  /// @group position
11
11
  /// @contextType css
12
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.
13
+ /// This is equivalent to `position: absolute;`.
14
+ /// @example position: absolute;
14
15
  /// @name .k-pos-absolute
15
16
  /// @group position
16
17
  /// @contextType css
17
18
 
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
+ /// This is equivalent to `position: fixed;`.
20
+ /// @example position: fixed;
19
21
  /// @name .k-pos-fixed
20
22
  /// @group position
21
23
  /// @contextType css
22
24
 
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.
25
+ /// This is equivalent to `position: sticky;`.
26
+ /// @example position: sticky;
24
27
  /// @name .k-pos-sticky
25
28
  /// @group position
26
29
  /// @contextType css
27
30
 
28
-
29
- // TODO: inset docs
30
-
31
-
32
- /// This is equivalent to `top: 0;`.
33
- /// @name .k-pos-top
34
- /// @group position
35
- /// @contextType css
36
-
37
- /// This is equivalent to `right: 0;`.
38
- /// @name .k-pos-right
39
- /// @group position
40
- /// @contextType css
41
-
42
- /// This is equivalent to `bottom: 0;`.
43
- /// @name .k-pos-bottom
44
- /// @group position
45
- /// @contextType css
46
-
47
- /// This is equivalent to `left: 0;`.
48
- /// @name .k-pos-left
49
- /// @group position
50
- /// @contextType css
51
-
52
31
  @mixin kendo-utils--layout--position() {
53
32
 
54
33
  // Position utility classes
@@ -68,84 +47,4 @@
68
47
  .#{$kendo-prefix}sticky { @extend .#{$kendo-prefix}pos-sticky !optional; }
69
48
  .\!#{$kendo-prefix}sticky { @extend .\!#{$kendo-prefix}pos-sticky !optional; }
70
49
 
71
-
72
- // Inset utility classes
73
- $kendo-utils-inset: k-map-get( $kendo-utils, "inset" ) !default;
74
- @include generate-utils( inset, inset, $kendo-utils-inset );
75
- @include generate-utils( inset-x, inset-inline, $kendo-utils-inset );
76
- @include generate-utils( inset-y, inset-block, $kendo-utils-inset );
77
- @include generate-utils( top, top, $kendo-utils-inset );
78
- @include generate-utils( right, right, $kendo-utils-inset );
79
- @include generate-utils( bottom, bottom, $kendo-utils-inset );
80
- @include generate-utils( left, left, $kendo-utils-inset );
81
- @include generate-utils( top-left, ( top, left ), $kendo-utils-inset );
82
- @include generate-utils( top-right, ( top, right ), $kendo-utils-inset );
83
- @include generate-utils( bottom-left, ( bottom, left ), $kendo-utils-inset );
84
- @include generate-utils( bottom-right, ( bottom, right ), $kendo-utils-inset );
85
-
86
-
87
- // Legacy aliases
88
- .#{$kendo-prefix}top-start,
89
- .#{$kendo-prefix}pos-top-start {
90
- top: 0;
91
- inset-inline-start: 0;
92
- }
93
-
94
- .#{$kendo-prefix}top-end,
95
- .#{$kendo-prefix}pos-top-end {
96
- top: 0;
97
- inset-inline-end: 0;
98
- }
99
-
100
- .#{$kendo-prefix}bottom-start,
101
- .#{$kendo-prefix}pos-bottom-start {
102
- bottom: 0;
103
- inset-inline-start: 0;
104
- }
105
-
106
- .#{$kendo-prefix}bottom-end,
107
- .#{$kendo-prefix}pos-bottom-end {
108
- bottom: 0;
109
- inset-inline-end: 0;
110
- }
111
-
112
- .#{$kendo-prefix}top-center,
113
- .#{$kendo-prefix}pos-top-center {
114
- top: 0;
115
- left: 50%;
116
- transform: translateX(-50%);
117
- }
118
- .#{$kendo-prefix}middle-left,
119
- .#{$kendo-prefix}middle-start,
120
- .#{$kendo-prefix}pos-middle-start {
121
- top: 50%;
122
- left: 0;
123
- transform: translateY(-50%);
124
- }
125
- .#{$kendo-prefix}middle-center {
126
- top: 50%;
127
- left: 50%;
128
- transform: translateY(-50%);
129
- }
130
- .#{$kendo-prefix}middle-right,
131
- .#{$kendo-prefix}middle-end,
132
- .#{$kendo-prefix}pos-middle-end {
133
- top: 50%;
134
- right: 0;
135
- transform: translateY(-50%);
136
- }
137
- .#{$kendo-prefix}bottom-center,
138
- .#{$kendo-prefix}pos-bottom-center {
139
- bottom: 0;
140
- left: 50%;
141
- transform: translateX(-50%);
142
- }
143
-
144
-
145
- // Position length utility classes
146
- @each $side in (top, right, bottom, left) {
147
- .#{$kendo-prefix}#{$side},
148
- .#{$kendo-prefix}pos-#{$side} { #{$side}: 0; } // sass-lint:disable-line brace-style
149
- }
150
-
151
50
  }
@@ -1,5 +1,20 @@
1
- // TODO: docs
2
- // TODO: consider visible and invisible vs visibility-visible and visibility-hidden
1
+ /// This is equivalent to `visibility: visble;`.
2
+ /// @example visibility: visble;
3
+ /// @name .k-visible
4
+ /// @group visibility
5
+ /// @contextType css
6
+
7
+ /// This is equivalent to `visibility: hidden;`.
8
+ /// @example visibility: hidden;
9
+ /// @name .k-invisible
10
+ /// @group visibility
11
+ /// @contextType css
12
+
13
+ /// This is equivalent to `visibility: collapse;`.
14
+ /// @example visibility: collapse;
15
+ /// @name .k-collapse
16
+ /// @group visibility
17
+ /// @contextType css
3
18
 
4
19
  @mixin kendo-utils--layout--visibility() {
5
20