@progress/kendo-theme-classic 7.0.3-dev.3 → 7.1.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.
@@ -1,37 +1,70 @@
1
1
  // Tooltip
2
+
3
+ /// The vertical padding of the Tooltip.
4
+ /// @group tooltip
2
5
  $kendo-tooltip-padding-y: $kendo-padding-md-y !default;
6
+ /// The horizontal padding of the Tooltip.
7
+ /// @group tooltip
3
8
  $kendo-tooltip-padding-x: $kendo-padding-md-x !default;
4
- $kendo-tooltip-max-width: null !default;
9
+ /// The width of the border around the Tooltip.
10
+ /// @group tooltip
5
11
  $kendo-tooltip-border-width: 0px !default;
12
+ /// The border radius of the Tooltip.
13
+ /// @group tooltip
6
14
  $kendo-tooltip-border-radius: $kendo-border-radius-md !default;
7
15
 
16
+ /// The font family of the Tooltip.
17
+ /// @group tooltip
8
18
  $kendo-tooltip-font-family: $kendo-font-family !default;
19
+ /// The font size of the Tooltip.
20
+ /// @group tooltip
9
21
  $kendo-tooltip-font-size: $kendo-font-size-md !default;
22
+ /// The line height of the Tooltip.
23
+ /// @group tooltip
10
24
  $kendo-tooltip-line-height: 1.25 !default;
11
25
 
26
+ /// The font size of the Tooltip title.
27
+ /// @group tooltip
12
28
  $kendo-tooltip-title-font-size: ($kendo-tooltip-font-size * 1.25) !default;
29
+ /// The line height of the Tooltip title.
30
+ /// @group tooltip
13
31
  $kendo-tooltip-title-line-height: 1 !default;
14
32
 
33
+ /// The size of the Tooltip callout.
34
+ /// @group tooltip
15
35
  $kendo-tooltip-callout-size: 6px !default;
16
36
 
37
+ /// The default background of the Tooltip.
38
+ /// @group tooltip
17
39
  $kendo-tooltip-bg: rgba( k-contrast-color( $kendo-body-bg ), .75 ) !default;
40
+ /// The default text color of the Tooltip.
41
+ /// @group tooltip
18
42
  $kendo-tooltip-text: k-contrast-color( $kendo-tooltip-bg ) !default;
43
+ /// The default border color of the Tooltip.
44
+ /// @group tooltip
19
45
  $kendo-tooltip-border: $kendo-tooltip-bg !default;
20
46
 
47
+ /// The box-shadow of the Tooltip.
48
+ /// @group tooltip
21
49
  $kendo-tooltip-shadow: k-elevation(2) !default;
22
50
 
23
- $kendo-tooltip-primary-bg: $kendo-color-primary !default;
24
- $kendo-tooltip-primary-text: k-contrast-legacy( $kendo-tooltip-primary-bg ) !default;
25
- $kendo-tooltip-primary-border: $kendo-tooltip-primary-bg !default;
26
- $kendo-tooltip-info-bg: $kendo-color-info !default;
27
- $kendo-tooltip-info-text: k-contrast-color( $kendo-tooltip-info-bg ) !default;
28
- $kendo-tooltip-info-border: $kendo-tooltip-info-bg !default;
29
- $kendo-tooltip-success-bg: $kendo-color-success !default;
30
- $kendo-tooltip-success-text: k-contrast-color( $kendo-tooltip-success-bg ) !default;
31
- $kendo-tooltip-success-border: $kendo-tooltip-success-bg !default;
32
- $kendo-tooltip-warning-bg: $kendo-color-warning !default;
33
- $kendo-tooltip-warning-text: k-contrast-color( $kendo-tooltip-warning-bg ) !default;
34
- $kendo-tooltip-warning-border: $kendo-tooltip-warning-bg !default;
35
- $kendo-tooltip-error-bg: $kendo-color-error !default;
36
- $kendo-tooltip-error-text: k-contrast-color( $kendo-tooltip-error-bg ) !default;
37
- $kendo-tooltip-error-border: $kendo-tooltip-error-bg !default;
51
+ @function tooltip-theme( $colors ) {
52
+ $_theme: ();
53
+
54
+ @each $name, $color in $colors {
55
+ $_theme: k-map-merge(( $name: (
56
+ color: k-contrast-legacy( $color ),
57
+ background-color: $color,
58
+ border: $color,
59
+ )), $_theme );
60
+ }
61
+
62
+ @return $_theme;
63
+ }
64
+
65
+ /// The theme colors map for the Tooltip.
66
+ /// @group tooltip
67
+ $kendo-tooltip-theme-colors: $kendo-theme-colors !default;
68
+ /// The generated theme colors map for the Tooltip.
69
+ /// @group tooltip
70
+ $kendo-tooltip-theme: tooltip-theme( $kendo-tooltip-theme-colors ) !default;