@progress/kendo-theme-core 14.1.1-dev.3 → 14.2.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -235,4 +235,75 @@
235
235
  // Scheduler edit form
236
236
  .k-scheduler-edit-form {}
237
237
 
238
+
239
+ // Adaptive
240
+ .k-pane-wrapper,
241
+ .k-view {
242
+ @include fill(
243
+ $kendo-scheduler-adaptive-text,
244
+ $kendo-scheduler-adaptive-bg,
245
+ $kendo-scheduler-adaptive-border
246
+ );
247
+ }
248
+
249
+ .k-pane-wrapper .k-pane {
250
+
251
+ > .k-view > .k-content {
252
+ background-position: 50% 50%;
253
+ background-color: $kendo-scheduler-adaptive-content-bg;
254
+ }
255
+ }
256
+
257
+ .k-pane-wrapper .k-pane {
258
+
259
+ .k-scheduler-mobile {
260
+
261
+ .k-nav-current {
262
+ color: $kendo-scheduler-adaptive-current-text;
263
+ }
264
+
265
+ .k-scheduler-times,
266
+ .k-scheduler-header,
267
+ .k-scheduler-groupcolumn,
268
+ .k-mobile-scheduler-agendadate {
269
+ color: $kendo-scheduler-adaptive-base-text;
270
+ }
271
+
272
+ .k-time-period,
273
+ .k-mobile-scheduler-agendaweekday {
274
+ color: $kendo-scheduler-adaptive-subtle-text;
275
+ }
276
+
277
+ .k-scheduler-times,
278
+ .k-scheduler-header,
279
+ .k-scheduler-header-wrap,
280
+ .k-scheduler-datecolumn,
281
+ .k-scheduler-groupcolumn,
282
+ .k-scheduler-group-cell,
283
+ .k-scheduler-header-all-day {
284
+ background-color: $kendo-scheduler-adaptive-content-bg;
285
+ }
286
+
287
+ .k-scheduler-toolbar .k-scheduler-tools > li {
288
+ display: inline-block;
289
+ background-color: inherit;
290
+ }
291
+ }
292
+
293
+ .k-scheduler-edit-form {
294
+
295
+ .k-item,
296
+ .k-link {
297
+ color: k-color(on-app-surface);
298
+ }
299
+
300
+ .k-scheduler-delete,
301
+ .k-scheduler-resetSeries { // stylelint-disable-line
302
+ color: $kendo-scheduler-adaptive-menu-clear-text;
303
+ }
304
+
305
+ }
306
+
307
+ }
308
+
238
309
  }
@@ -103,3 +103,22 @@ $kendo-scheduler-marquee-label-inset-x: null !default;
103
103
  $kendo-scheduler-marquee-label-inset-y: null !default;
104
104
 
105
105
  $kendo-scheduler-header-bg: null !default;
106
+
107
+
108
+ // Adaptive
109
+ $kendo-scheduler-adaptive-bg: null !default;
110
+ $kendo-scheduler-adaptive-text: null !default;
111
+ $kendo-scheduler-adaptive-border: null !default;
112
+
113
+ $kendo-scheduler-adaptive-content-bg: null !default;
114
+
115
+ $kendo-scheduler-adaptive-menu-clear-text: null !default;
116
+
117
+ $kendo-scheduler-adaptive-border-width: null !default;
118
+ $kendo-scheduler-adaptive-font-family: null !default;
119
+ $kendo-scheduler-adaptive-font-size: null !default;
120
+ $kendo-scheduler-adaptive-line-height: null !default;
121
+
122
+ $kendo-scheduler-adaptive-current-text: null !default;
123
+ $kendo-scheduler-adaptive-base-text: null !default;
124
+ $kendo-scheduler-adaptive-subtle-text: null !default;
@@ -122,7 +122,7 @@
122
122
  }
123
123
  .k-draghandle:focus,
124
124
  .k-draghandle:active {
125
- transform: translate(-50%, -50%) scale($kendo-slider-draghandle-active-scale);
125
+ transform: if( $kendo-slider-draghandle-active-scale, translate(-50%, -50%) scale($kendo-slider-draghandle-active-scale), null );
126
126
  }
127
127
 
128
128
  .k-slider-selection {
@@ -151,7 +151,7 @@
151
151
  }
