@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.
Files changed (223) hide show
  1. package/dist/all.css +1 -1
  2. package/dist/material-2-dark.css +1 -0
  3. package/dist/material-2-dark.scss +137 -0
  4. package/dist/material-2.css +1 -0
  5. package/dist/material-2.scss +132 -0
  6. package/dist/material-aqua-dark.css +1 -1
  7. package/dist/material-aqua-dark.scss +1 -1
  8. package/dist/material-arctic.css +1 -1
  9. package/dist/material-arctic.scss +1 -1
  10. package/dist/material-burnt-teal.css +1 -1
  11. package/dist/material-burnt-teal.scss +1 -1
  12. package/dist/material-dataviz-v4.css +1 -1
  13. package/dist/material-dataviz-v4.scss +1 -1
  14. package/dist/material-eggplant.css +1 -1
  15. package/dist/material-eggplant.scss +1 -1
  16. package/dist/material-lime-dark.css +1 -1
  17. package/dist/material-lime-dark.scss +1 -1
  18. package/dist/material-lime.css +1 -1
  19. package/dist/material-lime.scss +1 -1
  20. package/dist/material-main-dark.css +1 -1
  21. package/dist/material-main-dark.scss +98 -98
  22. package/dist/material-main.css +1 -1
  23. package/dist/material-main.scss +1 -5
  24. package/dist/material-nova.css +1 -1
  25. package/dist/material-nova.scss +1 -1
  26. package/dist/material-pacific-dark.css +1 -1
  27. package/dist/material-pacific-dark.scss +1 -1
  28. package/dist/material-pacific.css +1 -1
  29. package/dist/material-pacific.scss +1 -1
  30. package/dist/material-sky-dark.css +1 -1
  31. package/dist/material-sky-dark.scss +1 -1
  32. package/dist/material-sky.css +1 -1
  33. package/dist/material-sky.scss +1 -1
  34. package/dist/material-smoke.css +1 -1
  35. package/dist/material-smoke.scss +1 -1
  36. package/dist/meta/sassdoc-data.json +13278 -11518
  37. package/dist/meta/sassdoc-raw-data.json +4563 -3763
  38. package/dist/meta/variables.json +2591 -3022
  39. package/lib/swatches/index.js +2 -0
  40. package/lib/swatches/material-2-dark.json +657 -0
  41. package/lib/swatches/material-2.json +632 -0
  42. package/lib/swatches/material-aqua-dark.json +1 -243
  43. package/lib/swatches/material-arctic.json +1 -243
  44. package/lib/swatches/material-burnt-teal.json +1 -243
  45. package/lib/swatches/material-dataviz-v4.json +1 -47
  46. package/lib/swatches/material-eggplant.json +1 -243
  47. package/lib/swatches/material-lime-dark.json +1 -243
  48. package/lib/swatches/material-lime.json +1 -243
  49. package/lib/swatches/material-main-dark.json +103 -345
  50. package/lib/swatches/material-main.json +7 -250
  51. package/lib/swatches/material-nova.json +1 -243
  52. package/lib/swatches/material-pacific-dark.json +1 -243
  53. package/lib/swatches/material-pacific.json +1 -243
  54. package/lib/swatches/material-sky-dark.json +1 -243
  55. package/lib/swatches/material-sky.json +1 -243
  56. package/lib/swatches/material-smoke.json +1 -243
  57. package/package.json +4 -4
  58. package/scss/action-buttons/_layout.scss +0 -23
  59. package/scss/action-buttons/_theme.scss +0 -13
  60. package/scss/action-buttons/_variables.scss +3 -3
  61. package/scss/action-sheet/_layout.scss +6 -0
  62. package/scss/action-sheet/_variables.scss +27 -28
  63. package/scss/adaptive/_variables.scss +13 -13
  64. package/scss/appbar/_variables.scss +22 -8
  65. package/scss/avatar/_variables.scss +12 -1
  66. package/scss/badge/_layout.scss +0 -1
  67. package/scss/badge/_variables.scss +23 -9
  68. package/scss/bottom-navigation/_theme.scss +55 -4
  69. package/scss/bottom-navigation/_variables.scss +31 -17
  70. package/scss/breadcrumb/_variables.scss +21 -21
  71. package/scss/button/_layout.scss +0 -81
  72. package/scss/button/_theme.scss +110 -44
  73. package/scss/button/_variables.scss +47 -34
  74. package/scss/calendar/_layout.scss +13 -16
  75. package/scss/calendar/_theme.scss +29 -11
  76. package/scss/calendar/_variables.scss +83 -56
  77. package/scss/captcha/_variables.scss +3 -3
  78. package/scss/card/_variables.scss +34 -20
  79. package/scss/chart-wizard/_variables.scss +4 -4
  80. package/scss/chat/_theme.scss +5 -1
  81. package/scss/chat/_variables.scss +15 -15
  82. package/scss/checkbox/_layout.scss +35 -0
  83. package/scss/checkbox/_theme.scss +113 -4
  84. package/scss/checkbox/_variables.scss +23 -20
  85. package/scss/chip/_layout.scss +10 -0
  86. package/scss/chip/_theme.scss +41 -61
  87. package/scss/chip/_variables.scss +48 -30
  88. package/scss/color-preview/_variables.scss +3 -3
  89. package/scss/coloreditor/_variables.scss +11 -11
  90. package/scss/colorgradient/_variables.scss +7 -37
  91. package/scss/column-menu/_variables.scss +1 -1
  92. package/scss/core/_index.scss +8 -3
  93. package/scss/core/color-system/_palettes.scss +243 -242
  94. package/scss/core/color-system/_swatch.scss +142 -145
  95. package/scss/core/elevation/index.import.scss +18 -27
  96. package/scss/core/typography/index.import.scss +8 -8
  97. package/scss/dataviz/_variables.scss +61 -48
  98. package/scss/dialog/_theme.scss +1 -1
  99. package/scss/dialog/_variables.scss +9 -4
  100. package/scss/dock-manager/_variables.scss +18 -18
  101. package/scss/draggable/_variables.scss +4 -4
  102. package/scss/drawer/_layout.scss +2 -0
  103. package/scss/drawer/_theme.scss +0 -11
  104. package/scss/drawer/_variables.scss +49 -24
  105. package/scss/dropzone/_variables.scss +7 -7
  106. package/scss/editor/_layout.scss +2 -12
  107. package/scss/editor/_variables.scss +15 -8
  108. package/scss/expansion-panel/_layout.scss +5 -0
  109. package/scss/expansion-panel/_variables.scss +10 -10
  110. package/scss/fab/_layout.scss +1 -1
  111. package/scss/fab/_theme.scss +24 -23
  112. package/scss/fab/_variables.scss +25 -14
  113. package/scss/filemanager/_theme.scss +4 -0
  114. package/scss/filemanager/_variables.scss +6 -6
  115. package/scss/filter/_variables.scss +4 -4
  116. package/scss/floating-label/_theme.scss +1 -1
  117. package/scss/floating-label/_variables.scss +2 -2
  118. package/scss/forms/_variables.scss +6 -6
  119. package/scss/gantt/_variables.scss +27 -27
  120. package/scss/grid/_layout.scss +6 -21
  121. package/scss/grid/_theme.scss +14 -128
  122. package/scss/grid/_variables.scss +20 -20
  123. package/scss/imageeditor/_variables.scss +4 -4
  124. package/scss/index.scss +3 -0
  125. package/scss/input/_layout.scss +10 -14
  126. package/scss/input/_variables.scss +45 -44
  127. package/scss/list/_theme.scss +1 -1
  128. package/scss/list/_variables.scss +103 -25
  129. package/scss/listbox/_variables.scss +3 -3
  130. package/scss/listgroup/_variables.scss +6 -6
  131. package/scss/listview/_theme.scss +0 -13
  132. package/scss/listview/_variables.scss +7 -7
  133. package/scss/loader/_variables.scss +18 -4
  134. package/scss/map/_variables.scss +6 -6
  135. package/scss/marquee/_index.scss +16 -0
  136. package/scss/marquee/_layout.scss +6 -0
  137. package/scss/marquee/_theme.scss +6 -0
  138. package/scss/marquee/_variables.scss +11 -0
  139. package/scss/mediaplayer/_variables.scss +4 -4
  140. package/scss/menu/_layout.scss +4 -0
  141. package/scss/menu/_theme.scss +1 -26
  142. package/scss/menu/_variables.scss +49 -41
  143. package/scss/menu-button/_variables.scss +1 -1
  144. package/scss/messagebox/_layout.scss +5 -1
  145. package/scss/messagebox/_variables.scss +16 -2
  146. package/scss/no-data/_variables.scss +1 -1
  147. package/scss/notification/_functions.scss +1 -1
  148. package/scss/notification/_layout.scss +5 -0
  149. package/scss/notification/_theme.scss +1 -0
  150. package/scss/notification/_variables.scss +30 -9
  151. package/scss/orgchart/_variables.scss +10 -10
  152. package/scss/overlay/_variables.scss +12 -1
  153. package/scss/pager/_variables.scss +8 -8
  154. package/scss/panel/_variables.scss +3 -3
  155. package/scss/panelbar/_layout.scss +29 -1
  156. package/scss/panelbar/_theme.scss +0 -1
  157. package/scss/panelbar/_variables.scss +29 -29
  158. package/scss/pdf-viewer/_variables.scss +15 -15
  159. package/scss/pivotgrid/_theme.scss +0 -12
  160. package/scss/pivotgrid/_variables.scss +23 -23
  161. package/scss/popover/_variables.scss +5 -5
  162. package/scss/popup/_variables.scss +7 -7
  163. package/scss/progressbar/_layout.scss +11 -4
  164. package/scss/progressbar/_variables.scss +6 -6
  165. package/scss/prompt/_layout.scss +4 -0
  166. package/scss/prompt/_variables.scss +17 -17
  167. package/scss/radio/_layout.scss +35 -0
  168. package/scss/radio/_theme.scss +109 -4
  169. package/scss/radio/_variables.scss +19 -16
  170. package/scss/rating/_variables.scss +7 -7
  171. package/scss/scheduler/_layout.scss +2 -89
  172. package/scss/scheduler/_theme.scss +3 -3
  173. package/scss/scheduler/_variables.scss +22 -19
  174. package/scss/scrollview/_variables.scss +5 -5
  175. package/scss/signature/_variables.scss +1 -1
  176. package/scss/skeleton/_variables.scss +1 -1
  177. package/scss/slider/_layout.scss +11 -0
  178. package/scss/slider/_theme.scss +1 -10
  179. package/scss/slider/_variables.scss +25 -16
  180. package/scss/split-button/_layout.scss +12 -0
  181. package/scss/split-button/_variables.scss +4 -4
  182. package/scss/splitter/_variables.scss +9 -9
  183. package/scss/spreadsheet/_layout.scss +0 -35
  184. package/scss/spreadsheet/_theme.scss +3 -25
  185. package/scss/spreadsheet/_variables.scss +32 -31
  186. package/scss/stepper/_layout.scss +15 -1
  187. package/scss/stepper/_theme.scss +8 -0
  188. package/scss/stepper/_variables.scss +21 -21
  189. package/scss/switch/_layout.scss +20 -5
  190. package/scss/switch/_theme.scss +2 -9
  191. package/scss/switch/_variables.scss +50 -16
  192. package/scss/table/_layout.scss +22 -20
  193. package/scss/table/_theme.scss +6 -32
  194. package/scss/table/_variables.scss +13 -13
  195. package/scss/tabstrip/_layout.scss +100 -4
  196. package/scss/tabstrip/_variables.scss +20 -20
  197. package/scss/taskboard/_layout.scss +4 -0
  198. package/scss/taskboard/_variables.scss +18 -18
  199. package/scss/tilelayout/_layout.scss +7 -1
  200. package/scss/tilelayout/_variables.scss +4 -4
  201. package/scss/timeline/_variables.scss +7 -7
  202. package/scss/timeselector/_layout.scss +38 -0
  203. package/scss/timeselector/_theme.scss +8 -6
  204. package/scss/timeselector/_variables.scss +39 -28
  205. package/scss/toolbar/_layout.scss +0 -47
  206. package/scss/toolbar/_theme.scss +4 -44
  207. package/scss/toolbar/_variables.scss +17 -17
  208. package/scss/tooltip/_functions.scss +1 -1
  209. package/scss/tooltip/_variables.scss +19 -8
  210. package/scss/treelist/_layout.scss +0 -19
  211. package/scss/treelist/_theme.scss +10 -15
  212. package/scss/treelist/_variables.scss +1 -1
  213. package/scss/treeview/_theme.scss +2 -31
  214. package/scss/treeview/_variables.scss +25 -25
  215. package/scss/typography/_variables.scss +24 -24
  216. package/scss/upload/_theme.scss +1 -1
  217. package/scss/upload/_variables.scss +14 -14
  218. package/scss/window/_layout.scss +14 -0
  219. package/scss/window/_variables.scss +14 -14
  220. package/scss/wizard/_variables.scss +3 -3
  221. package/scss/core/color-system/_functions.scss +0 -104
  222. package/scss/core/color-system/_palettes-legacy.scss +0 -671
  223. package/scss/core/color-system/_swatch-legacy.scss +0 -299
