@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
@@ -67,8 +67,9 @@
67
67
  @include border-radius( 0 );
68
68
  margin: 0;
69
69
  padding: $toolbar-padding-y;
70
- width: $toolbar-inner-calc-size;
70
+ width: auto;
71
71
  height: 100%;
72
+ aspect-ratio: 1;
72
73
  border-width: 0;
73
74
  border-color: inherit;
74
75
  box-sizing: border-box;
@@ -100,12 +101,26 @@
100
101
  flex: 1 0 0%;
101
102
  }
102
103
 
104
+
103
105
  // Template
104
106
  .k-toolbar-template {
105
107
  align-self: center;
106
108
  align-items: center;
107
109
  }
108
110
 
111
+
112
+ // Child components
113
+ .k-textbox,
114
+ .k-combobox,
115
+ .k-dropdown,
116
+ .k-searchbox,
117
+ .k-numerictextbox,
118
+ .k-datepicker,
119
+ .k-timepicker,
120
+ .k-datetimepicker {
121
+ width: 10em;
122
+ }
123
+
109
124
  }
110
125
 
111
126
 
@@ -120,6 +135,7 @@
120
135
 
121
136
  // Angular specific
122
137
  kendo-toolbar-renderer {
138
+ display: inline-block;
123
139
  border-color: inherit;
124
140
  }
125
141
 
@@ -127,6 +143,14 @@
127
143
  // Overflow container
