@progress/kendo-theme-material 10.6.0 → 11.0.0-dev.1
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/material-2-dark.css +1 -0
- package/dist/material-2-dark.scss +137 -0
- package/dist/material-2.css +1 -0
- package/dist/material-2.scss +132 -0
- package/dist/material-aqua-dark.css +1 -1
- package/dist/material-aqua-dark.scss +1 -1
- package/dist/material-arctic.css +1 -1
- package/dist/material-arctic.scss +1 -1
- package/dist/material-burnt-teal.css +1 -1
- package/dist/material-burnt-teal.scss +1 -1
- package/dist/material-dataviz-v4.css +1 -1
- package/dist/material-dataviz-v4.scss +1 -1
- package/dist/material-eggplant.css +1 -1
- package/dist/material-eggplant.scss +1 -1
- package/dist/material-lime-dark.css +1 -1
- package/dist/material-lime-dark.scss +1 -1
- package/dist/material-lime.css +1 -1
- package/dist/material-lime.scss +1 -1
- package/dist/material-main-dark.css +1 -1
- package/dist/material-main-dark.scss +98 -98
- package/dist/material-main.css +1 -1
- package/dist/material-main.scss +1 -5
- package/dist/material-nova.css +1 -1
- package/dist/material-nova.scss +1 -1
- package/dist/material-pacific-dark.css +1 -1
- package/dist/material-pacific-dark.scss +1 -1
- package/dist/material-pacific.css +1 -1
- package/dist/material-pacific.scss +1 -1
- package/dist/material-sky-dark.css +1 -1
- package/dist/material-sky-dark.scss +1 -1
- package/dist/material-sky.css +1 -1
- package/dist/material-sky.scss +1 -1
- package/dist/material-smoke.css +1 -1
- package/dist/material-smoke.scss +1 -1
- package/dist/meta/sassdoc-data.json +13278 -11518
- package/dist/meta/sassdoc-raw-data.json +4563 -3763
- package/dist/meta/variables.json +2591 -3022
- package/lib/swatches/index.js +2 -0
- package/lib/swatches/material-2-dark.json +657 -0
- package/lib/swatches/material-2.json +632 -0
- package/lib/swatches/material-aqua-dark.json +1 -243
- package/lib/swatches/material-arctic.json +1 -243
- package/lib/swatches/material-burnt-teal.json +1 -243
- package/lib/swatches/material-dataviz-v4.json +1 -47
- package/lib/swatches/material-eggplant.json +1 -243
- package/lib/swatches/material-lime-dark.json +1 -243
- package/lib/swatches/material-lime.json +1 -243
- package/lib/swatches/material-main-dark.json +103 -345
- package/lib/swatches/material-main.json +7 -250
- package/lib/swatches/material-nova.json +1 -243
- package/lib/swatches/material-pacific-dark.json +1 -243
- package/lib/swatches/material-pacific.json +1 -243
- package/lib/swatches/material-sky-dark.json +1 -243
- package/lib/swatches/material-sky.json +1 -243
- package/lib/swatches/material-smoke.json +1 -243
- package/package.json +4 -4
- package/scss/action-buttons/_layout.scss +0 -23
- package/scss/action-buttons/_theme.scss +0 -13
- package/scss/action-buttons/_variables.scss +3 -3
- package/scss/action-sheet/_layout.scss +6 -0
- package/scss/action-sheet/_variables.scss +27 -28
- package/scss/adaptive/_variables.scss +13 -13
- package/scss/appbar/_variables.scss +22 -8
- package/scss/avatar/_variables.scss +12 -1
- package/scss/badge/_layout.scss +0 -1
- package/scss/badge/_variables.scss +23 -9
- package/scss/bottom-navigation/_theme.scss +55 -4
- package/scss/bottom-navigation/_variables.scss +31 -17
- package/scss/breadcrumb/_variables.scss +21 -21
- package/scss/button/_layout.scss +0 -81
- package/scss/button/_theme.scss +110 -44
- package/scss/button/_variables.scss +47 -34
- package/scss/calendar/_layout.scss +13 -16
- package/scss/calendar/_theme.scss +29 -11
- package/scss/calendar/_variables.scss +83 -56
- package/scss/captcha/_variables.scss +3 -3
- package/scss/card/_variables.scss +34 -20
- package/scss/chart-wizard/_variables.scss +4 -4
- package/scss/chat/_theme.scss +5 -1
- package/scss/chat/_variables.scss +15 -15
- package/scss/checkbox/_layout.scss +35 -0
- package/scss/checkbox/_theme.scss +113 -4
- package/scss/checkbox/_variables.scss +23 -20
- package/scss/chip/_layout.scss +10 -0
- package/scss/chip/_theme.scss +41 -61
- package/scss/chip/_variables.scss +48 -30
- package/scss/color-preview/_variables.scss +3 -3
- package/scss/coloreditor/_variables.scss +11 -11
- package/scss/colorgradient/_variables.scss +7 -37
- package/scss/column-menu/_variables.scss +1 -1
- package/scss/core/_index.scss +8 -3
- package/scss/core/color-system/_palettes.scss +243 -242
- package/scss/core/color-system/_swatch.scss +142 -145
- package/scss/core/elevation/index.import.scss +18 -27
- package/scss/core/typography/index.import.scss +8 -8
- package/scss/dataviz/_variables.scss +61 -48
- package/scss/dialog/_theme.scss +1 -1
- package/scss/dialog/_variables.scss +9 -4
- package/scss/dock-manager/_variables.scss +18 -18
- package/scss/draggable/_variables.scss +4 -4
- package/scss/drawer/_layout.scss +2 -0
- package/scss/drawer/_theme.scss +0 -11
- package/scss/drawer/_variables.scss +49 -24
- package/scss/dropzone/_variables.scss +7 -7
- package/scss/editor/_layout.scss +2 -12
- package/scss/editor/_variables.scss +15 -8
- package/scss/expansion-panel/_layout.scss +5 -0
- package/scss/expansion-panel/_variables.scss +10 -10
- package/scss/fab/_layout.scss +1 -1
- package/scss/fab/_theme.scss +24 -23
- package/scss/fab/_variables.scss +25 -14
- package/scss/filemanager/_theme.scss +4 -0
- package/scss/filemanager/_variables.scss +6 -6
- package/scss/filter/_variables.scss +4 -4
- package/scss/floating-label/_theme.scss +1 -1
- package/scss/floating-label/_variables.scss +2 -2
- package/scss/forms/_variables.scss +6 -6
- package/scss/gantt/_variables.scss +27 -27
- package/scss/grid/_layout.scss +6 -21
- package/scss/grid/_theme.scss +14 -128
- package/scss/grid/_variables.scss +20 -20
- package/scss/imageeditor/_variables.scss +4 -4
- package/scss/index.scss +3 -0
- package/scss/input/_layout.scss +10 -14
- package/scss/input/_variables.scss +45 -44
- package/scss/list/_theme.scss +1 -1
- package/scss/list/_variables.scss +103 -25
- package/scss/listbox/_variables.scss +3 -3
- package/scss/listgroup/_variables.scss +6 -6
- package/scss/listview/_theme.scss +0 -13
- package/scss/listview/_variables.scss +7 -7
- package/scss/loader/_variables.scss +18 -4
- package/scss/map/_variables.scss +6 -6
- package/scss/marquee/_index.scss +16 -0
- package/scss/marquee/_layout.scss +6 -0
- package/scss/marquee/_theme.scss +6 -0
- package/scss/marquee/_variables.scss +11 -0
- package/scss/mediaplayer/_variables.scss +4 -4
- package/scss/menu/_layout.scss +4 -0
- package/scss/menu/_theme.scss +1 -26
- package/scss/menu/_variables.scss +49 -41
- package/scss/menu-button/_variables.scss +1 -1
- package/scss/messagebox/_layout.scss +5 -1
- package/scss/messagebox/_variables.scss +16 -2
- package/scss/no-data/_variables.scss +1 -1
- package/scss/notification/_functions.scss +1 -1
- package/scss/notification/_layout.scss +5 -0
- package/scss/notification/_theme.scss +1 -0
- package/scss/notification/_variables.scss +30 -9
- package/scss/orgchart/_variables.scss +10 -10
- package/scss/overlay/_variables.scss +12 -1
- package/scss/pager/_variables.scss +8 -8
- package/scss/panel/_variables.scss +3 -3
- package/scss/panelbar/_layout.scss +29 -1
- package/scss/panelbar/_theme.scss +0 -1
- package/scss/panelbar/_variables.scss +29 -29
- package/scss/pdf-viewer/_variables.scss +15 -15
- package/scss/pivotgrid/_theme.scss +0 -12
- package/scss/pivotgrid/_variables.scss +23 -23
- package/scss/popover/_variables.scss +5 -5
- package/scss/popup/_variables.scss +7 -7
- package/scss/progressbar/_layout.scss +11 -4
- package/scss/progressbar/_variables.scss +6 -6
- package/scss/prompt/_layout.scss +4 -0
- package/scss/prompt/_variables.scss +17 -17
- package/scss/radio/_layout.scss +35 -0
- package/scss/radio/_theme.scss +109 -4
- package/scss/radio/_variables.scss +19 -16
- package/scss/rating/_variables.scss +7 -7
- package/scss/scheduler/_layout.scss +2 -89
- package/scss/scheduler/_theme.scss +3 -3
- package/scss/scheduler/_variables.scss +22 -19
- package/scss/scrollview/_variables.scss +5 -5
- package/scss/signature/_variables.scss +1 -1
- package/scss/skeleton/_variables.scss +1 -1
- package/scss/slider/_layout.scss +11 -0
- package/scss/slider/_theme.scss +1 -10
- package/scss/slider/_variables.scss +25 -16
- package/scss/split-button/_layout.scss +12 -0
- package/scss/split-button/_variables.scss +4 -4
- package/scss/splitter/_variables.scss +9 -9
- package/scss/spreadsheet/_layout.scss +0 -35
- package/scss/spreadsheet/_theme.scss +3 -25
- package/scss/spreadsheet/_variables.scss +32 -31
- package/scss/stepper/_layout.scss +15 -1
- package/scss/stepper/_theme.scss +8 -0
- package/scss/stepper/_variables.scss +21 -21
- package/scss/switch/_layout.scss +20 -5
- package/scss/switch/_theme.scss +2 -9
- package/scss/switch/_variables.scss +50 -16
- package/scss/table/_layout.scss +22 -20
- package/scss/table/_theme.scss +6 -32
- package/scss/table/_variables.scss +13 -13
- package/scss/tabstrip/_layout.scss +100 -4
- package/scss/tabstrip/_variables.scss +20 -20
- package/scss/taskboard/_layout.scss +4 -0
- package/scss/taskboard/_variables.scss +18 -18
- package/scss/tilelayout/_layout.scss +7 -1
- package/scss/tilelayout/_variables.scss +4 -4
- package/scss/timeline/_variables.scss +7 -7
- package/scss/timeselector/_layout.scss +38 -0
- package/scss/timeselector/_theme.scss +8 -6
- package/scss/timeselector/_variables.scss +39 -28
- package/scss/toolbar/_layout.scss +0 -47
- package/scss/toolbar/_theme.scss +4 -44
- package/scss/toolbar/_variables.scss +17 -17
- package/scss/tooltip/_functions.scss +1 -1
- package/scss/tooltip/_variables.scss +19 -8
- package/scss/treelist/_layout.scss +0 -19
- package/scss/treelist/_theme.scss +10 -15
- package/scss/treelist/_variables.scss +1 -1
- package/scss/treeview/_theme.scss +2 -31
- package/scss/treeview/_variables.scss +25 -25
- package/scss/typography/_variables.scss +24 -24
- package/scss/upload/_theme.scss +1 -1
- package/scss/upload/_variables.scss +14 -14
- package/scss/window/_layout.scss +14 -0
- package/scss/window/_variables.scss +14 -14
- package/scss/wizard/_variables.scss +3 -3
- package/scss/core/color-system/_functions.scss +0 -104
- package/scss/core/color-system/_palettes-legacy.scss +0 -671
- package/scss/core/color-system/_swatch-legacy.scss +0 -299
|
@@ -59,7 +59,7 @@ $kendo-chat-timestamp-line-height: var( --kendo-line-height-lg, normal ) !defaul
|
|
|
59
59
|
$kendo-chat-timestamp-transform: uppercase !default;
|
|
60
60
|
/// The text color of the Chat timestamp.
|
|
61
61
|
/// @group chat
|
|
62
|
-
$kendo-chat-timestamp-text:
|
|
62
|
+
$kendo-chat-timestamp-text: k-color(subtle) !default;
|
|
63
63
|
/// The background color of the Chat timestamp.
|
|
64
64
|
/// @group chat
|
|
65
65
|
$kendo-chat-timestamp-bg: null !default;
|
|
@@ -89,7 +89,7 @@ $kendo-chat-bubble-padding-y: k-spacing(2) !default;
|
|
|
89
89
|
$kendo-chat-bubble-spacing: k-spacing(0.5) !default;
|
|
90
90
|
/// The line height of the Chat bubble message.
|
|
91
91
|
/// @group chat
|
|
92
|
-
$kendo-chat-bubble-line-height:
|
|
92
|
+
$kendo-chat-bubble-line-height: var( --kendo-line-height, normal ) !default;
|
|
93
93
|
|
|
94
94
|
/// The border radius of the Chat bubble message.
|
|
95
95
|
/// @group chat
|
|
@@ -116,7 +116,7 @@ $kendo-chat-toolbar-padding-y: $kendo-toolbar-md-padding-y !default;
|
|
|
116
116
|
$kendo-chat-toolbar-spacing: $kendo-toolbar-md-spacing !default;
|
|
117
117
|
/// The background color of the Chat Toolbar.
|
|
118
118
|
/// @group chat
|
|
119
|
-
$kendo-chat-toolbar-bg:
|
|
119
|
+
$kendo-chat-toolbar-bg: $kendo-toolbar-bg !default;
|
|
120
120
|
/// The text color of the Chat Toolbar.
|
|
121
121
|
/// @group chat
|
|
122
122
|
$kendo-chat-toolbar-text: $kendo-toolbar-text !default;
|
|
@@ -140,20 +140,20 @@ $kendo-chat-quick-reply-line-height: $kendo-chat-bubble-line-height !default;
|
|
|
140
140
|
|
|
141
141
|
/// The background color of the Chat.
|
|
142
142
|
/// @group chat
|
|
143
|
-
$kendo-chat-bg:
|
|
143
|
+
$kendo-chat-bg: k-color(surface) !default;
|
|
144
144
|
/// The text color of the Chat.
|
|
145
145
|
/// @group chat
|
|
146
|
-
$kendo-chat-text:
|
|
146
|
+
$kendo-chat-text: k-color(on-app-surface) !default;
|
|
147
147
|
/// The border color of the Chat.
|
|
148
148
|
/// @group chat
|
|
149
|
-
$kendo-chat-border:
|
|
149
|
+
$kendo-chat-border: k-color(border) !default;
|
|
150
150
|
|
|
151
151
|
/// The background color of the Chat bubble.
|
|
152
152
|
/// @group chat
|
|
153
|
-
$kendo-chat-bubble-bg:
|
|
153
|
+
$kendo-chat-bubble-bg: k-color(surface-alt) !default;
|
|
154
154
|
/// The text color of the Chat bubble.
|
|
155
155
|
/// @group chat
|
|
156
|
-
$kendo-chat-bubble-text:
|
|
156
|
+
$kendo-chat-bubble-text: k-color(on-base) !default;
|
|
157
157
|
/// The border color of the Chat bubble.
|
|
158
158
|
/// @group chat
|
|
159
159
|
$kendo-chat-bubble-border: $kendo-chat-bubble-bg !default;
|
|
@@ -169,10 +169,10 @@ $kendo-chat-bubble-selected-shadow: k-elevation(3) !default;
|
|
|
169
169
|
|
|
170
170
|
/// The background color of the Chat alt bubble.
|
|
171
171
|
/// @group chat
|
|
172
|
-
$kendo-chat-alt-bubble-bg:
|
|
172
|
+
$kendo-chat-alt-bubble-bg: k-color(primary) !default;
|
|
173
173
|
/// The text color of the Chat alt bubble.
|
|
174
174
|
/// @group chat
|
|
175
|
-
$kendo-chat-alt-bubble-text:
|
|
175
|
+
$kendo-chat-alt-bubble-text: k-color(on-primary) !default;
|
|
176
176
|
/// The border color of the Chat alt bubble.
|
|
177
177
|
/// @group chat
|
|
178
178
|
$kendo-chat-alt-bubble-border: $kendo-chat-alt-bubble-bg !default;
|
|
@@ -191,20 +191,20 @@ $kendo-chat-alt-bubble-selected-shadow: k-elevation(3) !default;
|
|
|
191
191
|
$kendo-chat-quick-reply-bg: transparent !default;
|
|
192
192
|
/// The text color of the Chat quick reply.
|
|
193
193
|
/// @group chat
|
|
194
|
-
$kendo-chat-quick-reply-text:
|
|
194
|
+
$kendo-chat-quick-reply-text: k-color(primary) !default;
|
|
195
195
|
/// The border color of the Chat quick reply.
|
|
196
196
|
/// @group chat
|
|
197
|
-
$kendo-chat-quick-reply-border:
|
|
197
|
+
$kendo-chat-quick-reply-border: k-color(primary) !default;
|
|
198
198
|
|
|
199
199
|
/// The background color of the hovered Chat quick reply.
|
|
200
200
|
/// @group chat
|
|
201
|
-
$kendo-chat-quick-reply-hover-bg:
|
|
201
|
+
$kendo-chat-quick-reply-hover-bg: k-color(primary) !default;
|
|
202
202
|
/// The text color of the hovered Chat quick reply.
|
|
203
203
|
/// @group chat
|
|
204
|
-
$kendo-chat-quick-reply-hover-text:
|
|
204
|
+
$kendo-chat-quick-reply-hover-text: k-color(on-primary) !default;
|
|
205
205
|
/// The border color of the hovered Chat quick reply.
|
|
206
206
|
/// @group chat
|
|
207
|
-
$kendo-chat-quick-reply-hover-border:
|
|
207
|
+
$kendo-chat-quick-reply-hover-border: k-color(primary) !default;
|
|
208
208
|
|
|
209
209
|
/// The shadow blur of the focused Chat quick reply.
|
|
210
210
|
/// @group chat
|
|
@@ -1,6 +1,41 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "./_variables.scss" as *;
|
|
1
3
|
@use "@progress/kendo-theme-core/scss/components/checkbox/_layout.scss" as *;
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
@mixin kendo-checkbox--layout() {
|
|
5
7
|
@include kendo-checkbox--layout-base();
|
|
8
|
+
|
|
9
|
+
// Checkbox
|
|
10
|
+
// Hover and Focus indicator
|
|
11
|
+
.k-checkbox {
|
|
12
|
+
&:hover,
|
|
13
|
+
&.k-hover,
|
|
14
|
+
&:focus,
|
|
15
|
+
&.k-focus,
|
|
16
|
+
&.k-invalid {
|
|
17
|
+
position: relative;
|
|
18
|
+
|
|
19
|
+
&::after {
|
|
20
|
+
content: "";
|
|
21
|
+
display: block;
|
|
22
|
+
position: absolute;
|
|
23
|
+
left: 50%;
|
|
24
|
+
top: 50%;
|
|
25
|
+
border-radius: 100%;
|
|
26
|
+
z-index: -1;
|
|
27
|
+
transform: translate(-50%, -50%);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@each $size, $size-props in $kendo-checkbox-sizes {
|
|
33
|
+
$_size: map.get( $size-props, size );
|
|
34
|
+
$_indicator-size: map.get( $size-props, indicator-size );
|
|
35
|
+
|
|
36
|
+
.k-checkbox-#{$size}::after {
|
|
37
|
+
width: $_indicator-size;
|
|
38
|
+
height: $_indicator-size;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
6
41
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "./_variables.scss" as *;
|
|
1
2
|
@use "../core/_index.scss" as *;
|
|
2
3
|
@use "@progress/kendo-theme-core/scss/components/checkbox/_theme.scss" as *;
|
|
3
4
|
|
|
@@ -6,12 +7,120 @@
|
|
|
6
7
|
|
|
7
8
|
@include kendo-checkbox--theme-base();
|
|
8
9
|
|
|
10
|
+
.k-checkbox {
|
|
11
|
+
&:hover,
|
|
12
|
+
&.k-hover {
|
|
13
|
+
&::after {
|
|
14
|
+
opacity: .08;
|
|
15
|
+
background-color: k-color(on-app-surface);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:checked,
|
|
19
|
+
&.k-checked,
|
|
20
|
+
&.k-indeterminate {
|
|
21
|
+
&::after {
|
|
22
|
+
background-color: k-color(primary);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.k-invalid::after {
|
|
27
|
+
background-color: k-color(error);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:focus,
|
|
32
|
+
&.k-focus {
|
|
33
|
+
&::after {
|
|
34
|
+
opacity: .12;
|
|
35
|
+
background-color: k-color(on-app-surface);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:checked,
|
|
39
|
+
&.k-checked,
|
|
40
|
+
&.k-indeterminate {
|
|
41
|
+
&::after {
|
|
42
|
+
background-color: k-color(primary);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.k-invalid::after {
|
|
47
|
+
background-color: k-color(error);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.k-ripple-focus.k-checkbox {
|
|
54
|
+
|
|
55
|
+
&:hover,
|
|
56
|
+
&.k-hover,
|
|
57
|
+
&:focus,
|
|
58
|
+
&.k-focus,
|
|
59
|
+
&.k-indeterminate {
|
|
60
|
+
&::after,
|
|
61
|
+
&:checked::after,
|
|
62
|
+
&.k-checked::after,
|
|
63
|
+
&.k-invalid::after {
|
|
64
|
+
background: $kendo-checkbox-ripple-bg;
|
|
65
|
+
opacity: $kendo-checkbox-ripple-opacity;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Checkbox Ripple animation */
|
|
70
|
+
|
|
71
|
+
&::after {
|
|
72
|
+
animation: ripple-checkbox 225ms cubic-bezier(0, 0, 0.2, 1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:checked,
|
|
76
|
+
&.k-checked,
|
|
77
|
+
&.k-indeterminate {
|
|
78
|
+
&::after {
|
|
79
|
+
animation: ripple-checkbox-checked 225ms cubic-bezier(0, 0, 0.2, 1);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
@keyframes ripple-checkbox {
|
|
85
|
+
0% {
|
|
86
|
+
background: radial-gradient(circle, $kendo-checkbox-ripple-bg 0%, k-color(primary) 50%);
|
|
87
|
+
opacity: 0.08;
|
|
88
|
+
}
|
|
89
|
+
50% {
|
|
90
|
+
background: radial-gradient(circle, $kendo-checkbox-ripple-bg 50%, k-color(primary) 100%);
|
|
91
|
+
opacity: $kendo-checkbox-ripple-opacity;
|
|
92
|
+
}
|
|
93
|
+
100% {
|
|
94
|
+
background: radial-gradient(circle, k-color(primary) 0%, k-color(primary) 100%);
|
|
95
|
+
opacity: .12;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@keyframes ripple-checkbox-checked {
|
|
100
|
+
0% {
|
|
101
|
+
background: radial-gradient(circle, $kendo-checkbox-ripple-bg 0%, k-color(on-app-surface) 50%);
|
|
102
|
+
opacity: 0.08;
|
|
103
|
+
}
|
|
104
|
+
50% {
|
|
105
|
+
background: radial-gradient(circle, $kendo-checkbox-ripple-bg 50%, k-color(on-app-surface) 100%);
|
|
106
|
+
opacity: $kendo-checkbox-ripple-opacity;
|
|
107
|
+
}
|
|
108
|
+
100% {
|
|
109
|
+
background: radial-gradient(circle, k-color(on-app-surface) 0%, k-color(on-app-surface) 100%);
|
|
110
|
+
opacity: .12;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
9
115
|
// Checkbox
|
|
10
116
|
// Disabled state
|
|
11
|
-
.k-checkbox
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
117
|
+
.k-checkbox {
|
|
118
|
+
&:disabled,
|
|
119
|
+
&.k-disabled {
|
|
120
|
+
&.k-invalid {
|
|
121
|
+
border-color: $kendo-checkbox-disabled-border;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
15
124
|
}
|
|
16
125
|
|
|
17
126
|
}
|
|
@@ -11,7 +11,7 @@ $kendo-checkbox-border-width: 2px !default;
|
|
|
11
11
|
|
|
12
12
|
/// The size of a small CheckBox.
|
|
13
13
|
/// @group checkbox
|
|
14
|
-
$kendo-checkbox-sm-size: k-spacing(
|
|
14
|
+
$kendo-checkbox-sm-size: k-spacing(4) !default;
|
|
15
15
|
/// The size of a medium CheckBox.
|
|
16
16
|
/// @group checkbox
|
|
17
17
|
$kendo-checkbox-md-size: k-spacing(4) !default;
|
|
@@ -21,40 +21,43 @@ $kendo-checkbox-lg-size: k-spacing(5) !default;
|
|
|
21
21
|
|
|
22
22
|
/// The glyph size of a small CheckBox.
|
|
23
23
|
/// @group checkbox
|
|
24
|
-
$kendo-checkbox-sm-glyph-size: k-spacing(
|
|
24
|
+
$kendo-checkbox-sm-glyph-size: k-spacing(3) !default;
|
|
25
25
|
/// The glyph size of a medium CheckBox.
|
|
26
26
|
/// @group checkbox
|
|
27
|
-
$kendo-checkbox-md-glyph-size: k-spacing(
|
|
27
|
+
$kendo-checkbox-md-glyph-size: k-spacing(4) !default;
|
|
28
28
|
/// The glyph size of a large CheckBox.
|
|
29
29
|
/// @group checkbox
|
|
30
|
-
$kendo-checkbox-lg-glyph-size: k-spacing(
|
|
30
|
+
$kendo-checkbox-lg-glyph-size: k-spacing(5) !default;
|
|
31
31
|
|
|
32
32
|
/// The ripple size of a small CheckBox.
|
|
33
33
|
/// @group checkbox
|
|
34
|
-
$kendo-checkbox-sm-ripple-size:
|
|
34
|
+
$kendo-checkbox-sm-ripple-size: k-spacing(8) !default;
|
|
35
35
|
/// The ripple size of a medium CheckBox.
|
|
36
36
|
/// @group checkbox
|
|
37
|
-
$kendo-checkbox-md-ripple-size:
|
|
37
|
+
$kendo-checkbox-md-ripple-size: k-spacing(10) !default;
|
|
38
38
|
/// The ripple size of a large CheckBox.
|
|
39
39
|
/// @group checkbox
|
|
40
|
-
$kendo-checkbox-lg-ripple-size:
|
|
40
|
+
$kendo-checkbox-lg-ripple-size: k-spacing(12) !default;
|
|
41
41
|
|
|
42
42
|
// A map with the different CheckBox sizes.
|
|
43
43
|
$kendo-checkbox-sizes: (
|
|
44
44
|
sm: (
|
|
45
45
|
size: $kendo-checkbox-sm-size,
|
|
46
46
|
glyph-size: $kendo-checkbox-sm-glyph-size,
|
|
47
|
-
ripple-size: $kendo-checkbox-sm-ripple-size
|
|
47
|
+
ripple-size: $kendo-checkbox-sm-ripple-size,
|
|
48
|
+
indicator-size: k-spacing(8)
|
|
48
49
|
),
|
|
49
50
|
md: (
|
|
50
51
|
size: $kendo-checkbox-md-size,
|
|
51
52
|
glyph-size: $kendo-checkbox-md-glyph-size,
|
|
52
|
-
ripple-size: $kendo-checkbox-md-ripple-size
|
|
53
|
+
ripple-size: $kendo-checkbox-md-ripple-size,
|
|
54
|
+
indicator-size: k-spacing(10)
|
|
53
55
|
),
|
|
54
56
|
lg: (
|
|
55
57
|
size: $kendo-checkbox-lg-size,
|
|
56
58
|
glyph-size: $kendo-checkbox-lg-glyph-size,
|
|
57
|
-
ripple-size: $kendo-checkbox-lg-ripple-size
|
|
59
|
+
ripple-size: $kendo-checkbox-lg-ripple-size,
|
|
60
|
+
indicator-size: k-spacing(12)
|
|
58
61
|
)
|
|
59
62
|
) !default;
|
|
60
63
|
|
|
@@ -66,7 +69,7 @@ $kendo-checkbox-bg: unset !default;
|
|
|
66
69
|
$kendo-checkbox-text: null !default;
|
|
67
70
|
/// The border color of the CheckBox.
|
|
68
71
|
/// @group checkbox
|
|
69
|
-
$kendo-checkbox-border:
|
|
72
|
+
$kendo-checkbox-border: k-color(on-app-surface) !default;
|
|
70
73
|
|
|
71
74
|
/// The background color of the hovered CheckBox.
|
|
72
75
|
/// @group checkbox
|
|
@@ -80,10 +83,10 @@ $kendo-checkbox-hover-border: null !default;
|
|
|
80
83
|
|
|
81
84
|
/// The background color of the checked CheckBox.
|
|
82
85
|
/// @group checkbox
|
|
83
|
-
$kendo-checkbox-checked-bg:
|
|
86
|
+
$kendo-checkbox-checked-bg: k-color(primary) !default;
|
|
84
87
|
/// The text color of the checked CheckBox.
|
|
85
88
|
/// @group checkbox
|
|
86
|
-
$kendo-checkbox-checked-text:
|
|
89
|
+
$kendo-checkbox-checked-text: k-color(on-primary) !default;
|
|
87
90
|
/// The border color of the checked CheckBox.
|
|
88
91
|
/// @group checkbox
|
|
89
92
|
$kendo-checkbox-checked-border: $kendo-checkbox-checked-bg !default;
|
|
@@ -119,15 +122,15 @@ $kendo-checkbox-disabled-bg: null !default;
|
|
|
119
122
|
$kendo-checkbox-disabled-text: null !default;
|
|
120
123
|
/// The border color of the disabled CheckBox.
|
|
121
124
|
/// @group checkbox
|
|
122
|
-
$kendo-checkbox-disabled-border:
|
|
125
|
+
$kendo-checkbox-disabled-border: k-color(on-app-surface) !default;
|
|
123
126
|
|
|
124
127
|
|
|
125
128
|
/// The background color of the disabled and checked CheckBox.
|
|
126
129
|
/// @group checkbox
|
|
127
|
-
$kendo-checkbox-disabled-checked-bg:
|
|
130
|
+
$kendo-checkbox-disabled-checked-bg: k-color(on-app-surface) !default;
|
|
128
131
|
/// The text color of the disabled and checked CheckBox.
|
|
129
132
|
/// @group checkbox
|
|
130
|
-
$kendo-checkbox-disabled-checked-text:
|
|
133
|
+
$kendo-checkbox-disabled-checked-text: $kendo-checkbox-disabled-text !default;
|
|
131
134
|
/// The border color of the disabled and checked CheckBox.
|
|
132
135
|
/// @group checkbox
|
|
133
136
|
$kendo-checkbox-disabled-checked-border: $kendo-checkbox-disabled-checked-bg !default;
|
|
@@ -137,10 +140,10 @@ $kendo-checkbox-disabled-checked-border: $kendo-checkbox-disabled-checked-bg !de
|
|
|
137
140
|
$kendo-checkbox-invalid-bg: null !default;
|
|
138
141
|
/// The text color of an invalid CheckBox.
|
|
139
142
|
/// @group checkbox
|
|
140
|
-
$kendo-checkbox-invalid-text:
|
|
143
|
+
$kendo-checkbox-invalid-text: k-color(error) !default;
|
|
141
144
|
/// The border color of an invalid CheckBox.
|
|
142
145
|
/// @group checkbox
|
|
143
|
-
$kendo-checkbox-invalid-border:
|
|
146
|
+
$kendo-checkbox-invalid-border: k-color(error) !default;
|
|
144
147
|
|
|
145
148
|
|
|
146
149
|
// CheckBox indicator
|
|
@@ -172,7 +175,7 @@ $kendo-checkbox-indeterminate-image: k-escape-svg( url("data:image/svg+xml,<svg
|
|
|
172
175
|
|
|
173
176
|
/// The horizontal margin of the CheckBox inside a label.
|
|
174
177
|
/// @group checkbox
|
|
175
|
-
$kendo-checkbox-label-margin-x: k-spacing(
|
|
178
|
+
$kendo-checkbox-label-margin-x: k-spacing(4) !default;
|
|
176
179
|
|
|
177
180
|
|
|
178
181
|
// CheckBox list
|
|
@@ -192,7 +195,7 @@ $kendo-checkbox-list-item-padding-y: $kendo-list-md-item-padding-y !default;
|
|
|
192
195
|
|
|
193
196
|
/// The background color of the CheckBox' ripple.
|
|
194
197
|
/// @group checkbox
|
|
195
|
-
$kendo-checkbox-ripple-bg:
|
|
198
|
+
$kendo-checkbox-ripple-bg: k-color(primary) !default;
|
|
196
199
|
/// The opacity of the CheckBox' ripple.
|
|
197
200
|
/// @group checkbox
|
|
198
201
|
$kendo-checkbox-ripple-opacity: .2 !default;
|
package/scss/chip/_layout.scss
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
+
@use "./_variables.scss" as *;
|
|
1
2
|
@use "@progress/kendo-theme-core/scss/components/chip/_layout.scss" as *;
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
@mixin kendo-chip--layout() {
|
|
5
6
|
@include kendo-chip--layout-base();
|
|
7
|
+
|
|
8
|
+
.k-chip {
|
|
9
|
+
&:focus,
|
|
10
|
+
&.k-focus {
|
|
11
|
+
outline-style: solid;
|
|
12
|
+
outline-width: calc( (#{$kendo-chip-border-width} * 2 ));
|
|
13
|
+
outline-offset: calc( (#{$kendo-chip-border-width} * 2 ) * -1);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
6
16
|
}
|
package/scss/chip/_theme.scss
CHANGED
|
@@ -8,17 +8,28 @@
|
|
|
8
8
|
|
|
9
9
|
@include kendo-chip--theme-base();
|
|
10
10
|
|
|
11
|
-
// Solid
|
|
12
|
-
.k-chip-solid {
|
|
13
|
-
border-color: transparent;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
11
|
// Solid
|
|
17
12
|
@each $name, $color in $kendo-chip-theme-colors {
|
|
18
13
|
.k-chip-solid-#{$name} {
|
|
14
|
+
border-color: k-color(#{$name}-subtle);
|
|
15
|
+
|
|
16
|
+
&:hover,
|
|
17
|
+
&.k-hover {
|
|
18
|
+
border-color:k-color(#{$name}-subtle-hover);
|
|
19
|
+
}
|
|
20
|
+
|
|
19
21
|
&:focus,
|
|
20
22
|
&.k-focus {
|
|
21
|
-
|
|
23
|
+
outline-color: if( $name == "base", k-color(base-emphasis), k-color(#{$name}-active));
|
|
24
|
+
box-shadow: inset 0 0 0 calc( #{$kendo-chip-border-width} * 3 ) k-color(app-surface),
|
|
25
|
+
inset 0 0 0 calc( #{$kendo-chip-border-width} * 5 ) if( $name == "base", k-color(base-subtle-active), k-color(#{$name}-subtle));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:active,
|
|
29
|
+
&.k-active,
|
|
30
|
+
&.k-selected {
|
|
31
|
+
background-color: k-color(#{$name}-subtle-active);
|
|
32
|
+
border-color: k-color(#{$name}-subtle-active);
|
|
22
33
|
}
|
|
23
34
|
}
|
|
24
35
|
}
|
|
@@ -26,65 +37,34 @@
|
|
|
26
37
|
// Outline
|
|
27
38
|
@each $name, $color in $kendo-chip-theme-colors {
|
|
28
39
|
.k-chip-outline-#{$name} {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
&.k-focus {
|
|
32
|
-
@include box-shadow( none );
|
|
33
|
-
@include fill( $bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-active ), k-try-tint( $color, 88% )) );
|
|
34
|
-
}
|
|
35
|
-
} @else if ($name == "warning") {
|
|
36
|
-
@include fill(
|
|
37
|
-
$color: if($kendo-enable-color-system, k-color( on-app-surface ), if( $kendo-is-dark-theme, k-try-shade( $color, 50% ), k-color( on-app-surface )))
|
|
38
|
-
);
|
|
40
|
+
color: k-color(#{$name}-on-surface);
|
|
41
|
+
border-color: k-color(#{$name}-on-surface);
|
|
39
42
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
@include fill(
|
|
49
|
-
$bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-hover ), k-try-tint( $color, 80% )),
|
|
50
|
-
$color: if($kendo-enable-color-system, k-color( on-app-surface ), if( $kendo-is-dark-theme, k-try-shade( $color, 50% ), k-color( on-app-surface )))
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.k-selected {
|
|
55
|
-
@include fill(
|
|
56
|
-
$bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-active ), k-try-tint( $color, 65% )),
|
|
57
|
-
$color: if($kendo-enable-color-system, k-color( on-app-surface ), if( $kendo-is-dark-theme, k-try-shade( $color, 50% ), k-color( on-app-surface )))
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
} @else {
|
|
61
|
-
@include fill(
|
|
62
|
-
$color: if($kendo-enable-color-system, k-color( #{$name}-on-surface ), k-try-shade( $color, 50% ))
|
|
63
|
-
);
|
|
43
|
+
&:hover,
|
|
44
|
+
&.k-hover,
|
|
45
|
+
&:active,
|
|
46
|
+
&.k-active,
|
|
47
|
+
&.k-selected {
|
|
48
|
+
color: k-color(#{$name}-on-surface);
|
|
49
|
+
border-color: k-color(#{$name}-on-surface);
|
|
50
|
+
}
|
|
64
51
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
$color: if($kendo-enable-color-system, k-color( #{$name}-on-subtle ), k-try-shade( $color, 50% ))
|
|
71
|
-
);
|
|
72
|
-
}
|
|
52
|
+
&:active,
|
|
53
|
+
&.k-active,
|
|
54
|
+
&.k-selected {
|
|
55
|
+
background-color: if( $name == "base", color-mix(in srgb, currentColor 12%, transparent), color-mix(in srgb, k-color($name) 12%, transparent));
|
|
56
|
+
}
|
|
73
57
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
$color: if($kendo-enable-color-system, k-color( #{$name}-on-subtle ), k-try-shade( $color, 50% ))
|
|
79
|
-
);
|
|
80
|
-
}
|
|
58
|
+
&:hover,
|
|
59
|
+
&.k-hover {
|
|
60
|
+
background-color: if( $name == "base", color-mix(in srgb, currentColor 8%, transparent), color-mix(in srgb, k-color($name) 8%, transparent));
|
|
61
|
+
}
|
|
81
62
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
63
|
+
&:focus,
|
|
64
|
+
&.k-focus {
|
|
65
|
+
outline-color: k-color(#{$name}-on-surface);
|
|
66
|
+
box-shadow: inset 0 0 0 calc( #{$kendo-chip-border-width} * 3 ) k-color(app-surface),
|
|
67
|
+
inset 0 0 0 calc( #{$kendo-chip-border-width} * 5 ) k-color(#{$name}-on-surface);
|
|
88
68
|
}
|
|
89
69
|
}
|
|
90
70
|
}
|