@progress/kendo-theme-utils 6.0.2-dev.0 → 6.0.3
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 +4547 -3595
- package/dist/all.scss +1092 -636
- package/package.json +3 -3
- package/scss/_variables.scss +34 -4
- package/scss/accessibility/_screen-readers.scss +29 -24
- package/scss/accessibility/index.import.scss +4 -0
- package/scss/all.scss +2 -0
- package/scss/background/_background-color.scss +7 -3
- package/scss/background/index.import.scss +5 -0
- package/scss/border/_border-color.scss +13 -9
- package/scss/border/_border-radius.scss +15 -11
- package/scss/border/_border-style.scss +13 -9
- package/scss/border/_border-width.scss +18 -14
- package/scss/border/_outline-color.scss +7 -3
- package/scss/border/_outline-offset.scss +7 -3
- package/scss/border/_outline-style.scss +7 -3
- package/scss/border/_outline-width.scss +7 -3
- package/scss/border/index.import.scss +16 -4
- package/scss/flex-grid/_align-content.scss +7 -3
- package/scss/flex-grid/_align-items.scss +7 -3
- package/scss/flex-grid/_align-self.scss +7 -3
- package/scss/flex-grid/_flex-basis.scss +7 -4
- package/scss/flex-grid/_flex-direction.scss +9 -6
- package/scss/flex-grid/_flex-grow.scss +7 -4
- package/scss/flex-grid/_flex-shrink.scss +7 -4
- package/scss/flex-grid/_flex-wrap.scss +6 -3
- package/scss/flex-grid/_flex.scss +6 -3
- package/scss/flex-grid/_gap.scss +9 -5
- package/scss/flex-grid/_grid-auto-columns.scss +7 -3
- package/scss/flex-grid/_grid-auto-flow.scss +7 -3
- package/scss/flex-grid/_grid-auto-rows.scss +7 -3
- package/scss/flex-grid/_grid-column-start-end.scss +16 -12
- package/scss/flex-grid/_grid-row-start-end.scss +16 -12
- package/scss/flex-grid/_grid-template-columns.scss +7 -3
- package/scss/flex-grid/_grid-template-rows.scss +7 -3
- package/scss/flex-grid/_justify-content.scss +11 -5
- package/scss/flex-grid/_justify-items.scss +7 -3
- package/scss/flex-grid/_justify-self.scss +7 -3
- package/scss/flex-grid/_order.scss +6 -2
- package/scss/flex-grid/_place-content.scss +7 -3
- package/scss/flex-grid/_place-items.scss +7 -3
- package/scss/flex-grid/_place-self.scss +7 -3
- package/scss/flex-grid/index.import.scss +41 -13
- package/scss/index.import.scss +16 -0
- package/scss/interactivity/_accent-color.scss +7 -3
- package/scss/interactivity/_appearance.scss +6 -3
- package/scss/interactivity/_caret-color.scss +7 -3
- package/scss/interactivity/_cursor.scss +7 -3
- package/scss/interactivity/_pointer-events.scss +6 -3
- package/scss/interactivity/_resize.scss +6 -3
- package/scss/interactivity/_scroll.scss +36 -31
- package/scss/interactivity/_touch-action.scss +7 -4
- package/scss/interactivity/_user-select.scss +6 -3
- package/scss/interactivity/_will-change.scss +7 -3
- package/scss/interactivity/index.import.scss +15 -1
- package/scss/layout/_aspect-ratio.scss +8 -4
- package/scss/layout/_clear.scss +6 -2
- package/scss/layout/_display.scss +12 -9
- package/scss/layout/_float.scss +6 -2
- package/scss/layout/_overflow.scss +6 -3
- package/scss/layout/_position.scss +100 -90
- package/scss/layout/_visibility.scss +13 -8
- package/scss/layout/_zindex.scss +7 -3
- package/scss/layout/index.import.scss +13 -1
- package/scss/sizing/_height.scss +12 -10
- package/scss/sizing/_width.scss +12 -10
- package/scss/sizing/index.import.scss +7 -1
- package/scss/spacing/_margin.scss +13 -9
- package/scss/spacing/_padding.scss +13 -9
- package/scss/spacing/_space-between.scss +18 -0
- package/scss/spacing/index.import.scss +7 -0
- package/scss/table/_border-collapse.scss +7 -3
- package/scss/table/_table-layout.scss +7 -4
- package/scss/table/index.import.scss +6 -0
- package/scss/transform/_flip.scss +19 -14
- package/scss/transform/_origin.scss +7 -3
- package/scss/transform/_rotate.scss +7 -3
- package/scss/transform/_scale.scss +9 -5
- package/scss/transform/_skew.scss +9 -5
- package/scss/transform/_translate.scss +20 -16
- package/scss/transform/index.import.scss +13 -3
- package/scss/typography/_font-size.scss +8 -5
- package/scss/typography/_font-style.scss +7 -3
- package/scss/typography/_font-weight.scss +9 -5
- package/scss/typography/_text-align.scss +7 -3
- package/scss/typography/_text-color.scss +9 -5
- package/scss/typography/_text-transform.scss +6 -3
- package/scss/typography/_white-space.scss +10 -6
- package/scss/typography/index.import.scss +14 -4
|
@@ -25,94 +25,8 @@
|
|
|
25
25
|
/// @group position
|
|
26
26
|
/// @contextType css
|
|
27
27
|
|
|
28
|
-
$kendo-utils-position: k-map-get( $kendo-utils, "position" ) !default;
|
|
29
|
-
|
|
30
|
-
@include generate-utils( pos, position, $kendo-utils-position );
|
|
31
|
-
|
|
32
|
-
// Aliases
|
|
33
|
-
.#{$kendo-prefix}static { @extend .#{$kendo-prefix}pos-static !optional; }
|
|
34
|
-
.\!#{$kendo-prefix}static { @extend .\!#{$kendo-prefix}pos-static !optional; }
|
|
35
|
-
.#{$kendo-prefix}relative { @extend .#{$kendo-prefix}pos-relative !optional; }
|
|
36
|
-
.\!#{$kendo-prefix}relative { @extend .\!#{$kendo-prefix}pos-relative !optional; }
|
|
37
|
-
.#{$kendo-prefix}absolute { @extend .#{$kendo-prefix}pos-absolute !optional; }
|
|
38
|
-
.\!#{$kendo-prefix}absolute { @extend .\!#{$kendo-prefix}pos-absolute !optional; }
|
|
39
|
-
.#{$kendo-prefix}fixed { @extend .#{$kendo-prefix}pos-fixed !optional; }
|
|
40
|
-
.\!#{$kendo-prefix}fixed { @extend .\!#{$kendo-prefix}pos-fixed !optional; }
|
|
41
|
-
.#{$kendo-prefix}sticky { @extend .#{$kendo-prefix}pos-sticky !optional; }
|
|
42
|
-
.\!#{$kendo-prefix}sticky { @extend .\!#{$kendo-prefix}pos-sticky !optional; }
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
// TODO DOCS
|
|
46
|
-
|
|
47
|
-
$kendo-utils-inset: k-map-get( $kendo-utils, "inset" ) !default;
|
|
48
|
-
|
|
49
|
-
@include generate-utils( inset, inset, $kendo-utils-inset );
|
|
50
|
-
@include generate-utils( inset-x, inset-inline, $kendo-utils-inset );
|
|
51
|
-
@include generate-utils( inset-y, inset-block, $kendo-utils-inset );
|
|
52
|
-
@include generate-utils( top, top, $kendo-utils-inset );
|
|
53
|
-
@include generate-utils( right, right, $kendo-utils-inset );
|
|
54
|
-
@include generate-utils( bottom, bottom, $kendo-utils-inset );
|
|
55
|
-
@include generate-utils( left, left, $kendo-utils-inset );
|
|
56
|
-
@include generate-utils( top-left, ( top, left ), $kendo-utils-inset );
|
|
57
|
-
@include generate-utils( top-right, ( top, right ), $kendo-utils-inset );
|
|
58
|
-
@include generate-utils( bottom-left, ( bottom, left ), $kendo-utils-inset );
|
|
59
|
-
@include generate-utils( bottom-right, ( bottom, right ), $kendo-utils-inset );
|
|
60
|
-
|
|
61
|
-
.#{$kendo-prefix}top-start,
|
|
62
|
-
.#{$kendo-prefix}pos-top-start {
|
|
63
|
-
top: 0;
|
|
64
|
-
inset-inline-start: 0;
|
|
65
|
-
}
|
|
66
28
|
|
|
67
|
-
|
|
68
|
-
.#{$kendo-prefix}pos-top-end {
|
|
69
|
-
top: 0;
|
|
70
|
-
inset-inline-end: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.#{$kendo-prefix}bottom-start,
|
|
74
|
-
.#{$kendo-prefix}pos-bottom-start {
|
|
75
|
-
bottom: 0;
|
|
76
|
-
inset-inline-start: 0;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.#{$kendo-prefix}bottom-end,
|
|
80
|
-
.#{$kendo-prefix}pos-bottom-end {
|
|
81
|
-
bottom: 0;
|
|
82
|
-
inset-inline-end: 0;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.#{$kendo-prefix}top-center,
|
|
86
|
-
.#{$kendo-prefix}pos-top-center {
|
|
87
|
-
top: 0;
|
|
88
|
-
left: 50%;
|
|
89
|
-
transform: translateX(-50%);
|
|
90
|
-
}
|
|
91
|
-
.#{$kendo-prefix}middle-left,
|
|
92
|
-
.#{$kendo-prefix}middle-start,
|
|
93
|
-
.#{$kendo-prefix}pos-middle-start {
|
|
94
|
-
top: 50%;
|
|
95
|
-
left: 0;
|
|
96
|
-
transform: translateY(-50%);
|
|
97
|
-
}
|
|
98
|
-
.#{$kendo-prefix}middle-center {
|
|
99
|
-
top: 50%;
|
|
100
|
-
left: 50%;
|
|
101
|
-
transform: translateY(-50%);
|
|
102
|
-
}
|
|
103
|
-
.#{$kendo-prefix}middle-right,
|
|
104
|
-
.#{$kendo-prefix}middle-end,
|
|
105
|
-
.#{$kendo-prefix}pos-middle-end {
|
|
106
|
-
top: 50%;
|
|
107
|
-
right: 0;
|
|
108
|
-
transform: translateY(-50%);
|
|
109
|
-
}
|
|
110
|
-
.#{$kendo-prefix}bottom-center,
|
|
111
|
-
.#{$kendo-prefix}pos-bottom-center {
|
|
112
|
-
bottom: 0;
|
|
113
|
-
left: 50%;
|
|
114
|
-
transform: translateX(-50%);
|
|
115
|
-
}
|
|
29
|
+
// TODO: inset docs
|
|
116
30
|
|
|
117
31
|
|
|
118
32
|
/// This is equivalent to `top: 0;`.
|
|
@@ -135,7 +49,103 @@ $kendo-utils-inset: k-map-get( $kendo-utils, "inset" ) !default;
|
|
|
135
49
|
/// @group position
|
|
136
50
|
/// @contextType css
|
|
137
51
|
|
|
138
|
-
@
|
|
139
|
-
|
|
140
|
-
|
|
52
|
+
@mixin kendo-utils--layout--position() {
|
|
53
|
+
|
|
54
|
+
// Position utility classes
|
|
55
|
+
$kendo-utils-position: k-map-get( $kendo-utils, "position" ) !default;
|
|
56
|
+
@include generate-utils( pos, position, $kendo-utils-position );
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
// Legacy aliases
|
|
60
|
+
.#{$kendo-prefix}static { @extend .#{$kendo-prefix}pos-static !optional; }
|
|
61
|
+
.\!#{$kendo-prefix}static { @extend .\!#{$kendo-prefix}pos-static !optional; }
|
|
62
|
+
.#{$kendo-prefix}relative { @extend .#{$kendo-prefix}pos-relative !optional; }
|
|
63
|
+
.\!#{$kendo-prefix}relative { @extend .\!#{$kendo-prefix}pos-relative !optional; }
|
|
64
|
+
.#{$kendo-prefix}absolute { @extend .#{$kendo-prefix}pos-absolute !optional; }
|
|
65
|
+
.\!#{$kendo-prefix}absolute { @extend .\!#{$kendo-prefix}pos-absolute !optional; }
|
|
66
|
+
.#{$kendo-prefix}fixed { @extend .#{$kendo-prefix}pos-fixed !optional; }
|
|
67
|
+
.\!#{$kendo-prefix}fixed { @extend .\!#{$kendo-prefix}pos-fixed !optional; }
|
|
68
|
+
.#{$kendo-prefix}sticky { @extend .#{$kendo-prefix}pos-sticky !optional; }
|
|
69
|
+
.\!#{$kendo-prefix}sticky { @extend .\!#{$kendo-prefix}pos-sticky !optional; }
|
|
70
|
+
|
|
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
|
+
|
|
141
151
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
// TODO
|
|
1
|
+
// TODO: docs
|
|
2
|
+
// TODO: consider visible and invisible vs visibility-visible and visibility-hidden
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
@mixin kendo-utils--layout--visibility() {
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
// Visibility utility classes
|
|
7
|
+
$kendo-utils-visibility: k-map-get( $kendo-utils, "visibility" ) !default;
|
|
8
|
+
@include generate-utils( visibility, visibility, $kendo-utils-visibility );
|
|
6
9
|
|
|
7
|
-
//
|
|
8
|
-
.#{$kendo-prefix}visible { @extend .#{$kendo-prefix}visibility-visible !optional; }
|
|
9
|
-
.\!#{$kendo-prefix}visible { @extend .\!#{$kendo-prefix}visibility-visible !optional; }
|
|
10
|
-
.#{$kendo-prefix}invisible { @extend .#{$kendo-prefix}visibility-hidden !optional; }
|
|
11
|
-
.\!#{$kendo-prefix}invisible { @extend .\!#{$kendo-prefix}visibility-hidden !optional; }
|
|
10
|
+
// Legacy aliases
|
|
11
|
+
.#{$kendo-prefix}visible { @extend .#{$kendo-prefix}visibility-visible !optional; }
|
|
12
|
+
.\!#{$kendo-prefix}visible { @extend .\!#{$kendo-prefix}visibility-visible !optional; }
|
|
13
|
+
.#{$kendo-prefix}invisible { @extend .#{$kendo-prefix}visibility-hidden !optional; }
|
|
14
|
+
.\!#{$kendo-prefix}invisible { @extend .\!#{$kendo-prefix}visibility-hidden !optional; }
|
|
15
|
+
|
|
16
|
+
}
|
package/scss/layout/_zindex.scss
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
// TODO
|
|
1
|
+
// TODO: docs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
@mixin kendo-utils--layout--zindex() {
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// Z-index utility classes
|
|
6
|
+
$kendo-utils-zindex: k-map-get( $kendo-utils, "zindex" ) !default;
|
|
7
|
+
@include generate-utils( z, z-index, $kendo-utils-zindex );
|
|
8
|
+
|
|
9
|
+
}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
@import "./_aspect-ratio.scss";
|
|
2
|
+
@import "./_clear.scss";
|
|
2
3
|
@import "./_display.scss";
|
|
3
4
|
@import "./_float.scss";
|
|
4
|
-
@import "./_clear.scss";
|
|
5
5
|
@import "./_overflow.scss";
|
|
6
6
|
@import "./_position.scss";
|
|
7
7
|
@import "./_visibility.scss";
|
|
8
8
|
@import "./_zindex.scss";
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@mixin kendo-utils--layout() {
|
|
12
|
+
@include kendo-utils--layout--aspect-ratio();
|
|
13
|
+
@include kendo-utils--layout--clear();
|
|
14
|
+
@include kendo-utils--layout--display();
|
|
15
|
+
@include kendo-utils--layout--float();
|
|
16
|
+
@include kendo-utils--layout--overflow();
|
|
17
|
+
@include kendo-utils--layout--position();
|
|
18
|
+
@include kendo-utils--layout--visibility();
|
|
19
|
+
@include kendo-utils--layout--zindex();
|
|
20
|
+
}
|
package/scss/sizing/_height.scss
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
// TODO
|
|
1
|
+
// TODO: docs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
@mixin kendo-utils--sizing--height() {
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// Height utility classes
|
|
6
|
+
$kendo-utils-height: k-map-get( $kendo-utils, "height" ) !default;
|
|
7
|
+
@include generate-utils( h, height, $kendo-utils-height );
|
|
6
8
|
|
|
9
|
+
// Min height utility classes
|
|
10
|
+
$kendo-utils-min-height: k-map-get( $kendo-utils, "min-height" ) !default;
|
|
11
|
+
@include generate-utils( min-h, min-height, $kendo-utils-min-height );
|
|
7
12
|
|
|
8
|
-
|
|
13
|
+
// Max height utility classes
|
|
14
|
+
$kendo-utils-max-height: k-map-get( $kendo-utils, "max-height" ) !default;
|
|
15
|
+
@include generate-utils( max-h, max-height, $kendo-utils-max-height );
|
|
9
16
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
$kendo-utils-max-height: k-map-get( $kendo-utils, "max-height" ) !default;
|
|
14
|
-
|
|
15
|
-
@include generate-utils( max-h, max-height, $kendo-utils-max-height );
|
|
17
|
+
}
|
package/scss/sizing/_width.scss
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
// TODO
|
|
1
|
+
// TODO: docs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
@mixin kendo-utils--sizing--width() {
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// Width utility classes
|
|
6
|
+
$kendo-utils-width: k-map-get( $kendo-utils, "width" ) !default;
|
|
7
|
+
@include generate-utils( w, width, $kendo-utils-width );
|
|
6
8
|
|
|
9
|
+
// Min-width utility classes
|
|
10
|
+
$kendo-utils-min-width: k-map-get( $kendo-utils, "min-width" ) !default;
|
|
11
|
+
@include generate-utils( min-w, min-width, $kendo-utils-min-width );
|
|
7
12
|
|
|
8
|
-
|
|
13
|
+
// Max-width utility classes
|
|
14
|
+
$kendo-utils-max-width: k-map-get( $kendo-utils, "max-width" ) !default;
|
|
15
|
+
@include generate-utils( max-w, max-width, $kendo-utils-max-width );
|
|
9
16
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
$kendo-utils-max-width: k-map-get( $kendo-utils, "max-width" ) !default;
|
|
14
|
-
|
|
15
|
-
@include generate-utils( max-w, max-width, $kendo-utils-max-width );
|
|
17
|
+
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
// TODO
|
|
1
|
+
// TODO: docs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
@mixin kendo-utils--spacing--margin() {
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@include generate-utils(
|
|
8
|
-
@include generate-utils(
|
|
9
|
-
@include generate-utils(
|
|
10
|
-
@include generate-utils(
|
|
11
|
-
@include generate-utils(
|
|
5
|
+
// Margin utility classes
|
|
6
|
+
$kendo-utils-margin: k-map-get( $kendo-utils, "margin" ) !default;
|
|
7
|
+
@include generate-utils( m, margin, $kendo-utils-margin );
|
|
8
|
+
@include generate-utils( mt, margin-top, $kendo-utils-margin );
|
|
9
|
+
@include generate-utils( mr, margin-right, $kendo-utils-margin );
|
|
10
|
+
@include generate-utils( mb, margin-bottom, $kendo-utils-margin );
|
|
11
|
+
@include generate-utils( ml, margin-left, $kendo-utils-margin );
|
|
12
|
+
@include generate-utils( mx, margin-inline, $kendo-utils-margin );
|
|
13
|
+
@include generate-utils( my, margin-block, $kendo-utils-margin );
|
|
14
|
+
|
|
15
|
+
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
// TODO
|
|
1
|
+
// TODO: docs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
@mixin kendo-utils--spacing--padding() {
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@include generate-utils(
|
|
8
|
-
@include generate-utils(
|
|
9
|
-
@include generate-utils(
|
|
10
|
-
@include generate-utils(
|
|
11
|
-
@include generate-utils(
|
|
5
|
+
// Padding utility classes
|
|
6
|
+
$kendo-utils-padding: k-map-get( $kendo-utils, "padding" ) !default;
|
|
7
|
+
@include generate-utils( p, padding, $kendo-utils-padding );
|
|
8
|
+
@include generate-utils( pt, padding-top, $kendo-utils-padding );
|
|
9
|
+
@include generate-utils( pr, padding-right, $kendo-utils-padding );
|
|
10
|
+
@include generate-utils( pb, padding-bottom, $kendo-utils-padding );
|
|
11
|
+
@include generate-utils( pl, padding-left, $kendo-utils-padding );
|
|
12
|
+
@include generate-utils( px, padding-inline, $kendo-utils-padding );
|
|
13
|
+
@include generate-utils( py, padding-block, $kendo-utils-padding );
|
|
14
|
+
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// TODO: docs
|
|
2
|
+
|
|
3
|
+
@mixin kendo-utils--spacing--space-between() {
|
|
4
|
+
|
|
5
|
+
// Space between utility classes
|
|
6
|
+
$kendo-utils-space-between: k-map-get( $kendo-utils, "space-between" ) !default;
|
|
7
|
+
@each $key, $value in $kendo-utils-space-between {
|
|
8
|
+
$_key: k-escape-class-name( $key );
|
|
9
|
+
|
|
10
|
+
.#{$kendo-prefix}space-x-#{$_key} > * + * {
|
|
11
|
+
margin-inline-start: $value;
|
|
12
|
+
}
|
|
13
|
+
.#{$kendo-prefix}space-y-#{$_key} > * + * {
|
|
14
|
+
margin-block-start: $value;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
@import "./_margin.scss";
|
|
2
2
|
@import "./_padding.scss";
|
|
3
3
|
@import "./_space-between.scss";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@mixin kendo-utils--spacing() {
|
|
7
|
+
@include kendo-utils--spacing--margin();
|
|
8
|
+
@include kendo-utils--spacing--padding();
|
|
9
|
+
@include kendo-utils--spacing--space-between();
|
|
10
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
// TODO
|
|
1
|
+
// TODO: docs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
@mixin kendo-utils--table--border-collapse() {
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// Border collapse utility classes
|
|
6
|
+
$kendo-utils-border-collapse: k-map-get( $kendo-utils, "border-collapse" ) !default;
|
|
7
|
+
@include generate-utils( border, border-collapse, $kendo-utils-border-collapse );
|
|
8
|
+
|
|
9
|
+
}
|
|
@@ -10,8 +10,11 @@
|
|
|
10
10
|
/// @group table-layout
|
|
11
11
|
/// @contextType css
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
$kendo-utils-table-layout: k-map-get( $kendo-utils, "table-layout" ) !default;
|
|
13
|
+
@mixin kendo-utils--table--table-layout() {
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
// Table layout utility classes
|
|
16
|
+
$kendo-utils-table-layout: k-map-get( $kendo-utils, "table-layout" ) !default;
|
|
17
|
+
@include generate-utils( table, table-layout, $kendo-utils-table-layout );
|
|
18
|
+
@include generate-utils( table-layout, table-layout, $kendo-utils-table-layout );
|
|
19
|
+
|
|
20
|
+
}
|
|
@@ -8,20 +8,25 @@
|
|
|
8
8
|
/// @group transform
|
|
9
9
|
/// @contextType css
|
|
10
10
|
|
|
11
|
-
//
|
|
12
|
-
$kendo-utils-flip: k-map-get( $kendo-utils, "flip" ) !default;
|
|
11
|
+
// TODO: consider globally horizontal vs h vs x
|
|
13
12
|
|
|
14
|
-
@
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
@mixin kendo-utils--transform--flip() {
|
|
14
|
+
|
|
15
|
+
// Flip utility classes
|
|
16
|
+
$kendo-utils-flip: k-map-get( $kendo-utils, "flip" ) !default;
|
|
17
|
+
@if $kendo-utils-flip {
|
|
18
|
+
.#{$kendo-prefix}flip-h { transform: scaleX( -1 ); }
|
|
19
|
+
.\!#{$kendo-prefix}flip-h { transform: scaleX( -1 ) !important; } // sass-lint:disable-line no-important
|
|
20
|
+
.#{$kendo-prefix}flip-v { transform: scaleY( -1 ); }
|
|
21
|
+
.\!#{$kendo-prefix}flip-v { transform: scaleY( -1 ) !important; } // sass-lint:disable-line no-important
|
|
22
|
+
.#{$kendo-prefix}flip-h.#{$kendo-prefix}flip-v { transform: scale( -1, -1 ); }
|
|
23
|
+
.\!#{$kendo-prefix}flip-h.\!#{$kendo-prefix}flip-v { transform: scale( -1, -1 ) !important; } // sass-lint:disable-line no-important
|
|
24
|
+
|
|
25
|
+
// Legacy aliases
|
|
26
|
+
.#{$kendo-prefix}flip-x { @extend .#{$kendo-prefix}flip-h !optional; }
|
|
27
|
+
.\!#{$kendo-prefix}flip-x { @extend .\!#{$kendo-prefix}flip-h !optional; }
|
|
28
|
+
.#{$kendo-prefix}flip-y { @extend .#{$kendo-prefix}flip-v !optional; }
|
|
29
|
+
.\!#{$kendo-prefix}flip-y { @extend .\!#{$kendo-prefix}flip-v !optional; }
|
|
30
|
+
}
|
|
21
31
|
|
|
22
|
-
// Aliases
|
|
23
|
-
.#{$kendo-prefix}flip-x { @extend .#{$kendo-prefix}flip-h !optional; }
|
|
24
|
-
.\!#{$kendo-prefix}flip-x { @extend .\!#{$kendo-prefix}flip-h !optional; }
|
|
25
|
-
.#{$kendo-prefix}flip-y { @extend .#{$kendo-prefix}flip-v !optional; }
|
|
26
|
-
.\!#{$kendo-prefix}flip-y { @extend .\!#{$kendo-prefix}flip-v !optional; }
|
|
27
32
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
// TODO
|
|
1
|
+
// TODO: docs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
@mixin kendo-utils--transform--origin() {
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// Transform origin utility classes
|
|
6
|
+
$kendo-utils-origin: k-map-get( $kendo-utils, "origin" ) !default;
|
|
7
|
+
@include generate-utils( origin, transform-origin, $kendo-utils-origin );
|
|
8
|
+
|
|
9
|
+
}
|
|
@@ -38,12 +38,16 @@
|
|
|
38
38
|
/// @group transform
|
|
39
39
|
/// @contextType css
|
|
40
40
|
|
|
41
|
-
$kendo-utils-rotate: k-map-get( $kendo-utils, "rotate" ) !default;
|
|
42
|
-
|
|
43
41
|
// sass-lint:disable function-name-format
|
|
44
42
|
@function __rotate( $val ) {
|
|
45
43
|
@return rotate( $val );
|
|
46
44
|
}
|
|
47
45
|
// sass-lint:enable function-name-format
|
|
48
46
|
|
|
49
|
-
@
|
|
47
|
+
@mixin kendo-utils--transform--rotate() {
|
|
48
|
+
|
|
49
|
+
// Rotate utility classes
|
|
50
|
+
$kendo-utils-rotate: k-map-get( $kendo-utils, "rotate" ) !default;
|
|
51
|
+
@include generate-utils( rotate, transform, $kendo-utils-rotate, __rotate );
|
|
52
|
+
|
|
53
|
+
}
|
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
/// @group transform
|
|
14
14
|
/// @contextType css
|
|
15
15
|
|
|
16
|
-
$kendo-utils-scale: k-map-get( $kendo-utils, "scale" ) !default;
|
|
17
|
-
|
|
18
16
|
// sass-lint:disable function-name-format
|
|
19
17
|
@function __scale( $val ) {
|
|
20
18
|
@return scale( $val );
|
|
@@ -27,6 +25,12 @@ $kendo-utils-scale: k-map-get( $kendo-utils, "scale" ) !default;
|
|
|
27
25
|
}
|
|
28
26
|
// sass-lint:enable function-name-format
|
|
29
27
|
|
|
30
|
-
@
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
@mixin kendo-utils--transform--scale() {
|
|
29
|
+
|
|
30
|
+
// Scale utility classes
|
|
31
|
+
$kendo-utils-scale: k-map-get( $kendo-utils, "scale" ) !default;
|
|
32
|
+
@include generate-utils( scale, transform, $kendo-utils-scale, __scale );
|
|
33
|
+
@include generate-utils( scale-x, transform, $kendo-utils-scale, __scale-x );
|
|
34
|
+
@include generate-utils( scale-y, transform, $kendo-utils-scale, __scale-y );
|
|
35
|
+
|
|
36
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
// TODO
|
|
2
|
-
|
|
3
|
-
$kendo-utils-skew: k-map-get( $kendo-utils, "skew" ) !default;
|
|
1
|
+
// TODO: docs
|
|
4
2
|
|
|
5
3
|
// sass-lint:disable function-name-format
|
|
6
4
|
@function __skew-x( $val ) {
|
|
@@ -11,5 +9,11 @@ $kendo-utils-skew: k-map-get( $kendo-utils, "skew" ) !default;
|
|
|
11
9
|
}
|
|
12
10
|
// sass-lint:enable function-name-format
|
|
13
11
|
|
|
14
|
-
@
|
|
15
|
-
|
|
12
|
+
@mixin kendo-utils--transform--skew() {
|
|
13
|
+
|
|
14
|
+
// Transform skew utility classes
|
|
15
|
+
$kendo-utils-skew: k-map-get( $kendo-utils, "skew" ) !default;
|
|
16
|
+
@include generate-utils( skew-x, transform, $kendo-utils-skew, __skew-x );
|
|
17
|
+
@include generate-utils( skew-y, transform, $kendo-utils-skew, __skew-y );
|
|
18
|
+
|
|
19
|
+
}
|
|
@@ -43,19 +43,6 @@
|
|
|
43
43
|
/// @group transform
|
|
44
44
|
/// @contextType css
|
|
45
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;
|
|
58
|
-
|
|
59
46
|
// sass-lint:disable function-name-format
|
|
60
47
|
@function __translate( $val ) {
|
|
61
48
|
@return translate( $val );
|
|
@@ -68,6 +55,23 @@ $kendo-utils-translate-xy: (
|
|
|
68
55
|
}
|
|
69
56
|
// sass-lint:enable function-name-format
|
|
70
57
|
|
|
71
|
-
@
|
|
72
|
-
|
|
73
|
-
|
|
58
|
+
@mixin kendo-utils--transform--translate() {
|
|
59
|
+
|
|
60
|
+
// Translate utility classes
|
|
61
|
+
$kendo-utils-translate: k-map-get( $kendo-utils, "translate" ) !default;
|
|
62
|
+
$kendo-utils-translate-xy: (
|
|
63
|
+
"0": ( 0, 0 ),
|
|
64
|
+
"0-50": ( 0, 50% ),
|
|
65
|
+
"0-100": ( 0, 100% ),
|
|
66
|
+
"50-0": ( 50%, 0 ),
|
|
67
|
+
"50-50": ( 50%, 50% ),
|
|
68
|
+
"50-100": ( 50%, 100% ),
|
|
69
|
+
"100-0": ( 100%, 0 ),
|
|
70
|
+
"100-50": ( 100%, 50% ),
|
|
71
|
+
"100-100": ( 100%, 100% )
|
|
72
|
+
) !default;
|
|
73
|
+
@include generate-utils( translate, transform, $kendo-utils-translate-xy, __translate );
|
|
74
|
+
@include generate-utils( translate-x, transform, $kendo-utils-translate, __translate-x );
|
|
75
|
+
@include generate-utils( translate-y, transform, $kendo-utils-translate, __translate-y );
|
|
76
|
+
|
|
77
|
+
}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
@import "./_flip.scss";
|
|
2
|
-
@import "./
|
|
2
|
+
@import "./_origin.scss";
|
|
3
3
|
@import "./_rotate.scss";
|
|
4
|
-
@import "./
|
|
4
|
+
@import "./_scale.scss";
|
|
5
5
|
@import "./_skew.scss";
|
|
6
|
-
@import "./
|
|
6
|
+
@import "./_translate.scss";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@mixin kendo-utils--transform() {
|
|
10
|
+
@include kendo-utils--transform--flip();
|
|
11
|
+
@include kendo-utils--transform--origin();
|
|
12
|
+
@include kendo-utils--transform--rotate();
|
|
13
|
+
@include kendo-utils--transform--scale();
|
|
14
|
+
@include kendo-utils--transform--skew();
|
|
15
|
+
@include kendo-utils--transform--translate();
|
|
16
|
+
}
|