@progress/kendo-theme-material 4.43.1-dev.5 → 4.43.1-dev.6

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 (30) hide show
  1. package/dist/all.css +1284 -442
  2. package/dist/all.scss +481 -480
  3. package/modules/@progress/kendo-theme-default/package.json +2 -2
  4. package/modules/@progress/kendo-theme-default/scss/button/_layout.scss +54 -91
  5. package/modules/@progress/kendo-theme-default/scss/button/_theme.scss +177 -112
  6. package/modules/@progress/kendo-theme-default/scss/button/_variables.scss +74 -11
  7. package/modules/@progress/kendo-theme-default/scss/chat/_layout.scss +6 -0
  8. package/modules/@progress/kendo-theme-default/scss/colorgradient/_layout.scss +0 -4
  9. package/modules/@progress/kendo-theme-default/scss/common/_loading.scss +1 -13
  10. package/modules/@progress/kendo-theme-default/scss/grid/_layout.scss +1 -1
  11. package/modules/@progress/kendo-theme-default/scss/grid/_theme.scss +0 -6
  12. package/modules/@progress/kendo-theme-default/scss/listbox/_layout.scss +9 -0
  13. package/modules/@progress/kendo-theme-default/scss/mediaplayer/_layout.scss +8 -1
  14. package/modules/@progress/kendo-theme-default/scss/multiselect/_layout.scss +2 -2
  15. package/modules/@progress/kendo-theme-default/scss/slider/_layout.scss +35 -143
  16. package/modules/@progress/kendo-theme-default/scss/slider/_theme.scss +0 -6
  17. package/modules/@progress/kendo-theme-default/scss/spreadsheet/_layout.scss +1 -0
  18. package/modules/@progress/kendo-theme-default/scss/tabstrip/_layout.scss +5 -1
  19. package/modules/@progress/kendo-theme-default/scss/textarea/_layout.scss +1 -1
  20. package/modules/@progress/kendo-theme-default/scss/toolbar/_layout.scss +1 -0
  21. package/modules/@progress/kendo-theme-default/scss/treelist/_layout.scss +4 -0
  22. package/modules/@progress/kendo-theme-default/scss/treeview/_layout.scss +12 -18
  23. package/modules/@progress/kendo-theme-default/scss/window/_layout.scss +2 -2
  24. package/package.json +3 -3
  25. package/scss/action-buttons/_theme.scss +1 -2
  26. package/scss/button/_layout.scss +29 -4
  27. package/scss/button/_theme.scss +43 -56
  28. package/scss/button/_variables.scss +77 -14
  29. package/scss/maskedtextbox/_layout.scss +11 -0
  30. package/scss/toolbar/_theme.scss +2 -4
@@ -2,36 +2,36 @@
2
2
 
