@progress/kendo-theme-classic 4.43.1-dev.3 → 4.43.1-dev.7

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 (135) hide show
  1. package/README.md +5 -8
  2. package/dist/all.css +2134 -1548
  3. package/dist/all.scss +2410 -2314
  4. package/modules/@progress/kendo-theme-default/package.json +2 -2
  5. package/modules/@progress/kendo-theme-default/scss/adaptive/_layout.scss +40 -86
  6. package/modules/@progress/kendo-theme-default/scss/adaptive/_theme.scss +0 -9
  7. package/modules/@progress/kendo-theme-default/scss/appbar/_layout.scss +13 -0
  8. package/modules/@progress/kendo-theme-default/scss/appbar/_variables.scss +1 -1
  9. package/modules/@progress/kendo-theme-default/scss/autocomplete/_layout.scss +4 -4
  10. package/modules/@progress/kendo-theme-default/scss/autocomplete/_theme.scss +20 -39
  11. package/modules/@progress/kendo-theme-default/scss/autocomplete/_variables.scss +0 -19
  12. package/modules/@progress/kendo-theme-default/scss/avatar/_variables.scss +11 -1
  13. package/modules/@progress/kendo-theme-default/scss/button/_layout.scss +77 -101
  14. package/modules/@progress/kendo-theme-default/scss/button/_theme.scss +177 -112
  15. package/modules/@progress/kendo-theme-default/scss/button/_variables.scss +77 -11
  16. package/modules/@progress/kendo-theme-default/scss/calendar/_layout.scss +2 -14
  17. package/modules/@progress/kendo-theme-default/scss/card/_variables.scss +4 -4
  18. package/modules/@progress/kendo-theme-default/scss/chat/_layout.scss +9 -9
  19. package/modules/@progress/kendo-theme-default/scss/chat/_theme.scss +0 -21
  20. package/modules/@progress/kendo-theme-default/scss/chat/_variables.scss +0 -7
  21. package/modules/@progress/kendo-theme-default/scss/checkbox/_index.scss +1 -0
  22. package/modules/@progress/kendo-theme-default/scss/checkbox/_layout.scss +80 -146
  23. package/modules/@progress/kendo-theme-default/scss/checkbox/_theme.scss +6 -2
  24. package/modules/@progress/kendo-theme-default/scss/checkbox/_variables.scss +87 -18
  25. package/modules/@progress/kendo-theme-default/scss/color-preview/_layout.scss +49 -7
  26. package/modules/@progress/kendo-theme-default/scss/color-preview/_theme.scss +0 -14
  27. package/modules/@progress/kendo-theme-default/scss/coloreditor/_layout.scss +5 -1
  28. package/modules/@progress/kendo-theme-default/scss/coloreditor/_variables.scss +3 -3
  29. package/modules/@progress/kendo-theme-default/scss/colorgradient/_layout.scss +0 -4
  30. package/modules/@progress/kendo-theme-default/scss/colorpicker/_layout.scss +6 -0
  31. package/modules/@progress/kendo-theme-default/scss/combobox/_layout.scss +22 -29
  32. package/modules/@progress/kendo-theme-default/scss/combobox/_theme.scss +59 -99
  33. package/modules/@progress/kendo-theme-default/scss/combobox/_variables.scss +1 -32
  34. package/modules/@progress/kendo-theme-default/scss/common/_loading.scss +1 -13
  35. package/modules/@progress/kendo-theme-default/scss/daterangepicker/_index.scss +10 -0
  36. package/modules/@progress/kendo-theme-default/scss/daterangepicker/_layout.scss +27 -0
  37. package/modules/@progress/kendo-theme-default/scss/daterangepicker/_theme.scss +3 -0
  38. package/modules/@progress/kendo-theme-default/scss/daterangepicker/_variables.scss +1 -0
  39. package/modules/@progress/kendo-theme-default/scss/dropdowngrid/_layout.scss +1 -0
  40. package/modules/@progress/kendo-theme-default/scss/dropdownlist/_layout.scss +37 -55
  41. package/modules/@progress/kendo-theme-default/scss/dropdownlist/_theme.scss +33 -75
  42. package/modules/@progress/kendo-theme-default/scss/editor/_layout.scss +7 -22
  43. package/modules/@progress/kendo-theme-default/scss/forms/_layout.scss +6 -12
  44. package/modules/@progress/kendo-theme-default/scss/gantt/_layout.scss +1 -1
  45. package/modules/@progress/kendo-theme-default/scss/grid/_layout.scss +128 -97
  46. package/modules/@progress/kendo-theme-default/scss/grid/_theme.scss +0 -6
  47. package/modules/@progress/kendo-theme-default/scss/grid/_variables.scss +7 -9
  48. package/modules/@progress/kendo-theme-default/scss/imageeditor/_layout.scss +4 -8
  49. package/modules/@progress/kendo-theme-default/scss/imageeditor/_variables.scss +1 -0
  50. package/modules/@progress/kendo-theme-default/scss/index.scss +1 -0
  51. package/modules/@progress/kendo-theme-default/scss/input/_layout.scss +1 -1
  52. package/modules/@progress/kendo-theme-default/scss/input/_variables.scss +5 -5
  53. package/modules/@progress/kendo-theme-default/scss/list/_index.scss +1 -0
  54. package/modules/@progress/kendo-theme-default/scss/list/_layout.scss +16 -51
  55. package/modules/@progress/kendo-theme-default/scss/list/_theme.scss +4 -3
  56. package/modules/@progress/kendo-theme-default/scss/list/_variables.scss +66 -6
  57. package/modules/@progress/kendo-theme-default/scss/listbox/_layout.scss +9 -0
  58. package/modules/@progress/kendo-theme-default/scss/listbox/_variables.scss +1 -1
  59. package/modules/@progress/kendo-theme-default/scss/listview/_layout.scss +2 -9
  60. package/modules/@progress/kendo-theme-default/scss/map/_layout.scss +7 -5
  61. package/modules/@progress/kendo-theme-default/scss/maskedtextbox/_layout.scss +17 -31
  62. package/modules/@progress/kendo-theme-default/scss/maskedtextbox/_theme.scss +44 -14
  63. package/modules/@progress/kendo-theme-default/scss/mediaplayer/_layout.scss +13 -1
  64. package/modules/@progress/kendo-theme-default/scss/menu/_layout.scss +48 -5
  65. package/modules/@progress/kendo-theme-default/scss/menu/_theme.scss +6 -2
  66. package/modules/@progress/kendo-theme-default/scss/menu/_variables.scss +1 -1
  67. package/modules/@progress/kendo-theme-default/scss/multiselect/_layout.scss +2 -2
  68. package/modules/@progress/kendo-theme-default/scss/numerictextbox/_layout.scss +9 -27
  69. package/modules/@progress/kendo-theme-default/scss/numerictextbox/_theme.scss +64 -84
  70. package/modules/@progress/kendo-theme-default/scss/numerictextbox/_variables.scss +0 -27
  71. package/modules/@progress/kendo-theme-default/scss/orgchart/_variables.scss +2 -2
  72. package/modules/@progress/kendo-theme-default/scss/pager/_variables.scss +1 -1
  73. package/modules/@progress/kendo-theme-default/scss/pdf-viewer/_layout.scss +20 -29
  74. package/modules/@progress/kendo-theme-default/scss/pdf-viewer/_variables.scss +2 -5
  75. package/modules/@progress/kendo-theme-default/scss/radio/_index.scss +1 -0
  76. package/modules/@progress/kendo-theme-default/scss/radio/_layout.scss +90 -136
  77. package/modules/@progress/kendo-theme-default/scss/radio/_theme.scss +2 -2
  78. package/modules/@progress/kendo-theme-default/scss/radio/_variables.scss +88 -26
  79. package/modules/@progress/kendo-theme-default/scss/scheduler/_layout.scss +26 -13
  80. package/modules/@progress/kendo-theme-default/scss/searchbox/_layout.scss +22 -8
  81. package/modules/@progress/kendo-theme-default/scss/searchbox/_theme.scss +16 -25
  82. package/modules/@progress/kendo-theme-default/scss/searchbox/_variables.scss +0 -20
  83. package/modules/@progress/kendo-theme-default/scss/skeleton/_layout.scss +1 -1
  84. package/modules/@progress/kendo-theme-default/scss/slider/_layout.scss +69 -146
  85. package/modules/@progress/kendo-theme-default/scss/slider/_theme.scss +0 -6
  86. package/modules/@progress/kendo-theme-default/scss/spreadsheet/_layout.scss +32 -23
  87. package/modules/@progress/kendo-theme-default/scss/table/_layout.scss +29 -6
  88. package/modules/@progress/kendo-theme-default/scss/table/_theme.scss +3 -2
  89. package/modules/@progress/kendo-theme-default/scss/table/_variables.scss +3 -3
  90. package/modules/@progress/kendo-theme-default/scss/tabstrip/_layout.scss +5 -1
  91. package/modules/@progress/kendo-theme-default/scss/textarea/_layout.scss +1 -1
  92. package/modules/@progress/kendo-theme-default/scss/timeselector/_layout.scss +3 -2
  93. package/modules/@progress/kendo-theme-default/scss/toolbar/_layout.scss +37 -2
  94. package/modules/@progress/kendo-theme-default/scss/toolbar/_theme.scss +35 -7
  95. package/modules/@progress/kendo-theme-default/scss/treelist/_layout.scss +4 -0
  96. package/modules/@progress/kendo-theme-default/scss/treeview/_layout.scss +130 -116
  97. package/modules/@progress/kendo-theme-default/scss/treeview/_theme.scss +36 -25
  98. package/modules/@progress/kendo-theme-default/scss/treeview/_variables.scss +67 -13
  99. package/modules/@progress/kendo-theme-default/scss/typography/_variables.scss +3 -3
  100. package/modules/@progress/kendo-theme-default/scss/window/_layout.scss +2 -2
  101. package/modules/@progress/kendo-theme-default/scss/window/_variables.scss +1 -1
  102. package/package.json +3 -3
  103. package/scss/appbar/_variables.scss +1 -1
  104. package/scss/autocomplete/_variables.scss +0 -19
  105. package/scss/avatar/_variables.scss +13 -2
  106. package/scss/button/_variables.scss +84 -18
  107. package/scss/card/_variables.scss +4 -4
  108. package/scss/chat/_variables.scss +0 -7
  109. package/scss/checkbox/_index.scss +1 -0
  110. package/scss/checkbox/_variables.scss +88 -19
  111. package/scss/coloreditor/_variables.scss +3 -3
  112. package/scss/combobox/_variables.scss +1 -32
  113. package/scss/daterangepicker/_index.scss +10 -0
  114. package/scss/daterangepicker/_layout.scss +1 -0
  115. package/scss/daterangepicker/_theme.scss +1 -0
  116. package/scss/daterangepicker/_variables.scss +1 -0
  117. package/scss/fab/index.md +0 -0
  118. package/scss/grid/_variables.scss +7 -9
  119. package/scss/imageeditor/_variables.scss +1 -0
  120. package/scss/index.scss +1 -0
  121. package/scss/input/_variables.scss +5 -5
  122. package/scss/list/_index.scss +1 -0
  123. package/scss/list/_variables.scss +66 -6
  124. package/scss/listbox/_variables.scss +1 -1
  125. package/scss/menu/_variables.scss +1 -1
  126. package/scss/numerictextbox/_variables.scss +0 -27
  127. package/scss/orgchart/_variables.scss +2 -2
  128. package/scss/pager/_variables.scss +1 -1
  129. package/scss/pdf-viewer/_variables.scss +2 -5
  130. package/scss/radio/_index.scss +1 -0
  131. package/scss/radio/_variables.scss +86 -27
  132. package/scss/searchbox/_variables.scss +0 -20
  133. package/scss/table/_variables.scss +3 -3
  134. package/scss/treeview/_variables.scss +70 -16
  135. package/scss/typography/_variables.scss +3 -3
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-theme-default",
3
3
  "description": "SASS resources for the default Kendo UI theme",
