@progress/kendo-theme-fluent 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/fluent-main-dark.css +1 -1
- package/dist/fluent-main.css +1 -1
- package/dist/meta/sassdoc-data.json +6174 -1280
- package/dist/meta/sassdoc-raw-data.json +3042 -867
- package/dist/meta/variables.json +492 -16
- package/lib/swatches/all.json +1 -1
- package/lib/swatches/fluent-main-dark.json +1 -1
- package/lib/swatches/fluent-main.json +1 -1
- package/package.json +4 -4
- package/scss/action-sheet/_layout.scss +28 -0
- package/scss/checkbox/_layout.scss +36 -11
- package/scss/checkbox/_variables.scss +7 -7
- package/scss/coloreditor/_layout.scss +51 -0
- package/scss/coloreditor/_variables.scss +122 -0
- package/scss/colorgradient/_layout.scss +38 -0
- package/scss/colorgradient/_variables.scss +89 -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 +53 -0
- package/scss/input/_variables.scss +7 -0
- package/scss/otp/_index.scss +18 -0
- package/scss/otp/_layout.scss +42 -0
- package/scss/otp/_theme.scss +12 -0
- package/scss/otp/_variables.scss +61 -0
- package/scss/radio/_layout.scss +17 -6
- 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 +68 -1
- package/scss/toolbar/_layout.scss +86 -9
- package/scss/toolbar/_theme.scss +87 -6
- package/scss/toolbar/_variables.scss +29 -3
package/lib/swatches/all.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-theme-fluent",
|
|
3
3
|
"description": "A css variables based theme for Kendo UI that follows the Fluent design system guidelines.",
|
|
4
|
-
"version": "10.1.0
|
|
4
|
+
"version": "10.1.0",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
57
|
-
"@progress/kendo-theme-core": "10.1.0
|
|
58
|
-
"@progress/kendo-theme-utils": "10.1.0
|
|
57
|
+
"@progress/kendo-theme-core": "10.1.0",
|
|
58
|
+
"@progress/kendo-theme-utils": "10.1.0"
|
|
59
59
|
},
|
|
60
60
|
"directories": {
|
|
61
61
|
"doc": "docs",
|
|
62
62
|
"lib": "lib"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "b4794dd83d2266af0047608c0c03f9851121fd37"
|
|
65
65
|
}
|
|
@@ -365,6 +365,34 @@
|
|
|
365
365
|
display: flex;
|
|
366
366
|
flex-flow: column nowrap;
|
|
367
367
|
}
|
|
368
|
+
|
|
369
|
+
.k-coloreditor {
|
|
370
|
+
min-width: 100%;
|
|
371
|
+
height: 100%;
|
|
372
|
+
border: 0;
|
|
373
|
+
overflow: auto;
|
|
374
|
+
scrollbar-width: none;
|
|
375
|
+
box-shadow: none;
|
|
376
|
+
|
|
377
|
+
&::-webkit-scrollbar {
|
|
378
|
+
display: none;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.k-coloreditor-header {
|
|
382
|
+
padding: 0;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.k-coloreditor-views {
|
|
386
|
+
padding-inline: 0;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.k-colorgradient-canvas {
|
|
391
|
+
.k-hsv-gradient {
|
|
392
|
+
aspect-ratio: 1;
|
|
393
|
+
height: 100%;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
368
396
|
}
|
|
369
397
|
|
|
370
398
|
// RTL
|
|
@@ -23,10 +23,6 @@
|
|
|
23
23
|
position: relative;
|
|
24
24
|
cursor: pointer;
|
|
25
25
|
-webkit-appearance: none;
|
|
26
|
-
|
|
27
|
-
@if $kendo-checkbox-indicator-type == "image" {
|
|
28
|
-
background-size: var( --INTERNAL--kendo-checkbox-indicator-size, 100% );
|
|
29
|
-
}
|
|
30
26
|
}
|
|
31
27
|
|
|
32
28
|
|
|
@@ -59,6 +55,16 @@
|
|
|
59
55
|
top: 50%;
|
|
60
56
|
left: 50%;
|
|
61
57
|
}
|
|
58
|
+
|
|
59
|
+
@if $kendo-checkbox-indicator-type == "image" {
|
|
60
|
+
content: "";
|
|
61
|
+
display: block;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
mask-size: var( --INTERNAL--kendo-checkbox-indicator-size, 100% );
|
|
65
|
+
mask-position: center;
|
|
66
|
+
mask-repeat: no-repeat;
|
|
67
|
+
}
|
|
62
68
|
}
|
|
63
69
|
|
|
64
70
|
|
|
@@ -66,7 +72,10 @@
|
|
|
66
72
|
.k-checkbox:hover,
|
|
67
73
|
.k-checkbox.k-hover {
|
|
68
74
|
@if $kendo-checkbox-indicator-type == "image" {
|
|
69
|
-
|
|
75
|
+
&::before {
|
|
76
|
+
background-color: currentColor;
|
|
77
|
+
mask-image: var( --kendo-checkbox-hover-image, #{ $kendo-checkbox-hover-image } );
|
|
78
|
+
}
|
|
70
79
|
}
|
|
71
80
|
|
|
72
81
|
@if $kendo-checkbox-indicator-type == "pseudo" {
|
|
@@ -94,7 +103,10 @@
|
|
|
94
103
|
.k-checkbox:checked,
|
|
95
104
|
.k-checkbox.k-checked {
|
|
96
105
|
@if $kendo-checkbox-indicator-type == "image" {
|
|
97
|
-
|
|
106
|
+
&::before {
|
|
107
|
+
background-color: currentColor;
|
|
108
|
+
mask-image: var( --kendo-checkbox-checked-image, #{ $kendo-checkbox-checked-image } );
|
|
109
|
+
}
|
|
98
110
|
}
|
|
99
111
|
|
|
100
112
|
@if $kendo-checkbox-indicator-type == "pseudo" {
|
|
@@ -115,8 +127,11 @@
|
|
|
115
127
|
.k-checkbox:indeterminate,
|
|
116
128
|
.k-checkbox.k-indeterminate {
|
|
117
129
|
@if $kendo-checkbox-indicator-type == "image" {
|
|
118
|
-
|
|
119
|
-
|
|
130
|
+
&::before {
|
|
131
|
+
background-color: currentColor;
|
|
132
|
+
mask-image: var( --kendo-checkbox-indeterminate-image, #{ $kendo-checkbox-indeterminate-image } );
|
|
133
|
+
mask-size: var( --INTERNAL--kendo-checkbox-indeterminate-size, 100% );
|
|
134
|
+
}
|
|
120
135
|
}
|
|
121
136
|
|
|
122
137
|
@if $kendo-checkbox-indicator-type == "pseudo" {
|
|
@@ -136,7 +151,11 @@
|
|
|
136
151
|
.k-checkbox:indeterminate:hover,
|
|
137
152
|
.k-checkbox.k-indeterminate.k-hover {
|
|
138
153
|
@if $kendo-checkbox-indicator-type == "image" {
|
|
139
|
-
|
|
154
|
+
&::before {
|
|
155
|
+
background-color: currentColor;
|
|
156
|
+
mask-image: var( --kendo-checkbox-hover-indeterminate-image, #{ $kendo-checkbox-hover-indeterminate-image } );
|
|
157
|
+
}
|
|
158
|
+
|
|
140
159
|
}
|
|
141
160
|
}
|
|
142
161
|
|
|
@@ -145,13 +164,19 @@
|
|
|
145
164
|
.k-checkbox:checked:disabled,
|
|
146
165
|
.k-checkbox.k-checked.k-disabled {
|
|
147
166
|
@if $kendo-checkbox-indicator-type == "image" {
|
|
148
|
-
|
|
167
|
+
&::before {
|
|
168
|
+
background-color: currentColor;
|
|
169
|
+
mask-image: var( --kendo-checkbox-disabled-checked-image, #{ $kendo-checkbox-disabled-checked-image } );
|
|
170
|
+
}
|
|
149
171
|
}
|
|
150
172
|
}
|
|
151
173
|
.k-checkbox:indeterminate:disabled,
|
|
152
174
|
.k-checkbox.k-indeterminate.k-disabled {
|
|
153
175
|
@if $kendo-checkbox-indicator-type == "image" {
|
|
154
|
-
|
|
176
|
+
&::before {
|
|
177
|
+
background-color: currentColor;
|
|
178
|
+
mask-image: var( --kendo-checkbox-disabled-indeterminate-image, #{ $kendo-checkbox-disabled-indeterminate-image } );
|
|
179
|
+
}
|
|
155
180
|
}
|
|
156
181
|
}
|
|
157
182
|
|
|
@@ -168,25 +168,25 @@ $kendo-checkbox-indeterminate-glyph: "\e121" !default;
|
|
|
168
168
|
|
|
169
169
|
/// The image of the hovered CheckBox indicator.
|
|
170
170
|
/// @group checkbox
|
|
171
|
-
$kendo-checkbox-hover-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='#
|
|
171
|
+
$kendo-checkbox-hover-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='#323130' stroke-linecap='square' stroke-linejoin='square' stroke-width='2' d='M3,8 l3,3 l7-7'/></svg>") ) !default;
|
|
172
172
|
/// The image of the checked CheckBox indicator.
|
|
173
173
|
/// @group checkbox
|
|
174
|
-
$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='#
|
|
174
|
+
$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;
|
|
175
175
|
/// The image of the indeterminate CheckBox indicator.
|
|
176
176
|
/// @group checkbox
|
|
177
|
-
$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'><rect x='3' y='3' width='10' height='10' rx='2' fill='#
|
|
177
|
+
$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'><rect x='3' y='3' width='10' height='10' rx='2' fill='#0078d4'/></svg>") ) !default;
|
|
178
178
|
/// The image of the hovered and checked CheckBox indicator.
|
|
179
179
|
/// @group checkbox
|
|
180
|
-
$kendo-checkbox-hover-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='#
|
|
180
|
+
$kendo-checkbox-hover-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;
|
|
181
181
|
/// The image of the hovered and indeterminate CheckBox indicator.
|
|
182
182
|
/// @group checkbox
|
|
183
|
-
$kendo-checkbox-hover-indeterminate-image: k-escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='3' y='3' width='10' height='10' rx='2' fill='#
|
|
183
|
+
$kendo-checkbox-hover-indeterminate-image: k-escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='3' y='3' width='10' height='10' rx='2' fill='#106ebe'/></svg>") ) !default;
|
|
184
184
|
/// The image of the checked CheckBox indicator.
|
|
185
185
|
/// @group checkbox
|
|
186
|
-
$kendo-checkbox-disabled-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='#
|
|
186
|
+
$kendo-checkbox-disabled-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;
|
|
187
187
|
/// The image of the indeterminate CheckBox indicator.
|
|
188
188
|
/// @group checkbox
|
|
189
|
-
$kendo-checkbox-disabled-indeterminate-image: k-escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='3' y='3' width='10' height='10' rx='2' fill='#
|
|
189
|
+
$kendo-checkbox-disabled-indeterminate-image: k-escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='3' y='3' width='10' height='10' rx='2' fill='#323130'/></svg>") ) !default;
|
|
190
190
|
|
|
191
191
|
|
|
192
192
|
// Checkbox label
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
@use "../core/_index.scss" as *;
|
|
2
3
|
@use "../colorpalette/_variables.scss" as *;
|
|
3
4
|
@use "./_variables.scss" as *;
|
|
@@ -51,11 +52,48 @@
|
|
|
51
52
|
position: relative;
|
|
52
53
|
z-index: 1;
|
|
53
54
|
}
|
|
55
|
+
|
|
54
56
|
.k-coloreditor-preview .k-color-preview {
|
|
55
57
|
width: var( --kendo-color-editor-color-preview-width, #{$kendo-color-editor-color-preview-width} );
|
|
56
58
|
height: var( --kendo-color-editor-color-preview-height, #{$kendo-color-editor-color-preview-height} );
|
|
57
59
|
}
|
|
58
60
|
|
|
61
|
+
// ColorPreview sizes
|
|
62
|
+
@each $size, $size-props in $kendo-color-editor-sizes {
|
|
63
|
+
$_min-width: map.get( $size-props, min-width );
|
|
64
|
+
$_header-padding-x: map.get( $size-props, header-padding-x );
|
|
65
|
+
$_header-padding-y: map.get( $size-props, header-padding-y );
|
|
66
|
+
$_views-padding-x: map.get( $size-props, views-padding-x );
|
|
67
|
+
$_views-padding-y: map.get( $size-props, views-padding-y );
|
|
68
|
+
$_preview-spacing: map.get( $size-props, preview-spacing );
|
|
69
|
+
$_preview-width: map.get( $size-props, preview-width );
|
|
70
|
+
$_preview-height: map.get( $size-props, preview-height );
|
|
71
|
+
|
|
72
|
+
.k-coloreditor-#{$size} {
|
|
73
|
+
min-width: $_min-width;
|
|
74
|
+
|
|
75
|
+
.k-coloreditor-header {
|
|
76
|
+
padding: $_header-padding-y $_header-padding-x 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.k-coloreditor-views {
|
|
80
|
+
padding-block-start: calc($_views-padding-y * 2);
|
|
81
|
+
padding-block-end: $_views-padding-y;
|
|
82
|
+
padding-inline: $_views-padding-x;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.k-coloreditor-preview {
|
|
86
|
+
gap: $_preview-spacing;
|
|
87
|
+
|
|
88
|
+
.k-color-preview {
|
|
89
|
+
width: $_preview-width;
|
|
90
|
+
height: $_preview-height;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
}
|
|
96
|
+
|
|
59
97
|
// Views
|
|
60
98
|
.k-coloreditor-views {
|
|
61
99
|
min-width: calc( var( --kendo-color-preview-width, #{$kendo-color-palette-tile-width}) * var( --kendo-color-preview-columns, 10) );
|
|
@@ -81,6 +119,19 @@
|
|
|
81
119
|
}
|
|
82
120
|
}
|
|
83
121
|
|
|
122
|
+
// ColorPalette sizes
|
|
123
|
+
@each $size, $size-props in $kendo-color-palette-sizes {
|
|
124
|
+
$_tile-width: map.get( $size-props, width );
|
|
125
|
+
$_tile-height: map.get( $size-props, height );
|
|
126
|
+
|
|
127
|
+
.k-coloreditor-#{$size} {
|
|
128
|
+
.k-colorpalette-tile {
|
|
129
|
+
width: $_tile-width;
|
|
130
|
+
height: $_tile-height;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
84
135
|
// Footer
|
|
85
136
|
.k-coloreditor-footer.k-actions {
|
|
86
137
|
padding-block: var( --kendo-color-editor-footer-padding-y, #{$kendo-color-editor-footer-padding-y} );
|
|
@@ -9,6 +9,15 @@ $kendo-color-editor-spacer: k-spacing(2) !default;
|
|
|
9
9
|
/// The minimum width of the ColorEditor.
|
|
10
10
|
/// @group color-editor
|
|
11
11
|
$kendo-color-editor-min-width: 260px !default;
|
|
12
|
+
/// The minimum width of the ColorEditor.
|
|
13
|
+
/// @group color-editor
|
|
14
|
+
$kendo-color-editor-sm-min-width: 236px !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: 360px !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,10 +59,30 @@ $kendo-color-editor-header-padding-y: $kendo-color-editor-spacer !default;
|
|
|
50
59
|
/// The horizontal padding of the ColorEditor header.
|
|
51
60
|
/// @group color-editor
|
|
52
61
|
$kendo-color-editor-header-padding-x: $kendo-color-editor-header-padding-y !default;
|
|
62
|
+
|
|
53
63
|
/// The spacing between the ColorEditor header actions.
|
|
54
64
|
/// @group color-editor
|
|
55
65
|
$kendo-color-editor-header-actions-spacing: calc( #{$kendo-color-editor-spacer} / 2 ) !default;
|
|
56
66
|
|
|
67
|
+
/// The vertical padding of the small ColorEditor header.
|
|
68
|
+
/// @group color-editor
|
|
69
|
+
$kendo-color-editor-sm-header-padding-y: $kendo-color-editor-header-padding-y !default;
|
|
70
|
+
/// The horizontal padding of the small ColorEditor header.
|
|
71
|
+
/// @group color-editor
|
|
72
|
+
$kendo-color-editor-sm-header-padding-x: $kendo-color-editor-header-padding-x !default;
|
|
73
|
+
/// The vertical padding of the medium ColorEditor header.
|
|
74
|
+
/// @group color-editor
|
|
75
|
+
$kendo-color-editor-md-header-padding-y: $kendo-color-editor-header-padding-y !default;
|
|
76
|
+
/// The horizontal padding of the medium ColorEditor header.
|
|
77
|
+
/// @group color-editor
|
|
78
|
+
$kendo-color-editor-md-header-padding-x: $kendo-color-editor-header-padding-x !default;
|
|
79
|
+
/// The vertical padding of the large ColorEditor header.
|
|
80
|
+
/// @group color-editor
|
|
81
|
+
$kendo-color-editor-lg-header-padding-y: k-spacing(4) !default;
|
|
82
|
+
/// The horizontal padding of the large ColorEditor header.
|
|
83
|
+
/// @group color-editor
|
|
84
|
+
$kendo-color-editor-lg-header-padding-x: k-spacing(4) !default;
|
|
85
|
+
|
|
57
86
|
/// The width of the ColorEditor preview.
|
|
58
87
|
/// @group color-editor
|
|
59
88
|
$kendo-color-editor-color-preview-width: 34px !default;
|
|
@@ -64,6 +93,35 @@ $kendo-color-editor-color-preview-height: 14px !default;
|
|
|
64
93
|
/// @group color-editor
|
|
65
94
|
$kendo-color-editor-preview-spacing: k-spacing(1) !default;
|
|
66
95
|
|
|
96
|
+
/// The spacing between the colors in the small ColorEditor preview.
|
|
97
|
+
/// @group color-editor
|
|
98
|
+
$kendo-color-editor-sm-preview-spacing: k-spacing(1) !default;
|
|
99
|
+
/// The spacing between the colors in the medium ColorEditor preview.
|
|
100
|
+
/// @group color-editor
|
|
101
|
+
$kendo-color-editor-md-preview-spacing: $kendo-color-editor-preview-spacing !default;
|
|
102
|
+
/// The spacing between the colors in the large ColorEditor preview.
|
|
103
|
+
/// @group color-editor
|
|
104
|
+
$kendo-color-editor-lg-preview-spacing: k-spacing(1) !default;
|
|
105
|
+
|
|
106
|
+
/// The width of the small ColorEditor preview.
|
|
107
|
+
/// @group color-editor
|
|
108
|
+
$kendo-color-editor-sm-color-preview-width: 34px !default;
|
|
109
|
+
/// The height of the small ColorEditor preview.
|
|
110
|
+
/// @group color-editor
|
|
111
|
+
$kendo-color-editor-sm-color-preview-height: 12px !default;
|
|
112
|
+
/// The width of the medium ColorEditor preview.
|
|
113
|
+
/// @group color-editor
|
|
114
|
+
$kendo-color-editor-md-color-preview-width: $kendo-color-editor-color-preview-width !default;
|
|
115
|
+
/// The height of the medium ColorEditor preview.
|
|
116
|
+
/// @group color-editor
|
|
117
|
+
$kendo-color-editor-md-color-preview-height: $kendo-color-editor-color-preview-height !default;
|
|
118
|
+
/// The width of the large ColorEditor preview.
|
|
119
|
+
/// @group color-editor
|
|
120
|
+
$kendo-color-editor-lg-color-preview-width: 34px !default;
|
|
121
|
+
/// The height of the large ColorEditor preview.
|
|
122
|
+
/// @group color-editor
|
|
123
|
+
$kendo-color-editor-lg-color-preview-height: 16px !default;
|
|
124
|
+
|
|
67
125
|
/// The vertical padding of the ColorEditor views container.
|
|
68
126
|
/// @group color-editor
|
|
69
127
|
$kendo-color-editor-views-padding-y: $kendo-color-editor-spacer !default;
|
|
@@ -74,6 +132,34 @@ $kendo-color-editor-views-padding-x: $kendo-color-editor-views-padding-y !defaul
|
|
|
74
132
|
/// @group color-editor
|
|
75
133
|
$kendo-color-editor-views-spacing: $kendo-color-editor-spacer !default;
|
|
76
134
|
|
|
135
|
+
/// The vertical padding of the small ColorEditor views container.
|
|
136
|
+
/// @group color-editor
|
|
137
|
+
$kendo-color-editor-sm-views-padding-y: k-spacing(2) !default;
|
|
138
|
+
/// The horizontal padding of the small ColorEditor views container.
|
|
139
|
+
/// @group color-editor
|
|
140
|
+
$kendo-color-editor-sm-views-padding-x: $kendo-color-editor-views-padding-y !default;
|
|
141
|
+
/// The spacing of the small ColorEditor views container.
|
|
142
|
+
/// @group color-editor
|
|
143
|
+
$kendo-color-editor-sm-views-spacing: k-spacing(4) !default;
|
|
144
|
+
/// The vertical padding of the medium ColorEditor views container.
|
|
145
|
+
/// @group color-editor
|
|
146
|
+
$kendo-color-editor-md-views-padding-y: $kendo-color-editor-views-padding-y !default;
|
|
147
|
+
/// The horizontal padding of the medium ColorEditor views container.
|
|
148
|
+
/// @group color-editor
|
|
149
|
+
$kendo-color-editor-md-views-padding-x: $kendo-color-editor-views-padding-x !default;
|
|
150
|
+
/// The spacing of the medium ColorEditor views container.
|
|
151
|
+
/// @group color-editor
|
|
152
|
+
$kendo-color-editor-md-views-spacing: $kendo-color-editor-views-spacing !default;
|
|
153
|
+
/// The vertical padding of the large ColorEditor views container.
|
|
154
|
+
/// @group color-editor
|
|
155
|
+
$kendo-color-editor-lg-views-padding-y: k-spacing(4) !default;
|
|
156
|
+
/// The horizontal padding of the large ColorEditor views container.
|
|
157
|
+
/// @group color-editor
|
|
158
|
+
$kendo-color-editor-lg-views-padding-x: k-spacing(4) !default;
|
|
159
|
+
/// The spacing of the large ColorEditor views container.
|
|
160
|
+
/// @group color-editor
|
|
161
|
+
$kendo-color-editor-lg-views-spacing: k-spacing(4.5) !default;
|
|
162
|
+
|
|
77
163
|
/// The vertical padding of the ColorEditor footer.
|
|
78
164
|
/// @group color-editor
|
|
79
165
|
$kendo-color-editor-footer-padding-y: k-spacing(2) !default;
|
|
@@ -90,3 +176,39 @@ $kendo-color-editor-color-gradient-focus-outline: 2px !default;
|
|
|
90
176
|
/// The outline offset of the focused ColorGradient.
|
|
91
177
|
/// @group color-editor
|
|
92
178
|
$kendo-color-editor-color-gradient-focus-outline-offset: 2px !default;
|
|
179
|
+
|
|
180
|
+
/// The size map of the ColorEditor preview.
|
|
181
|
+
/// @group color-editor
|
|
182
|
+
$kendo-color-editor-sizes: (
|
|
183
|
+
sm: (
|
|
184
|
+
min-width: $kendo-color-editor-sm-min-width,
|
|
185
|
+
header-padding-x: $kendo-color-editor-sm-header-padding-x,
|
|
186
|
+
header-padding-y: $kendo-color-editor-sm-header-padding-y,
|
|
187
|
+
views-padding-x: $kendo-color-editor-sm-views-padding-x,
|
|
188
|
+
views-padding-y: $kendo-color-editor-sm-views-padding-y,
|
|
189
|
+
preview-spacing: $kendo-color-editor-sm-preview-spacing,
|
|
190
|
+
preview-width: $kendo-color-editor-sm-color-preview-width,
|
|
191
|
+
preview-height: $kendo-color-editor-sm-color-preview-height,
|
|
192
|
+
|
|
193
|
+
),
|
|
194
|
+
md: (
|
|
195
|
+
min-width: $kendo-color-editor-md-min-width,
|
|
196
|
+
header-padding-x: $kendo-color-editor-md-header-padding-x,
|
|
197
|
+
header-padding-y: $kendo-color-editor-md-header-padding-y,
|
|
198
|
+
views-padding-x: $kendo-color-editor-md-views-padding-x,
|
|
199
|
+
views-padding-y: $kendo-color-editor-md-views-padding-y,
|
|
200
|
+
preview-spacing: $kendo-color-editor-md-preview-spacing,
|
|
201
|
+
preview-width: $kendo-color-editor-md-color-preview-width,
|
|
202
|
+
preview-height: $kendo-color-editor-md-color-preview-height,
|
|
203
|
+
),
|
|
204
|
+
lg: (
|
|
205
|
+
min-width: $kendo-color-editor-lg-min-width,
|
|
206
|
+
header-padding-x: $kendo-color-editor-lg-header-padding-x,
|
|
207
|
+
header-padding-y: $kendo-color-editor-lg-header-padding-y,
|
|
208
|
+
views-padding-x: $kendo-color-editor-lg-views-padding-x,
|
|
209
|
+
views-padding-y: $kendo-color-editor-lg-views-padding-y,
|
|
210
|
+
preview-spacing: $kendo-color-editor-lg-preview-spacing,
|
|
211
|
+
preview-width: $kendo-color-editor-lg-color-preview-width,
|
|
212
|
+
preview-height: $kendo-color-editor-lg-color-preview-height,
|
|
213
|
+
)
|
|
214
|
+
) !default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
@use "../core/_index.scss" as *;
|
|
2
3
|
@use "./_variables.scss" as *;
|
|
3
4
|
|
|
@@ -129,6 +130,43 @@
|
|
|
129
130
|
|
|
130
131
|
}
|
|
131
132
|
|
|
133
|
+
// ColorGradient sizes
|
|
134
|
+
@each $size, $size-props in $kendo-color-gradient-sizes {
|
|
135
|
+
$_width: map.get( $size-props, width );
|
|
136
|
+
$_spacing: map.get( $size-props, spacing );
|
|
137
|
+
$_vertical-slider-height: map.get( $size-props, vertical-slider-height );
|
|
138
|
+
$_rectangle-height: map.get( $size-props, rectangle-height );
|
|
139
|
+
$_input-width: map.get( $size-props, input-width );
|
|
140
|
+
$_canvas-spacing: map.get( $size-props, canvas-spacing );
|
|
141
|
+
|
|
142
|
+
.k-colorgradient-#{$size} {
|
|
143
|
+
width: $_width;
|
|
144
|
+
gap: $_spacing;
|
|
145
|
+
|
|
146
|
+
.k-colorgradient-inputs {
|
|
147
|
+
.k-numerictextbox {
|
|
148
|
+
width: $_input-width;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.k-colorgradient-canvas {
|
|
153
|
+
gap: $_canvas-spacing;
|
|
154
|
+
|
|
155
|
+
.k-hsv-gradient {
|
|
156
|
+
height: $_rectangle-height;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.k-slider-vertical {
|
|
160
|
+
height: $_vertical-slider-height;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.k-hsv-controls {
|
|
164
|
+
gap: $_canvas-spacing;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
132
170
|
// Inputs
|
|
133
171
|
.k-colorgradient-inputs {
|
|
134
172
|
gap: var( --kendo-color-gradient-input-spacing, #{$kendo-color-gradient-input-spacing} );
|
|
@@ -47,6 +47,26 @@ $kendo-color-gradient-border: var( --kendo-component-border, initial ) !default;
|
|
|
47
47
|
/// @group color-gradient
|
|
48
48
|
$kendo-color-gradient-shadow: var( --kendo-box-shadow-depth-2, none ) !default;
|
|
49
49
|
|
|
50
|
+
/// The width of the small ColorGradient.
|
|
51
|
+
/// @group color-gradient
|
|
52
|
+
$kendo-color-gradient-sm-width: 226px !default;
|
|
53
|
+
/// The width of the medium ColorGradient.
|
|
54
|
+
/// @group color-gradient
|
|
55
|
+
$kendo-color-gradient-md-width: $kendo-color-gradient-width !default;
|
|
56
|
+
/// The width of the large ColorGradient.
|
|
57
|
+
/// @group color-gradient
|
|
58
|
+
$kendo-color-gradient-lg-width: 360px !default;
|
|
59
|
+
|
|
60
|
+
/// The spacing between the sections of the small ColorGradient.
|
|
61
|
+
/// @group color-gradient
|
|
62
|
+
$kendo-color-gradient-sm-spacing: $kendo-color-gradient-spacing !default;
|
|
63
|
+
/// The spacing between the sections of the medium ColorGradient.
|
|
64
|
+
/// @group color-gradient
|
|
65
|
+
$kendo-color-gradient-md-spacing: $kendo-color-gradient-spacing !default;
|
|
66
|
+
/// The spacing between the sections of the large ColorGradient.
|
|
67
|
+
/// @group color-gradient
|
|
68
|
+
$kendo-color-gradient-lg-spacing: k-spacing(4.5) !default;
|
|
69
|
+
|
|
50
70
|
/// The border color of the focused ColorGradient.
|
|
51
71
|
/// @group color-gradient
|
|
52
72
|
$kendo-color-gradient-focus-border: if($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 10%, transparent), k-get-theme-color-var( neutral-20 )) !default;
|
|
@@ -62,10 +82,30 @@ $kendo-color-gradient-canvas-border-width: 0 !default;
|
|
|
62
82
|
$kendo-color-gradient-canvas-border-radius: k-border-radius(md) !default;
|
|
63
83
|
/// The spacing between the items of the ColorGradient canvas.
|
|
64
84
|
/// @group color-gradient
|
|
65
|
-
$kendo-color-gradient-canvas-spacing:
|
|
85
|
+
$kendo-color-gradient-canvas-spacing: k-spacing(2) !default;
|
|
66
86
|
/// The height the ColorGradient canvas hsv rectangle.
|
|
67
87
|
/// @group color-gradient
|
|
68
88
|
$kendo-color-gradient-canvas-rectangle-height: 180px !default;
|
|
89
|
+
/// The height the small ColorGradient canvas hsv rectangle.
|
|
90
|
+
/// @group color-gradient
|
|
91
|
+
$kendo-color-gradient-sm-canvas-rectangle-height: 164px !default;
|
|
92
|
+
/// The height the medium ColorGradient canvas hsv rectangle.
|
|
93
|
+
/// @group color-gradient
|
|
94
|
+
$kendo-color-gradient-md-canvas-rectangle-height: $kendo-color-gradient-canvas-rectangle-height !default;
|
|
95
|
+
/// The height the large ColorGradient canvas hsv rectangle.
|
|
96
|
+
/// @group color-gradient
|
|
97
|
+
$kendo-color-gradient-lg-canvas-rectangle-height: 256px !default;
|
|
98
|
+
|
|
99
|
+
/// The spacing between the items of the small ColorGradient canvas.
|
|
100
|
+
/// @group color-gradient
|
|
101
|
+
$kendo-color-gradient-sm-canvas-spacing: $kendo-color-gradient-canvas-spacing !default;
|
|
102
|
+
/// The spacing between the items of the medium ColorGradient canvas.
|
|
103
|
+
/// @group color-gradient
|
|
104
|
+
$kendo-color-gradient-md-canvas-spacing: $kendo-color-gradient-canvas-spacing !default;
|
|
105
|
+
/// The spacing between the items of the large ColorGradient canvas.
|
|
106
|
+
/// @group color-gradient
|
|
107
|
+
$kendo-color-gradient-lg-canvas-spacing: k-spacing(4) !default;
|
|
108
|
+
|
|
69
109
|
/// The border color of the ColorGradient canvas hsv rectangle.
|
|
70
110
|
/// @group color-gradient
|
|
71
111
|
$kendo-color-gradient-canvas-rectangle-border: if($kendo-enable-color-system, color-mix(in srgb, k-color( border ) 16%, transparent), k-get-theme-color-var( neutral-30 )) !default;
|
|
@@ -95,6 +135,15 @@ $kendo-color-gradient-slider-horizontal-size: 100% !default;
|
|
|
95
135
|
/// The background image of the ColorGradient alpha slider.
|
|
96
136
|
/// @group color-gradient
|
|
97
137
|
$kendo-color-gradient-slider-alpha-bgr: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAuSURBVHgBxYyxDQAwDMJIL+YT+DjtzFRliUfLcklqBCRT4eCTxbD6kdL2/LgYXqpvCbs3kBv/AAAAAElFTkSuQmCC" !default;
|
|
138
|
+
/// The height of the small ColorGradient vertical slider.
|
|
139
|
+
/// @group color-gradient
|
|
140
|
+
$kendo-color-gradient-sm-slider-vertical-size: 164px !default;
|
|
141
|
+
/// The height of the medium ColorGradient vertical slider.
|
|
142
|
+
/// @group color-gradient
|
|
143
|
+
$kendo-color-gradient-md-slider-vertical-size: $kendo-color-gradient-slider-vertical-size !default;
|
|
144
|
+
/// The height of the large ColorGradient vertical slider.
|
|
145
|
+
/// @group color-gradient
|
|
146
|
+
$kendo-color-gradient-lg-slider-vertical-size: 256px !default;
|
|
98
147
|
|
|
99
148
|
/// The width of the ColorGradient canvas drag handle.
|
|
100
149
|
/// @group color-gradient
|
|
@@ -147,9 +196,48 @@ $kendo-color-gradient-input-label-spacing: calc( #{$kendo-color-gradient-spacer}
|
|
|
147
196
|
/// @group color-gradient
|
|
148
197
|
$kendo-color-gradient-input-label-text: var( --kendo-subtle-text, inherit ) !default;
|
|
149
198
|
|
|
199
|
+
/// The width of the small ColorGradient input.
|
|
200
|
+
/// @group color-gradient
|
|
201
|
+
$kendo-color-gradient-sm-input-width: 43.5px !default;
|
|
202
|
+
/// The width of the medium ColorGradient input.
|
|
203
|
+
/// @group color-gradient
|
|
204
|
+
$kendo-color-gradient-md-input-width: $kendo-color-gradient-input-width !default;
|
|
205
|
+
/// The width of the large ColorGradient input.
|
|
206
|
+
/// @group color-gradient
|
|
207
|
+
$kendo-color-gradient-lg-input-width: 50.5px !default;
|
|
208
|
+
|
|
150
209
|
/// The font weight of the ColorGradient contrast ratio text.
|
|
151
210
|
/// @group color-gradient
|
|
152
211
|
$kendo-color-gradient-contrast-ratio-font-weight: var( --kendo-font-weight-bold, normal ) !default;
|
|
153
212
|
/// The spacing between the items in the ColorGradient contrast tool.
|
|
154
213
|
/// @group color-gradient
|
|
155
214
|
$kendo-color-gradient-contrast-spacing: calc( #{$kendo-color-gradient-spacer} / 1.5 ) !default;
|
|
215
|
+
|
|
216
|
+
/// The size map of the ColorGradient.
|
|
217
|
+
/// @group color-gradient
|
|
218
|
+
$kendo-color-gradient-sizes: (
|
|
219
|
+
sm: (
|
|
220
|
+
width: $kendo-color-gradient-sm-width,
|
|
221
|
+
vertical-slider-height: $kendo-color-gradient-sm-slider-vertical-size,
|
|
222
|
+
rectangle-height: $kendo-color-gradient-sm-canvas-rectangle-height,
|
|
223
|
+
input-width: $kendo-color-gradient-sm-input-width,
|
|
224
|
+
spacing: $kendo-color-gradient-sm-spacing,
|
|
225
|
+
canvas-spacing: $kendo-color-gradient-sm-canvas-spacing
|
|
226
|
+
),
|
|
227
|
+
md: (
|
|
228
|
+
width: $kendo-color-gradient-md-width,
|
|
229
|
+
vertical-slider-height: $kendo-color-gradient-md-slider-vertical-size,
|
|
230
|
+
rectangle-height: $kendo-color-gradient-md-canvas-rectangle-height,
|
|
231
|
+
input-width: $kendo-color-gradient-md-input-width,
|
|
232
|
+
spacing: $kendo-color-gradient-md-spacing,
|
|
233
|
+
canvas-spacing: $kendo-color-gradient-md-canvas-spacing
|
|
234
|
+
),
|
|
235
|
+
lg: (
|
|
236
|
+
width: $kendo-color-gradient-lg-width,
|
|
237
|
+
vertical-slider-height: $kendo-color-gradient-lg-slider-vertical-size,
|
|
238
|
+
rectangle-height: $kendo-color-gradient-lg-canvas-rectangle-height,
|
|
239
|
+
input-width: $kendo-color-gradient-lg-input-width,
|
|
240
|
+
spacing: $kendo-color-gradient-lg-spacing,
|
|
241
|
+
canvas-spacing: $kendo-color-gradient-lg-canvas-spacing
|
|
242
|
+
)
|
|
243
|
+
) !default;
|