@progress/kendo-theme-default 5.0.0-beta.1 → 5.0.0-beta.2

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 (65) hide show
  1. package/dist/all.css +814 -626
  2. package/dist/all.scss +952 -711
  3. package/package.json +2 -2
  4. package/scss/avatar/index.md +0 -0
  5. package/scss/button/_layout.scss +4 -4
  6. package/scss/checkbox/index.md +0 -0
  7. package/scss/chip/_index.scss +1 -0
  8. package/scss/chip/_layout.scss +110 -32
  9. package/scss/chip/_theme.scss +7 -6
  10. package/scss/chip/_variables.scss +11 -11
  11. package/scss/chip/index.md +0 -0
  12. package/scss/color-preview/_layout.scss +23 -10
  13. package/scss/color-preview/_theme.scss +4 -3
  14. package/scss/color-preview/_variables.scss +1 -0
  15. package/scss/colorpicker/_index.scss +1 -2
  16. package/scss/colorpicker/_layout.scss +1 -1
  17. package/scss/colorpicker/_theme.scss +1 -1
  18. package/scss/colorpicker/_variables.scss +1 -20
  19. package/scss/dateinput/_index.scss +0 -4
  20. package/scss/dateinput/_variables.scss +1 -1
  21. package/scss/datepicker/_index.scss +1 -3
  22. package/scss/datetimepicker/_index.scss +5 -3
  23. package/scss/datetimepicker/_layout.scss +2 -2
  24. package/scss/datetimepicker/_theme.scss +2 -2
  25. package/scss/datetimepicker/_variables.scss +2 -1
  26. package/scss/dropdowngrid/index.md +0 -0
  27. package/scss/filter/_index.scss +1 -1
  28. package/scss/filter/_layout.scss +9 -2
  29. package/scss/filter/_theme.scss +3 -1
  30. package/scss/gantt/_index.scss +1 -1
  31. package/scss/grid/_index.scss +1 -1
  32. package/scss/grid/_layout.scss +3 -16
  33. package/scss/index.scss +1 -1
  34. package/scss/input/_layout.scss +53 -8
  35. package/scss/input/_theme.scss +4 -2
  36. package/scss/input/_variables.scss +16 -26
  37. package/scss/list/_layout.scss +20 -3
  38. package/scss/list/_theme.scss +2 -1
  39. package/scss/list/index.md +0 -0
  40. package/scss/panelbar/_theme.scss +9 -2
  41. package/scss/panelbar/_variables.scss +4 -0
  42. package/scss/pivotgrid/_layout.scss +8 -8
  43. package/scss/pivotgrid/_variables.scss +0 -3
  44. package/scss/radio/index.md +0 -0
  45. package/scss/scheduler/_index.scss +1 -1
  46. package/scss/scrollview/_layout.scss +6 -1
  47. package/scss/slider/_layout.scss +2 -0
  48. package/scss/spreadsheet/_index.scss +1 -1
  49. package/scss/switch/_layout.scss +4 -2
  50. package/scss/switch/index.md +0 -0
  51. package/scss/table/_layout.scss +39 -3
  52. package/scss/taskboard/_layout.scss +2 -1
  53. package/scss/taskboard/_variables.scss +0 -2
  54. package/scss/timepicker/_index.scss +3 -3
  55. package/scss/timepicker/_variables.scss +1 -1
  56. package/scss/{datetime → timeselector}/_index.scss +2 -5
  57. package/scss/{datetime → timeselector}/_layout.scss +121 -135
  58. package/scss/{datetime → timeselector}/_theme.scss +21 -21
  59. package/scss/timeselector/_variables.scss +32 -0
  60. package/scss/treeview/_layout.scss +49 -33
  61. package/scss/treeview/_theme.scss +31 -32
  62. package/scss/treeview/_variables.scss +142 -46
  63. package/scss/utils/_border.scss +1 -2
  64. package/scss/utils/_flex.scss +11 -3
  65. package/scss/datetime/_variables.scss +0 -53