4
- "version": "4.43.1-dev.3",
4
+ "version": "4.43.1-dev.7",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -47,5 +47,5 @@
47
47
  "dart:flat": "gulp dart:flat",
48
48
  "prepublishOnly": "echo 'no prebublish for default theme'"
49
49
  },
50
- "gitHead": "17b6139d64d5dab2c8687e0f2e50fda466679766"
50
+ "gitHead": "634466e18a3f771f8e1da5dc5efdefca1f4fd344"
51
51
  }
@@ -83,14 +83,6 @@
83
83
  }
84
84
  }
85
85
 
86
- .k-grid-filter-menu {
87
-
88
- .k-filter-selected-items {
89
- margin: 1em;
90
- font-weight: normal;
91
- }
92
- }
93
-
94
86
  .k-grid-edit-form {
95
87
 
96
88
  .k-popup-edit-form,
@@ -99,10 +91,6 @@
99
91
  min-width: auto;
100
92
  }
101
93
  }
102
-
103
- .k-grid .k-grid-search {
104
- width: 100%;
105
- }
106
94
  }
107
95
 
108
96
  .k-grid.k-grid-mobile {
@@ -369,39 +357,18 @@
369
357
 
370
358
  .k-pane-wrapper {
371
359
 
372
- .k-grid-edit-form,
373
- .k-grid-column-menu,
374
- .k-grid-filter-menu,
375
- .k-scheduler-edit-form {
376
-
377
- > .k-header {
378
- display: flex;
379
- justify-content: space-between;
380
- padding: .3em .6em;
381
- width: auto;
382
- line-height: 2em;
383
-
384
- .k-header-done,
385
- .k-header-cancel {
386
- display: flex;
387
- flex-direction: row;
388
- align-items: center;
389
-
390
- .k-icon {
391
- font-size: 1.5em;
392
- }
393
- }
394
- }
360
+ .k-appbar {
361
+ padding: map-get( $spacing, 1 );
395
362
  }
396
363
 
397
364
  .k-list-title,
398
- .k-filter-help-text,
399
- .k-list-group-header {
365
+ .k-filter-help-text {
400
366
  padding: $listgroup-item-padding-y $listgroup-item-padding-x;
401
367
  display: block;
402
368
  }
403
369
 
404
- .k-list-group-header {
370
+ .k-listgroup-title {
371
+ padding: $listgroup-item-padding-y $listgroup-item-padding-x;
405
372
  font-weight: bold;
406
373
  text-transform: uppercase;
407
374
  }
@@ -413,31 +380,56 @@
413
380
  }
414
381
  }
415
382
  .k-listgroup + .k-listgroup {
416
- margin-top: 2em;
383
+ margin-top: map-get( $spacing, 4 );
417
384
  }
418
385
 
419
386
  // Column menu
420
387
  .k-column-menu {
388
+ padding: map-get( $spacing, 2 );
389
+ display: flex;
390
+ flex-flow: column nowrap;
391
+ gap: map-get( $spacing, 2 );
421
392
 
422
393
  .k-filter-item .k-filterable * {
423
394
  pointer-events: none;
424
395
  }
396
+
397
+ .k-list-title,
398
+ .k-listgroup-title {
399
+ padding: 0;
400
+ }
401
+
402
+ .k-listgroup {
403
+ margin-inline: -#{map-get( $spacing, 2 )};
404
+ }
425
405
  }
426
406
 
427
407
  // Filter menu
428
408
  .k-filter-menu {
409
+ padding: map-get( $spacing, 2 );
410
+ display: flex;
411
+ flex-flow: column nowrap;
412
+ gap: map-get( $spacing, 2 );
429
413
 
430
- .k-space-right {
431
- margin: .5em 10px;
432
- width: auto;
414
+ .k-list-title {
415
+ padding: 0;
416
+ }
417
+
418
+ .k-list-filter {
419
+ padding: 0;
433
420
  display: flex;
434
- align-items: center;
421
+ flex-flow: column nowrap;
422
+ gap: inherit;
435
423
  }
436
424
 
437
425
  .k-filter-tools {
438
- margin: 1em;
439
426
  display: flex;
440
- justify-content: space-between;
427
+ flex-flow: row nowrap;
428
+ gap: inherit;
429
+ }
430
+
431
+ .k-listgroup {
432
+ margin-inline: -#{map-get( $spacing, 2 )};
441
433
  }
442
434
  }
443
435
 
@@ -461,7 +453,6 @@
461
453
  }
462
454
 
463
455
  // Pager
464
-
465
456
  .k-pager-wrap.k-pager-sm {
466
457
  justify-content: center;
467
458
 
@@ -471,47 +462,14 @@
471
462
 
472
463
  }
473
464
 
474
- // IE
475
-
476
- .k-ie & {
477
-
478
- .k-scheduler {
479
- .k-scheduler-toolbar,
480
- .k-scheduler-footer {
481
- line-height: 2em;
482
- }
483
- }
484
-
485
- .k-grid {
486
-
487
- .k-icon {
488
- text-indent: 0;
489
- }
490
- }
491
- }
492
-
493
465
  // RTL
494
-
495
466
  .k-rtl &,
496
467
  &[dir="rtl"],
497
468
  [dir="rtl"] & {
498
469
 
499
- .k-grid-edit-form,
500
- .k-grid-column-menu,
501
- .k-grid-filter-menu,
502
- .k-scheduler-edit-form {
503
-
504
- > .k-header {
505
- flex-direction: row-reverse;
506
- }
507
- }
508
-
509
- .k-filter-menu {
510
-
511
- .k-space-right > .k-i-zoom {
512
- left: 15px;
513
- right: auto;
514
- }
470
+ .k-header-cancel .k-i-arrow-chevron-left,
471
+ .k-listgroup-item .k-select .k-i-arrow-chevron-right {
472
+ transform: scaleX( -1 );
515
473
  }
516
474
 
517
475
  .k-scheduler-mobile {
@@ -533,10 +491,6 @@
533
491
  margin-right: 0;
534
492
  }
535
493
  }
536
-
537
- .k-scheduler-edit-form .k-item .k-i-arrow-chevron-right {
538
- transform: scaleX(-1);
539
- }
540
494
  }
541
495
  }
542
496
  }
@@ -66,15 +66,6 @@
66
66
  .k-grid-filter-menu,
67
67
  .k-scheduler-edit-form {
68
68
 
69
- .k-header {
70
- color: $adaptive-menu-text;
71
- background-color: $adaptive-menu-bg;
72
-
73
- .k-link {
74
- color: inherit;
75
- }
76
- }
77
-
78
69
  .k-item,
79
70
  .k-link {
80
71
  color: $base-text;
@@ -50,6 +50,19 @@
50
50
  border-width: 0 0 0 1px;
51
51
  display: inline-block;
52
52
  }
53
+
54
+
55
+ // Appbar child components
56
+ .k-textbox,
57
+ .k-combobox,
58
+ .k-dropdown,
59
+ .k-searchbox,
60
+ .k-numerictextbox,
61
+ .k-datepicker,
62
+ .k-timepicker,
63
+ .k-datetimepicker {
64
+ width: 10em;
65
+ }
53
66
  }
54
67
 
55
68
  .k-appbar-static {
@@ -2,7 +2,7 @@
2
2
  $appbar-margin-y: null !default;
3
3
  $appbar-margin-x: null !default;
4
4
  $appbar-padding-y: map-get( $spacing, 2 ) !default;
5
- $appbar-padding-x: map-get( $spacing, 4 ) !default;
5
+ $appbar-padding-x: map-get( $spacing, 2 ) !default;
6
6
  $appbar-border-width: 0px !default;
7
7
 
8
8
  $appbar-zindex: 1000 !default;
@@ -6,19 +6,19 @@
6
6
  width: $input-default-width;
7
7
  border-width: $input-border-width;
8
8
  border-style: solid;
9
- outline: 0;
10
9
  box-sizing: border-box;
10
+ outline: 0;
11
11
  font-family: $input-font-family;
12
12
  font-size: $input-font-size;
13
13
  line-height: $input-line-height;
14
+ text-align: start;
14
15
  white-space: nowrap;
15
16
  display: inline-flex;
16
17
  flex-flow: row nowrap;
17
- align-items: stretch;
18
18
  vertical-align: middle;
19
- transition: all .1s ease; // sass-lint:disable-block no-transition-all
20
19
  position: relative;
21
- cursor: default;
20
+ overflow: hidden;
21
+ transition: all .1s ease; // sass-lint:disable-line no-transition-all
22
22
  -webkit-touch-callout: none;
23
23
  -webkit-tap-highlight-color: $rgba-transparent;
24
24
 
@@ -1,76 +1,57 @@
1
- @include exports("autocomplete/theme") {
1
+ @include exports( "autocomplete/theme" ) {
2
2
 
3
- // Remove first selector when https://github.com/telerik/kendo-angular-dropdowns/issues/656 is done.
4
- .k-autocomplete.k-header,
3
+ // Autocomplete
5
4
  .k-autocomplete {
6
5
  @include fill(
7
- $autocomplete-text,
8
- $autocomplete-bg,
9
- $autocomplete-border
6
+ $input-text,
7
+ $input-bg,
8
+ $input-border
10
9
  );
11
- @include box-shadow( $autocomplete-shadow );
12
10
 
13
11
  // Hover state
14
12
  &:hover,
15
13
  &.k-state-hover {
16
14
  @include fill(
17
- $autocomplete-hovered-text,
18
- $autocomplete-hovered-bg,
19
- $autocomplete-hovered-border
15
+ $input-hovered-text,
16
+ $input-hovered-bg,
17
+ $input-hovered-border
20
18
  );
21
- @include box-shadow( $autocomplete-hovered-shadow );
22
19
  }
23
20
 
24
21
  // Focus state
25
- // &:focus-within,
26
- &.k-state-focused,
22
+ &:focus,
27
23
  &.k-state-focus {
28
24
  @include fill(
29
- $autocomplete-focused-text,
30
- $autocomplete-focused-bg,
31
- $autocomplete-focused-border
25
+ $input-focused-text,
26
+ $input-focused-bg,
27
+ $input-focused-border
32
28
  );
33
- @include box-shadow( $autocomplete-focused-shadow );
29
+ @include box-shadow( $input-focused-shadow );
34
30
  }
35
31
  &:focus-within {
36
32
  @include fill(
37
- $autocomplete-focused-text,
38
- $autocomplete-focused-bg,
39
- $autocomplete-focused-border
33
+ $input-focused-text,
34
+ $input-focused-bg,
35
+ $input-focused-border
40
36
  );
41
- @include box-shadow( $autocomplete-focused-shadow );
37
+ @include box-shadow( $input-focused-shadow );
42
38
  }
43
39
 
44
- // Disabled state
45
- &:disabled,
46
- &.k-state-disabled {
47
- @include fill(
48
- $autocomplete-disabled-text,
49
- $autocomplete-disabled-bg,
50
- $autocomplete-disabled-border
51
- );
52
- @include box-shadow( $autocomplete-disabled-shadow );
53
- }
54
40
 
55
41
  // Invalid state
56
42
  &.k-invalid,
57
- &.k-state-invalid,
58
- &.ng-invalid.ng-touched,
59
- &.ng-invalid.ng-dirty {
43
+ &.ng-invalid,
44
+ &.k-state-invalid {
60
45
  border-color: $invalid-border;
61
46
 
62
47
  .k-input-validation-icon {
63
48
  color: $invalid-text;
64
49
  }
65
50
 
66
- // &:focus-within,
67
- &.k-state-focused,
51
+ &:focus-within,
68
52
  &.k-state-focus {
69
53
  @include box-shadow($invalid-shadow);
70
54
  }
71
- &:focus-within {
72
- @include box-shadow($invalid-shadow);
73
- }
74
55
  }
75
56
  }
76
57
 
@@ -1,20 +1 @@
1
1
  // Autocomplete
2
- $autocomplete-bg: $input-bg !default;
3
- $autocomplete-text: $input-text !default;
4
- $autocomplete-border: $input-border !default;
5
- $autocomplete-shadow: $input-shadow !default;
6
-
7
- $autocomplete-hovered-bg: $input-hovered-bg !default;
8
- $autocomplete-hovered-text: $input-hovered-text !default;
9
- $autocomplete-hovered-border: $input-hovered-border !default;
10
- $autocomplete-hovered-shadow: $input-hovered-shadow !default;
11
-
12
- $autocomplete-focused-bg: $input-focused-bg !default;
13
- $autocomplete-focused-text: $input-focused-text !default;
14
- $autocomplete-focused-border: $input-focused-border !default;
15
- $autocomplete-focused-shadow: $input-focused-shadow !default;
16
-
17
- $autocomplete-disabled-bg: null !default;
18
- $autocomplete-disabled-text: null !default;
19
- $autocomplete-disabled-border: null !default;
20
- $autocomplete-disabled-shadow: null !default;
@@ -1,12 +1,22 @@
1
1
  // Avatar
2
+
3
+ /// Border width of the avatar.
4
+ /// @group avatar
2
5
  $avatar-border-width: 1px !default;
3
6
  $avatar-border-radius: 2px !default;
4
7
 
8
+ /// Font family of the avatar.
9
+ /// @group avatar
5
10
  $avatar-font-family: $font-family !default;
11
+ /// Font size of the avatar.
12
+ /// @group avatar
6
13
  $avatar-font-size: $font-size !default;
14
+ /// Line height of the avatar.
15
+ /// @group avatar
7
16
  $avatar-line-height: $line-height !default;
8
17
 
9
-
18
+ /// The sizes of the avatar.
19
+ /// @group avatar
10
20
  $avatar-sizes: (
11
21
  sm: map-get( $spacing, 4 ),
12
22
  md: map-get( $spacing, 8 ),
@@ -64,6 +64,21 @@
64
64
  .k-button .k-button-text {}
65
65
 
66
66
 
67
+ // Button arrow
68
+ .k-button-arrow {
69
+ padding-left: $button-arrow-padding-y;
70
+ padding-right: $button-arrow-padding-y;
71
+ flex: none;
72
+ display: inline-flex;
73
+ align-items: center;
74
+ justify-content: center;
75
+ }
76
+ .k-button > .k-button-arrow {
77
+ margin-inline-start: -$button-padding-y;
78
+ margin-inline-end: -$button-padding-x;
79
+ }
80
+
81
+
67
82
  // Text button
68
83
  .k-text-button {
69
84
 
@@ -78,8 +93,6 @@
78
93
  .k-icon-button,
79
94
  .k-button.k-button-icon {
80
95
  padding: $button-padding-y;
81
- width: $button-calc-size;
82
- height: $button-calc-size;
83
96
  gap: 0;
84
97
 
85
98
  > .k-text,
@@ -89,8 +102,14 @@
89
102
 
90
103
  .k-button-icon {
91
104
  margin: 0;
105
+ min-width: calc( #{$button-font-size} * #{$button-line-height} );
106
+ min-height: calc( #{$button-font-size} * #{$button-line-height} );
92
107
  }
93
108
  }
109
+ .k-icon-button > .k-button-arrow {
110
+ margin-inline-start: 0;
111
+ margin-inline-end: -$button-padding-y;
112
+ }
94
113
  // TODO: REMOVE
95
114
  .k-button.k-button-icon {
96
115
  padding: $button-padding-y;
@@ -130,50 +149,51 @@
130
149
  -webkit-touch-callout: none;
131
150
  -webkit-tap-highlight-color: $rgba-transparent;
132
151
 
133
- .k-button {
134
- @include border-radius( 0 );
135
- }
136
- .k-button ~ .k-button {
152
+ > .k-button + .k-button {
137
153
  margin-inline-start: if( $button-border-width == 0, null, -$button-border-width );
138
154
  }
139
155
 
140
- .k-button:hover,
141
- .k-button.k-state-hover,
142
- .k-button:active,
143
- .k-button.k-state-active,
144
- .k-button.k-state-selected,
145
- .k-button:focus,
146
- .k-button.k-state-focus {
156
+ > .k-button:hover,
157
+ > .k-button.k-state-hover,
158
+ > .k-button:focus,
159
+ > .k-button.k-state-focus,
160
+ > .k-button:active,
161
+ > .k-button.k-state-active,
162
+ > .k-button.k-state-selected {
147
163
  z-index: 2;
148
164
  }
149
165
 
150
- .k-group-start,
151
- .k-button:first-child {
152
- @include border-left-radius( $button-border-radius );
166
+ .k-button:not(:first-child):not(:last-child) {
167
+ border-start-end-radius: 0;
168
+ border-end-end-radius: 0;
169
+ border-start-start-radius: 0;
170
+ border-end-start-radius: 0;
171
+ }
172
+ > .k-button:first-child:not(:only-child) {
173
+ border-start-end-radius: 0;
174
+ border-end-end-radius: 0;
153
175
  }
154
- .k-group-end,
155
- .k-button:last-child {
156
- @include border-right-radius( $button-border-radius );
176
+ > .k-button:last-child:not(:only-child) {
177
+ border-start-start-radius: 0;
178
+ border-end-start-radius: 0;
157
179
  }
158
- .k-group-start.k-group-end,
159
- .k-button:first-child:last-child {
160
- @include border-radius( $button-border-radius );
180
+
181
+ &:disabled,
182
+ &[disabled],
183
+ &.k-disabled,
184
+ &.k-state-disabled {
185
+ opacity: 1;
186
+ filter: none;
161
187
  }
162
188
 
163
189
  }
164
190
 
165
191
  .k-button-group-stretched {
166
- display: flex;
192
+ width: 100%;
167
193
 
168
- .k-button {
169
- display: inline-block;
194
+ > * {
170
195
  flex: 1 0 0%;
171
196
  overflow: hidden;
172
- text-overflow: ellipsis;
173
-
174
- > .k-icon {
175
- vertical-align: text-bottom;
176
- }
177
197
  }
178
198
  }
179
199
 
@@ -187,32 +207,13 @@
187
207
  flex-flow: row nowrap;
188
208
  vertical-align: middle;
189
209
 
190
- .k-button {
191
- @include border-radius( 0 );
192
- }
193
-
194
- // .k-button
195
- > .k-button:first-child {
196
- @include border-left-radius( $button-border-radius );
197
- }
198
- > .k-split-button-arrow,
199
- > .k-button:last-child {
200
- @include border-right-radius( $button-border-radius );
201
- margin-inline-start: if( $button-border-width == 0, null, -$button-border-width );
202
- padding: $button-padding-y;
210
+ .k-split-button-arrow {
211
+ padding: $button-arrow-padding-y $button-arrow-padding-x;
203
212
  width: auto;
204
213
  flex: none;
205
- }
206
214
 
207
- &[dir="rtl"] {
208
- // k-button
209
- > .k-button:first-child {
210
- @include border-left-radius( 0 );
211
- @include border-right-radius( $button-border-radius );
212
- }
213
- > .k-button:last-child {
214
- @include border-right-radius( 0 );
215
- @include border-left-radius( $button-border-radius );
215
+ .k-button-icon {
216
+ min-width: 0;
216
217
  }
217
218
  }
218
219
  }
@@ -256,13 +257,29 @@
256
257
  .k-button-outline {
257
258
  @include box-shadow( none );
258
259
  color: inherit;
259
- background: none;
260
+ background-color: transparent;
261
+ background-image: none !important; // sass-lint:disable-line no-important
260
262
  }
261
263
  .k-button.k-outline {
262
264
  @extend .k-button-outline;
263
265
  }
264
266
 
265
267
 
268
+ // Link button
269
+ .k-button-link {
270
+ @include box-shadow( none );
271
+ border-color: transparent !important; // sass-lint:disable-line no-important
272
+ color: inherit;
273
+ background-color: transparent !important; // sass-lint:disable-line no-important
274
+ background-image: none !important; // sass-lint:disable-line no-important
275
+ text-decoration: none;
276
+ }
277
+ .k-button-link:hover,
278
+ .k-button-link.k-state-hover {
279
+ text-decoration: underline;
280
+ }
281
+
282
+
266
283
  // Clear button
267
284
  .k-button-clear {
268
285
  border-color: transparent !important; // sass-lint:disable-line no-important
@@ -272,46 +289,11 @@
272
289
  }
273
290
 
274
291
 
275
- // RTL
276
- .k-rtl {
277
-
278
- // Button group
279
- .k-button-group {
280
-
281
- .k-button {
282
- @include border-radius( 0 );
283
- }
284
-
285
- .k-group-start,
286
- .k-button:first-child {
287
- @include border-right-radius( $button-border-radius );
288
- }
289
- .k-group-end,
290
- .k-button:last-child {
291
- @include border-left-radius( $button-border-radius );
292
- }
293
- .k-group-start.k-group-end,
294
- .k-button:first-child:last-child {
295
- @include border-radius( $button-border-radius );
296
- }
297
-
298
- }
299
-
300
- // Split button
301
- .k-split-button {
302
-
303
- .k-button {
304
- @include border-radius( 0 );
305
- }
306
-
307
- // k-button
308
- > .k-button:first-child {
309
- @include border-right-radius( $button-border-radius );
310
- }
311
- > .k-split-button-arrow,
312
- > .k-button:last-child {
313
- @include border-left-radius( $button-border-radius );
314
- }
292
+ // IE
293
+ .k-ie .k-button-group,
294
+ .k-ie .k-split-button {
295
+ .k-button {
296
+ @include border-radius( 0 );
315
297
  }
316
298
  }
317
299
 
@@ -396,7 +378,7 @@
396
378
  .k-button {
397
379
 
398
380
  &::after {
399
- @include border-radius( $button-border-radius );
381
+ @include border-radius( inherit );
400
382
  content: "";
401
383
  opacity: 0;
402
384
  display: none;
@@ -419,12 +401,6 @@
419
401
 
420
402
  .k-ie {
421
403
 
422
- .k-button,
423
- .k-button-group {
424
- display: inline-block;
425
- overflow: visible; // IE9
426
- }
427
-
428
404
  .k-button-icontext {
429
405
 
430
406
  .k-icon,