152
152
  .k-draghandle:focus,
153
153
  .k-draghandle:active {
154
- transform: translate(-50%, 50%) scale($kendo-slider-draghandle-active-scale);
154
+ transform: if( $kendo-slider-draghandle-active-scale, translate(-50%, 50%) scale($kendo-slider-draghandle-active-scale), null );
155
155
  }
156
156
 
157
157
  .k-slider-selection {
@@ -24,25 +24,6 @@
24
24
  background-color: $kendo-card-bg;
25
25
  color: $kendo-card-text;
26
26
  }
27
-
28
- .k-card-body {
29
-
30
- // Scrollbar styles for Mozilla
31
- scrollbar-color: $kendo-card-border $kendo-card-bg;
32
-
33
- // Scrollbar styles for Chrome, Safari and Opera
34
- &::-webkit-scrollbar-track {
35
- background: $kendo-card-bg;
36
- }
37
-
38
- &::-webkit-scrollbar-thumb {
39
- background: $kendo-card-border;
40
- }
41
-
42
- &::-webkit-scrollbar-thumb:hover {
43
- background: k-color(border);
44
- }
45
- }
46
27
  }
47
28
 
48
29
  // TODO: remove
@@ -24,4 +24,10 @@
24
24
  background-color: #858585;
25
25
  }
26
26
 
27
+ // native scrollbar
28
+ .k-body {
29
+ scrollbar-width: thin;
30
+ scrollbar-color: #{"color-mix(in srgb, var(--kendo-color-on-app-surface) 35%, transparent)"} var(--kendo-color-surface);
31
+ }
32
+
27
33
  }
