@progress/kendo-theme-fluent 11.2.1-dev.1 → 11.3.0-dev.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 +24099 -27323
- package/dist/meta/sassdoc-raw-data.json +8421 -7718
- package/dist/meta/variables.json +7880 -8036
- 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-buttons/_layout.scss +2 -55
- package/scss/action-buttons/_theme.scss +2 -11
- package/scss/action-buttons/_variables.scss +17 -7
- package/scss/action-sheet/_layout.scss +11 -399
- package/scss/action-sheet/_theme.scss +14 -69
- package/scss/action-sheet/_variables.scss +129 -66
- package/scss/adaptive/_index.scss +0 -3
- package/scss/adaptive/_layout.scss +2 -457
- package/scss/adaptive/_theme.scss +2 -75
- package/scss/adaptive/_variables.scss +39 -18
- package/scss/appbar/_layout.scss +2 -114
- package/scss/appbar/_theme.scss +9 -20
- package/scss/appbar/_variables.scss +38 -71
- package/scss/avatar/_layout.scss +2 -73
- package/scss/avatar/_theme.scss +2 -16
- package/scss/avatar/_variables.scss +24 -82
- package/scss/badge/_layout.scss +3 -146
- package/scss/badge/_theme.scss +8 -21
- package/scss/badge/_variables.scss +41 -88
- package/scss/bottom-navigation/_layout.scss +5 -108
- package/scss/bottom-navigation/_theme.scss +73 -74
- package/scss/bottom-navigation/_variables.scss +58 -117
- package/scss/breadcrumb/_layout.scss +8 -132
- package/scss/breadcrumb/_theme.scss +15 -71
- package/scss/breadcrumb/_variables.scss +133 -71
- package/scss/button/_layout.scss +18 -182
- package/scss/button/_theme.scss +132 -113
- package/scss/button/_variables.scss +156 -301
- package/scss/calendar/_layout.scss +27 -383
- package/scss/calendar/_theme.scss +55 -127
- package/scss/calendar/_variables.scss +185 -100
- package/scss/captcha/_layout.scss +2 -59
- package/scss/captcha/_theme.scss +2 -9
- package/scss/captcha/_variables.scss +25 -9
- package/scss/card/_layout.scss +9 -314
- package/scss/card/_theme.scss +3 -103
- package/scss/card/_variables.scss +110 -60
- package/scss/chart-wizard/_layout.scss +2 -38
- package/scss/chart-wizard/_theme.scss +2 -28
- package/scss/chart-wizard/_variables.scss +25 -11
- package/scss/chat/_index.scss +0 -3
- package/scss/chat/_layout.scss +26 -450
- package/scss/chat/_theme.scss +9 -80
- package/scss/chat/_variables.scss +143 -71
- package/scss/checkbox/_layout.scss +14 -191
- package/scss/checkbox/_theme.scss +11 -100
- package/scss/checkbox/_variables.scss +165 -78
- package/scss/chip/_layout.scss +11 -137
- package/scss/chip/_theme.scss +56 -57
- package/scss/chip/_variables.scss +99 -94
- package/scss/color-preview/_layout.scss +4 -64
- package/scss/color-preview/_theme.scss +2 -27
- package/scss/color-preview/_variables.scss +23 -9
- package/scss/coloreditor/_layout.scss +21 -109
- package/scss/coloreditor/_theme.scss +3 -24
- package/scss/coloreditor/_variables.scss +92 -57
- package/scss/colorgradient/_layout.scss +12 -196
- package/scss/colorgradient/_theme.scss +27 -65
- package/scss/colorgradient/_variables.scss +134 -76
- package/scss/colorpalette/_layout.scss +6 -40
- package/scss/colorpalette/_theme.scss +10 -20
- package/scss/colorpalette/_variables.scss +39 -21
- package/scss/colorpicker/_layout.scss +2 -11
- package/scss/colorpicker/_theme.scss +2 -1
- package/scss/column-menu/_layout.scss +5 -56
- package/scss/column-menu/_theme.scss +1 -24
- package/scss/column-menu/_variables.scss +38 -17
- package/scss/combobox/_layout.scss +4 -2
- package/scss/combobox/_theme.scss +4 -2
- package/scss/core/functions/index.import.scss +1 -0
- package/scss/dataviz/_layout.scss +6 -543
- package/scss/dataviz/_theme.scss +12 -76
- package/scss/dataviz/_variables.scss +152 -33
- package/scss/daterangepicker/_layout.scss +2 -37
- package/scss/daterangepicker/_theme.scss +16 -7
- package/scss/daterangepicker/_variables.scss +9 -0
- package/scss/datetimepicker/_layout.scss +3 -41
- package/scss/datetimepicker/_theme.scss +3 -2
- package/scss/datetimepicker/_variables.scss +5 -1
- package/scss/dialog/_layout.scss +8 -53
- package/scss/dialog/_theme.scss +5 -25
- package/scss/dialog/_variables.scss +31 -60
- package/scss/dock-manager/_layout.scss +9 -193
- package/scss/dock-manager/_theme.scss +6 -28
- package/scss/dock-manager/_variables.scss +74 -36
- package/scss/draggable/_layout.scss +13 -59
- package/scss/draggable/_theme.scss +10 -15
- package/scss/draggable/_variables.scss +45 -23
- package/scss/drawer/_layout.scss +7 -198
- package/scss/drawer/_theme.scss +25 -52
- package/scss/drawer/_variables.scss +73 -45
- package/scss/dropdowngrid/_layout.scss +3 -11
- package/scss/dropdowngrid/_theme.scss +3 -3
- package/scss/dropdownlist/_layout.scss +4 -28
- package/scss/dropdownlist/_theme.scss +3 -7
- package/scss/dropdowntree/_layout.scss +2 -35
- package/scss/dropdowntree/_theme.scss +3 -4
- package/scss/dropdowntree/_variables.scss +4 -3
- package/scss/dropzone/_layout.scss +7 -31
- package/scss/dropzone/_theme.scss +2 -30
- package/scss/dropzone/_variables.scss +43 -21
- package/scss/editor/_layout.scss +3 -588
- package/scss/editor/_theme.scss +12 -78
- package/scss/editor/_variables.scss +45 -26
- package/scss/expansion-panel/_layout.scss +22 -57
- package/scss/expansion-panel/_theme.scss +13 -36
- package/scss/expansion-panel/_variables.scss +49 -28
- package/scss/fab/_layout.scss +11 -134
- package/scss/fab/_theme.scss +37 -126
- package/scss/fab/_variables.scss +104 -56
- package/scss/filemanager/_layout.scss +2 -240
- package/scss/filemanager/_theme.scss +8 -89
- package/scss/filemanager/_variables.scss +109 -56
- package/scss/filter/_layout.scss +8 -71
- package/scss/filter/_theme.scss +5 -14
- package/scss/filter/_variables.scss +20 -10
- package/scss/floating-label/_layout.scss +3 -75
- package/scss/floating-label/_theme.scss +4 -20
- package/scss/floating-label/_variables.scss +35 -17
- package/scss/forms/_layout.scss +5 -302
- package/scss/forms/_theme.scss +5 -24
- package/scss/forms/_variables.scss +73 -39
- package/scss/gantt/_layout.scss +5 -801
- package/scss/gantt/_theme.scss +17 -236
- package/scss/gantt/_variables.scss +142 -73
- package/scss/grid/_layout.scss +60 -1276
- package/scss/grid/_theme.scss +35 -343
- package/scss/grid/_variables.scss +306 -183
- package/scss/gridlayout/_layout.scss +1 -6
- package/scss/gridlayout/_theme.scss +1 -6
- package/scss/icons/_layout.scss +4 -33
- package/scss/icons/_theme.scss +7 -1
- package/scss/icons/_variables.scss +35 -9
- package/scss/imageeditor/_layout.scss +2 -152
- package/scss/imageeditor/_theme.scss +5 -42
- package/scss/imageeditor/_variables.scss +66 -32
- package/scss/index.scss +2 -1
- package/scss/input/_layout.scss +36 -468
- package/scss/input/_theme.scss +52 -128
- package/scss/input/_variables.scss +153 -208
- package/scss/list/_layout.scss +3 -252
- package/scss/list/_theme.scss +10 -81
- package/scss/list/_variables.scss +176 -92
- package/scss/listbox/_layout.scss +2 -80
- package/scss/listbox/_theme.scss +5 -8
- package/scss/listbox/_variables.scss +28 -13
- package/scss/listgroup/_layout.scss +2 -174
- package/scss/listgroup/_theme.scss +2 -8
- package/scss/listgroup/_variables.scss +23 -10
- package/scss/listview/_layout.scss +6 -133
- package/scss/listview/_theme.scss +8 -37
- package/scss/listview/_variables.scss +66 -39
- package/scss/loader/_layout.scss +15 -572
- package/scss/loader/_theme.scss +2 -14
- package/scss/loader/_variables.scss +90 -92
- package/scss/map/_layout.scss +7 -121
- package/scss/map/_theme.scss +5 -17
- package/scss/map/_variables.scss +40 -22
- package/scss/maskedtextbox/_layout.scss +3 -3
- package/scss/maskedtextbox/_theme.scss +3 -3
- package/scss/mediaplayer/_layout.scss +5 -72
- package/scss/mediaplayer/_theme.scss +5 -15
- package/scss/mediaplayer/_variables.scss +27 -14
- package/scss/menu/_layout.scss +25 -267
- package/scss/menu/_theme.scss +14 -73
- package/scss/menu/_variables.scss +135 -76
- package/scss/menu-button/_layout.scss +9 -14
- package/scss/menu-button/_theme.scss +5 -1
- package/scss/menu-button/_variables.scss +10 -0
- package/scss/messagebox/_layout.scss +2 -18
- package/scss/messagebox/_theme.scss +4 -19
- package/scss/messagebox/_variables.scss +33 -37
- package/scss/multiselect/_layout.scss +3 -4
- package/scss/multiselect/_theme.scss +3 -4
- package/scss/no-data/_layout.scss +2 -17
- package/scss/no-data/_theme.scss +2 -5
- package/scss/no-data/_variables.scss +7 -2
- package/scss/notification/_functions.scss +17 -0
- package/scss/notification/_layout.scss +2 -68
- package/scss/notification/_theme.scss +4 -28
- package/scss/notification/_variables.scss +50 -91
- package/scss/numerictextbox/_layout.scss +3 -7
- package/scss/numerictextbox/_theme.scss +3 -3
- package/scss/orgchart/_layout.scss +8 -99
- package/scss/orgchart/_theme.scss +4 -45
- package/scss/orgchart/_variables.scss +87 -45
- package/scss/otp/_layout.scss +1 -34
- package/scss/otp/_theme.scss +1 -7
- package/scss/otp/_variables.scss +25 -12
- package/scss/overlay/_layout.scss +2 -11
- package/scss/overlay/_theme.scss +4 -3
- package/scss/overlay/_variables.scss +7 -3
- package/scss/pager/_layout.scss +11 -145
- package/scss/pager/_theme.scss +7 -15
- package/scss/pager/_variables.scss +49 -26
- package/scss/panel/_layout.scss +2 -24
- package/scss/panel/_theme.scss +10 -13
- package/scss/panel/_variables.scss +23 -10
- package/scss/panelbar/_layout.scss +17 -95
- package/scss/panelbar/_theme.scss +15 -164
- package/scss/panelbar/_variables.scss +134 -68
- package/scss/pdf-viewer/_layout.scss +3 -327
- package/scss/pdf-viewer/_theme.scss +2 -80
- package/scss/pdf-viewer/_variables.scss +75 -36
- package/scss/pivotgrid/_index.scss +0 -6
- package/scss/pivotgrid/_layout.scss +44 -579
- package/scss/pivotgrid/_theme.scss +5 -192
- package/scss/pivotgrid/_variables.scss +144 -70
- package/scss/popover/_layout.scss +6 -73
- package/scss/popover/_theme.scss +2 -36
- package/scss/popover/_variables.scss +54 -27
- package/scss/popup/_layout.scss +5 -70
- package/scss/popup/_theme.scss +2 -9
- package/scss/popup/_variables.scss +25 -12
- package/scss/progressbar/_layout.scss +10 -196
- package/scss/progressbar/_theme.scss +11 -46
- package/scss/progressbar/_variables.scss +57 -34
- package/scss/prompt/_layout.scss +2 -75
- package/scss/prompt/_theme.scss +2 -35
- package/scss/prompt/_variables.scss +43 -20
- package/scss/radio/_layout.scss +12 -178
- package/scss/radio/_theme.scss +7 -75
- package/scss/radio/_variables.scss +72 -36
- package/scss/rating/_layout.scss +11 -57
- package/scss/rating/_theme.scss +8 -6
- package/scss/rating/_variables.scss +21 -13
- package/scss/responsivepanel/_layout.scss +2 -45
- package/scss/responsivepanel/_theme.scss +3 -3
- package/scss/ripple/_layout.scss +2 -50
- package/scss/ripple/_theme.scss +2 -2
- package/scss/scheduler/_layout.scss +11 -773
- package/scss/scheduler/_theme.scss +32 -167
- package/scss/scheduler/_variables.scss +149 -77
- package/scss/scroller/_layout.scss +2 -80
- package/scss/scroller/_theme.scss +2 -5
- package/scss/scrollview/_layout.scss +2 -159
- package/scss/scrollview/_theme.scss +11 -35
- package/scss/scrollview/_variables.scss +52 -29
- package/scss/searchbox/_layout.scss +2 -0
- package/scss/searchbox/_theme.scss +4 -1
- package/scss/searchbox/_variables.scss +1 -1
- package/scss/signature/_layout.scss +3 -67
- package/scss/signature/_theme.scss +3 -8
- package/scss/signature/_variables.scss +46 -25
- package/scss/skeleton/_layout.scss +2 -79
- package/scss/skeleton/_theme.scss +2 -17
- package/scss/skeleton/_variables.scss +15 -6
- package/scss/slider/_layout.scss +18 -203
- package/scss/slider/_theme.scss +31 -40
- package/scss/slider/_variables.scss +58 -41
- package/scss/speech-to-text-button/_layout.scss +1 -9
- package/scss/speech-to-text-button/_theme.scss +1 -3
- package/scss/split-button/_layout.scss +22 -18
- package/scss/split-button/_theme.scss +2 -1
- package/scss/split-button/_variables.scss +18 -9
- package/scss/splitter/_layout.scss +8 -171
- package/scss/splitter/_theme.scss +2 -31
- package/scss/splitter/_variables.scss +42 -20
- package/scss/spreadsheet/_layout.scss +50 -724
- package/scss/spreadsheet/_theme.scss +14 -182
- package/scss/spreadsheet/_variables.scss +172 -99
- package/scss/stacklayout/_layout.scss +1 -5
- package/scss/stacklayout/_theme.scss +1 -5
- package/scss/stepper/_layout.scss +9 -255
- package/scss/stepper/_theme.scss +4 -186
- package/scss/stepper/_variables.scss +125 -60
- package/scss/suggestion/_layout.scss +2 -38
- package/scss/suggestion/_theme.scss +3 -66
- package/scss/suggestion/_variables.scss +42 -19
- package/scss/switch/_layout.scss +2 -138
- package/scss/switch/_theme.scss +2 -136
- package/scss/switch/_variables.scss +99 -49
- package/scss/table/_layout.scss +6 -249
- package/scss/table/_theme.scss +9 -95
- package/scss/table/_variables.scss +100 -64
- package/scss/tabstrip/_layout.scss +2 -421
- package/scss/tabstrip/_theme.scss +12 -123
- package/scss/tabstrip/_variables.scss +113 -61
- package/scss/taskboard/_layout.scss +28 -178
- package/scss/taskboard/_theme.scss +20 -55
- package/scss/taskboard/_variables.scss +122 -63
- package/scss/textarea/_layout.scss +3 -6
- package/scss/textarea/_theme.scss +3 -4
- package/scss/textbox/_layout.scss +3 -4
- package/scss/textbox/_theme.scss +3 -4
- package/scss/tilelayout/_layout.scss +2 -36
- package/scss/tilelayout/_theme.scss +13 -10
- package/scss/tilelayout/_variables.scss +19 -8
- package/scss/time-marker/_layout.scss +2 -15
- package/scss/time-marker/_theme.scss +2 -17
- package/scss/time-marker/_variables.scss +7 -2
- package/scss/timedurationpicker/_layout.scss +3 -4
- package/scss/timedurationpicker/_theme.scss +3 -4
- package/scss/timeline/_layout.scss +8 -423
- package/scss/timeline/_theme.scss +11 -34
- package/scss/timeline/_variables.scss +108 -61
- package/scss/timepicker/_layout.scss +7 -3
- package/scss/timepicker/_theme.scss +3 -4
- package/scss/timeselector/_layout.scss +3 -223
- package/scss/timeselector/_theme.scss +5 -55
- package/scss/timeselector/_variables.scss +84 -41
- package/scss/toolbar/_layout.scss +11 -296
- package/scss/toolbar/_theme.scss +3 -167
- package/scss/toolbar/_variables.scss +65 -32
- package/scss/tooltip/_functions.scss +17 -0
- package/scss/tooltip/_layout.scss +13 -74
- package/scss/tooltip/_theme.scss +17 -23
- package/scss/tooltip/_variables.scss +50 -72
- package/scss/treelist/_layout.scss +3 -82
- package/scss/treelist/_theme.scss +4 -6
- package/scss/treelist/_variables.scss +7 -2
- package/scss/treeview/_layout.scss +8 -137
- package/scss/treeview/_theme.scss +20 -65
- package/scss/treeview/_variables.scss +88 -48
- package/scss/typography/_layout.scss +3 -113
- package/scss/typography/_theme.scss +2 -17
- package/scss/typography/_variables.scss +84 -3
- package/scss/upload/_layout.scss +7 -219
- package/scss/upload/_theme.scss +4 -90
- package/scss/upload/_variables.scss +66 -29
- package/scss/validator/_layout.scss +2 -16
- package/scss/validator/_theme.scss +2 -2
- package/scss/virtual-scroller/_layout.scss +2 -34
- package/scss/virtual-scroller/_theme.scss +2 -2
- package/scss/window/_layout.scss +9 -141
- package/scss/window/_theme.scss +7 -35
- package/scss/window/_variables.scss +65 -70
- package/scss/wizard/_layout.scss +8 -95
- package/scss/wizard/_theme.scss +4 -7
- package/scss/wizard/_variables.scss +24 -11
package/scss/chip/_theme.scss
CHANGED
|
@@ -1,92 +1,91 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "../core/_index.scss" as *;
|
|
3
3
|
@use "./_variables.scss" as *;
|
|
4
|
+
@use "@progress/kendo-theme-core/scss/components/chip/_theme.scss" as *;
|
|
4
5
|
|
|
5
6
|
@mixin kendo-chip--theme() {
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
@include kendo-chip--theme-base();
|
|
9
|
+
|
|
10
|
+
.k-chip.k-chip-solid-base {
|
|
11
|
+
border-color: $kendo-chip-border;
|
|
12
|
+
color: $kendo-chip-text;
|
|
13
|
+
background-color: $kendo-chip-bg;
|
|
11
14
|
|
|
12
15
|
&:hover,
|
|
13
16
|
&.k-hover {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
color: $kendo-chip-hover-text;
|
|
18
|
+
background-color: $kendo-chip-hover-bg;
|
|
19
|
+
border-color: $kendo-chip-hover-border;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
&:focus,
|
|
20
23
|
&.k-focus {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
color: $kendo-chip-focus-text;
|
|
25
|
+
background-color: $kendo-chip-focus-bg;
|
|
26
|
+
border-color: $kendo-chip-focus-border;
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
&.k-chip-outline:focus::after,
|
|
27
30
|
&.k-chip-outline.k-focus::after {
|
|
28
|
-
outline-color:
|
|
31
|
+
outline-color: $kendo-chip-focus-outline;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
&.k-selected {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
color: $kendo-chip-selected-text;
|
|
36
|
+
background-color: $kendo-chip-selected-bg;
|
|
37
|
+
border-color: $kendo-chip-selected-border;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
&:disabled,
|
|
38
41
|
&.k-disabled {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
color: $kendo-chip-disabled-text;
|
|
43
|
+
background-color: $kendo-chip-disabled-bg;
|
|
44
|
+
border-color: $kendo-chip-disabled-border;
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
}
|
|
45
48
|
|
|
46
|
-
@each $
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
$_selected-bg: map.get( $color-props, selected-bg );
|
|
63
|
-
$_selected-border: map.get( $color-props, selected-border );
|
|
64
|
-
|
|
65
|
-
$_disabled-text: map.get( $color-props, disabled-text );
|
|
66
|
-
$_disabled-bg: map.get( $color-props, disabled-bg );
|
|
67
|
-
$_disabled-border: map.get( $color-props, disabled-border );
|
|
68
|
-
|
|
69
|
-
.k-chip-#{$fill-mode}-#{$theme-color} {
|
|
70
|
-
--kendo-chip-text: var( --kendo-chip-#{$fill-mode}-#{$theme-color}-text, #{$_text-color} );
|
|
71
|
-
--kendo-chip-bg: var( --kendo-chip-#{$fill-mode}-#{$theme-color}-bg, #{$_bg} );
|
|
72
|
-
--kendo-chip-border: var( --kendo-chip-#{$fill-mode}-#{$theme-color}-border, #{$_border-color} );
|
|
49
|
+
@each $name, $color in $kendo-chip-theme-colors {
|
|
50
|
+
.k-chip-solid-#{$name} {
|
|
51
|
+
border-color: k-color(#{$name}-subtle);
|
|
52
|
+
&:hover,
|
|
53
|
+
&.k-hover {
|
|
54
|
+
border-color: k-color(#{$name}-subtle-hover);
|
|
55
|
+
}
|
|
56
|
+
&:focus,
|
|
57
|
+
&.k-focus {
|
|
58
|
+
border-color: k-color(#{$name}-on-subtle);
|
|
59
|
+
box-shadow: none;
|
|
60
|
+
}
|
|
61
|
+
&.k-selected {
|
|
62
|
+
border-color: k-color(#{$name}-subtle-active);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
73
65
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
66
|
+
.k-chip-outline-#{$name} {
|
|
67
|
+
&:hover,
|
|
68
|
+
&.k-hover {
|
|
69
|
+
color: k-color(app-surface);
|
|
70
|
+
background-color: k-color(#{$name}-on-surface);
|
|
71
|
+
border-color: k-color(#{$name}-on-surface);
|
|
72
|
+
}
|
|
77
73
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
74
|
+
&:focus,
|
|
75
|
+
&.k-focus {
|
|
76
|
+
box-shadow: none;
|
|
77
|
+
}
|
|
82
78
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
&.k-selected {
|
|
80
|
+
color: k-color(app-surface);
|
|
81
|
+
background-color: k-color(#{$name}-on-surface);
|
|
82
|
+
border-color: k-color(#{$name}-on-surface);
|
|
83
|
+
}
|
|
86
84
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
@if ($name == "warning") {
|
|
86
|
+
color: k-color(#{$name}-on-surface);
|
|
87
|
+
background-color: transparent;
|
|
88
|
+
border-color: currentColor;
|
|
90
89
|
}
|
|
91
90
|
}
|
|
92
91
|
}
|
|
@@ -5,27 +5,27 @@
|
|
|
5
5
|
|
|
6
6
|
/// The width of the border around the Chip.
|
|
7
7
|
/// @group chip
|
|
8
|
-
$kendo-chip-border-width: 1px !default;
|
|
8
|
+
$kendo-chip-border-width: var( --kendo-chip-border-width, 1px ) !default;
|
|
9
9
|
/// The spacing between the text and the icons of the Chip.
|
|
10
10
|
/// @group chip
|
|
11
|
-
$kendo-chip-spacing: k-spacing(1) !default;
|
|
11
|
+
$kendo-chip-spacing: var( --kendo-chip-spacing, k-spacing(1) ) !default;
|
|
12
12
|
|
|
13
13
|
/// The font family of the Chip.
|
|
14
14
|
/// @group chip
|
|
15
|
-
$kendo-chip-font-family: var( --kendo-font-family, inherit ) !default;
|
|
15
|
+
$kendo-chip-font-family: var( --kendo-chip-font-family, var( --kendo-font-family, inherit ) ) !default;
|
|
16
16
|
|
|
17
17
|
/// The width of the Chip' avatar.
|
|
18
18
|
/// @group chip
|
|
19
|
-
$kendo-chip-avatar-width: 1em !default;
|
|
19
|
+
$kendo-chip-avatar-width: var( --kendo-chip-avatar-width, 1em ) !default;
|
|
20
20
|
/// The height of the Chip' avatar.
|
|
21
21
|
/// @group chip
|
|
22
|
-
$kendo-chip-avatar-height: 1em !default;
|
|
22
|
+
$kendo-chip-avatar-height: var( --kendo-chip-avatar-height, 1em ) !default;
|
|
23
23
|
/// The flex basis of the Chip' avatar.
|
|
24
24
|
/// @group chip
|
|
25
25
|
$kendo-chip-avatar-flex-basis: 1em !default;
|
|
26
26
|
/// The text color of the disabled Chip.
|
|
27
27
|
/// @group chip
|
|
28
|
-
$kendo-chip-disabled-text: color-mix(in srgb, k-color(on-app-surface) 46%, transparent) !default;
|
|
28
|
+
$kendo-chip-disabled-text: var( --kendo-chip-disabled-text, color-mix(in srgb, k-color(on-app-surface) 46%, transparent) ) !default;
|
|
29
29
|
|
|
30
30
|
/// The offset of the outline focused Chip.
|
|
31
31
|
/// @group chip
|
|
@@ -42,7 +42,7 @@ $kendo-chip-focus-outline-style: solid !default;
|
|
|
42
42
|
$kendo-chip-sm-padding-x: k-spacing(2) !default;
|
|
43
43
|
/// The horizontal padding of the medium Chip.
|
|
44
44
|
/// @group chip
|
|
45
|
-
$kendo-chip-md-padding-x: k-spacing(2) !default;
|
|
45
|
+
$kendo-chip-md-padding-x: var( --kendo-chip-padding-x, k-spacing(2) ) !default;
|
|
46
46
|
/// The horizontal padding of the large Chip.
|
|
47
47
|
/// @group chip
|
|
48
48
|
$kendo-chip-lg-padding-x: k-spacing(2) !default;
|
|
@@ -52,21 +52,21 @@ $kendo-chip-lg-padding-x: k-spacing(2) !default;
|
|
|
52
52
|
$kendo-chip-sm-padding-y: k-spacing(0.5) !default;
|
|
53
53
|
/// The vertical padding of the medium Chip.
|
|
54
54
|
/// @group chip
|
|
55
|
-
$kendo-chip-md-padding-y: k-spacing(1) !default;
|
|
55
|
+
$kendo-chip-md-padding-y: var( --kendo-chip-padding-y, k-spacing(1) ) !default;
|
|
56
56
|
/// The vertical padding of the large Chip.
|
|
57
57
|
/// @group chip
|
|
58
58
|
$kendo-chip-lg-padding-y: k-spacing(1.5) !default;
|
|
59
59
|
|
|
60
60
|
/// The font weight of the Chip.
|
|
61
61
|
/// @group chip
|
|
62
|
-
$kendo-chip-font-weight: var( --kendo-font-weight-normal, normal ) !default;
|
|
62
|
+
$kendo-chip-font-weight: var(--kendo-chip-font-weight, var( --kendo-font-weight-normal, normal ) ) !default;
|
|
63
63
|
|
|
64
64
|
/// The font size of the small Chip.
|
|
65
65
|
/// @group chip
|
|
66
66
|
$kendo-chip-sm-font-size: var( --kendo-font-size, inherit ) !default;
|
|
67
67
|
/// The font size of the medium Chip.
|
|
68
68
|
/// @group chip
|
|
69
|
-
$kendo-chip-md-font-size: var( --kendo-font-size, inherit ) !default;
|
|
69
|
+
$kendo-chip-md-font-size: var( --kendo-chip-font-size, var( --kendo-font-size, inherit ) ) !default;
|
|
70
70
|
/// The font size of the large Chip.
|
|
71
71
|
/// @group chip
|
|
72
72
|
$kendo-chip-lg-font-size: var( --kendo-font-size, inherit ) !default;
|
|
@@ -76,7 +76,7 @@ $kendo-chip-lg-font-size: var( --kendo-font-size, inherit ) !default;
|
|
|
76
76
|
$kendo-chip-sm-line-height: var( --kendo-line-height, normal ) !default;
|
|
77
77
|
/// The medium Chip's line height that is related to the $kendo-font-size.
|
|
78
78
|
/// @group chip
|
|
79
|
-
$kendo-chip-md-line-height: var( --kendo-line-height, normal ) !default;
|
|
79
|
+
$kendo-chip-md-line-height: var( --kendo-chip-line-height, var( --kendo-line-height, normal ) ) !default;
|
|
80
80
|
/// The large Chip's line height that is related to the $kendo-font-size.
|
|
81
81
|
/// @group chip
|
|
82
82
|
$kendo-chip-lg-line-height: var( --kendo-line-height, normal ) !default;
|
|
@@ -109,9 +109,6 @@ $kendo-chip-sizes: (
|
|
|
109
109
|
)
|
|
110
110
|
) !default;
|
|
111
111
|
|
|
112
|
-
|
|
113
|
-
$kendo-chip-brand-colors: ( error, success, info ) !default;
|
|
114
|
-
|
|
115
112
|
// Matrices with theme colors in the order: bg, color, border, outline
|
|
116
113
|
|
|
117
114
|
// The color matrix for the base Chip
|
|
@@ -124,91 +121,66 @@ $_tc-base-matrix: (
|
|
|
124
121
|
selected: (k-color(primary), k-color(on-primary), k-color(primary)),
|
|
125
122
|
selected-hover: (k-color(primary), k-color(on-primary), k-color(primary)),
|
|
126
123
|
disabled: (color-mix(in srgb, k-color(on-app-surface) 6%, transparent), color-mix(in srgb, k-color(on-app-surface) 46%, transparent), transparent)
|
|
127
|
-
),
|
|
128
|
-
outline: (
|
|
129
|
-
normal: (transparent, color-on-surface, currentColor),
|
|
130
|
-
hover: (color-on-surface, app-surface, color-on-surface),
|
|
131
|
-
focus: (transparent, color-on-surface, currentColor, inherit),
|
|
132
|
-
focus-hover: (color-on-surface, app-surface, color-on-surface, inherit),
|
|
133
|
-
selected: (color-on-surface, app-surface, color-on-surface),
|
|
134
|
-
selected-hover: (color-subtle, color-on-surface, color-on-subtle),
|
|
135
|
-
disabled: (initial, color-mix(in srgb, k-color(on-app-surface) 46%, transparent), color-mix(in srgb, k-color(on-app-surface) 46%, transparent))
|
|
136
|
-
),
|
|
137
|
-
) !default;
|
|
138
|
-
|
|
139
|
-
// The color matrix for the error, success and info Chips
|
|
140
|
-
$_tc-brand-matrix: (
|
|
141
|
-
solid: (
|
|
142
|
-
normal: (color-subtle, color-on-subtle, color-subtle),
|
|
143
|
-
hover: (color-subtle-hover, color-on-subtle, color-subtle-hover),
|
|
144
|
-
focus: (color-subtle, color-on-subtle, color-on-subtle),
|
|
145
|
-
focus-hover: (color-subtle, color-on-subtle, color-on-subtle),
|
|
146
|
-
selected: (color-subtle-active, color-on-subtle, color-subtle-active),
|
|
147
|
-
selected-hover: (color-subtle-hover, color-on-subtle, color-subtle-hover),
|
|
148
|
-
disabled: (color-mix(in srgb, k-color(on-app-surface) 6%, transparent), color-mix(in srgb, k-color(on-app-surface) 46%, transparent), transparent)
|
|
149
|
-
),
|
|
150
|
-
outline: (
|
|
151
|
-
normal: (transparent, color-on-surface, currentColor),
|
|
152
|
-
hover: (color-on-surface, app-surface, color-on-surface),
|
|
153
|
-
focus: (transparent, color-on-surface, color-on-surface, inherit),
|
|
154
|
-
focus-hover: (color-on-surface, app-surface, color-on-surface, inherit),
|
|
155
|
-
selected: (color-on-surface, app-surface, color-on-surface),
|
|
156
|
-
selected-hover: (color-on-surface, app-surface, color-on-surface),
|
|
157
|
-
disabled: (initial, color-mix(in srgb, k-color(on-app-surface) 46%, transparent), color-mix(in srgb, k-color(on-app-surface) 46%, transparent))
|
|
158
124
|
)
|
|
159
125
|
) !default;
|
|
160
126
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
) !default;
|
|
127
|
+
/// The base text color of the solid Chip.
|
|
128
|
+
/// @group chip
|
|
129
|
+
$kendo-chip-text: var( --kendo-chip-text, k-color(base-on-subtle) ) !default;
|
|
130
|
+
/// The base background color of the solid Chip.
|
|
131
|
+
/// @group chip
|
|
132
|
+
$kendo-chip-bg: var( --kendo-chip-bg, k-color(base-subtle) ) !default;
|
|
133
|
+
/// The base border color of the solid Chip.
|
|
134
|
+
/// @group chip
|
|
135
|
+
$kendo-chip-border: var( --kendo-chip-border, k-color(base-subtle) ) !default;
|
|
136
|
+
/// The base text color of the hovered solid Chip.
|
|
137
|
+
/// @group chip
|
|
138
|
+
$kendo-chip-hover-text: var( --kendo-chip-hover-text, k-color(base-on-subtle) ) !default;
|
|
139
|
+
/// The base background color of the hovered solid Chip.
|
|
140
|
+
/// @group chip
|
|
141
|
+
$kendo-chip-hover-bg: var( --kendo-chip-hover-bg, k-color(base-subtle-hover) ) !default;
|
|
142
|
+
/// The base border color of the hovered solid Chip.
|
|
143
|
+
/// @group chip
|
|
144
|
+
$kendo-chip-hover-border: var( --kendo-chip-hover-border, k-color(base-subtle-hover) ) !default;
|
|
145
|
+
/// The base text color of the focused solid Chip.
|
|
146
|
+
/// @group chip
|
|
147
|
+
$kendo-chip-focus-text: var( --kendo-chip-focused-text, k-color(base-on-subtle) ) !default;
|
|
148
|
+
/// The base background color of the focused solid Chip.
|
|
149
|
+
/// @group chip
|
|
150
|
+
$kendo-chip-focus-bg: var( --kendo-chip-focused-bg, k-color(base-subtle) ) !default;
|
|
151
|
+
/// The base border color of the focused solid Chip.
|
|
152
|
+
/// @group chip
|
|
153
|
+
$kendo-chip-focus-border: var( --kendo-chip-focused-border, k-color(base-on-subtle) ) !default;
|
|
154
|
+
/// The base outline color of the focused solid Chip.
|
|
155
|
+
/// @group chip
|
|
156
|
+
$kendo-chip-focus-outline: var( --kendo-chip-focus-outline, initial) !default;
|
|
157
|
+
/// The base text color of the selected solid Chip.
|
|
158
|
+
/// @group chip
|
|
159
|
+
$kendo-chip-selected-text: var( --kendo-chip-selected-text, k-color(on-primary) ) !default;
|
|
160
|
+
/// The base background color of the selected solid Chip.
|
|
161
|
+
/// @group chip
|
|
162
|
+
$kendo-chip-selected-bg: var( --kendo-chip-selected-bg, k-color(primary) ) !default;
|
|
163
|
+
/// The base border color of the selected solid Chip.
|
|
164
|
+
/// @group chip
|
|
165
|
+
$kendo-chip-selected-border: var( --kendo-chip-selected-border, k-color(primary) ) !default;
|
|
166
|
+
/// The base text color of the disabled solid Chip.
|
|
167
|
+
/// @group chip
|
|
168
|
+
$kendo-chip-disabled-text: var( --kendo-chip-disabled-text, color-mix(in srgb, k-color(on-app-surface) 46%, transparent) ) !default;
|
|
169
|
+
/// The base background color of the disabled solid Chip.
|
|
170
|
+
/// @group chip
|
|
171
|
+
$kendo-chip-disabled-bg: var( --kendo-chip-disabled-bg, color-mix(in srgb, k-color(on-app-surface) 6%, transparent) ) !default;
|
|
172
|
+
/// The base border color of the disabled solid Chip.
|
|
173
|
+
/// @group chip
|
|
174
|
+
$kendo-chip-disabled-border: var( --kendo-chip-disabled-border, transparent ) !default;
|
|
182
175
|
|
|
183
176
|
/// The theme colors map for the Chip.
|
|
184
|
-
$kendo-chip-theme-colors: (
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
// Map for the brand theme colors
|
|
195
|
-
@each $fill-mode, $ui-states in $_tc-brand-matrix {
|
|
196
|
-
@each $brand-color in $kendo-chip-brand-colors {
|
|
197
|
-
$kendo-chip-theme-colors: map.deep-merge(
|
|
198
|
-
$kendo-chip-theme-colors,
|
|
199
|
-
k-generate-fill-mode-theme-variation( $fill-mode, $brand-color, $brand-color, $ui-states )
|
|
200
|
-
)
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
// Map for the warning theme color
|
|
205
|
-
@each $fill-mode, $ui-states in $_tc-warning-matrix {
|
|
206
|
-
$kendo-chip-theme-colors: map.deep-merge(
|
|
207
|
-
$kendo-chip-theme-colors,
|
|
208
|
-
k-generate-fill-mode-theme-variation( $fill-mode, warning, warning, $ui-states )
|
|
209
|
-
);
|
|
210
|
-
}
|
|
211
|
-
|
|
177
|
+
$kendo-chip-theme-colors: (
|
|
178
|
+
"base": $kendo-chip-bg,
|
|
179
|
+
"error": k-color(error),
|
|
180
|
+
"info": k-color(info),
|
|
181
|
+
"warning": k-color(warning),
|
|
182
|
+
"success": k-color(success)
|
|
183
|
+
) !default;
|
|
212
184
|
|
|
213
185
|
// Chip List
|
|
214
186
|
|
|
@@ -219,3 +191,36 @@ $kendo-chip-list-sizes: (
|
|
|
219
191
|
md: k-spacing(1),
|
|
220
192
|
lg: k-spacing(1)
|
|
221
193
|
) !default;
|
|
194
|
+
|
|
195
|
+
@forward "@progress/kendo-theme-core/scss/components/chip/_variables.scss" with (
|
|
196
|
+
$kendo-chip-border-width: $kendo-chip-border-width,
|
|
197
|
+
$kendo-chip-spacing: $kendo-chip-spacing,
|
|
198
|
+
$kendo-chip-sm-padding-x: $kendo-chip-sm-padding-x,
|
|
199
|
+
$kendo-chip-md-padding-x: $kendo-chip-md-padding-x,
|
|
200
|
+
$kendo-chip-lg-padding-x: $kendo-chip-lg-padding-x,
|
|
201
|
+
$kendo-chip-sm-padding-y: $kendo-chip-sm-padding-y,
|
|
202
|
+
$kendo-chip-md-padding-y: $kendo-chip-md-padding-y,
|
|
203
|
+
$kendo-chip-lg-padding-y: $kendo-chip-lg-padding-y,
|
|
204
|
+
$kendo-chip-font-weight: $kendo-chip-font-weight,
|
|
205
|
+
$kendo-chip-sm-font-size: $kendo-chip-sm-font-size,
|
|
206
|
+
$kendo-chip-md-font-size: $kendo-chip-md-font-size,
|
|
207
|
+
$kendo-chip-lg-font-size: $kendo-chip-lg-font-size,
|
|
208
|
+
$kendo-chip-sm-line-height: $kendo-chip-sm-line-height,
|
|
209
|
+
$kendo-chip-md-line-height: $kendo-chip-md-line-height,
|
|
210
|
+
$kendo-chip-lg-line-height: $kendo-chip-lg-line-height,
|
|
211
|
+
$kendo-chip-calc-size: $kendo-chip-calc-size,
|
|
212
|
+
$kendo-chip-sm-calc-size: $kendo-chip-sm-calc-size,
|
|
213
|
+
$kendo-chip-sizes: $kendo-chip-sizes,
|
|
214
|
+
$kendo-chip-base-bg: $kendo-chip-bg,
|
|
215
|
+
$kendo-chip-theme-colors: $kendo-chip-theme-colors,
|
|
216
|
+
$kendo-chip-solid-bg: $kendo-chip-bg,
|
|
217
|
+
$kendo-chip-solid-text: $kendo-chip-text,
|
|
218
|
+
$kendo-chip-solid-border: $kendo-chip-border,
|
|
219
|
+
$kendo-chip-solid-focus-bg: $kendo-chip-focus-bg,
|
|
220
|
+
$kendo-chip-solid-hover-bg: $kendo-chip-hover-bg,
|
|
221
|
+
$kendo-chip-solid-selected-bg: $kendo-chip-selected-bg,
|
|
222
|
+
$kendo-chip-disabled-bg: $kendo-chip-disabled-bg,
|
|
223
|
+
$kendo-chip-disabled-text: $kendo-chip-disabled-text,
|
|
224
|
+
$kendo-chip-disabled-border: $kendo-chip-disabled-border,
|
|
225
|
+
$kendo-chip-list-sizes: $kendo-chip-list-sizes
|
|
226
|
+
);
|
|
@@ -1,76 +1,16 @@
|
|
|
1
1
|
@use "../core/_index.scss" as *;
|
|
2
|
+
@use "../icons/_variables.scss" as *;
|
|
2
3
|
@use "./_variables.scss" as *;
|
|
4
|
+
@use "@progress/kendo-theme-core/scss/components/color-preview/_layout.scss" as *;
|
|
3
5
|
|
|
4
6
|
@mixin kendo-color-preview--layout() {
|
|
7
|
+
@include kendo-color-preview--layout-base();
|
|
5
8
|
|
|
6
|
-
// Color Preview
|
|
7
|
-
.k-color-preview {
|
|
8
|
-
width: 100%;
|
|
9
|
-
height: 100%;
|
|
10
|
-
border-width: var( --kendo-color-preview-border-width, #{$kendo-color-preview-border-width} );
|
|
11
|
-
border-radius: var( --kendo-color-preview-border-radius, #{$kendo-color-preview-border-radius} );
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
border-style: solid;
|
|
14
|
-
display: inline-flex;
|
|
15
|
-
flex-flow: row nowrap;
|
|
16
|
-
position: relative;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
|
|
19
|
-
*,
|
|
20
|
-
*::before,
|
|
21
|
-
*::after {
|
|
22
|
-
box-sizing: border-box;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Current Color
|
|
27
|
-
.k-coloreditor-current-color {
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Icon color preview
|
|
32
9
|
.k-icon-color-preview {
|
|
33
|
-
border-width: 0;
|
|
34
|
-
border-radius: 0;
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-flow: column nowrap;
|
|
37
|
-
align-items: center;
|
|
38
|
-
justify-content: center;
|
|
39
|
-
gap: 2px;
|
|
40
10
|
|
|
41
11
|
.k-color-preview-mask {
|
|
42
|
-
width:
|
|
12
|
+
width: $kendo-icon-size;
|
|
43
13
|
height: 3px;
|
|
44
14
|
}
|
|
45
15
|
}
|
|
46
|
-
|
|
47
|
-
// Color Preview Mask
|
|
48
|
-
.k-color-preview-mask {
|
|
49
|
-
width: 100%;
|
|
50
|
-
min-width: var( --kendo-icon-size, 1rem );
|
|
51
|
-
height: 100%;
|
|
52
|
-
position: relative;
|
|
53
|
-
}
|
|
54
|
-
.k-color-preview-mask::before {
|
|
55
|
-
content: "";
|
|
56
|
-
width: 100%;
|
|
57
|
-
height: 100%;
|
|
58
|
-
position: absolute;
|
|
59
|
-
top: 0;
|
|
60
|
-
left: 0;
|
|
61
|
-
z-index: -1;
|
|
62
|
-
background: var( --kendo-color-preview-transparent-color-image, #{$kendo-color-preview-transparent-color-image} );
|
|
63
|
-
background-size: contain;
|
|
64
|
-
background-position: 0 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// No Color
|
|
68
|
-
.k-no-color .k-color-preview-mask::before {
|
|
69
|
-
content: "";
|
|
70
|
-
background-color: var( --kendo-color-preview-no-color-bg, #{$kendo-color-preview-no-color-bg} );
|
|
71
|
-
background-image: var( --kendo-color-preview-no-color-image, #{$kendo-color-preview-no-color-image} );
|
|
72
|
-
background-size: 100% 100%;
|
|
73
|
-
background-position: 0 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
16
|
}
|
|
@@ -1,32 +1,7 @@
|
|
|
1
1
|
@use "../core/_index.scss" as *;
|
|
2
2
|
@use "./_variables.scss" as *;
|
|
3
|
+
@use "@progress/kendo-theme-core/scss/components/color-preview/_theme.scss" as *;
|
|
3
4
|
|
|
4
5
|
@mixin kendo-color-preview--theme() {
|
|
5
|
-
|
|
6
|
-
// Color Preview
|
|
7
|
-
.k-color-preview {
|
|
8
|
-
@include fill(
|
|
9
|
-
var( --kendo-color-preview-text, #{$kendo-color-preview-text} ),
|
|
10
|
-
var( --kendo-color-preview-bg, #{$kendo-color-preview-bg} ),
|
|
11
|
-
var( --kendo-color-preview-border, #{$kendo-color-preview-border} )
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
&:hover,
|
|
15
|
-
&.k-hover {
|
|
16
|
-
@include fill(
|
|
17
|
-
$border: var( --kendo-color-preview-hover-border, #{$kendo-color-preview-hover-border} )
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Mask
|
|
23
|
-
[disabled],
|
|
24
|
-
.k-disabled {
|
|
25
|
-
.k-color-preview-mask::before {
|
|
26
|
-
@include fill(
|
|
27
|
-
$bg: k-color(base-subtle)
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
6
|
+
@include kendo-color-preview--theme-base();
|
|
32
7
|
}
|
|
@@ -3,34 +3,48 @@
|
|
|
3
3
|
|
|
4
4
|
/// Border radius of the color preview.
|
|
5
5
|
/// @group color-preview
|
|
6
|
-
$kendo-color-preview-border-radius: k-border-radius(md) !default;
|
|
6
|
+
$kendo-color-preview-border-radius: var(--kendo-color-preview-border-radius, k-border-radius(md)) !default;
|
|
7
7
|
/// Border width of the color preview.
|
|
8
8
|
/// @group color-preview
|
|
9
|
-
$kendo-color-preview-border-width: 1px !default;
|
|
9
|
+
$kendo-color-preview-border-width: var(--kendo-color-preview-border-width, 1px) !default;
|
|
10
10
|
/// Default background color of the color preview.
|
|
11
11
|
/// @group color-preview
|
|
12
|
-
$kendo-color-preview-bg: transparent !default;
|
|
12
|
+
$kendo-color-preview-bg: var(--kendo-color-preview-bg, transparent) !default;
|
|
13
13
|
/// Text color of the color preview.
|
|
14
14
|
/// @group color-preview
|
|
15
|
-
$kendo-color-preview-text: inherit !default;
|
|
15
|
+
$kendo-color-preview-text: var(--kendo-color-preview-text, inherit) !default;
|
|
16
16
|
/// Border color of the color preview.
|
|
17
17
|
/// @group color-preview
|
|
18
|
-
$kendo-color-preview-border: color-mix(in srgb, k-color(on-app-surface) 28%, transparent) !default;
|
|
18
|
+
$kendo-color-preview-border: var(--kendo-color-preview-border, color-mix(in srgb, k-color(on-app-surface) 28%, transparent)) !default;
|
|
19
19
|
/// Hover Border color of the color preview.
|
|
20
20
|
/// @group color-preview
|
|
21
|
-
$kendo-color-preview-hover-border: color-mix(in srgb, k-color(on-app-surface) 28%, transparent) !default;
|
|
21
|
+
$kendo-color-preview-hover-border: var(--kendo-color-preview-hover-border, color-mix(in srgb, k-color(on-app-surface) 28%, transparent)) !default;
|
|
22
22
|
|
|
23
23
|
/// Background color of the color preview when no color is selected.
|
|
24
24
|
/// @group color-preview
|
|
25
|
-
$kendo-color-preview-no-color-bg: k-color(app-surface) !default;
|
|
25
|
+
$kendo-color-preview-no-color-bg: var(--kendo-color-preview-no-color-bg, k-color(app-surface)) !default;
|
|
26
26
|
/// Text color of the color preview when no color is selected.
|
|
27
27
|
/// @group color-preview
|
|
28
|
-
$kendo-color-preview-no-color-text: k-color(error-on-surface) !default;
|
|
28
|
+
$kendo-color-preview-no-color-text: var(--kendo-color-preview-no-color-text, k-color(error-on-surface)) !default;
|
|
29
29
|
/// Border color of the color preview when no color is selected.
|
|
30
30
|
/// @group color-preview
|
|
31
|
-
$kendo-color-preview-no-color-border: currentColor !default;
|
|
31
|
+
$kendo-color-preview-no-color-border: var(--kendo-color-preview-no-color-border, currentColor) !default;
|
|
32
32
|
// Background image of the color preview when no color is selected.
|
|
33
33
|
$kendo-color-preview-no-color-image: k-escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' version='1.1'><line x1='0' x2='20' y1='0' y2='20' stroke='#{$kendo-color-preview-no-color-text}' stroke-width='1'/></svg>") ) !default;
|
|
34
34
|
|
|
35
35
|
// Background image of the color preview mask.
|
|
36
36
|
$kendo-color-preview-transparent-color-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAuSURBVHgBxYyxDQAwDMJIL+YT+DjtzFRliUfLcklqBCRT4eCTxbD6kdL2/LgYXqpvCbs3kBv/AAAAAElFTkSuQmCC") !default;
|
|
37
|
+
|
|
38
|
+
@forward "@progress/kendo-theme-core/scss/components/color-preview/_variables.scss" with (
|
|
39
|
+
$kendo-color-preview-border-radius: $kendo-color-preview-border-radius,
|
|
40
|
+
$kendo-color-preview-border-width: $kendo-color-preview-border-width,
|
|
41
|
+
$kendo-color-preview-bg: $kendo-color-preview-bg,
|
|
42
|
+
$kendo-color-preview-text: $kendo-color-preview-text,
|
|
43
|
+
$kendo-color-preview-border: $kendo-color-preview-border,
|
|
44
|
+
$kendo-color-preview-hover-border: $kendo-color-preview-hover-border,
|
|
45
|
+
$kendo-color-preview-no-color-bg: $kendo-color-preview-no-color-bg,
|
|
46
|
+
$kendo-color-preview-no-color-text: $kendo-color-preview-no-color-text,
|
|
47
|
+
$kendo-color-preview-no-color-border: $kendo-color-preview-no-color-border,
|
|
48
|
+
$kendo-color-preview-no-color-image: $kendo-color-preview-no-color-image,
|
|
49
|
+
$kendo-color-preview-transparent-color-image: $kendo-color-preview-transparent-color-image
|
|
50
|
+
);
|