@progress/kendo-theme-default 10.1.0-dev.5 → 10.1.0
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 +1 -1
- package/dist/default-blue.css +1 -1
- package/dist/default-dataviz-v4.css +1 -1
- package/dist/default-green.css +1 -1
- package/dist/default-main-dark.css +1 -1
- package/dist/default-main.css +1 -1
- package/dist/default-nordic.css +1 -1
- package/dist/default-ocean-blue-a11y.css +1 -1
- package/dist/default-ocean-blue.css +1 -1
- package/dist/default-orange.css +1 -1
- package/dist/default-purple.css +1 -1
- package/dist/default-turquoise.css +1 -1
- package/dist/default-urban.css +1 -1
- package/dist/meta/sassdoc-data.json +6854 -1906
- package/dist/meta/sassdoc-raw-data.json +3375 -1175
- package/dist/meta/variables.json +513 -33
- package/lib/swatches/default-blue.json +1 -1
- package/lib/swatches/default-dataviz-v4.json +1 -1
- package/lib/swatches/default-green.json +1 -1
- package/lib/swatches/default-main-dark.json +1 -1
- package/lib/swatches/default-main.json +1 -1
- package/lib/swatches/default-nordic.json +1 -1
- package/lib/swatches/default-ocean-blue-a11y.json +1 -1
- package/lib/swatches/default-ocean-blue.json +1 -1
- package/lib/swatches/default-orange.json +1 -1
- package/lib/swatches/default-purple.json +1 -1
- package/lib/swatches/default-turquoise.json +1 -1
- package/lib/swatches/default-urban.json +1 -1
- package/package.json +4 -4
- package/scss/action-sheet/_layout.scss +27 -0
- package/scss/button/_variables.scss +8 -8
- package/scss/checkbox/_layout.scss +15 -3
- package/scss/checkbox/_variables.scss +2 -2
- package/scss/coloreditor/_layout.scss +50 -1
- package/scss/coloreditor/_variables.scss +119 -1
- package/scss/colorgradient/_layout.scss +39 -2
- package/scss/colorgradient/_variables.scss +88 -1
- package/scss/colorpalette/_variables.scss +36 -0
- package/scss/dock-manager/_layout.scss +4 -0
- package/scss/index.scss +3 -0
- package/scss/input/_layout.scss +52 -0
- package/scss/input/_variables.scss +7 -0
- package/scss/otp/_index.scss +18 -0
- package/scss/otp/_layout.scss +41 -0
- package/scss/otp/_theme.scss +12 -0
- package/scss/otp/_variables.scss +61 -0
- package/scss/radio/_layout.scss +12 -1
- package/scss/radio/_variables.scss +1 -1
- package/scss/tabstrip/_layout.scss +109 -1
- package/scss/tabstrip/_theme.scss +47 -0
- package/scss/tabstrip/_variables.scss +64 -0
- package/scss/toolbar/_layout.scss +99 -9
- package/scss/toolbar/_theme.scss +89 -8
- package/scss/toolbar/_variables.scss +34 -9
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-theme-default",
|
|
3
3
|
"description": "SASS resources for the default Kendo UI theme",
|
|
4
|
-
"version": "10.1.0
|
|
4
|
+
"version": "10.1.0",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
55
|
-
"@progress/kendo-theme-core": "10.1.0
|
|
56
|
-
"@progress/kendo-theme-utils": "10.1.0
|
|
55
|
+
"@progress/kendo-theme-core": "10.1.0",
|
|
56
|
+
"@progress/kendo-theme-utils": "10.1.0"
|
|
57
57
|
},
|
|
58
58
|
"directories": {
|
|
59
59
|
"doc": "docs",
|
|
60
60
|
"lib": "lib"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "b4794dd83d2266af0047608c0c03f9851121fd37"
|
|
63
63
|
}
|
|
@@ -338,6 +338,33 @@
|
|
|
338
338
|
display: flex;
|
|
339
339
|
flex-flow: column nowrap;
|
|
340
340
|
}
|
|
341
|
+
|
|
342
|
+
.k-coloreditor {
|
|
343
|
+
min-width: 100%;
|
|
344
|
+
height: 100%;
|
|
345
|
+
border: 0;
|
|
346
|
+
overflow: auto;
|
|
347
|
+
scrollbar-width: none;
|
|
348
|
+
|
|
349
|
+
&::-webkit-scrollbar {
|
|
350
|
+
display: none;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.k-coloreditor-header {
|
|
354
|
+
padding: 0;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.k-coloreditor-views {
|
|
358
|
+
padding-inline: 0;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.k-colorgradient-canvas {
|
|
363
|
+
.k-hsv-gradient {
|
|
364
|
+
aspect-ratio: 1;
|
|
365
|
+
height: 100%;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
341
368
|
}
|
|
342
369
|
|
|
343
370
|
|
|
@@ -70,17 +70,17 @@ $kendo-button-lg-line-height: var( --kendo-line-height-lg, normal ) !default;
|
|
|
70
70
|
|
|
71
71
|
/// The calculated height of the Button.
|
|
72
72
|
/// @group button
|
|
73
|
-
$kendo-button-calc-size: calc(
|
|
74
|
-
$kendo-button-sm-calc-size: calc(
|
|
75
|
-
$kendo-button-md-calc-size: calc(
|
|
76
|
-
$kendo-button-lg-calc-size: calc(
|
|
73
|
+
$kendo-button-calc-size: calc( ( #{$kendo-button-line-height} * 1em ) + ( #{$kendo-button-padding-y} * 2 ) + ( #{$kendo-button-border-width} * 2 ) ) !default;
|
|
74
|
+
$kendo-button-sm-calc-size: calc( ( #{$kendo-button-sm-line-height} * 1em ) + ( #{$kendo-button-sm-padding-y} * 2 ) + ( #{$kendo-button-border-width} * 2 ) ) !default;
|
|
75
|
+
$kendo-button-md-calc-size: calc( ( #{$kendo-button-md-line-height} * 1em ) + ( #{$kendo-button-md-padding-y} * 2 ) + ( #{$kendo-button-border-width} * 2 ) ) !default;
|
|
76
|
+
$kendo-button-lg-calc-size: calc( ( #{$kendo-button-lg-line-height} * 1em ) + ( #{$kendo-button-lg-padding-y} * 2 ) + ( #{$kendo-button-border-width} * 2 ) ) !default;
|
|
77
77
|
|
|
78
78
|
/// The calculated inner height of the Button excluding the border width.
|
|
79
79
|
/// @group button
|
|
80
|
-
$kendo-button-inner-calc-size: calc(
|
|
81
|
-
$kendo-button-sm-inner-calc-size: calc(
|
|
82
|
-
$kendo-button-md-inner-calc-size: calc(
|
|
83
|
-
$kendo-button-lg-inner-calc-size: calc(
|
|
80
|
+
$kendo-button-inner-calc-size: calc( ( #{$kendo-button-line-height} * 1em ) + ( #{$kendo-button-padding-y} * 2 ) ) !default;
|
|
81
|
+
$kendo-button-sm-inner-calc-size: calc( ( #{$kendo-button-sm-line-height} * 1em ) + ( #{$kendo-button-sm-padding-y} * 2 ) ) !default;
|
|
82
|
+
$kendo-button-md-inner-calc-size: calc( ( #{$kendo-button-md-line-height} * 1em ) + ( #{$kendo-button-md-padding-y} * 2 ) ) !default;
|
|
83
|
+
$kendo-button-lg-inner-calc-size: calc( ( #{$kendo-button-lg-line-height} * 1em ) + ( #{$kendo-button-lg-padding-y} * 2 ) ) !default;
|
|
84
84
|
|
|
85
85
|
/// The sizes map for the Button.
|
|
86
86
|
/// @group button
|
|
@@ -26,6 +26,13 @@
|
|
|
26
26
|
|
|
27
27
|
// Checkbox indicator
|
|
28
28
|
.k-checkbox::before {
|
|
29
|
+
@if $kendo-checkbox-indicator-type == "image" {
|
|
30
|
+
content: "";
|
|
31
|
+
display: block;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
mask-repeat: no-repeat;
|
|
35
|
+
}
|
|
29
36
|
@if $kendo-checkbox-indicator-type == "glyph" {
|
|
30
37
|
content: $kendo-checkbox-checked-glyph;
|
|
31
38
|
width: 1em;
|
|
@@ -40,12 +47,14 @@
|
|
|
40
47
|
}
|
|
41
48
|
}
|
|
42
49
|
|
|
43
|
-
|
|
44
50
|
// Checked state
|
|
45
51
|
.k-checkbox:checked,
|
|
46
52
|
.k-checkbox.k-checked {
|
|
47
53
|
@if $kendo-checkbox-indicator-type == "image" {
|
|
48
|
-
|
|
54
|
+
&::before {
|
|
55
|
+
background-color: currentColor;
|
|
56
|
+
mask-image: $kendo-checkbox-checked-image;
|
|
57
|
+
}
|
|
49
58
|
}
|
|
50
59
|
|
|
51
60
|
@if $kendo-checkbox-indicator-type == "glyph" {
|
|
@@ -60,7 +69,10 @@
|
|
|
60
69
|
.k-checkbox:indeterminate,
|
|
61
70
|
.k-checkbox.k-indeterminate {
|
|
62
71
|
@if $kendo-checkbox-indicator-type == "image" {
|
|
63
|
-
|
|
72
|
+
&::before {
|
|
73
|
+
background-color: currentColor;
|
|
74
|
+
mask-image: $kendo-checkbox-indeterminate-image;
|
|
75
|
+
}
|
|
64
76
|
}
|
|
65
77
|
|
|
66
78
|
@if $kendo-checkbox-indicator-type == "glyph" {
|
|
@@ -160,10 +160,10 @@ $kendo-checkbox-indeterminate-glyph: "\e121" !default;
|
|
|
160
160
|
|
|
161
161
|
/// The image for a checked CheckBox indicator.
|
|
162
162
|
/// @group checkbox
|
|
163
|
-
$kendo-checkbox-checked-image: k-escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#
|
|
163
|
+
$kendo-checkbox-checked-image: k-escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#ffffff' stroke-linecap='square' stroke-linejoin='square' stroke-width='2' d='M3,8 l3,3 l7-7'/></svg>") ) !default;
|
|
164
164
|
/// The image for a indeterminate CheckBox indicator.
|
|
165
165
|
/// @group checkbox
|
|
166
|
-
$kendo-checkbox-indeterminate-image: k-escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#
|
|
166
|
+
$kendo-checkbox-indeterminate-image: k-escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#ff6358' stroke-linecap='square' stroke-linejoin='square' stroke-width='2' d='M4,8 h8'/></svg>") ) !default;
|
|
167
167
|
|
|
168
168
|
|
|
169
169
|
// CheckBox label
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
@use "../core/_index.scss" as *;
|
|
2
3
|
@use "./variables.scss" as *;
|
|
3
4
|
@use "../colorpalette/_variables.scss" as *;
|
|
@@ -44,11 +45,47 @@
|
|
|
44
45
|
position: relative;
|
|
45
46
|
z-index: 1;
|
|
46
47
|
}
|
|
48
|
+
|
|
47
49
|
.k-coloreditor-preview .k-color-preview {
|
|
48
50
|
width: $kendo-color-editor-color-preview-width;
|
|
49
51
|
height: $kendo-color-editor-color-preview-height;
|
|
50
52
|
}
|
|
51
53
|
|
|
54
|
+
// ColorPreview sizes
|
|
55
|
+
@each $size, $size-props in $kendo-color-editor-sizes {
|
|
56
|
+
$_min-width: map.get( $size-props, min-width );
|
|
57
|
+
$_header-padding-x: map.get( $size-props, header-padding-x );
|
|
58
|
+
$_header-padding-y: map.get( $size-props, header-padding-y );
|
|
59
|
+
$_views-padding-x: map.get( $size-props, views-padding-x );
|
|
60
|
+
$_views-padding-y: map.get( $size-props, views-padding-y );
|
|
61
|
+
$_preview-gap: map.get( $size-props, preview-gap );
|
|
62
|
+
$_preview-width: map.get( $size-props, preview-width );
|
|
63
|
+
$_preview-height: map.get( $size-props, preview-height );
|
|
64
|
+
|
|
65
|
+
.k-coloreditor-#{$size} {
|
|
66
|
+
min-width: $_min-width;
|
|
67
|
+
|
|
68
|
+
.k-coloreditor-header {
|
|
69
|
+
padding: $_header-padding-y $_header-padding-x 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.k-coloreditor-views {
|
|
73
|
+
padding-block: $_views-padding-y;
|
|
74
|
+
padding-inline: $_views-padding-x;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.k-coloreditor-preview {
|
|
78
|
+
gap: $_preview-gap;
|
|
79
|
+
|
|
80
|
+
.k-color-preview {
|
|
81
|
+
width: $_preview-width;
|
|
82
|
+
height: $_preview-height;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
}
|
|
88
|
+
|
|
52
89
|
// Views
|
|
53
90
|
.k-coloreditor-views {
|
|
54
91
|
min-width: calc( var(--kendo-color-preview-width, #{$kendo-color-palette-tile-width}) * var(--kendo-color-preview-columns, 10) );
|
|
@@ -78,11 +115,23 @@
|
|
|
78
115
|
}
|
|
79
116
|
}
|
|
80
117
|
|
|
118
|
+
// ColorPalette sizes
|
|
119
|
+
@each $size, $size-props in $kendo-color-palette-sizes {
|
|
120
|
+
$_tile-width: map.get( $size-props, width );
|
|
121
|
+
$_tile-height: map.get( $size-props, height );
|
|
122
|
+
|
|
123
|
+
.k-coloreditor-#{$size} {
|
|
124
|
+
.k-colorpalette-tile {
|
|
125
|
+
width: $_tile-width;
|
|
126
|
+
height: $_tile-height;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
81
131
|
// Footer
|
|
82
132
|
.k-coloreditor-footer.k-actions {
|
|
83
133
|
margin: 0;
|
|
84
134
|
}
|
|
85
|
-
|
|
86
135
|
}
|
|
87
136
|
|
|
88
137
|
|
|
@@ -9,6 +9,15 @@ $kendo-color-editor-spacer: k-spacing(3) !default;
|
|
|
9
9
|
/// The minimum width of the ColorEditor.
|
|
10
10
|
/// @group color-editor
|
|
11
11
|
$kendo-color-editor-min-width: 272px !default;
|
|
12
|
+
/// The minimum width of the ColorEditor.
|
|
13
|
+
/// @group color-editor
|
|
14
|
+
$kendo-color-editor-sm-min-width: 252px !default;
|
|
15
|
+
/// The minimum width of the ColorEditor.
|
|
16
|
+
/// @group color-editor
|
|
17
|
+
$kendo-color-editor-md-min-width: $kendo-color-editor-min-width !default;
|
|
18
|
+
/// The minimum width of the ColorEditor.
|
|
19
|
+
/// @group color-editor
|
|
20
|
+
$kendo-color-editor-lg-min-width: 362px !default;
|
|
12
21
|
/// The width of the border around the ColorEditor.
|
|
13
22
|
/// @group color-editor
|
|
14
23
|
$kendo-color-editor-border-width: 1px !default;
|
|
@@ -50,7 +59,25 @@ $kendo-color-editor-header-padding-y: $kendo-color-editor-spacer !default;
|
|
|
50
59
|
$kendo-color-editor-header-padding-x: $kendo-color-editor-header-padding-y !default;
|
|
51
60
|
/// The spacing between the ColorEditor header actions.
|
|
52
61
|
/// @group color-editor
|
|
53
|
-
$kendo-color-editor-header-actions-gap:
|
|
62
|
+
$kendo-color-editor-header-actions-gap: k-spacing(2) !default;
|
|
63
|
+
/// The vertical padding of the small ColorEditor header.
|
|
64
|
+
/// @group color-editor
|
|
65
|
+
$kendo-color-editor-sm-header-padding-y: $kendo-color-editor-header-padding-y !default;
|
|
66
|
+
/// The horizontal padding of the small ColorEditor header.
|
|
67
|
+
/// @group color-editor
|
|
68
|
+
$kendo-color-editor-sm-header-padding-x: $kendo-color-editor-header-padding-x !default;
|
|
69
|
+
/// The vertical padding of the medium ColorEditor header.
|
|
70
|
+
/// @group color-editor
|
|
71
|
+
$kendo-color-editor-md-header-padding-y: $kendo-color-editor-header-padding-y !default;
|
|
72
|
+
/// The horizontal padding of the medium ColorEditor header.
|
|
73
|
+
/// @group color-editor
|
|
74
|
+
$kendo-color-editor-md-header-padding-x: $kendo-color-editor-header-padding-x !default;
|
|
75
|
+
/// The vertical padding of the large ColorEditor header.
|
|
76
|
+
/// @group color-editor
|
|
77
|
+
$kendo-color-editor-lg-header-padding-y: k-spacing(4.5) !default;
|
|
78
|
+
/// The horizontal padding of the large ColorEditor header.
|
|
79
|
+
/// @group color-editor
|
|
80
|
+
$kendo-color-editor-lg-header-padding-x: k-spacing(4.5) !default;
|
|
54
81
|
|
|
55
82
|
/// The width of the ColorEditor preview.
|
|
56
83
|
/// @group color-editor
|
|
@@ -61,6 +88,34 @@ $kendo-color-editor-color-preview-height: 12px !default;
|
|
|
61
88
|
/// The spacing between the colors in the ColorEditor preview.
|
|
62
89
|
/// @group color-editor
|
|
63
90
|
$kendo-color-editor-preview-gap: k-spacing(1) !default;
|
|
91
|
+
/// The spacing between the colors in the small ColorEditor preview.
|
|
92
|
+
/// @group color-editor
|
|
93
|
+
$kendo-color-editor-sm-preview-gap: k-spacing(0.5) !default;
|
|
94
|
+
/// The spacing between the colors in the medium ColorEditor preview.
|
|
95
|
+
/// @group color-editor
|
|
96
|
+
$kendo-color-editor-md-preview-gap: $kendo-color-editor-preview-gap !default;
|
|
97
|
+
/// The spacing between the colors in the large ColorEditor preview.
|
|
98
|
+
/// @group color-editor
|
|
99
|
+
$kendo-color-editor-lg-preview-gap: k-spacing(1) !default;
|
|
100
|
+
|
|
101
|
+
/// The width of the small ColorEditor preview.
|
|
102
|
+
/// @group color-editor
|
|
103
|
+
$kendo-color-editor-sm-color-preview-width: 34px !default;
|
|
104
|
+
/// The height of the small ColorEditor preview.
|
|
105
|
+
/// @group color-editor
|
|
106
|
+
$kendo-color-editor-sm-color-preview-height: 12px !default;
|
|
107
|
+
/// The width of the medium ColorEditor preview.
|
|
108
|
+
/// @group color-editor
|
|
109
|
+
$kendo-color-editor-md-color-preview-width: $kendo-color-editor-color-preview-width !default;
|
|
110
|
+
/// The height of the medium ColorEditor preview.
|
|
111
|
+
/// @group color-editor
|
|
112
|
+
$kendo-color-editor-md-color-preview-height: $kendo-color-editor-color-preview-height !default;
|
|
113
|
+
/// The width of the large ColorEditor preview.
|
|
114
|
+
/// @group color-editor
|
|
115
|
+
$kendo-color-editor-lg-color-preview-width: 44px !default;
|
|
116
|
+
/// The height of the large ColorEditor preview.
|
|
117
|
+
/// @group color-editor
|
|
118
|
+
$kendo-color-editor-lg-color-preview-height: 16px !default;
|
|
64
119
|
|
|
65
120
|
/// The vertical padding of the ColorEditor views container.
|
|
66
121
|
/// @group color-editor
|
|
@@ -71,6 +126,33 @@ $kendo-color-editor-views-padding-x: $kendo-color-editor-views-padding-y !defaul
|
|
|
71
126
|
/// The spacing of the ColorEditor views container.
|
|
72
127
|
/// @group color-editor
|
|
73
128
|
$kendo-color-editor-views-gap: $kendo-color-editor-spacer !default;
|
|
129
|
+
/// The vertical padding of the small ColorEditor views container.
|
|
130
|
+
/// @group color-editor
|
|
131
|
+
$kendo-color-editor-sm-views-padding-y: $kendo-color-editor-spacer !default;
|
|
132
|
+
/// The horizontal padding of the small ColorEditor views container.
|
|
133
|
+
/// @group color-editor
|
|
134
|
+
$kendo-color-editor-sm-views-padding-x: $kendo-color-editor-views-padding-y !default;
|
|
135
|
+
/// The spacing of the small ColorEditor views container.
|
|
136
|
+
/// @group color-editor
|
|
137
|
+
$kendo-color-editor-sm-views-gap: $kendo-color-editor-spacer !default;
|
|
138
|
+
/// The vertical padding of the medium ColorEditor views container.
|
|
139
|
+
/// @group color-editor
|
|
140
|
+
$kendo-color-editor-md-views-padding-y: $kendo-color-editor-views-padding-y !default;
|
|
141
|
+
/// The horizontal padding of the medium ColorEditor views container.
|
|
142
|
+
/// @group color-editor
|
|
143
|
+
$kendo-color-editor-md-views-padding-x: $kendo-color-editor-views-padding-x !default;
|
|
144
|
+
/// The spacing of the medium ColorEditor views container.
|
|
145
|
+
/// @group color-editor
|
|
146
|
+
$kendo-color-editor-md-views-gap: $kendo-color-editor-views-gap !default;
|
|
147
|
+
/// The vertical padding of the large ColorEditor views container.
|
|
148
|
+
/// @group color-editor
|
|
149
|
+
$kendo-color-editor-lg-views-padding-y: k-spacing(4.5) !default;
|
|
150
|
+
/// The horizontal padding of the large ColorEditor views container.
|
|
151
|
+
/// @group color-editor
|
|
152
|
+
$kendo-color-editor-lg-views-padding-x: k-spacing(4.5) !default;
|
|
153
|
+
/// The spacing of the large ColorEditor views container.
|
|
154
|
+
/// @group color-editor
|
|
155
|
+
$kendo-color-editor-lg-views-gap: k-spacing(4.5) !default;
|
|
74
156
|
|
|
75
157
|
/// The outline color of the focused ColorGradient.
|
|
76
158
|
/// @group color-editor
|
|
@@ -81,3 +163,39 @@ $kendo-color-editor-color-gradient-focus-outline: 2px !default;
|
|
|
81
163
|
/// The outline offset of the focused ColorGradient.
|
|
82
164
|
/// @group color-editor
|
|
83
165
|
$kendo-color-editor-color-gradient-focus-outline-offset: 4px !default;
|
|
166
|
+
|
|
167
|
+
/// The size map of the ColorEditor.
|
|
168
|
+
/// @group color-editor
|
|
169
|
+
$kendo-color-editor-sizes: (
|
|
170
|
+
sm: (
|
|
171
|
+
min-width: $kendo-color-editor-sm-min-width,
|
|
172
|
+
header-padding-x: $kendo-color-editor-sm-header-padding-x,
|
|
173
|
+
header-padding-y: $kendo-color-editor-sm-header-padding-y,
|
|
174
|
+
views-padding-x: $kendo-color-editor-sm-views-padding-x,
|
|
175
|
+
views-padding-y: $kendo-color-editor-sm-views-padding-y,
|
|
176
|
+
preview-gap: $kendo-color-editor-sm-preview-gap,
|
|
177
|
+
preview-width: $kendo-color-editor-sm-color-preview-width,
|
|
178
|
+
preview-height: $kendo-color-editor-sm-color-preview-height,
|
|
179
|
+
|
|
180
|
+
),
|
|
181
|
+
md: (
|
|
182
|
+
min-width: $kendo-color-editor-md-min-width,
|
|
183
|
+
header-padding-x: $kendo-color-editor-md-header-padding-x,
|
|
184
|
+
header-padding-y: $kendo-color-editor-md-header-padding-y,
|
|
185
|
+
views-padding-x: $kendo-color-editor-md-views-padding-x,
|
|
186
|
+
views-padding-y: $kendo-color-editor-md-views-padding-y,
|
|
187
|
+
preview-gap: $kendo-color-editor-md-preview-gap,
|
|
188
|
+
preview-width: $kendo-color-editor-md-color-preview-width,
|
|
189
|
+
preview-height: $kendo-color-editor-md-color-preview-height,
|
|
190
|
+
),
|
|
191
|
+
lg: (
|
|
192
|
+
min-width: $kendo-color-editor-lg-min-width,
|
|
193
|
+
header-padding-x: $kendo-color-editor-lg-header-padding-x,
|
|
194
|
+
header-padding-y: $kendo-color-editor-lg-header-padding-y,
|
|
195
|
+
views-padding-x: $kendo-color-editor-lg-views-padding-x,
|
|
196
|
+
views-padding-y: $kendo-color-editor-lg-views-padding-y,
|
|
197
|
+
preview-gap: $kendo-color-editor-lg-preview-gap,
|
|
198
|
+
preview-width: $kendo-color-editor-lg-color-preview-width,
|
|
199
|
+
preview-height: $kendo-color-editor-lg-color-preview-height,
|
|
200
|
+
)
|
|
201
|
+
) !default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
@use "sass:math";
|
|
2
3
|
@use "../core/_index.scss" as *;
|
|
3
4
|
@use "./variables.scss" as *;
|
|
@@ -78,7 +79,6 @@
|
|
|
78
79
|
|
|
79
80
|
// Sliders
|
|
80
81
|
.k-colorgradient-slider {
|
|
81
|
-
|
|
82
82
|
&.k-slider-vertical {
|
|
83
83
|
width: $kendo-color-gradient-slider-track-size;
|
|
84
84
|
height: $kendo-color-gradient-slider-vertical-size;
|
|
@@ -124,6 +124,44 @@
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
// ColorGradient sizes
|
|
128
|
+
@each $size, $size-props in $kendo-color-gradient-sizes {
|
|
129
|
+
$_width: map.get( $size-props, width );
|
|
130
|
+
$_gap: map.get( $size-props, gap );
|
|
131
|
+
$_vertical-slider-height: map.get( $size-props, vertical-slider-height );
|
|
132
|
+
$_rectangle-height: map.get( $size-props, rectangle-height );
|
|
133
|
+
$_input-width: map.get( $size-props, input-width );
|
|
134
|
+
$_canvas-gap: map.get( $size-props, canvas-gap );
|
|
135
|
+
|
|
136
|
+
.k-colorgradient-#{$size} {
|
|
137
|
+
width: $_width;
|
|
138
|
+
gap: $_gap;
|
|
139
|
+
|
|
140
|
+
.k-colorgradient-inputs {
|
|
141
|
+
.k-numerictextbox {
|
|
142
|
+
width: $_input-width;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.k-colorgradient-canvas {
|
|
147
|
+
gap: $_canvas-gap;
|
|
148
|
+
|
|
149
|
+
.k-hsv-gradient {
|
|
150
|
+
height: $_rectangle-height;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.k-slider-vertical {
|
|
154
|
+
height: $_vertical-slider-height;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.k-hsv-controls {
|
|
158
|
+
gap: $_canvas-gap;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
|
|
127
165
|
// Inputs
|
|
128
166
|
.k-colorgradient-inputs {
|
|
129
167
|
gap: $kendo-color-gradient-input-gap;
|
|
@@ -188,7 +226,6 @@
|
|
|
188
226
|
overflow: visible;
|
|
189
227
|
pointer-events: none;
|
|
190
228
|
}
|
|
191
|
-
|
|
192
229
|
}
|
|
193
230
|
|
|
194
231
|
|