128
144
  .k-overflow-container {
129
145
 
146
+ > .k-item {
147
+ border-color: inherit;
148
+ }
149
+
150
+ .k-separator {
151
+ margin: map-get( $spacing, 1 ) 0;
152
+ }
153
+
130
154
  // Group
131
155
  .k-overflow-tool-group {
132
156
  display: block;
@@ -134,13 +158,23 @@
134
158
 
135
159
  // Button
136
160
  .k-overflow-button {
161
+ @include border-radius( 0 );
162
+ padding: $list-item-padding-y $list-item-padding-x;
137
163
  width: 100%;
164
+ border-width: 0;
165
+ color: inherit;
166
+ background-color: transparent;
167
+ background-image: none;
168
+ line-height: inherit;
169
+ display: flex;
170
+ justify-content: flex-start;
138
171
  }
139
172
 
140
173
  // Button group
141
174
  .k-button-group {
175
+ @include box-shadow( none );
142
176
  display: flex;
143
- flex-direction: column;
177
+ flex-flow: column nowrap;
144
178
 
145
179
  .k-button {
146
180
  margin: if( $button-border-width == 0, null, 0);
@@ -200,6 +234,7 @@
200
234
  .k-toolbar {
201
235
  padding: 0;
202
236
  border-width: 0;
237
+ flex-shrink: 1;
203
238
  color: inherit;
204
239
  background: none;
205
240
  }
@@ -11,13 +11,6 @@
11
11
  @include box-shadow( $toolbar-shadow );
12
12
 
13
13
 
14
- // Overflow anchor
15
- .k-overflow-anchor {
16
- color: inherit;
17
- background: transparent;
18
- }
19
-
20
-
21
14
  // Separator
22
15
  .k-separator {
23
16
  border-color: $toolbar-separator-border;
@@ -29,6 +22,41 @@
29
22
 
30
23
  }
31
24
 
25
+
26
+ // Overflow container
27
+ .k-overflow-container {
28
+
29
+ .k-button {
30
+
31
+ // Hover state
32
+ &:hover,
33
+ &.k-state-hover {
34
+ color: $list-item-hovered-text;
35
+ background: $list-item-hovered-bg;
36
+ }
37
+
38
+ // Active state
39
+ &:active,
40
+ &.k-state-active {
41
+ color: $list-item-selected-text;
42
+ background: $list-item-selected-bg;
43
+ }
44
+
45
+ // Button focus state
46
+ .k-button:focus,
47
+ .k-button.k-state-focused {
48
+ box-shadow: $list-item-focused-shadow;
49
+ }
50
+
51
+ // Disabled state
52
+ &:disabled,
53
+ &.k-state-disabled {
54
+ color: inherit;
55
+ }
56
+ }
57
+
58
+ }
59
+
32
60
  }
33
61
 
34
62
 
@@ -10,9 +10,13 @@
10
10
  padding: .4em .6em;
11
11
  line-height: 1.6em;
12
12
 
13
+ // TODO: see what this does and use a better name
13
14
  .k-loading {
14
15
  vertical-align: baseline;
15
16
  margin-right: 5px;
17
+
18
+ // TODO
19
+ display: none;
16
20
  }
17
21
  }
18
22
 
@@ -1,8 +1,8 @@
1
1
  @include exports("treeview/layout") {
2
2
 
3
- // Base
3
+ // Treeview
4
4
  .k-treeview {
5
- padding: $treeview-padding-y $treeview-padding-x;
5
+ padding: 0;
6
6
  border-width: 0;
7
7
  background: none;
8
8
  box-sizing: border-box;
@@ -16,159 +16,173 @@
16
16
  white-space: nowrap;
17
17
  -webkit-touch-callout: none;
18
18
  -webkit-tap-highlight-color: $rgba-transparent;
19
+ }
19
20
 
20
- > .k-group {
21
- outline: 0;
22
- -webkit-touch-callout: none;
23
- -webkit-tap-highlight-color: $rgba-transparent;
24
- }
25
21
 
26
- .k-content,
27
- > .k-group,
28
- .k-item > .k-group {
29
- margin: 0;
30
- padding: 0;
31
- background: none;
32
- list-style: none;
33
- position: relative;
34
-
35
- &.ng-animating {
36
- overflow: hidden;
37
- }
38
- }
22
+ // Treeview filter
23
+ .k-treeview-filter {
24
+ padding: map-get( $spacing, 1 );
25
+ box-sizing: border-box;
26
+ display: block;
27
+ position: relative;
28
+ flex: none;
29
+ }
39
30
 
40
- // Wrappers
41
- .k-top,
42
- .k-mid,
43
- .k-bot {
44
- display: flex;
45
- flex-direction: row;
46
- align-items: center;
47
- align-content: center;
48
- }
49
31
 
50
- // Items
51
- .k-item {
52
- outline-style: none;
53
- margin: 0;
54
- padding: 0 0 0 $treeview-indent;
55
- border-width: 0;
56
- display: block;
57
- }
32
+ // Treeview group
33
+ .k-treeview-group,
34
+ .k-treeview .k-group {
35
+ margin: 0;
36
+ padding: 0;
37
+ background: none;
38
+ list-style: none;
39
+ position: relative;
40
+ outline: 0;
41
+ -webkit-touch-callout: none;
42
+ -webkit-tap-highlight-color: $rgba-transparent;
58
43
 
59
- // Link
60
- .k-in {
61
- @include border-radius( $treeview-item-border-radius );
62
- margin: 0;
63
- padding: $treeview-item-padding-y $treeview-item-padding-x;
64
- border: $treeview-item-border-width solid transparent;
65
- text-decoration: none;
66
- display: inline-flex;
67
- align-items: center;
68
- align-content: center;
69
- vertical-align: middle;
70
- position: relative;
71
- }
72
- .k-in.k-state-focused {
73
- z-index: 1;
44
+ &.ng-animating {
45
+ overflow: hidden;
74
46
  }
47
+ }
75
48
 
76
- // LoadMore button
77
- .k-treeview-load-more-button {
78
- cursor: pointer;
79
49
 
80
- &:hover,
81
- &.k-state-hover,
82
- &:focus,
83
- &.k-state-focused {
84
- text-decoration: underline;
85
- }
86
- }
87
- .k-treeview-load-more-checkboxes-container {
88
- padding-left: $treeview-loadmore-checkboxes-padding-x;
50
+ // Treeview wrappers
51
+ .k-treeview-top,
52
+ .k-treeview .k-top,
53
+ .k-treeview-mid,
54
+ .k-treeview .k-mid,
55
+ .k-treeview-bot,
56
+ .k-treeview .k-bot {
57
+ display: flex;
58
+ flex-direction: row;
59
+ align-items: center;
60
+ align-content: center;
61
+ }
89
62
 
90
- .k-i-loading {
91
- margin-left: $treeview-loadmore-checkboxes-icon-indent;
92
- margin-right: $treeview-loadmore-checkboxes-icon-margin-x;
93
- }
94
- }
95
63
 
96
- // Expand / collapse
64
+ // Treeview item
65
+ .k-treeview-item,
66
+ .k-treeview .k-item {
67
+ outline-style: none;
68
+ margin: 0;
69
+ padding: 0 0 0 $treeview-indent;
70
+ border-width: 0;
71
+ display: block;
72
+ }
73
+
74
+
75
+ // Treeview toggle
76
+ .k-treeview-toggle {
77
+ flex: none;
78
+ display: inline-flex;
79
+ flex-flow: row nowrap;
80
+ align-items: center;
81
+
97
82
  .k-i-expand,
98
83
  .k-i-collapse {
99
- margin-left: -$treeview-indent;
100
- cursor: pointer;
101
-
102
- + .k-checkbox-wrapper {
103
- margin-left: $icon-spacing;
104
- }
84
+ margin: 0 !important; // sass-lint:disable-line no-important
105
85
  }
86
+ }
87
+ .k-treeview-toggle,
88
+ .k-treeview .k-i-expand,
89
+ .k-treeview .k-i-collapse {
90
+ margin-left: -$treeview-indent;
91
+ cursor: pointer;
92
+ }
93
+
94
+
95
+ // Loading icon
96
+ .k-treeview-loading {
97
+ margin-right: $icon-spacing;
98
+ }
99
+
100
+
101
+ // Checkbox
102
+ .k-treeview .k-checkbox-wrap,
103
+ .k-treeview .k-checkbox-wrapper {
104
+ margin-left: $icon-spacing;
105
+ margin-right: $icon-spacing;
106
+ align-self: center;
107
+ }
106
108
 
107
- // Checkboxes
108
- .k-checkbox-wrapper {
109
+
110
+ // Treeview leaf
111
+ .k-treeview-leaf,
112
+ .k-treeview .k-in {
113
+ @include border-radius( $treeview-item-border-radius );
114
+ margin: 0;
115
+ padding: $treeview-item-padding-y $treeview-item-padding-x;
116
+ border: $treeview-item-border-width solid transparent;
117
+ text-decoration: none;
118
+ display: inline-flex;
119
+ align-items: center;
120
+ align-content: center;
121
+ vertical-align: middle;
122
+ position: relative;
123
+
124
+ .k-icon,
125
+ .k-image,
126
+ .k-sprite {
109
127
  margin-right: $icon-spacing;
110
128
  }
111
129
 
112
- // TODO: Delete the following block when https://github.com/telerik/kendo-angular-treeview/issues/138 is done
113
- // Drag and Drop icon
114
- .k-i-drag-and-drop {
115
- position: absolute;
116
- transform: translate(-50%, -50%);
117
- z-index: 1000;
130
+ &.k-state-focus,
131
+ &.k-state-focused {
132
+ z-index: 1;
118
133
  }
134
+ }
119
135
 
120
- // Other content
121
- .k-in .k-icon,
122
- .k-in .k-image,
123
- .k-in .k-sprite {
124
- margin-right: $icon-spacing;
136
+
137
+ // Treeview load more button
138
+ .k-treeview .k-treeview-load-more-button {
139
+ cursor: pointer;
140
+
141
+ &:hover,
142
+ &.k-state-hover,
143
+ &:focus,
144
+ &.k-state-focus,
145
+ &.k-state-focused {
146
+ text-decoration: underline;
125
147
  }
126
148
  }
127
149
 
150
+
128
151
  // RTL
129
152
  .k-rtl .k-treeview,
130
153
  .k-treeview[dir="rtl"] {
131
154
 
132
- // Items
133
- .k-item {
155
+ // Treeview item
156
+ .k-item,
157
+ .k-treeview-item {
134
158
  padding-left: 0;
135
159
  padding-right: $treeview-indent;
136
160
  }
137
161
 
138
- .k-treeview-load-more-checkboxes-container {
139
- padding-left: 0;
140
- padding-right: $treeview-loadmore-checkboxes-padding-x;
141
-
142
- .k-i-loading {
143
- margin-left: $treeview-loadmore-checkboxes-icon-margin-x;
144
- margin-right: $treeview-loadmore-checkboxes-icon-indent;
145
- }
146
- }
147
-
148
- // Expand / collapse
162
+ // Treeview toggle
149
163
  .k-i-expand,
150
- .k-i-collapse {
164
+ .k-i-collapse,
165
+ .k-treeview-toggle {
151
166
  margin-left: 0;
152
167
  margin-right: -$treeview-indent;
153
-
154
- + .k-checkbox-wrapper {
155
- margin-right: $icon-spacing;
156
- }
157
168
  }
158
169
 
159
- // Checkboxes
160
- .k-checkbox-wrapper {
170
+ // Loading
171
+ .k-treeview-loading {
161
172
  margin-right: 0;
162
173
  margin-left: $icon-spacing;
163
174
  }
164
175
 
165
- // Other content
166
- .k-in .k-icon,
167
- .k-in .k-image,
168
- .k-in .k-sprite {
169
- margin-left: $icon-spacing;
170
- margin-right: 0;
176
+ // Treeview leaf
177
+ .k-treeview-leaf,
178
+ .k-in {
179
+ .k-icon,
180
+ .k-image,
181
+ .k-sprite {
182
+ margin-right: 0;
183
+ margin-left: $icon-spacing;
184
+ }
171
185
  }
172
-
173
186
  }
187
+
174
188
  }
@@ -1,21 +1,26 @@
1
1
  @include exports("treeview/theme") {
2
2
 
3
- // Appearance
3
+ // Treeview
4
4
  .k-treeview {
5
5
  @include fill(
6
6
  $treeview-text,
7
7
  $treeview-bg,
8
8
  $treeview-border
9
9
  );
10
+ }
11
+
10
12
 
13
+ // Treeview item
14
+ .k-treeview-item {}
11
15
 
12
- // Item
13
- .k-in {}
14
16
 
17
+ // Treeview leaf
18
+ .k-treeview-leaf,
19
+ .k-treeview .k-in {
15
20
 
16
- // Interactive states
17
- .k-in:hover,
18
- .k-in.k-state-hover {
21
+ // Hover state
22
+ &:hover,
23
+ &.k-state-hover {
19
24
  @include fill(
20
25
  $treeview-item-hovered-text,
21
26
  $treeview-item-hovered-bg,
@@ -23,7 +28,15 @@
23
28
  $treeview-item-hovered-gradient
24
29
  );
25
30
  }
26
- .k-in.k-state-selected {
31
+
32
+ // Focus state
33
+ &.k-state-focus,
34
+ &.k-state-focused {
35
+ @include box-shadow( $treeview-item-focused-shadow );
36
+ }
37
+
38
+ // Selected state
39
+ &.k-state-selected {
27
40
  @include fill(
28
41
  $treeview-item-selected-text,
29
42
  $treeview-item-selected-bg,
@@ -31,24 +44,20 @@
31
44
  $treeview-item-selected-gradient
32
45
  );
33
46
  }
34
- .k-in.k-state-focused {
35
- @include box-shadow( $treeview-item-focused-shadow );
36
- }
37
- .k-in.k-state-selected.k-state-focused {
38
- @include box-shadow( $treeview-item-selected-focused-shadow );
39
- }
47
+ }
40
48
 
41
- // LoadMore button
42
- .k-treeview-load-more-button {
43
- @include fill(
44
- $treeview-loadmore-text,
45
- $treeview-loadmore-bg,
46
- $treeview-loadmore-border
47
- );
48
- }
49
49
 
50
- .k-treeview-load-more-button:hover,
51
- .k-treeview-load-more-button.k-state-hover {
50
+ // Treeview load more button
51
+ .k-treeview .k-treeview-load-more-button {
52
+ @include fill(
53
+ $treeview-loadmore-text,
54
+ $treeview-loadmore-bg,
55
+ $treeview-loadmore-border
56
+ );
57
+
58
+ // Hover state
59
+ &:hover,
60
+ &.k-state-hover {
52
61
  @include fill(
53
62
  $treeview-loadmore-hover-text,
54
63
  $treeview-loadmore-hover-bg,
@@ -56,8 +65,10 @@
56
65
  );
57
66
  }
58
67
 
59
- .k-treeview-load-more-button:focus,
60
- .k-treeview-load-more-button.k-state-focused {
68
+ // Focus state
69
+ &:focus,
70
+ &.k-state-focus,
71
+ &.k-state-focused {
61
72
  @include fill(
62
73
  $treeview-loadmore-focus-text,
63
74
  $treeview-loadmore-focus-bg,
@@ -1,47 +1,101 @@
1
1
  // Treeview
2
- $treeview-padding-x: 0px !default;
3
- $treeview-padding-y: 0px !default;
2
+
3
+ /// Font family of the treeview component.
4
+ /// @group treeview
4
5
  $treeview-font-family: $font-family !default;
5
- $treeview-font-size: $font-size !default;
6
- $treeview-line-height: $line-height !default;
6
+ /// Font size of the treeview component.
7
+ /// @group treeview
8
+ $treeview-font-size: $font-size-md !default;
9
+ /// Line height of the treeview component.
10
+ /// @group treeview
11
+ $treeview-line-height: $line-height-md !default;
7
12
 
13
+ /// Indentation of child groups in treeview component.
14
+ /// @group treeview
8
15
  $treeview-indent: 16px !default;
9
16
 
17
+ /// Horizontal padding of treeview items.
18
+ /// @group treeview
10
19
  $treeview-item-padding-x: map-get( $spacing, 2 ) !default;
20
+ /// Vertical padding of treeview items.
21
+ /// @group treeview
11
22
  $treeview-item-padding-y: map-get( $spacing, 1 ) !default;
23
+ /// Border width of treeview items.
24
+ /// @group treeview
12
25
  $treeview-item-border-width: 0px !default;
26
+ /// Border radius of treeview items.
27
+ /// @group treeview
13
28
  $treeview-item-border-radius: null !default;
14
29
 
30
+ /// Background color of the treeview component.
31
+ /// @group treeview
15
32
  $treeview-bg: null !default;
33
+ /// Text color of the treeview component.
34
+ /// @group treeview
16
35
  $treeview-text: $component-text !default;
36
+ /// Border color of the treeview component.
37
+ /// @group treeview
17
38
  $treeview-border: null !default;
18
39
 
40
+ /// Background color of hovered treeview items.
41
+ /// @group treeview
19
42
  $treeview-item-hovered-bg: $hovered-bg !default;
43
+ /// Text color of hovered treeview items.
44
+ /// @group treeview
20
45
  $treeview-item-hovered-text: $hovered-text !default;
46
+ /// Border color of hovered treeview items.
47
+ /// @group treeview
21
48
  $treeview-item-hovered-border: null !default;
49
+ /// Background gradient of hovered treeview items.
50
+ /// @group treeview
22
51
  $treeview-item-hovered-gradient: null !default;
23
52
 
53
+ /// Background color of selected treeview items.
54
+ /// @group treeview
24
55
  $treeview-item-selected-bg: $selected-bg !default;
56
+ /// Text color of selected treeview items.
57
+ /// @group treeview
25
58
  $treeview-item-selected-text: $selected-text !default;
59
+ /// Border color of selected treeview items.
60
+ /// @group treeview
26
61
  $treeview-item-selected-border: null !default;
62
+ /// Background gradient of selected treeview items.
63
+ /// @group treeview
27
64
  $treeview-item-selected-gradient: null !default;
28
65
 
66
+ /// Box shadow of focused treeview items.
67
+ /// @group treeview
29
68
  $treeview-item-focused-shadow: $focused-shadow !default;
30
- $treeview-item-selected-focused-shadow: null !default;
31
-
32
- $treeview-loadmore-checkboxes-padding-x: calc( #{$icon-spacing} + #{$checkbox-size} + #{$treeview-indent} ) !default;
33
- $treeview-loadmore-checkboxes-icon-indent: calc( -1 * (#{$icon-spacing} + #{$treeview-indent}) ) !default;
34
- $treeview-loadmore-checkboxes-icon-margin-x: $icon-spacing !default;
35
69
 
70
+ /// Background color of load more.
71
+ /// @group treeview
36
72
  $treeview-loadmore-bg: transparent !default;
37
- $treeview-loadmore-text: $primary !default;
73
+ /// Text color of load more.
74
+ /// @group treeview
75
+ $treeview-loadmore-text: $link-text !default;
76
+ /// Border color of load more.
77
+ /// @group treeview
38
78
  $treeview-loadmore-border: null !default;
39
79
 
80
+ /// Background color of a hovered load more.
81
+ /// @group treeview
40
82
  $treeview-loadmore-hover-bg: transparent !default;
41
- $treeview-loadmore-hover-text: $primary-darker !default;
83
+ /// Text color of a hovered load more.
84
+ /// @group treeview
85
+ $treeview-loadmore-hover-text: $link-hover-text !default;
86
+ /// Border color of a hovered load more.
87
+ /// @group treeview
42
88
  $treeview-loadmore-hover-border: null !default;
43
89
 
90
+ /// Background color of a focused load more.
91
+ /// @group treeview
44
92
  $treeview-loadmore-focus-bg: transparent !default;
45
- $treeview-loadmore-focus-text: $primary !default;
93
+ /// Text color of a focused load more.
94
+ /// @group treeview
95
+ $treeview-loadmore-focus-text: $link-hover-text !default;
96
+ /// Border color of a focused load more.
97
+ /// @group treeview
46
98
  $treeview-loadmore-focus-border: null !default;
47
- $treeview-loadmore-focus-shadow: none !default;
99
+ /// Box shadow of a focused load more.
100
+ /// @group treeview
101
+ $treeview-loadmore-focus-shadow: $treeview-item-focused-shadow !default;
@@ -9,8 +9,8 @@ $enable-typography: false !default;
9
9
  $font-size: 14px !default;
10
10
  $font-size-xs: 10px !default;
11
11
  $font-size-sm: 12px !default;
12
- $font-size-md: 16px !default;
13
- $font-size-lg: 18px !default;
12
+ $font-size-md: $font-size !default;
13
+ $font-size-lg: 16px !default;
14
14
  $font-size-xl: 20px !default;
15
15
 
16
16
  /// Font family across all components.
@@ -25,7 +25,7 @@ $font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono",
25
25
  /// @group typography
26
26
  $line-height: (20 / 14) !default;
27
27
  $line-height-xs: 1 !default;
28
- $line-height-sm: 1.2 !default;
28
+ $line-height-sm: 1.25 !default;
29
29
  $line-height-md: $line-height !default;
30
30
  $line-height-lg: 1.5 !default;
31
31
  $line-height-em: $line-height * 1em !default;