@@ -1,69 +1,43 @@
1
- @include exports("datetime/layout") {
1
+ @include exports( "timeselector/layout" ) {
2
2
 
3
- .k-datetime-container {
4
-
5
- .k-datetime-wrap {
6
- width: $datetime-width;
7
- overflow: hidden;
8
- }
9
-
10
- .k-datetime-buttongroup {
11
- padding: $kendo-button-padding-x;
12
- }
13
-
14
- .k-datetime-selector {
15
- display: flex;
16
- transition: transform .2s;
17
- }
18
-
19
- .k-datetime-calendar-wrap,
20
- .k-datetime-time-wrap {
21
- text-align: center;
22
- flex: 0 0 $datetime-width;
23
- }
24
-
25
- .k-timeselector {
26
- outline: none;
27
- }
28
-
29
- .k-time-list-container {
30
- justify-content: center;
31
- }
32
-
33
- .k-time-tab {
34
-
35
- .k-datetime-selector {
36
- transform: translateX(-100%);
37
- }
38
- }
39
-
40
- .k-rtl &,
41
- &.k-rtl,
42
- [dir="rtl"] &,
43
- &[dir="rtl"] {
44
- .k-time-tab {
3
+ // Time selector
4
+ .k-timeselector {
5
+ border-width: $time-selector-border-width;
6
+ border-style: solid;
7
+ box-sizing: border-box;
8
+ outline: 0;
9
+ font-family: $time-selector-font-family;
10
+ font-size: $time-selector-font-size;
11
+ line-height: $time-selector-line-height;
12
+ position: relative;
13
+ overflow: hidden;
14
+ display: flex;
15
+ flex-flow: column nowrap;
16
+ user-select: none;
17
+ -webkit-touch-callout: none;
18
+ -webkit-tap-highlight-color: $rgba-transparent;
45
19
 
46
- .k-datetime-selector {
47
- transform: translateX(100%);
48
- }
49
- }
20
+ .k-popup > & {
21
+ border-width: 0;
50
22
  }
51
23
  }
52
24
 
53
- // Infinite timepicker
54
- .k-timeselector {}
55
25
 
56
-
57
- // Header
58
- .k-time-header {
26
+ // Time selector header
27
+ .k-time-header,
28
+ .k-time-selector-header {
29
+ padding: $time-selector-header-padding-y $time-selector-header-padding-x;
30
+ box-sizing: border-box;
59
31
  display: flex;
60
32
  align-items: center;
61
33
  justify-content: space-between;
62
- padding: 2 * $padding-y $padding-x * 2;
63
- line-height: $timepicker-header-height;
34
+ flex: 0 0 auto;
64
35
 
65
- .k-title {
36
+ .k-title,
37
+ .k-time-selector-header-title {
38
+ padding: $kendo-button-padding-y $kendo-button-padding-x;
66
39
  font-weight: bold;
40
+ display: inline-block;
67
41
  }
68
42
 
69
43
  .k-time-now {
@@ -73,32 +47,57 @@
73
47
  }
74
48
  }
75
49
 
76
- // Content
50
+
51
+ // Time selector footer
52
+ // .k-time-footer {}
53
+ // .k-time-selector-footer {}
54
+
55
+
56
+ // Time list container
57
+ .k-time-list-container {
58
+ display: flex;
59
+ position: relative;
60
+ flex: 1 1 auto;
61
+ }
62
+
63
+
64
+ // Time list highlight
65
+ .k-time-highlight,
66
+ .k-time-list-highlight {
67
+ width: 100%;
68
+ height: $time-list-highlight-height;
69
+ border-width: $time-list-highlight-border-width;
70
+ border-style: solid;
71
+ box-sizing: border-box;
72
+ position: absolute;
73
+ top: calc( 50% + #{$time-list-title-height / 2});
74
+ left: 0;
75
+ right: 0;
76
+ transform: translateY(-50%);
77
+ z-index: 1;
78
+ }
79
+
80
+
81
+ // Time list wrapper
77
82
  .k-time-list-wrapper {
78
- display: inline-block;
79
- overflow: hidden;
83
+ min-width: $time-list-width;
84
+ height: $time-list-height;
80
85
  box-sizing: content-box;
81
- overflow-x: hidden;
82
- overflow-y: auto;
86
+ display: inline-flex;
87
+ flex-flow: column nowrap;
88
+ align-items: stretch;
89
+ overflow: hidden;
83
90
  position: relative;
84
- padding: $time-list-padding 0;
85
91
  text-align: center;
86
- min-width: $time-list-width;
87
- height: $time-list-height;
88
92
  flex: 1 1 auto;
89
93
 
90
94
  .k-title {
91
- display: block;
95
+ font-size: $time-list-title-font-size;
96
+ line-height: $time-list-title-line-height;
97
+ font-weight: bold;
92
98
  text-align: center;
93
- font-size: $font-size-xs;
94
- position: absolute;
95
99
  text-transform: capitalize;
96
- font-weight: bold;
97
- min-width: 100%;
98
- height: 1.5em;
99
- line-height: 1.5em;
100
- margin-top: -$time-list-padding;
101
- z-index: 12;
100
+ display: block;
102
101
  }
103
102
 
104
103
  &.k-state-focused {
@@ -110,14 +109,14 @@
110
109
  width: 100%;
111
110
  left: 0;
112
111
  pointer-events: none;
113
- height: calc(50% - 1em);
112
+ height: calc( 50% - #{$time-list-highlight-height / 2} );
114
113
  box-sizing: border-box;
115
114
  border-width: 0;
116
115
  border-style: solid;
117
116
  }
118
117
 
119
118
  &::before {
120
- top: 0;
119
+ top: $time-list-title-height;
121
120
  }
122
121
 
123
122
  &::after {
@@ -126,47 +125,16 @@
126
125
  }
127
126
  }
128
127
 
129
- .k-time-container {
130
- position: absolute;
131
- display: block;
132
- overflow-x: hidden;
133
- overflow-y: scroll;
134
- line-height: $line-height;
135
- left: 0;
136
- right: 0;
137
- top: $time-list-padding;
138
- bottom: $time-list-padding;
139
-
140
- @include hide-scrollbar("right");
141
-
142
- > ul {
143
- height: auto;
144
- width: $time-list-width;
145
- margin: auto;
146
- }
147
-
148
- .k-rtl &,
149
- &.k-rtl,
150
- [dir="rtl"] &,
151
- &[dir="rtl"] {
152
- @include hide-scrollbar("left");
153
- }
154
- }
155
-
156
- .k-time-list-container {
157
- display: flex;
158
- position: relative;
159
- }
160
128
 
129
+ // Time list
161
130
  .k-time-list {
162
- position: absolute;
163
131
  display: flex;
164
- z-index: 10;
165
- outline: 0;
166
- bottom: 0;
167
- right: 0;
168
- left: 0;
169
- top: 0;
132
+ flex-flow: row nowrap;
133
+ align-items: stretch;
134
+ flex: 1;
135
+ position: relative;
136
+ z-index: 1;
137
+ overflow: hidden;
170
138
 
171
139
  &::before,
172
140
  &::after {
@@ -184,38 +152,56 @@
184
152
  &::after { bottom: 0; }
185
153
  }
186
154
 
187
- .k-time-list .k-item {
188
- padding: $time-list-item-padding-y $time-list-item-padding-x;
189
- min-height: calc( #{decimal-round($line-height-em, 2)} + 2px );
190
- line-height: calc( #{decimal-round($line-height-em, 2)} + 2px );
191
- }
192
155
 
193
- .k-time-highlight {
194
- position: absolute;
195
- top: 50%;
196
- left: 0;
197
- right: 0;
198
- transform: translateY(-50%);
199
- width: 100%;
200
- height: $kendo-button-inner-calc-size;
201
- z-index: 1;
202
- border-width: $time-highlight-size 0;
203
- border-style: solid;
156
+ // Time list content
157
+ .k-time-container,
158
+ .k-time-list-content {
159
+ position: relative;
160
+ flex: 1 1 auto;
161
+ display: block;
162
+ overflow-x: hidden;
163
+ overflow-y: scroll;
164
+
165
+ @include hide-scrollbar("right");
166
+
167
+ > ul {
168
+ height: auto;
169
+ width: $time-list-width;
170
+ margin: auto;
171
+ }
172
+
173
+ .k-rtl &
174
+ [dir="rtl"] & {
175
+ @include hide-scrollbar("left");
176
+ }
177
+
178
+ .k-scrollable-placeholder {
179
+ position: absolute;
180
+ width: 1px;
181
+ top: 0;
182
+ right: 0;
183
+ }
204
184
  }
205
185
 
206
- .k-time-container .k-scrollable-placeholder {
207
- position: absolute;
208
- width: 1px;
209
- top: 0;
210
- right: 0;
186
+
187
+ // Time list item
188
+ .k-time-list-item,
189
+ .k-time-list .k-item {
190
+ padding: $time-list-item-padding-y $time-list-item-padding-x;
211
191
  }
212
192
 
193
+
194
+ // Time separator
213
195
  .k-time-separator {
214
196
  width: 0;
215
- height: 100%;
216
- display: inline-flex;
197
+ height: $time-list-highlight-height;
217
198
  align-self: center;
199
+ display: inline-flex;
218
200
  justify-content: center;
201
+ align-items: center;
202
+ position: relative;
219
203
  z-index: 11;
204
+ top: calc( #{$time-list-title-height / 2} );
220
205
  }
206
+
221
207
  }
@@ -1,21 +1,29 @@
1
- @include exports("datetime/theme") {
1
+ @include exports( "timeselector/theme" ) {
2
+
3
+ // Time selector
4
+ .k-timeselector {
5
+ @include fill(
6
+ $time-selector-text,
7
+ $time-selector-bg,
8
+ $time-selector-border
9
+ );
10
+ }
2
11
 
3
- // Timepicker header
4
- .k-time-header {
12
+
13
+ // Time selector header
14
+ .k-time-header,
15
+ .k-time-selector-header {
5
16
 
6
17
  .k-time-now {
7
18
  color: $link-text;
8
- background: transparent;
9
-
10
- &:hover,
11
- &:focus {
12
- color: $link-hover-text;
13
- }
19
+ }
20
+ .k-time-now:hover {
21
+ color: $link-hover-text;
14
22
  }
15
23
  }
16
24
 
17
25
 
18
- // Timepicker content
26
+ // Time list wrapper
19
27
  .k-time-list-wrapper {
20
28
 
21
29
  .k-title {
@@ -34,11 +42,13 @@
34
42
  }
35
43
  }
36
44
 
45
+
46
+ // Time list
37
47
  .k-time-list {
38
48
  &::before,
39
49
  &::after {
40
50
  $shadow-size: 3em;
41
- box-shadow: 0 0 $shadow-size ($shadow-size / 2) $popup-bg;
51
+ box-shadow: 0 0 $shadow-size ($shadow-size / 2) $time-selector-bg;
42
52
  }
43
53
 
44
54
  .k-item:hover {
@@ -57,14 +67,4 @@
57
67
  );
58
68
  }
59
69
 
60
- .k-datetime-container {
61
- .k-date-tab {
62
-
63
- .k-datetime-buttongroup,
64
- .k-datetime-selector {
65
- background-color: $component-bg;
66
- }
67
- }
68
- }
69
-
70
70
  }
@@ -0,0 +1,32 @@
1
+ // Time selector
2
+ $time-selector-border-width: 1px !default;
3
+ $time-selector-font-family: $font-family !default;
4
+ $time-selector-font-size: $font-size !default;
5
+ $time-selector-line-height: $line-height !default;
6
+
7
+ $time-selector-bg: $component-bg !default;
8
+ $time-selector-text: $component-text !default;
9
+ $time-selector-border: $component-border !default;
10
+
11
+ $time-selector-header-padding-x: map-get( $spacing, 1 ) !default;
12
+ $time-selector-header-padding-y: map-get( $spacing, 1 ) !default;
13
+ $time-selector-header-border-width: 0px !default;
14
+
15
+ $time-list-width: 4em !default;
16
+ $time-list-height: 240px !default;
17
+
18
+ $time-list-title-font-size: $font-size-sm !default;
19
+ $time-list-title-line-height: 1.5 !default;
20
+ $time-list-title-height: ( $time-list-title-font-size * $time-list-title-line-height) !default;
21
+ $time-list-title-text: $subtle-text !default;
22
+ $time-list-title-focus-text: $component-text !default;
23
+
24
+ $time-list-item-padding-x: $kendo-list-item-padding-x-md !default;
25
+ $time-list-item-padding-y: $kendo-list-item-padding-y-md !default;
26
+
27
+ $time-list-highlight-border-width: 1px 0px !default;
28
+ $time-list-highlight-height: calc( #{$time-selector-font-size * $time-selector-line-height} + #{ $time-list-item-padding-y * 2} ) !default;
29
+ $time-list-highlight-bg: $component-bg !default;
30
+ $time-list-highlight-border: $component-border !default;
31
+
32
+ $time-list-focused-bg: rgba(0, 0, 0, .04) !default;
@@ -2,14 +2,12 @@
2
2
 
3
3
  // Base
4
4
  .k-treeview {
5
- padding: $treeview-padding-y $treeview-padding-x;
5
+ padding: $kendo-treeview-padding-y $kendo-treeview-padding-x;
6
6
  border-width: 0;
7
7
  background: none;
8
8
  box-sizing: border-box;
9
9
  outline: 0;
10
- font-family: $treeview-font-family;
11
- font-size: $treeview-font-size;
12
- line-height: $treeview-line-height;
10
+ font-family: $kendo-treeview-font-family;
13
11
  display: block;
14
12
  cursor: default;
15
13
  overflow: auto;
@@ -17,15 +15,15 @@
17
15
  -webkit-touch-callout: none;
18
16
  -webkit-tap-highlight-color: $rgba-transparent;
19
17
 
20
- > .k-group {
18
+ > .k-treeview-group {
21
19
  outline: 0;
22
20
  -webkit-touch-callout: none;
23
21
  -webkit-tap-highlight-color: $rgba-transparent;
24
22
  }
25
23
 
26
24
  .k-content,
27
- > .k-group,
28
- .k-item > .k-group {
25
+ > .k-treeview-group,
26
+ .k-treeview-item > .k-treeview-group {
29
27
  margin: 0;
30
28
  padding: 0;
31
29
  background: none;
@@ -38,9 +36,9 @@
38
36
  }
39
37
 
40
38
  // Wrappers
41
- .k-top,
42
- .k-mid,
43
- .k-bot {
39
+ .k-treeview-top,
40
+ .k-treeview-mid,
41
+ .k-treeview-bot {
44
42
  display: flex;
45
43
  flex-direction: row;
46
44
  align-items: center;
@@ -48,20 +46,19 @@
48
46
  }
49
47
 
50
48
  // Items
51
- .k-item {
49
+ .k-treeview-item {
52
50
  outline-style: none;
53
51
  margin: 0;
54
- padding: 0 0 0 $treeview-indent;
52
+ padding: 0 0 0 $kendo-treeview-indent;
55
53
  border-width: 0;
56
54
  display: block;
57
55
  }
58
56
 
59
57
  // Link
60
- .k-in {
61
- @include border-radius( $treeview-item-border-radius );
58
+ .k-treeview-leaf {
59
+ @include border-radius( $kendo-treeview-item-border-radius );
62
60
  margin: 0;
63
- padding: $treeview-item-padding-y $treeview-item-padding-x;
64
- border: $treeview-item-border-width solid transparent;
61
+ border: $kendo-treeview-item-border-width solid transparent;
65
62
  text-decoration: none;
66
63
  display: inline-flex;
67
64
  align-items: center;
@@ -69,7 +66,7 @@
69
66
  vertical-align: middle;
70
67
  position: relative;
71
68
  }
72
- .k-in.k-state-focused {
69
+ .k-treeview-leaf.k-state-focused {
73
70
  z-index: 1;
74
71
  }
75
72
 
@@ -85,18 +82,18 @@
85
82
  }
86
83
  }
87
84
  .k-treeview-load-more-checkboxes-container {
88
- padding-left: $treeview-loadmore-checkboxes-padding-x;
85
+ padding-left: $kendo-treeview-loadmore-checkboxes-padding-x;
89
86
 
90
87
  .k-i-loading {
91
- margin-left: $treeview-loadmore-checkboxes-icon-indent;
92
- margin-right: $treeview-loadmore-checkboxes-icon-margin-x;
88
+ margin-left: $kendo-treeview-loadmore-checkboxes-icon-indent;
89
+ margin-right: $kendo-treeview-loadmore-checkboxes-icon-margin-x;
93
90
  }
94
91
  }
95
92
 
96
93
  // Expand / collapse
97
94
  .k-i-expand,
98
95
  .k-i-collapse {
99
- margin-left: -$treeview-indent;
96
+ margin-left: -$kendo-treeview-indent;
100
97
  cursor: pointer;
101
98
 
102
99
  + .k-checkbox-wrapper {
@@ -118,30 +115,34 @@
118
115
  }
119
116
 
120
117
  // Other content
121
- .k-in .k-icon,
122
- .k-in .k-image,
123
- .k-in .k-sprite {
118
+ .k-treeview-leaf .k-icon,
119
+ .k-treeview-leaf .k-image,
120
+ .k-treeview-leaf .k-sprite {
124
121
  margin-right: $icon-spacing;
125
122
  }
126
123
  }
127
124
 
125
+ .k-treeview-toggle {}
126
+
127
+ .k-treeview-leaf-text {}
128
+
128
129
  // RTL
129
130
  .k-rtl .k-treeview,
130
131
  .k-treeview[dir="rtl"] {
131
132
 
132
133
  // Items
133
- .k-item {
134
+ .k-treeview-item {
134
135
  padding-left: 0;
135
- padding-right: $treeview-indent;
136
+ padding-right: $kendo-treeview-indent;
136
137
  }
137
138
 
138
139
  .k-treeview-load-more-checkboxes-container {
139
140
  padding-left: 0;
140
- padding-right: $treeview-loadmore-checkboxes-padding-x;
141
+ padding-right: $kendo-treeview-loadmore-checkboxes-padding-x;
141
142
 
142
143
  .k-i-loading {
143
- margin-left: $treeview-loadmore-checkboxes-icon-margin-x;
144
- margin-right: $treeview-loadmore-checkboxes-icon-indent;
144
+ margin-left: $kendo-treeview-loadmore-checkboxes-icon-margin-x;
145
+ margin-right: $kendo-treeview-loadmore-checkboxes-icon-indent;
145
146
  }
146
147
  }
147
148
 
@@ -149,7 +150,7 @@
149
150
  .k-i-expand,
150
151
  .k-i-collapse {
151
152
  margin-left: 0;
152
- margin-right: -$treeview-indent;
153
+ margin-right: -$kendo-treeview-indent;
153
154
 
154
155
  + .k-checkbox-wrapper {
155
156
  margin-right: $icon-spacing;
@@ -163,12 +164,27 @@
163
164
  }
164
165
 
165
166
  // Other content
166
- .k-in .k-icon,
167
- .k-in .k-image,
168
- .k-in .k-sprite {
167
+ .k-treeview-leaf .k-icon,
168
+ .k-treeview-leaf .k-image,
169
+ .k-treeview-leaf .k-sprite {
169
170
  margin-left: $icon-spacing;
170
171
  margin-right: 0;
171
172
  }
173
+ }
174
+
175
+ @each $size, $size-props in $kendo-treeview-sizes {
176
+ $_font-size: map-get( $size-props, font-size);
177
+ $_line-height: map-get( $size-props, line-height);
178
+ $_item-padding-x: map-get( $size-props, item-padding-x);
179
+ $_item-padding-y: map-get( $size-props, item-padding-y);
172
180
 
181
+ .k-treeview-#{$size} {
182
+ font-size: $_font-size;
183
+ line-height: $_line-height;
184
+
185
+ .k-treeview-leaf {
186
+ padding: $_item-padding-x $_item-padding-y;
187
+ }
188
+ }
173
189
  }
174
190
  }