3
3
  @include exports( "button/theme/material" ) {
4
4
 
5
- // Flat button
6
- .k-button-flat {
7
-
8
- &:disabled,
9
- &.k-state-disabled {
10
- color: $button-disabled-text;
5
+ // Solid button
6
+ @each $name, $color in $button-theme-colors {
7
+ .k-button-solid.k-button-solid-#{$name} {
8
+
9
+ &:disabled,
10
+ &.k-state-disabled {
11
+ @include fill(
12
+ $button-disabled-text,
13
+ $button-disabled-bg,
14
+ $button-disabled-border
15
+ );
16
+ }
11
17
  }
12
18
  }
13
- .k-button-flat.k-primary {
14
- color: $primary-button-bg;
15
19
 
16
- &:disabled,
17
- &.k-state-disabled {
18
- color: $button-disabled-text;
19
- }
20
- }
20
+ // Flat button
21
+ .k-button-flat {}
21
22
 
22
23
 
23
24
  // Outline button
24
25
  .k-button-outline {
25
- @include box-shadow( none );
26
26
  color: $button-text;
27
27
 
28
28
  &:hover,
29
29
  &.k-state-hover,
30
+ &:focus,
31
+ &.k-state-focus,
30
32
  &:active,
31
33
  &.k-state-active,
32
- &.k-state-selected,
33
- &:focus,
34
- &.k-state-focus {
34
+ &.k-state-selected {
35
35
  color: $button-text;
36
36
  }
37
37
 
@@ -40,18 +40,30 @@
40
40
  color: $button-disabled-text;
41
41
  }
42
42
  }
43
- .k-button-outline.k-primary {
44
- color: $primary-button-bg;
43
+ @each $name, $color in $button-theme-colors {
44
+ .k-button-outline.k-button-outline-#{$name} {
45
+ color: $color;
46
+
47
+ &:hover,
48
+ &.k-state-hover,
49
+ &:focus,
50
+ &.k-state-focus,
51
+ &:active,
52
+ &.k-state-active,
53
+ &.k-state-selected {
54
+ color: $color;
55
+ }
45
56
 
46
- &:hover,
47
- &.k-state-hover,
48
- &:active,
49
- &.k-state-active,
50
- &.k-state-selected,
51
- &:focus,
52
- &.k-state-focus {
53
- color: $primary-button-bg;
57
+ &:disabled,
58
+ &.k-state-disabled {
59
+ color: $button-disabled-text;
60
+ }
54
61
  }
62
+ }
63
+
64
+
65
+ // Link button
66
+ .k-button.k-button-link {
55
67
 
56
68
  &:disabled,
57
69
  &.k-state-disabled {
@@ -80,46 +92,21 @@
80
92
  }
81
93
 
82
94
  &:disabled,
95
+ &[disabled],
96
+ &.k-disabled,
83
97
  &.k-state-disabled {
84
98
  @include box-shadow( none );
85
- opacity: 1;
86
99
  }
87
100
  }
88
101
 
89
102
 
90
103
  // Split button
91
- .k-split-button {
92
- @include box-shadow( $button-shadow );
93
-
94
- .k-button {
95
- @include box-shadow( none );
96
- }
97
-
98
- > .k-button:last-child,
99
- > .k-split-button-arrow {
100
- color: $subtle-text;
101
- }
102
-
103
- > .k-button:last-child:hover,
104
- > .k-split-button-arrow:hover {
105
- color: $button-text;
106
- }
107
-
108
- &:disabled,
109
- &.k-state-disabled {
110
- @include box-shadow( none );
111
- opacity: 1;
112
- }
113
-
114
- &.k-flat {
115
- @include box-shadow( none );
116
- }
117
- }
104
+ .k-split-button {}
118
105
 
119
106
 
120
107
  // Variant button group
121
108
  .k-button-group-flat,
122
- .k-button-group-bare,
109
+ .k-button-group-link,
123
110
  .k-button-group-outline {
124
111
  @include box-shadow( none );
125
112
  }
@@ -1,29 +1,68 @@
1
1
  // Button
2
2
 
3
- /// Width of border around buttons
3
+ /// Width of the border around the button.
4
4
  /// @group button
5
- $button-border-width: 0px !default;
6
- /// Border radius of buttons
5
+ $button-border-width: 1px !default;
6
+
7
+ /// Border radius of the button.
8
+ /// @group button
9
+ $button-border-radius: map-get( $spacing, 1 ) !default;
10
+
11
+ /// Horizontal padding of the button.
7
12
  /// @group button
8
- $button-border-radius: $border-radius !default;
13
+ $button-padding-x: map-get( $spacing, 4 ) !default;
14
+ $button-padding-x-sm: null !default;
15
+ $button-padding-x-md: null !default;
16
+ $button-padding-x-lg: null !default;
9
17
 
10
- /// Horizontal padding of buttons
18
+ /// Vertical padding of the button.
11
19
  /// @group button
12
- $button-padding-x: $padding-x !default;
13
- /// Vertical padding of buttons
20
+ $button-padding-y: map-get( $spacing, 2 ) !default;
21
+ $button-padding-y-sm: null !default;
22
+ $button-padding-y-md: null !default;
23
+ $button-padding-y-lg: null !default;
24
+
25
+ /// Font family of the button.
14
26
  /// @group button
15
- $button-padding-y: 8px !default;
16
27
  $button-font-family: $font-family !default;
28
+
29
+ /// Font size of the button.
30
+ /// @group button
17
31
  $button-font-size: $font-size !default;
18
- $button-line-height: (20 / 14) !default;
32
+ $button-font-size-sm: null !default;
33
+ $button-font-size-md: null !default;
34
+ $button-font-size-lg: null !default;
19
35
 
20
- $button-padding-x-sm: $button-padding-x / 2 !default;
21
- $button-padding-y-sm: $button-padding-y / 2 !default;
22
- $button-line-height-sm: (20 / 14) !default;
36
+ /// Line height used along with $font-size.
37
+ /// @group button
38
+ $button-line-height: (20 / 14) !default;
39
+ $button-line-height-sm: null !default;
40
+ $button-line-height-md: null !default;
41
+ $button-line-height-lg: null !default;
23
42
 
43
+ /// Calculated height of the button.
44
+ /// @group button
24
45
  $button-calc-size: calc( #{$button-line-height * 1em} + #{$button-padding-y * 2} + #{$button-border-width * 2} ) !default;
46
+
47
+ /// Calculated inner height of the button. Without the border width.
48
+ /// @group button
25
49
  $button-inner-calc-size: calc( #{$button-line-height * 1em} + #{$button-padding-y * 2} ) !default;
26
50
 
51
+ /// Theme colors map for the button.
52
+ /// @group button
53
+ $button-theme-colors: (
54
+ "primary": map-get( $theme-colors, primary ),
55
+ "secondary": map-get( $theme-colors, secondary ),
56
+ "tertiary": map-get( $theme-colors, tertiary ),
57
+ "info": map-get( $theme-colors, info ),
58
+ "success": map-get( $theme-colors, success ),
59
+ "warning": map-get( $theme-colors, warning ),
60
+ "error": map-get( $theme-colors, error ),
61
+ "dark": map-get( $theme-colors, dark ),
62
+ "light": map-get( $theme-colors, light ),
63
+ "inverse": map-get( $theme-colors, inverse )
64
+ ) !default;
65
+
27
66
  /// The background of the buttons.
28
67
  /// @group button
29
68
  $button-bg: $base-bg !default;
@@ -88,7 +127,7 @@ $button-focused-shadow: null !default;
88
127
  // Disabled button
89
128
  $button-disabled-bg: try-shade( $body-bg, 12% ) !default;
90
129
  $button-disabled-text: $disabled-text !default;
91
- $button-disabled-border: null !default;
130
+ $button-disabled-border: $button-disabled-bg !default;
92
131
  $button-disabled-gradient: null !default;
93
132
  $button-disabled-shadow: none !default;
94
133
 
@@ -120,7 +159,31 @@ $primary-button-selected-shadow: null !default;
120
159
 
121
160
  $primary-button-focused-shadow: null !default;
122
161
 
123
- $button-group-focus-shadow: null !default;
162
+ $solid-button-gradient: null !default;
163
+ $solid-button-shade-function: "try-shade";
164
+ $solid-button-shade-text-amount: null !default;
165
+ $solid-button-shade-bg-amount: 0 !default;
166
+ $solid-button-shade-border-amount: 0 !default;
167
+ $solid-button-hover-shade-text-amount: null !default;
168
+ $solid-button-hover-shade-bg-amount: null !default;
169
+ $solid-button-hover-shade-border-amount: null !default;
170
+ $solid-button-active-shade-text-amount: null !default;
171
+ $solid-button-active-shade-bg-amount: null !default;
172
+ $solid-button-active-shade-border-amount: null !default;
173
+ $solid-button-shadow: null !default;
174
+ $solid-button-shadow-blur: null !default;
175
+ $solid-button-shadow-spread: null !default;
176
+ $solid-button-shadow-opacity: null !default;
177
+
178
+ $outline-button-shadow: null !default;
179
+ $outline-button-shadow-blur: null !default;
180
+ $outline-button-shadow-spread: null !default;
181
+ $outline-button-shadow-opacity: null !default;
182
+
183
+ $link-button-shadow: null !default;
184
+ $link-button-shadow-blur: null !default;
185
+ $link-button-shadow-spread: null !default;
186
+ $link-button-shadow-opacity: null !default;
124
187
 
125
188
  $flat-button-hover-opacity: .08 !default;
126
189
  $flat-button-focus-opacity: .12 !default;
@@ -1 +1,12 @@
1
1
  @import "../../modules/@progress/kendo-theme-default/scss/maskedtextbox/_layout.scss";
2
+
3
+ @include exports( "maskedtextbox/layout/material" ) {
4
+
5
+ // Masked textbox
6
+ .k-maskedtextbox {
7
+ @include border-bottom-radius( 0 !important ); // sass-lint:disable-line no-important
8
+ border-width: $input-border-width 0;
9
+ border-top-color: transparent !important; // sass-lint:disable-line no-important
10
+ }
11
+
12
+ }
@@ -4,13 +4,11 @@
4
4
 
5
5
  .k-toolbar {
6
6
 
7
- .k-button,
8
- .k-button-secondary {
7
+ .k-button {
9
8
  background-color: try-shade( $button-bg );
10
9
  }
11
10
 
12
- .k-button-primary,
13
- .k-button.k-primary {
11
+ .k-button-primary {
14
12
  background-color: $primary-button-bg;
15
13
 
16
14
  &:disabled,