@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
package/scss/button/_theme.scss
CHANGED
|
@@ -9,81 +9,145 @@
|
|
|
9
9
|
|
|
10
10
|
// Solid button
|
|
11
11
|
@each $name, $color in $kendo-button-theme-colors {
|
|
12
|
-
.k-button
|
|
13
|
-
|
|
12
|
+
.k-button {
|
|
13
|
+
&:focus,
|
|
14
|
+
&.k-focus {
|
|
15
|
+
outline-style: solid;
|
|
16
|
+
outline-width: calc( (#{$kendo-button-border-width} * 2 ));
|
|
17
|
+
outline-offset: calc( (#{$kendo-button-border-width} * 2 ) * -1);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
14
20
|
|
|
15
|
-
|
|
16
|
-
//
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
.k-button-solid-#{$name} {
|
|
22
|
+
// Focus state
|
|
23
|
+
&:focus,
|
|
24
|
+
&.k-focus {
|
|
25
|
+
background-color: k-color(#{$name}-active);
|
|
26
|
+
outline-color: if( $name == "base" or $name == "secondary", $kendo-button-focus-border, k-color(#{$name}-active));
|
|
27
|
+
box-shadow: inset 0 0 0 calc( #{$kendo-button-border-width} * 3 ) k-color(app-surface),
|
|
28
|
+
inset 0 0 0 calc( #{$kendo-button-border-width} * 5 ) k-color(#{$name}-active);
|
|
29
|
+
}
|
|
20
30
|
|
|
21
|
-
// Hover state
|
|
22
31
|
&:hover,
|
|
23
32
|
&.k-hover {
|
|
33
|
+
background-color: k-color(#{$name}-hover);
|
|
34
|
+
border-color: k-color(#{$name}-hover);
|
|
24
35
|
@include box-shadow( $kendo-button-hover-shadow );
|
|
25
36
|
}
|
|
26
37
|
|
|
27
|
-
// Focus state
|
|
28
38
|
&:focus,
|
|
29
39
|
&.k-focus {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
40
|
+
&:hover,
|
|
41
|
+
&.k-hover {
|
|
42
|
+
box-shadow: inset 0 0 0 calc( #{$kendo-button-border-width} * 3 ) k-color(app-surface),
|
|
43
|
+
inset 0 0 0 calc( #{$kendo-button-border-width} * 5 ) k-color(#{$name}-hover),
|
|
44
|
+
$kendo-button-hover-shadow;
|
|
45
|
+
}
|
|
33
46
|
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
34
49
|
|
|
35
|
-
|
|
50
|
+
// Outline and Flat button
|
|
51
|
+
@each $name, $color in $kendo-button-theme-colors {
|
|
52
|
+
.k-button-outline-#{$name},
|
|
53
|
+
.k-button-flat-#{$name} {
|
|
54
|
+
&:hover,
|
|
55
|
+
&.k-hover,
|
|
36
56
|
&:active,
|
|
37
|
-
&.k-active
|
|
38
|
-
|
|
57
|
+
&.k-active,
|
|
58
|
+
&.k-selected {
|
|
59
|
+
color: k-color(#{$name}-on-surface);
|
|
39
60
|
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
40
63
|
|
|
41
|
-
|
|
64
|
+
// Outline and Link button
|
|
65
|
+
@each $name, $color in $kendo-button-theme-colors {
|
|
66
|
+
.k-button-outline-#{$name},
|
|
67
|
+
.k-button-link-#{$name} {
|
|
68
|
+
color: k-color(#{$name}-on-surface);
|
|
69
|
+
|
|
70
|
+
&:active,
|
|
71
|
+
&.k-active,
|
|
42
72
|
&.k-selected {
|
|
43
|
-
|
|
73
|
+
background-color: if( $name == "base" or $name == "secondary", color-mix(in srgb, currentColor 12%, transparent), color-mix(in srgb, k-color($name) 12%, transparent));
|
|
44
74
|
}
|
|
45
75
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
@include box-shadow( $kendo-button-disabled-shadow );
|
|
76
|
+
&:hover,
|
|
77
|
+
&.k-hover {
|
|
78
|
+
background-color: if( $name == "base" or $name == "secondary", color-mix(in srgb, currentColor 8%, transparent), color-mix(in srgb, k-color($name) 8%, transparent));
|
|
50
79
|
}
|
|
51
80
|
}
|
|
52
81
|
}
|
|
53
82
|
|
|
54
83
|
|
|
84
|
+
|
|
55
85
|
// Outline button
|
|
56
86
|
@each $name, $color in $kendo-button-theme-colors {
|
|
57
87
|
.k-button-outline-#{$name} {
|
|
88
|
+
color: k-color(#{$name}-on-surface);
|
|
58
89
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@if $name == "
|
|
62
|
-
color:
|
|
90
|
+
@if $name == "base" or $name == "primary" {
|
|
91
|
+
border-color: k-color(base-emphasis);
|
|
92
|
+
} @else if $name == "secondary" {
|
|
93
|
+
border-color: k-color(secondary-emphasis);
|
|
63
94
|
} @else {
|
|
64
|
-
color:
|
|
95
|
+
border-color: k-color(#{$name}-on-surface);
|
|
65
96
|
}
|
|
66
97
|
|
|
67
98
|
&:hover,
|
|
68
99
|
&.k-hover,
|
|
69
|
-
&:focus,
|
|
70
|
-
&.k-focus,
|
|
71
100
|
&:active,
|
|
72
101
|
&.k-active,
|
|
73
102
|
&.k-selected {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
@if $name == "
|
|
77
|
-
color:
|
|
103
|
+
@if $name == "base" or $name == "primary" {
|
|
104
|
+
border-color: k-color(base-emphasis);
|
|
105
|
+
} @else if $name == "secondary" {
|
|
106
|
+
border-color: k-color(secondary-emphasis);
|
|
78
107
|
} @else {
|
|
79
|
-
color:
|
|
108
|
+
border-color: k-color(#{$name}-on-surface);
|
|
80
109
|
}
|
|
81
110
|
}
|
|
82
111
|
|
|
112
|
+
&:focus,
|
|
113
|
+
&.k-focus {
|
|
114
|
+
box-shadow: inset 0 0 0 calc( #{$kendo-button-border-width} * 3 ) k-color(app-surface),
|
|
115
|
+
inset 0 0 0 calc( #{$kendo-button-border-width} * 5 ) k-color(#{$name}-on-surface);
|
|
116
|
+
}
|
|
117
|
+
|
|
83
118
|
// Disabled state
|
|
84
119
|
&:disabled,
|
|
85
120
|
&.k-disabled {
|
|
86
121
|
color: $kendo-button-disabled-text;
|
|
122
|
+
border-color: $kendo-button-disabled-text;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Flat button
|
|
128
|
+
@each $name, $color in $kendo-button-theme-colors {
|
|
129
|
+
.k-button-flat-#{$name} {
|
|
130
|
+
&:focus,
|
|
131
|
+
&.k-focus {
|
|
132
|
+
outline: 0;
|
|
133
|
+
|
|
134
|
+
&::before {
|
|
135
|
+
background: transparent;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&::after {
|
|
140
|
+
box-shadow: inset 0 0 0 2px if( $name == "base" or $name == "secondary", color-mix(in srgb, currentColor 20%, transparent), color-mix(in srgb, k-color($name) 20%, transparent));
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Clear button
|
|
146
|
+
@each $name, $color in $kendo-button-theme-colors {
|
|
147
|
+
.k-button-clear-#{$name} {
|
|
148
|
+
&:focus,
|
|
149
|
+
&.k-focus {
|
|
150
|
+
outline: 0;
|
|
87
151
|
}
|
|
88
152
|
}
|
|
89
153
|
}
|
|
@@ -92,7 +156,20 @@
|
|
|
92
156
|
// Link button
|
|
93
157
|
@each $name, $color in $kendo-button-theme-colors {
|
|
94
158
|
.k-button-link-#{$name} {
|
|
159
|
+
text-decoration: underline;
|
|
160
|
+
|
|
161
|
+
&:hover,
|
|
162
|
+
&.k-hover,
|
|
163
|
+
&:active,
|
|
164
|
+
&.k-active,
|
|
165
|
+
&.k-selected {
|
|
166
|
+
color: k-color(#{$name}-on-surface);
|
|
167
|
+
}
|
|
95
168
|
|
|
169
|
+
&:focus,
|
|
170
|
+
&.k-focus {
|
|
171
|
+
outline-color: if( $name == "base" or $name == "secondary", color-mix(in srgb, currentColor 20%, transparent), color-mix(in srgb, k-color($name) 20%, transparent));
|
|
172
|
+
}
|
|
96
173
|
// Disabled state
|
|
97
174
|
&:disabled,
|
|
98
175
|
&.k-disabled {
|
|
@@ -109,17 +186,6 @@
|
|
|
109
186
|
// Button group
|
|
110
187
|
.k-button-group {
|
|
111
188
|
@include box-shadow( $kendo-button-shadow );
|
|
112
|
-
|
|
113
|
-
.k-button {
|
|
114
|
-
@include box-shadow( none );
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// Disabled state
|
|
118
|
-
&:disabled,
|
|
119
|
-
&[disabled],
|
|
120
|
-
&.k-disabled {
|
|
121
|
-
@include box-shadow( none );
|
|
122
|
-
}
|
|
123
189
|
}
|
|
124
190
|
|
|
125
191
|
|
|
@@ -15,33 +15,36 @@ $kendo-button-border-radius: null !default;
|
|
|
15
15
|
|
|
16
16
|
/// The horizontal padding of the Button.
|
|
17
17
|
/// @group button
|
|
18
|
-
$kendo-button-padding-x: k-spacing(
|
|
18
|
+
$kendo-button-padding-x: k-spacing(6) !default;
|
|
19
19
|
/// The horizontal padding of the small Button.
|
|
20
20
|
/// @group button
|
|
21
|
-
$kendo-button-sm-padding-x: k-spacing(
|
|
21
|
+
$kendo-button-sm-padding-x: k-spacing(6) !default;
|
|
22
22
|
/// The horizontal padding of the medium Button.
|
|
23
23
|
/// @group button
|
|
24
|
-
$kendo-button-md-padding-x:
|
|
24
|
+
$kendo-button-md-padding-x: $kendo-button-padding-x !default;
|
|
25
25
|
/// The horizontal padding of the large Button.
|
|
26
26
|
/// @group button
|
|
27
|
-
$kendo-button-lg-padding-x: k-spacing(
|
|
27
|
+
$kendo-button-lg-padding-x: k-spacing(6) !default;
|
|
28
28
|
|
|
29
29
|
/// The vertical padding of the Button.
|
|
30
30
|
/// @group button
|
|
31
|
-
$kendo-button-padding-y: k-spacing(2) !default;
|
|
31
|
+
$kendo-button-padding-y: calc( k-spacing(4.5) / 2 ) !default;
|
|
32
32
|
/// The vertical padding of the small Button.
|
|
33
33
|
/// @group button
|
|
34
|
-
$kendo-button-sm-padding-y: k-spacing(
|
|
34
|
+
$kendo-button-sm-padding-y: calc( k-spacing(3.5) / 2 ) !default;
|
|
35
35
|
/// The vertical padding of the medium Button.
|
|
36
36
|
/// @group button
|
|
37
|
-
$kendo-button-md-padding-y:
|
|
37
|
+
$kendo-button-md-padding-y: $kendo-button-padding-y !default;
|
|
38
38
|
/// The vertical padding of the large Button.
|
|
39
39
|
/// @group button
|
|
40
|
-
$kendo-button-lg-padding-y: k-spacing(
|
|
40
|
+
$kendo-button-lg-padding-y: calc( k-spacing(5.5) / 2 ) !default;
|
|
41
41
|
|
|
42
42
|
/// The font family of the Button.
|
|
43
43
|
/// @group button
|
|
44
44
|
$kendo-button-font-family: var( --kendo-font-family, inherit ) !default;
|
|
45
|
+
/// The font weight of the Button.
|
|
46
|
+
/// @group button
|
|
47
|
+
$kendo-button-font-weight: var( --kendo-font-weight-medium, 500 ) !default;
|
|
45
48
|
|
|
46
49
|
/// The font size of the Button.
|
|
47
50
|
/// @group button
|
|
@@ -58,16 +61,16 @@ $kendo-button-lg-font-size: var( --kendo-font-size, inherit ) !default;
|
|
|
58
61
|
|
|
59
62
|
/// Line heights used along with the $kendo-font-size variable.
|
|
60
63
|
/// @group button
|
|
61
|
-
$kendo-button-line-height:
|
|
64
|
+
$kendo-button-line-height: var( --kendo-line-height, normal ) !default;
|
|
62
65
|
/// The line height used along with the $kendo-font-size variable of the small Button.
|
|
63
66
|
/// @group button
|
|
64
|
-
$kendo-button-sm-line-height:
|
|
67
|
+
$kendo-button-sm-line-height: $kendo-button-line-height !default;
|
|
65
68
|
/// The line height used along with the $kendo-font-size variable of the medium Button.
|
|
66
69
|
/// @group button
|
|
67
|
-
$kendo-button-md-line-height:
|
|
70
|
+
$kendo-button-md-line-height: $kendo-button-line-height !default;
|
|
68
71
|
/// The line height used along with the $kendo-font-size variable of the large Button.
|
|
69
72
|
/// @group button
|
|
70
|
-
$kendo-button-lg-line-height:
|
|
73
|
+
$kendo-button-lg-line-height: $kendo-button-line-height !default;
|
|
71
74
|
|
|
72
75
|
/// The calculated height of the Button.
|
|
73
76
|
/// @group button
|
|
@@ -108,17 +111,26 @@ $kendo-button-sizes: (
|
|
|
108
111
|
|
|
109
112
|
/// The theme colors map for the Button.
|
|
110
113
|
/// @group button
|
|
111
|
-
$kendo-button-theme-colors:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
$kendo-button-theme-colors: (
|
|
115
|
+
"base": k-color(base),
|
|
116
|
+
"primary": k-color(primary),
|
|
117
|
+
"secondary": k-color(secondary),
|
|
118
|
+
"tertiary": k-color(tertiary),
|
|
119
|
+
"info": k-color(info),
|
|
120
|
+
"success": k-color(success),
|
|
121
|
+
"warning": k-color(warning),
|
|
122
|
+
"error": k-color(error),
|
|
123
|
+
"dark": k-color(dark),
|
|
124
|
+
"light": k-color(light),
|
|
125
|
+
"inverse": if($kendo-is-dark-theme, k-color(light), k-color(dark))
|
|
114
126
|
) !default;
|
|
115
127
|
|
|
116
128
|
/// The base background of the Button.
|
|
117
129
|
/// @group button
|
|
118
|
-
$kendo-button-bg:
|
|
130
|
+
$kendo-button-bg: k-color(base) !default;
|
|
119
131
|
/// The base text color of the Button.
|
|
120
132
|
/// @group button
|
|
121
|
-
$kendo-button-text:
|
|
133
|
+
$kendo-button-text: k-color(on-base) !default;
|
|
122
134
|
/// The base border color of the Button.
|
|
123
135
|
/// @group button
|
|
124
136
|
$kendo-button-border: $kendo-button-bg !default;
|
|
@@ -127,39 +139,39 @@ $kendo-button-border: $kendo-button-bg !default;
|
|
|
127
139
|
$kendo-button-gradient: none !default;
|
|
128
140
|
/// The base shadow of the Button.
|
|
129
141
|
/// @group button
|
|
130
|
-
$kendo-button-shadow:
|
|
142
|
+
$kendo-button-shadow: null !default;
|
|
131
143
|
|
|
132
144
|
/// The base background of the hovered Button.
|
|
133
145
|
/// @group button
|
|
134
|
-
$kendo-button-hover-bg:
|
|
146
|
+
$kendo-button-hover-bg: k-color(base-hover) !default;
|
|
135
147
|
/// The base text color of the hovered Button.
|
|
136
148
|
/// @group button
|
|
137
149
|
$kendo-button-hover-text: null !default;
|
|
138
150
|
/// The base border color of the hovered Button.
|
|
139
151
|
/// @group button
|
|
140
|
-
$kendo-button-hover-border:
|
|
152
|
+
$kendo-button-hover-border: k-color(base-hover) !default;
|
|
141
153
|
/// The base background gradient of the hovered Button.
|
|
142
154
|
/// @group button
|
|
143
155
|
$kendo-button-hover-gradient: null !default;
|
|
144
156
|
/// The base shadow of the hovered Button.
|
|
145
157
|
/// @group button
|
|
146
|
-
$kendo-button-hover-shadow:
|
|
158
|
+
$kendo-button-hover-shadow: k-elevation(1) !default;
|
|
147
159
|
|
|
148
160
|
/// The base background color of the active Button.
|
|
149
161
|
/// @group button
|
|
150
|
-
$kendo-button-active-bg:
|
|
162
|
+
$kendo-button-active-bg: k-color(base-active) !default;
|
|
151
163
|
/// The base text color of the active Button.
|
|
152
164
|
/// @group button
|
|
153
|
-
$kendo-button-active-text:
|
|
165
|
+
$kendo-button-active-text: k-color(on-base) !default;
|
|
154
166
|
/// The base border color of the active Button.
|
|
155
167
|
/// @group button
|
|
156
|
-
$kendo-button-active-border:
|
|
168
|
+
$kendo-button-active-border: $kendo-button-active-bg !default;
|
|
157
169
|
/// The base background gradient of the active Button.
|
|
158
170
|
/// @group button
|
|
159
171
|
$kendo-button-active-gradient: null !default;
|
|
160
172
|
/// The base shadow of the active Button.
|
|
161
173
|
/// @group button
|
|
162
|
-
$kendo-button-active-shadow:
|
|
174
|
+
$kendo-button-active-shadow: null !default;
|
|
163
175
|
|
|
164
176
|
/// The base background color of the selected Button.
|
|
165
177
|
/// @group button
|
|
@@ -175,33 +187,33 @@ $kendo-button-selected-border: $kendo-button-active-bg !default;
|
|
|
175
187
|
$kendo-button-selected-gradient: none !default;
|
|
176
188
|
/// The base shadow of the selected Button.
|
|
177
189
|
/// @group button
|
|
178
|
-
$kendo-button-selected-shadow:
|
|
190
|
+
$kendo-button-selected-shadow: null !default;
|
|
179
191
|
|
|
180
192
|
/// The base background of the focused Button.
|
|
181
193
|
/// @group button
|
|
182
|
-
$kendo-button-focus-bg:
|
|
194
|
+
$kendo-button-focus-bg: k-color(base-active) !default;
|
|
183
195
|
/// The base text color of the focused Button.
|
|
184
196
|
/// @group button
|
|
185
|
-
$kendo-button-focus-text:
|
|
197
|
+
$kendo-button-focus-text: k-color(on-base) !default;
|
|
186
198
|
/// The base border color of the focused Button.
|
|
187
199
|
/// @group button
|
|
188
|
-
$kendo-button-focus-border:
|
|
200
|
+
$kendo-button-focus-border: k-color(base-emphasis) !default;
|
|
189
201
|
/// The base background gradient of focused Button.
|
|
190
202
|
/// @group button
|
|
191
203
|
$kendo-button-focus-gradient: null !default;
|
|
192
204
|
/// The base shadow of the focused Button.
|
|
193
205
|
/// @group button
|
|
194
|
-
$kendo-button-focus-shadow:
|
|
206
|
+
$kendo-button-focus-shadow: null !default;
|
|
195
207
|
|
|
196
208
|
/// The base background color of the disabled Button.
|
|
197
209
|
/// @group button
|
|
198
|
-
$kendo-button-disabled-bg:
|
|
210
|
+
$kendo-button-disabled-bg: color-mix(in srgb, k-color(on-app-surface) 12%, transparent) !default;
|
|
199
211
|
/// The base text color of the disabled Button.
|
|
200
212
|
/// @group button
|
|
201
|
-
$kendo-button-disabled-text:
|
|
213
|
+
$kendo-button-disabled-text: color-mix(in srgb, k-color(on-app-surface) 38%, transparent) !default;
|
|
202
214
|
/// The base border color of the disabled Button.
|
|
203
215
|
/// @group button
|
|
204
|
-
$kendo-button-disabled-border:
|
|
216
|
+
$kendo-button-disabled-border: transparent !default;
|
|
205
217
|
/// The base background gradient of the disabled Button.
|
|
206
218
|
/// @group button
|
|
207
219
|
$kendo-button-disabled-gradient: null !default;
|
|
@@ -239,7 +251,7 @@ $kendo-link-button-shadow-spread: unset !default;
|
|
|
239
251
|
$kendo-link-button-shadow-opacity: unset !default;
|
|
240
252
|
|
|
241
253
|
// Clear Button
|
|
242
|
-
$kendo-clear-button-focus-opacity: .
|
|
254
|
+
$kendo-clear-button-focus-opacity: .12 !default; // equal to 10% of black
|
|
243
255
|
|
|
244
256
|
/// The overlay opacity of the hovered flat Button. Used to create a background for the flat Button.
|
|
245
257
|
/// @group button
|
|
@@ -273,6 +285,7 @@ $kendo-button-transition: box-shadow 280ms cubic-bezier( .4, 0, .2, 1 ) !default
|
|
|
273
285
|
$kendo-button-md-padding-y: $kendo-button-md-padding-y,
|
|
274
286
|
$kendo-button-lg-padding-y: $kendo-button-lg-padding-y,
|
|
275
287
|
$kendo-button-font-family: $kendo-button-font-family,
|
|
288
|
+
$kendo-button-font-weight: $kendo-button-font-weight,
|
|
276
289
|
$kendo-button-font-size: $kendo-button-font-size,
|
|
277
290
|
$kendo-button-sm-font-size: $kendo-button-sm-font-size,
|
|
278
291
|
$kendo-button-md-font-size: $kendo-button-md-font-size,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "./_variables.scss" as *;
|
|
1
3
|
@use "@progress/kendo-theme-core/scss/components/calendar/_layout.scss" as *;
|
|
2
4
|
|
|
3
5
|
|
|
@@ -5,25 +7,20 @@
|
|
|
5
7
|
|
|
6
8
|
@include kendo-calendar--layout-base();
|
|
7
9
|
|
|
8
|
-
// Calendar
|
|
9
10
|
.k-calendar {
|
|
11
|
+
.k-range-start,
|
|
12
|
+
.k-range-end {
|
|
13
|
+
border-radius: 0;
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
text-transform: none;
|
|
15
|
-
}
|
|
16
|
-
.k-calendar-caption,
|
|
17
|
-
.k-calendar-view th,
|
|
18
|
-
.k-calendar-view .k-calendar-th,
|
|
19
|
-
.k-meta-header,
|
|
20
|
-
.k-month-header {
|
|
21
|
-
font-weight: 500;
|
|
22
|
-
}
|
|
23
|
-
.k-calendar-view tbody th,
|
|
24
|
-
.k-calendar-view .k-calendar-tbody .k-calendar-th {
|
|
25
|
-
font-weight: 700;
|
|
15
|
+
.k-link {
|
|
16
|
+
border-radius: $kendo-calendar-range-cell-border-radius;
|
|
17
|
+
}
|
|
26
18
|
}
|
|
27
19
|
}
|
|
28
20
|
|
|
21
|
+
// Calendar in popup
|
|
22
|
+
.k-calendar-container,
|
|
23
|
+
.k-datetime-container {
|
|
24
|
+
border-radius: $kendo-calendar-border-radius;
|
|
25
|
+
}
|
|
29
26
|
}
|
|
@@ -10,22 +10,40 @@
|
|
|
10
10
|
|
|
11
11
|
// Calendar
|
|
12
12
|
.k-calendar {
|
|
13
|
+
.k-content {
|
|
14
|
+
background-color: transparent;
|
|
15
|
+
}
|
|
13
16
|
|
|
14
17
|
.k-focus .k-link {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
background-color: color-mix(in srgb, k-color(on-app-surface) 12%, transparent);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.k-range-start {
|
|
22
|
+
background: $kendo-calendar-range-start-bg;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.k-range-end {
|
|
26
|
+
background: $kendo-calendar-range-end-bg;
|
|
20
27
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
|
|
29
|
+
// Calendar navigation
|
|
30
|
+
.k-calendar-navigation {
|
|
31
|
+
li:hover,
|
|
32
|
+
li.k-hover {
|
|
33
|
+
background-color: color-mix(in srgb, k-color(on-app-surface) 8%, transparent);
|
|
34
|
+
}
|
|
27
35
|
}
|
|
36
|
+
}
|
|
28
37
|
|
|
38
|
+
.k-rtl .k-calendar,
|
|
39
|
+
.k-calendar[dir="rtl"] {
|
|
40
|
+
.k-range-start {
|
|
41
|
+
background: $kendo-calendar-range-end-bg;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.k-range-end {
|
|
45
|
+
background: $kendo-calendar-range-start-bg;
|
|
46
|
+
}
|
|
29
47
|
}
|
|
30
48
|
|
|
31
49
|
}
|