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

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.
@@ -78,5 +78,6 @@
78
78
  // Overflow utility classes
79
79
  $kendo-utils-overflow: k-map-get( $kendo-utils, "overflow" ) !default;
80
80
  @include generate-utils( overflow, overflow, $kendo-utils-overflow );
81
-
81
+ @include generate-utils( overflow-x, overflow-x, $kendo-utils-overflow );
82
+ @include generate-utils( overflow-y, overflow-y, $kendo-utils-overflow );
82
83
  }
@@ -0,0 +1,110 @@
1
+ // Position documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/position.
2
+
3
+
4
+ // TODO: inset docs
5
+
6
+
7
+ /// This is equivalent to `top: 0;`.
8
+ /// @name .k-pos-top
9
+ /// @group position
10
+ /// @contextType css
11
+
12
+ /// This is equivalent to `right: 0;`.
13
+ /// @name .k-pos-right
14
+ /// @group position
15
+ /// @contextType css
16
+
17
+ /// This is equivalent to `bottom: 0;`.
18
+ /// @name .k-pos-bottom
19
+ /// @group position
20
+ /// @contextType css
21
+
22
+ /// This is equivalent to `left: 0;`.
23
+ /// @name .k-pos-left
24
+ /// @group position
25
+ /// @contextType css
26
+
27
+ @mixin kendo-utils--layout--placement() {
28
+ // Top / right / bottom / left
29
+ $kendo-utils-placement: k-map-get( $kendo-utils, "placement" ) !default;
30
+ @include generate-utils( top, top, $kendo-utils-placement );
31
+ @include generate-utils( right, right, $kendo-utils-placement );
32
+ @include generate-utils( bottom, bottom, $kendo-utils-placement );
33
+ @include generate-utils( left, left, $kendo-utils-placement );
34
+
35
+
36
+ // Position length utility classes
37
+ @each $side in (top, right, bottom, left) {
38
+ .#{$kendo-prefix}#{$side},
39
+ .#{$kendo-prefix}pos-#{$side} { #{$side}: 0; } // sass-lint:disable-line brace-style
40
+ }
41
+
42
+ // Inset utility classes
43
+ $kendo-utils-inset: k-map-get( $kendo-utils, "inset" ) !default;
44
+ @include generate-utils( inset, inset, $kendo-utils-inset );
45
+ @include generate-utils( inset-x, inset-inline, $kendo-utils-inset );
46
+ @include generate-utils( inset-y, inset-block, $kendo-utils-inset );
47
+ @include generate-utils( top-left, ( top, left ), $kendo-utils-inset );
48
+ @include generate-utils( top-right, ( top, right ), $kendo-utils-inset );
49
+ @include generate-utils( bottom-left, ( bottom, left ), $kendo-utils-inset );
50
+ @include generate-utils( bottom-right, ( bottom, right ), $kendo-utils-inset );
51
+
52
+
53
+ // Legacy aliases
54
+ .#{$kendo-prefix}top-start,
55
+ .#{$kendo-prefix}pos-top-start {
56
+ top: 0;
57
+ inset-inline-start: 0;
58
+ }
59
+
60
+ .#{$kendo-prefix}top-end,
61
+ .#{$kendo-prefix}pos-top-end {
62
+ top: 0;
63
+ inset-inline-end: 0;
64
+ }
65
+
66
+ .#{$kendo-prefix}bottom-start,
67
+ .#{$kendo-prefix}pos-bottom-start {
68
+ bottom: 0;
69
+ inset-inline-start: 0;
70
+ }
71
+
72
+ .#{$kendo-prefix}bottom-end,
73
+ .#{$kendo-prefix}pos-bottom-end {
74
+ bottom: 0;
75
+ inset-inline-end: 0;
76
+ }
77
+
78
+ .#{$kendo-prefix}top-center,
79
+ .#{$kendo-prefix}pos-top-center {
80
+ top: 0;
81
+ left: 50%;
82
+ transform: translateX(-50%);
83
+ }
84
+ .#{$kendo-prefix}middle-left,
85
+ .#{$kendo-prefix}middle-start,
86
+ .#{$kendo-prefix}pos-middle-start {
87
+ top: 50%;
88
+ left: 0;
89
+ transform: translateY(-50%);
90
+ }
91
+ .#{$kendo-prefix}middle-center {
92
+ top: 50%;
93
+ left: 50%;
94
+ transform: translateY(-50%);
95
+ }
96
+ .#{$kendo-prefix}middle-right,
97
+ .#{$kendo-prefix}middle-end,
98
+ .#{$kendo-prefix}pos-middle-end {
99
+ top: 50%;
100
+ right: 0;
101
+ transform: translateY(-50%);
102
+ }
103
+ .#{$kendo-prefix}bottom-center,
104
+ .#{$kendo-prefix}pos-bottom-center {
105
+ bottom: 0;
106
+ left: 50%;
107
+ transform: translateX(-50%);
108
+ }
109
+
110
+ }
@@ -25,30 +25,6 @@
25
25
  /// @group position
26
26
  /// @contextType css