@@ -9,81 +9,145 @@
9
9
 
10
10
  // Solid button
11
11
  @each $name, $color in $kendo-button-theme-colors {
12
- .k-button-solid-#{$name} {
13
- @include box-shadow( $kendo-button-shadow );
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
- // These 3 lines can be deleted once we
16
- // stop supporting the old color system.
17
- color: if( $name == "base", $kendo-button-text, if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-color( $color )) );
18
- background-color: if( $name == "base", $kendo-button-bg, if($kendo-enable-color-system, k-color( $name ), $color) );
19
- border-color: if( $name == "base", $kendo-button-bg, if($kendo-enable-color-system, k-color( $name ), $color) );
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
- background-color: if($kendo-enable-color-system, k-color( #{$name}-hover ), null);
31
- border-color: if($kendo-enable-color-system, k-color( #{$name}-hover ), null);
32
- @include box-shadow( $kendo-button-focus-shadow );
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
- // Active state
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
- @include box-shadow( $kendo-button-active-shadow );
57
+ &.k-active,
58
+ &.k-selected {
59
+ color: k-color(#{$name}-on-surface);
39
60
  }
61
+ }
62
+ }
40
63
 
41
- // Selected state
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
- @include box-shadow( $kendo-button-selected-shadow );
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
- // Disabled state
47
- &:disabled,
48
- &.k-disabled {
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
- // The "base" case can be deleted once we
60
- // stop supporting the old color system.
61
- @if $name == "base" {
62
- color: if($kendo-enable-color-system, k-color( base-on-surface ), $kendo-button-text)
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: if($kendo-enable-color-system, k-color( #{$name}-on-surface ), $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
- // The "base" case can be deleted once we
75
- // stop supporting the old color system.
76
- @if $name == "base" {
77
- color: if($kendo-enable-color-system, k-color( base-on-surface ), $kendo-button-text)
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: if($kendo-enable-color-system, k-color( #{$name}-on-surface ), $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(4) !default;
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(4) !default;
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: k-spacing(4) !default;
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(4) !default;
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(1.5) !default;
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: k-spacing(2) !default;
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(2.5) !default;
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: math.div( 20, 14 ) !default;
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: math.div( 20, 14 ) !default;
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: math.div( 20, 14 ) !default;
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: math.div( 20, 14 ) !default;
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: map.merge(
112
- $kendo-theme-colors,
113
- ( "base": $kendo-base-bg )
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: if($kendo-enable-color-system, k-color( base ), $kendo-base-bg) !default;
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: if($kendo-enable-color-system, k-color( on-base ), $kendo-base-text) !default;
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: k-elevation(2) !default;
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: if($kendo-enable-color-system, k-color( base-hover ), null) !default;
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: if($kendo-enable-color-system, k-color( base-hover ), null) !default;
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: $kendo-button-shadow !default;
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: if($kendo-enable-color-system, k-color( base-active ), $kendo-base-bg) !default;
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: if($kendo-enable-color-system, k-color( on-base ), $kendo-base-text) !default;
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: if($kendo-enable-color-system, k-color( base-active ), null) !default;
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: k-elevation(6) !default;
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: $kendo-button-shadow !default;
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: if($kendo-enable-color-system, k-color( base-hover ), null) !default;
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: null !default;
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: if($kendo-enable-color-system, k-color( base-hover ), null) !default;
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: k-elevation(3) !default;
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: if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 9%, transparent), k-try-shade( $kendo-body-bg, 12% )) !default;
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: if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 32%, transparent), $kendo-disabled-text) !default;
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: if($kendo-enable-color-system, transparent, $kendo-button-disabled-bg) !default;
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: .155 !default; // equal to 10% of black
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
- .k-title,
12
- .k-calendar-title {
13
- font-weight: 500;
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
- @include fill(
16
- $kendo-calendar-cell-hover-text,
17
- $kendo-calendar-cell-hover-bg,
18
- $kendo-calendar-cell-hover-border
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
- .k-selected.k-focus .k-link {
22
- @include fill(
23
- $kendo-calendar-cell-selected-text,
24
- if($kendo-enable-color-system, $kendo-calendar-cell-selected-bg, k-try-tint($kendo-calendar-cell-selected-bg)),
25
- $kendo-calendar-cell-selected-border
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
  }