@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.
- package/dist/all.css +4800 -898
- package/dist/all.scss +1584 -237
- package/package.json +6 -3
- package/scss/_functions.scss +1 -37
- package/scss/_mixins.scss +7 -7
- package/scss/_variables.scss +75 -33
- package/scss/accessibility/_screen-readers.scss +2 -2
- package/scss/background/_background-color.scss +5 -0
- package/scss/background/index.import.scss +1 -0
- package/scss/border/_border-color.scss +1 -1
- package/scss/border/_border-radius.scss +1 -1
- package/scss/border/_border-style.scss +1 -1
- package/scss/border/_border-width.scss +8 -1
- package/scss/border/_outline-color.scss +1 -1
- package/scss/border/_outline-offset.scss +1 -1
- package/scss/border/_outline-style.scss +1 -1
- package/scss/border/_outline-width.scss +1 -1
- package/scss/flex-grid/_align-content.scss +1 -1
- package/scss/flex-grid/_align-items.scss +1 -1
- package/scss/flex-grid/_align-self.scss +1 -1
- package/scss/flex-grid/_flex-basis.scss +6 -5
- package/scss/flex-grid/_flex-direction.scss +15 -5
- package/scss/flex-grid/_flex-grow.scss +6 -3
- package/scss/flex-grid/_flex-shrink.scss +6 -3
- package/scss/flex-grid/_flex-wrap.scss +8 -4
- package/scss/flex-grid/_flex.scss +10 -5
- package/scss/flex-grid/_gap.scss +1 -1
- package/scss/flex-grid/_grid-auto-columns.scss +1 -1
- package/scss/flex-grid/_grid-auto-flow.scss +1 -1
- package/scss/flex-grid/_grid-auto-rows.scss +1 -1
- package/scss/flex-grid/_grid-column-start-end.scss +8 -3
- package/scss/flex-grid/_grid-row-start-end.scss +9 -3
- package/scss/flex-grid/_grid-template-columns.scss +1 -1
- package/scss/flex-grid/_grid-template-rows.scss +1 -1
- package/scss/flex-grid/_justify-content.scss +1 -1
- package/scss/flex-grid/_justify-items.scss +1 -1
- package/scss/flex-grid/_justify-self.scss +1 -1
- package/scss/flex-grid/_order.scss +20 -2
- package/scss/flex-grid/_place-content.scss +1 -1
- package/scss/flex-grid/_place-items.scss +1 -1
- package/scss/flex-grid/_place-self.scss +1 -1
- package/scss/index.import.scss +1 -1
- package/scss/interactivity/_accent-color.scss +1 -1
- package/scss/interactivity/_appearance.scss +6 -3
- package/scss/interactivity/_caret-color.scss +1 -1
- package/scss/interactivity/_cursor.scss +1 -1
- package/scss/interactivity/_pointer-events.scss +8 -3
- package/scss/interactivity/_resize.scss +12 -5
- package/scss/interactivity/_scroll.scss +6 -6
- package/scss/interactivity/_touch-action.scss +6 -3
- package/scss/interactivity/_user-select.scss +16 -8
- package/scss/interactivity/_will-change.scss +1 -1
- package/scss/layout/_aspect-ratio.scss +26 -2
- package/scss/layout/_clear.scss +22 -2
- package/scss/layout/_display.scss +32 -12
- package/scss/layout/_float.scss +17 -2
- package/scss/layout/_overflow.scss +32 -16
- package/scss/layout/_position.scss +53 -8
- package/scss/layout/_visibility.scss +1 -1
- package/scss/layout/_zindex.scss +1 -1
- package/scss/sizing/_height.scss +3 -3
- package/scss/sizing/_width.scss +3 -3
- package/scss/spacing/_margin.scss +1 -1
- package/scss/spacing/_padding.scss +1 -1
- package/scss/table/_border-collapse.scss +1 -1
- package/scss/table/_table-layout.scss +8 -3
- package/scss/transform/_flip.scss +6 -3
- package/scss/transform/_origin.scss +1 -1
- package/scss/transform/_rotate.scss +40 -2
- package/scss/transform/_scale.scss +18 -5
- package/scss/transform/_skew.scss +1 -1
- package/scss/transform/_translate.scss +60 -2
- package/scss/typography/_font-size.scss +5 -1
- package/scss/typography/_font-style.scss +1 -1
- package/scss/typography/_font-weight.scss +5 -1
- package/scss/typography/_text-align.scss +12 -5
- package/scss/typography/_text-color.scss +9 -0
- package/scss/typography/_text-transform.scss +9 -5
- package/scss/typography/_white-space.scss +21 -7
- package/scss/typography/index.import.scss +7 -1
|
@@ -1,6 +1,31 @@
|
|
|
1
|
-
//
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
package/scss/layout/_zindex.scss
CHANGED
package/scss/sizing/_height.scss
CHANGED
|
@@ -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 );
|
package/scss/sizing/_width.scss
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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,6 +1,44 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
20
|
+
@return scale( $val );
|
|
8
21
|
}
|
|
9
22
|
@function __scale-x( $val ) {
|
|
10
|
-
@return scaleX(
|
|
23
|
+
@return scaleX( $val );
|
|
11
24
|
}
|
|
12
25
|
@function __scale-y( $val ) {
|
|
13
|
-
@return scaleY(
|
|
26
|
+
@return scaleY( $val );
|
|
14
27
|
}
|
|
15
28
|
// sass-lint:enable function-name-format
|
|
16
29
|
|
|
@@ -1,8 +1,65 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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,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
|
-
|
|
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 );
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
//
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|