27
27
 
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
28
  @mixin kendo-utils--layout--position() {
53
29
 
54
30
  // Position utility classes
@@ -68,84 +44,4 @@
68
44
  .#{$kendo-prefix}sticky { @extend .#{$kendo-prefix}pos-sticky !optional; }
69
45
  .\!#{$kendo-prefix}sticky { @extend .\!#{$kendo-prefix}pos-sticky !optional; }
70
46
 
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
47
  }
@@ -1,8 +1,13 @@
1
1
  @import "./_aspect-ratio.scss";
2
+ @import "./_box-sizing.scss";
2
3
  @import "./_clear.scss";
4
+ @import "./_columns.scss";
3
5
  @import "./_display.scss";
4
6
  @import "./_float.scss";
7
+ @import "./_object-fit.scss";
8
+ @import "./_object-position.scss";
5
9
  @import "./_overflow.scss";
10
+ @import "./_placement.scss";
6
11
  @import "./_position.scss";
7
12
  @import "./_visibility.scss";
8
13
  @import "./_zindex.scss";
@@ -10,10 +15,15 @@
10
15
 
11
16
  @mixin kendo-utils--layout() {
12
17
  @include kendo-utils--layout--aspect-ratio();
18
+ @include kendo-utils--layout--box-sizing();
13
19
  @include kendo-utils--layout--clear();
20
+ @include kendo-utils--layout--columns();
14
21
  @include kendo-utils--layout--display();
15
22
  @include kendo-utils--layout--float();
23
+ @include kendo-utils--layout--object-fit();
24
+ @include kendo-utils--layout--object-position();
16
25
  @include kendo-utils--layout--overflow();
26
+ @include kendo-utils--layout--placement();
17
27
  @include kendo-utils--layout--position();
18
28
  @include kendo-utils--layout--visibility();
19
29
  @include kendo-utils--layout--zindex();
@@ -0,0 +1,9 @@
1
+ // TODO: docs
2
+
3
+ @mixin kendo-utils--svg--fill() {
4
+
5
+ // fill utility classes
6
+ $kendo-utils-fill: k-map-get( $kendo-utils, "fill-stroke" ) !default;
7
+ @include generate-utils( fill, fill, $kendo-utils-fill );
8
+
9
+ }
@@ -0,0 +1,9 @@
1
+ // TODO: docs
2
+
3
+ @mixin kendo-utils--svg--stroke() {
4
+
5
+ // stroke utility classes
6
+ $kendo-utils-stroke: k-map-get( $kendo-utils, "fill-stroke" ) !default;
7
+ @include generate-utils( stroke, stroke, $kendo-utils-stroke );
8
+
9
+ }
@@ -0,0 +1,7 @@
1
+ @import "./_fill.scss";
2
+ @import "./_stroke.scss";
3
+
4
+ @mixin kendo-utils--svg() {
5
+ @include kendo-utils--svg--fill();
6
+ @include kendo-utils--svg--stroke();
7
+ }
@@ -0,0 +1,9 @@
1
+ // TODO: docs
2
+
3
+ @mixin kendo-utils--typography--list-style-type() {
4
+
5
+ // list-style-type utility classes
6
+ $kendo-utils-list-style-type: k-map-get( $kendo-utils, "list-style-type" ) !default;
7
+ @include generate-utils( list, list-style-type, $kendo-utils-list-style-type );
8
+
9
+ }
@@ -0,0 +1,9 @@
1
+ // TODO: docs
2
+
3
+ @mixin kendo-utils--typography--text-decoration() {
4
+
5
+ // text-decoration utility classes
6
+ $kendo-utils-text-decoration: k-map-get( $kendo-utils, "text-decoration" ) !default;
7
+ @include generate-utils( text, text-decoration, $kendo-utils-text-decoration );
8
+
9
+ }
@@ -0,0 +1,9 @@
1
+ // TODO: docs
2
+
3
+ @mixin kendo-utils--typography--vertical-align() {
4
+
5
+ // vertical-align utility classes
6
+ $kendo-utils-vertical-align: k-map-get( $kendo-utils, "vertical-align" ) !default;
7
+ @include generate-utils( align, vertical-align, $kendo-utils-vertical-align );
8
+
9
+ }
@@ -6,14 +6,14 @@
6
6
  // font variant
7
7
  // letter spacing
8
8
  // line height
9
- // list style
9
+ @import "./_list-style.scss";
10
10
  @import "./_text-align.scss";
11
11
  @import "./_text-color.scss";
12
- // text decoration
12
+ @import "./_text-decoration.scss";
13
13
  @import "./_text-overflow.scss";
14
14
  @import "./_text-transform.scss";
15
15
  // text indent
16
- // vertical align
16
+ @import "./_vertical-align.scss";
17
17
  @import "./_white-space.scss";
18
18
 
19
19
 
@@ -21,9 +21,12 @@
21
21
  @include kendo-utils--typography--font-size();
22
22
  @include kendo-utils--typography--font-style();
23
23
  @include kendo-utils--typography--font-weight();
24
+ @include kendo-utils--typography--list-style-type();
24
25
  @include kendo-utils--typography--text-align();
25
26
  @include kendo-utils--typography--text-color();
27
+ @include kendo-utils--typography--text-decoration();
26
28
  @include kendo-utils--typography--text-overflow();
27
29
  @include kendo-utils--typography--text-transform();
30
+ @include kendo-utils--typography--vertical-align();
28
31
  @include kendo-utils--typography--white-space();
29
32
  }