@@ -1,468 +0,0 @@
1
- @use "../../color-system/_constants.scss" as *;
2
- @use "../../spacing/index.scss" as *;
3
- @use "./variables.scss" as *;
4
- @use "../toolbar/_variables.scss" as *;
5
- @use "../listgroup/_variables.scss" as *;
6
-
7
- @mixin kendo-adaptive--layout-base() {
8
-
9
- .k-pane-wrapper {
10
- border-width: $kendo-adaptive-border-width;
11
- border-style: solid;
12
- box-sizing: border-box;
13
- outline: 0;
14
- font-family: $kendo-adaptive-font-family;
15
- font-size: $kendo-adaptive-font-size;
16
- line-height: $kendo-adaptive-line-height;
17
- display: block;
18
- position: relative;
19
- -webkit-touch-callout: none;
20
- -webkit-tap-highlight-color: $kendo-color-rgba-transparent;
21
-
22
- .k-pane {
23
- width: 100%;
24
- height: 100%;
25
- user-select: none;
26
- box-sizing: border-box;
27
- font-family: sans-serif;
28
- overflow-x: hidden;
29
- }
30
-
31
- .k-view {
32
- inset-block-start: 0;
33
- inset-inline-start: 0;
34
- position: relative;
35
- border: 0;
36
- box-sizing: border-box;
37
- outline: 0;
38
- font-family: $kendo-adaptive-font-family;
39
- font-size: $kendo-adaptive-font-size;
40
- line-height: $kendo-adaptive-line-height;
41
- display: flex;
42
- height: 100%;
43
- width: 100%;
44
- flex-direction: column;
45
- align-items: stretch;
46
- align-content: stretch;
47
- vertical-align: top;
48
- -webkit-touch-callout: none;
49
- -webkit-tap-highlight-color: $kendo-color-rgba-transparent;
50
- }
51
-
52
- .k-content {
53
- min-height: 1px;
54
- flex: 1;
55
- align-items: stretch;
56
- display: block;
57
- width: auto;
58
- overflow: hidden;
59
- position: relative;
60
- }
61
- }
62
-
63
-
64
-
65
-
66
- // Grid specific styles
67
- .k-pane-wrapper { // stylelint-disable-line
68
-
69
- > div.k-pane {
70
- box-shadow: none;
71
- font-weight: normal;
72
- }
73
-
74
- .k-popup-edit-form,
75
- .k-grid-edit-form,
76
- .k-grid-header-menu,
77
- .k-grid-filter-menu {
78
-
79
- .k-content {
80
- overflow-y: auto;
81
-
82
- > .k-scroll-container {
83
- position: absolute;
84
- width: 100%;
85
- min-height: 100%;
86
- box-sizing: border-box;
87
- }
88
- }
89
- }
90
-
91
- .k-grid-edit-form {
92
-
93
- .k-popup-edit-form,
94
- .k-edit-form-container {
95
- width: auto;
96
- min-width: auto;
97
- }
98
- }
99
- }
100
-
101
- .k-grid.k-grid-mobile {
102
- border-width: 0;
103
- }
104
-
105
- .k-grid-mobile {
106
- .k-resize-handle-inner::before {
107
- content: "\e01e";
108
- position: absolute;
109
- font: 16px/1 "WebComponentsIcons"; // stylelint-disable-line
110
- // The Calc is needed due to the the negative margin
111
- // that removes the double bottom border of the header
112
- inset-block-start: calc(50% - 1px);
113
- inset-inline-start: 50%;
114
- transform: translate(-50%, -50%);
115
- padding: .2em;
116
- }
117
-
118
- .k-header a {
119
- user-select: none;
120
- }
121
- }
122
-
123
-
124
-
125
-
126
- // Scheduler specific styles
127
- .k-pane-wrapper { // stylelint-disable-line
128
-
129
- .k-scheduler-edit-form {
130
-
131
- .k-recur-view {
132
- padding: 0;
133
- flex-direction: column;
134
- align-items: stretch;
135
-
136
- > .k-listgroup-form-row {
137
- margin: 0;
138
- }
139
- }
140
-
141
- .k-recur-items-wrap {
142
- width: 100%;
143
- margin-block: -1px;
144
- margin-inline: 0;
145
- }
146
-
147
- .k-scheduler-recur-end-wrap {
148
- white-space: nowrap;
149
- }
150
- }
151
- }
152
-
153
- .k-scheduler {
154
- &.k-scheduler-mobile {
155
- border-width: 0;
156
- }
157
- }
158
-
159
- .k-scheduler-mobile {
160
-
161
- border-radius: 0;
162
-
163
- th {
164
- font-weight: normal;
165
- }
166
-
167
- .k-event:hover .k-resize-handle {
168
- visibility: hidden;
169
- }
170
-
171
- .k-scheduler-toolbar {
172
- padding-block: $kendo-toolbar-md-padding-y;
173
- padding-inline: $kendo-toolbar-md-padding-x;
174
- border-radius: 0;
175
-
176
- > * {
177
- margin: 0;
178
- }
179
-
180
- &::before {
181
- display: none;
182
- }
183
-
184
- .k-scheduler-navigation {
185
- width: 100%;
186
- display: flex;
187
- flex-flow: row nowrap;
188
- justify-content: space-between;
189
- margin: 0;
190
-
191
- .k-nav-current {
192
- line-height: 1;
193
- display: flex;
194
- flex-flow: column nowrap;
195
- align-items: center;
196
- justify-content: space-evenly;
197
- gap: 0;
198
- }
199
- }
200
-
201
- .k-scheduler-views-wrapper {
202
- .k-views-dropdown {
203
- display: inline-block;
204
- }
205
- }
206
- }
207
-
208
- .k-scheduler-footer {
209
- padding-block: $kendo-toolbar-md-padding-y;
210
- padding-inline: $kendo-toolbar-md-padding-x;
211
- display: flex;
212
- justify-content: space-between;
213
- border-radius: 0;
214
-
215
- > * {
216
- margin: 0;
217
- }
218
-
219
- &::before {
220
- display: none;
221
- }
222
- }
223
-
224
- .k-scheduler-monthview {
225
-
226
- .k-hidden {
227
- height: 40px;
228
- }
229
-
230
- .k-scheduler-table td {
231
- height: 40px;
232
- vertical-align: top;
233
- text-align: center;
234
- }
235
-
236
- .k-events-container {
237
- position: absolute;
238
- text-align: center;
239
- height: 6px;
240
- line-height: 6px;
241
- }
242
-
243
- .k-event {
244
- position: static;
245
- padding: 4px;
246
- border-radius: 50%;
247
- display: inline-block;
248
- width: 4px;
249
- height: 4px;
250
- min-height: 0;
251
- margin: 1px;
252
- }
253
- }
254
-
255
- // Removing the "Days" header from the Mobile Scheduler will break the Web Scheduler
256
- // Thus, the below selector is needed
257
- .k-scheduler-dayview .k-mobile-header {
258
-
259
- &.k-mobile-horizontal-header .k-scheduler-times table tr:first-child {
260
- display: none;
261
- }
262
-
263
- .k-scheduler-header .k-scheduler-date-group {
264
- display: none;
265
- }
266
- }
267
-
268
- .k-scheduler-header-wrap > div {
269
- overflow: visible;
270
- }
271
-
272
- .k-scheduler-agendaview {
273
- .k-mobile-header {
274
- display: none;
275
- }
276
-
277
- .k-scheduler-table {
278
- table-layout: auto;
279
-
280
- .k-scheduler-groupcolumn {
281
- width: 1%;
282
- }
283
-
284
- td {
285
- white-space: normal;
286
- }
287
- }
288
- }
289
-
290
- .k-mobile-header {
291
- .k-scheduler-table td,
292
- .k-scheduler-table th {
293
- height: 1.5em;
294
- }
295
- }
296
-
297
- .k-time-text,
298
- .k-time-period {
299
- display: block;
300
- line-height: 1;
301
- }
302
-
303
- .k-time-period {
304
- font-size: .7em;
305
- }
306
-
307
- .k-scheduler-table td,
308
- .k-scheduler-table th {
309
- height: 2em;
310
- vertical-align: middle;
311
- }
312
-
313
- .k-scheduler-datecolumn-wrap {
314
- display: flex;
315
- align-items: center;
316
- justify-content: space-between;
317
- }
318
-
319
- .k-task {
320
- display: flex;
321
- align-items: center;
322
- gap: .5em;
323
-
324
- .k-scheduler-mark {
325
- border-radius: 50%;
326
- margin: 0;
327
- }
328
-
329
- .k-scheduler-task-text {
330
- flex: 1 1 0%;
331
- }
332
- }
333
-
334
- .k-scheduler-times,
335
- .k-scheduler-agenda {
336
-
337
- .k-scheduler-group-cell,
338
- .k-scheduler-groupcolumn {
339
- vertical-align: top;
340
-
341
- .k-scheduler-group-text {
342
- writing-mode: vertical-lr;
343
- transform: rotate(180deg);
344
- white-space: nowrap;
345
- }
346
- }
347
- }
348
-
349
- .k-scrollbar-h tr + tr .k-scheduler-times {
350
- border-block-end-width: 0;
351
- }
352
- }
353
-
354
-
355
-
356
-
357
- // Common styles for the Adaptive Layout
358
- .k-pane-wrapper { // stylelint-disable-line
359
-
360
- .k-appbar {
361
- padding: k-spacing(1);
362
- }
363
-
364
- .k-list-title,
365
- .k-filter-help-text {
366
- padding-block: $kendo-listgroup-item-padding-y;
367
- padding-inline: $kendo-listgroup-item-padding-x;
368
- display: block;
369
- }
370
-
371
- .k-listgroup-title {
372
- padding-block: $kendo-listgroup-item-padding-y;
373
- padding-inline: $kendo-listgroup-item-padding-x;
374
- font-weight: bold;
375
- text-transform: uppercase;
376
- }
377
-
378
- .k-listgroup {
379
-
380
- .k-listgroup-item {
381
- border-color: inherit;
382
- }
383
- }
384
- .k-listgroup + .k-listgroup {
385
- margin-block-start: k-spacing(4);
386
- }
387
-
388
- // Column menu
389
- .k-column-menu {
390
- padding: k-spacing(2);
391
- display: flex;
392
- flex-flow: column nowrap;
393
- gap: k-spacing(2);
394
-
395
- .k-filter-item .k-filterable * {
396
- pointer-events: none;
397
- }
398
-
399
- .k-list-title,
400
- .k-listgroup-title {
401
- padding: 0;
402
- }
403
-
404
- .k-listgroup {
405
- margin-inline: calc( #{k-spacing(2)} * -1 );
406
- }
407
- }
408
-
409
- // Filter menu
410
- .k-filter-menu {
411
- padding: k-spacing(2);
412
- display: flex;
413
- flex-flow: column nowrap;
414
- gap: k-spacing(2);
415
-
416
- .k-list-title {
417
- padding: 0;
418
- }
419
-
420
- .k-list-filter {
421
- padding: 0;
422
- display: flex;
423
- flex-flow: column nowrap;
424
- gap: inherit;
425
- }
426
-
427
- .k-filter-tools {
428
- display: flex;
429
- flex-flow: row nowrap;
430
- gap: inherit;
431
- }
432
-
433
- .k-listgroup {
434
- margin-inline: calc( #{k-spacing(2)} * -1 );
435
- }
436
- }
437
-
438
- .k-popup-edit-form {
439
-
440
- .k-recur-editor-wrap {
441
- display: flex;
442
- }
443
-
444
- .k-mobiletimezoneeditor {
445
- display: flex;
446
- align-items: center;
447
- justify-content: flex-end;
448
- position: relative;
449
- flex: 1 1 auto;
450
- }
451
- }
452
-
453
- .k-multicheck-wrap.k-listgroup {
454
- overflow-y: auto;
455
- }
456
-
457
- // Pager
458
- .k-pager-wrap.k-pager-sm,
459
- .k-pager.k-pager-sm {
460
- justify-content: center;
461
-
462
- .k-pager-refresh {
463
- display: none;
464
- }
465
-
466
- }
467
- }
468
- }
@@ -1,100 +0,0 @@
1
- @use "../../color-system/_functions.scss" as *;
2
- @use "../../mixins/index.scss" as *;
3
- @use "./variables.scss" as *;
4
-
5
- @mixin kendo-adaptive--theme-base() {
6
-
7
- .k-pane-wrapper,
8
- .k-view {
9
- @include fill(
10
- $kendo-adaptive-text,
11
- $kendo-adaptive-bg,
12
- $kendo-adaptive-border
13
- );
14
- }
15
-
16
- .k-pane-wrapper .k-pane {
17
-
18
- > .k-view > .k-content {
19
- background-position: 50% 50%;
20
- background-color: $kendo-adaptive-content-bg;
21
- }
22
-
23
- .k-grid-mobile {
24
-
25
- .k-column-active + th.k-header {
26
- border-inline-start-color: k-color(on-app-surface);
27
- }
28
-
29
- .k-resize-handle-inner::before {
30
- background-color: k-color(surface);
31
- }
32
- }
33
-
34
- .k-scheduler-mobile {
35
-
36
- .k-nav-current {
37
- color: $kendo-adaptive-scheduler-current-text;
38
- }
39
-
40
- .k-scheduler-times,
41
- .k-scheduler-header,
42
- .k-scheduler-groupcolumn,
43
- .k-mobile-scheduler-agendadate {
44
- color: $kendo-adaptive-scheduler-base-text;
45
- }
46
-
47
- .k-time-period,
48
- .k-mobile-scheduler-agendaweekday {
49
- color: $kendo-adaptive-scheduler-subtle-text;
50
- }
51
-
52
- .k-scheduler-times,
53
- .k-scheduler-header,
54
- .k-scheduler-header-wrap,
55
- .k-scheduler-datecolumn,
56
- .k-scheduler-groupcolumn,
57
- .k-scheduler-group-cell,
58
- .k-scheduler-header-all-day {
59
- background-color: $kendo-adaptive-content-bg;
60
- }
61
-
62
- .k-scheduler-toolbar .k-scheduler-tools > li {
63
- display: inline-block;
64
- background-color: inherit;
65
- }
66
- }
67
-
68
- .k-grid-edit-form,
69
- .k-grid-header-menu,
70
- .k-grid-filter-menu,
71
- .k-scheduler-edit-form {
72
-
73
- .k-item,
74
- .k-link {
75
- color: k-color(on-app-surface);
76
- }
77
-
78
- .k-clear,
79
- .k-select-all,
80
- .k-scheduler-delete,
81
- .k-scheduler-resetSeries { // stylelint-disable-line
82
- color: $kendo-adaptive-menu-clear-text;
83
- }
84
-
85
- }
86
-
87
- .k-column-menu {
88
-
89
- .k-listgroup-item.k-selected {
90
- color: $kendo-adaptive-grid-sort-text;
91
- background: none;
92
- }
93
- .k-listgroup-item.k-selected .k-link {
94
- color: inherit;
95
- }
96
- }
97
-
98
- }
99
-
100
- }