@rio-cloud/rio-uikit 0.16.1 → 0.16.2-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 (209) hide show
  1. package/ColorScheme.d.ts +4 -0
  2. package/ColorScheme.js +2 -0
  3. package/Colors.js +1 -1
  4. package/components/charts/chartHelper.js +1 -1
  5. package/components/mapMarker/ClusterMapMarker.js +2 -2
  6. package/components/mapMarker/SingleMapMarker.js +2 -2
  7. package/components/sidebars/Sidebar.js +1 -1
  8. package/hooks/useScrollPosition.js +72 -0
  9. package/index.js +4 -1
  10. package/lib/es/ColorScheme.d.ts +4 -0
  11. package/lib/es/ColorScheme.js +18 -0
  12. package/lib/es/Colors.js +1 -1
  13. package/lib/es/components/charts/chartHelper.js +1 -1
  14. package/lib/es/components/mapMarker/ClusterMapMarker.js +2 -2
  15. package/lib/es/components/mapMarker/SingleMapMarker.js +2 -2
  16. package/lib/es/components/sidebars/Sidebar.js +1 -1
  17. package/lib/es/hooks/useScrollPosition.js +80 -0
  18. package/lib/es/index.js +24 -1
  19. package/lib/es/styles/components/Activity.less +9 -10
  20. package/lib/es/styles/components/ApplicationHeader.less +24 -29
  21. package/lib/es/styles/components/ApplicationLayout.less +7 -7
  22. package/lib/es/styles/components/AssetTree.less +30 -28
  23. package/lib/es/styles/components/AutoSuggest.less +2 -2
  24. package/lib/es/styles/components/BottomSheet.less +1 -2
  25. package/lib/es/styles/components/Carousel.less +13 -9
  26. package/lib/es/styles/components/Checkbox.less +15 -16
  27. package/lib/es/styles/components/ClearableInput.less +3 -3
  28. package/lib/es/styles/components/Counter.less +12 -12
  29. package/lib/es/styles/components/DataTabs.less +2 -2
  30. package/lib/es/styles/components/DatePicker.less +27 -27
  31. package/lib/es/styles/components/Dialog.less +15 -11
  32. package/lib/es/styles/components/Dropdown.less +11 -11
  33. package/lib/es/styles/components/Expander.less +7 -7
  34. package/lib/es/styles/components/ListMenu.less +8 -8
  35. package/lib/es/styles/components/MapHere.less +3 -2
  36. package/lib/es/styles/components/MapMarker.less +16 -17
  37. package/lib/es/styles/components/MapSettings.less +5 -5
  38. package/lib/es/styles/components/NoData.less +1 -1
  39. package/lib/es/styles/components/Notification.less +12 -12
  40. package/lib/es/styles/components/RadioButton.less +11 -12
  41. package/lib/es/styles/components/Resizer.less +1 -1
  42. package/lib/es/styles/components/Select.less +16 -26
  43. package/lib/es/styles/components/Sidebar.less +29 -21
  44. package/lib/es/styles/components/Slider.less +18 -18
  45. package/lib/es/styles/components/Spinner.less +6 -6
  46. package/lib/es/styles/components/StatsWidget.less +5 -5
  47. package/lib/es/styles/components/SteppedProgressBar.less +32 -29
  48. package/lib/es/styles/components/SupportMarker.less +1 -1
  49. package/lib/es/styles/components/Switch.less +8 -8
  50. package/lib/es/styles/components/TableSettingsDialog.less +7 -7
  51. package/lib/es/styles/components/TableToolbar.less +1 -1
  52. package/lib/es/styles/components/Tag.less +10 -10
  53. package/lib/es/styles/components/Timeline.less +3 -3
  54. package/lib/es/styles/components/Tooltip.less +10 -10
  55. package/lib/es/styles/design/badges.less +10 -10
  56. package/lib/es/styles/design/border.less +1 -1
  57. package/lib/es/styles/design/breadcrumbs.less +2 -2
  58. package/lib/es/styles/design/button-groups.less +25 -1
  59. package/lib/es/styles/design/buttons.less +53 -109
  60. package/lib/es/styles/design/callouts.less +3 -3
  61. package/lib/es/styles/design/code.less +4 -6
  62. package/lib/es/styles/design/colors.less +20 -20
  63. package/lib/es/styles/design/form-input-groups.less +4 -4
  64. package/lib/es/styles/design/form-inputs.less +33 -31
  65. package/lib/es/styles/design/images.less +2 -2
  66. package/lib/es/styles/design/labels.less +11 -11
  67. package/lib/es/styles/design/list-group.less +14 -12
  68. package/lib/es/styles/design/navs.less +27 -27
  69. package/lib/es/styles/design/normalize.less +0 -9
  70. package/lib/es/styles/design/pagination.less +10 -10
  71. package/lib/es/styles/design/panels.less +10 -10
  72. package/lib/es/styles/design/popovers.less +8 -8
  73. package/lib/es/styles/design/progress-bars.less +8 -8
  74. package/lib/es/styles/design/shadows.less +14 -7
  75. package/lib/es/styles/design/tables.less +68 -106
  76. package/lib/es/styles/design/text.less +5 -19
  77. package/lib/es/styles/design/theme.less +10 -10
  78. package/lib/es/styles/design/thumbnails.less +2 -2
  79. package/lib/es/styles/design/type.less +4 -4
  80. package/lib/es/styles/design/wells.less +1 -1
  81. package/lib/es/styles/mapping/color-map.less +65 -64
  82. package/lib/es/styles/mixins/_imports.less +14 -0
  83. package/lib/es/styles/mixins/buttons.less +24 -56
  84. package/lib/es/styles/mixins/forms.less +19 -55
  85. package/lib/es/styles/mixins/hsl.less +19 -0
  86. package/lib/es/styles/mixins/panels.less +2 -2
  87. package/lib/es/styles/print/print.less +7 -7
  88. package/lib/es/styles/rio-uikit-core.less +2 -2
  89. package/lib/es/styles/rio-uikit-print-utilities.less +2 -2
  90. package/lib/es/styles/rio-uikit-responsive-utilities.less +2 -2
  91. package/lib/es/styles/variables/_index.less +196 -0
  92. package/lib/es/styles/variables/colors.json +67 -0
  93. package/lib/es/styles/variables/concated_css_variables.less +66 -0
  94. package/lib/es/styles/variables/dark_colors.less +88 -0
  95. package/lib/es/styles/variables/dark_css_variables.less +28 -0
  96. package/lib/es/styles/variables/dark_css_variables_map.less +96 -0
  97. package/lib/es/styles/variables/light_colors.less +92 -0
  98. package/lib/es/styles/variables/light_css_variables.less +17 -0
  99. package/lib/es/styles/variables/light_css_variables_map.less +100 -0
  100. package/lib/es/styles/variables/screens.less +7 -0
  101. package/lib/es/styles/variables/text.less +23 -0
  102. package/lib/es/themes/BuyButton/styles/rio-buyButton.less +13 -8
  103. package/lib/es/themes/MAN/styles/man-uikit.less +3 -0
  104. package/lib/es/themes/SCANIA/styles/scania-uikit.less +3 -0
  105. package/lib/es/themes/Volkswagen/styles/vw-uikit.less +21 -30
  106. package/lib/es/themes/Website/styles/rio-website.less +145 -120
  107. package/lib/es/themes/Xmas/styles/rio-xmas.less +59 -29
  108. package/lib/es/types.ts +4 -0
  109. package/lib/es/useScrollPosition.d.ts +4 -0
  110. package/lib/es/useScrollPosition.js +13 -0
  111. package/lib/es/utils/colorScheme.js +57 -0
  112. package/lib/es/utils/init.js +2 -0
  113. package/lib/es/version.json +1 -1
  114. package/package.json +4 -3
  115. package/styles/components/Activity.less +9 -10
  116. package/styles/components/ApplicationHeader.less +24 -29
  117. package/styles/components/ApplicationLayout.less +7 -7
  118. package/styles/components/AssetTree.less +30 -28
  119. package/styles/components/AutoSuggest.less +2 -2
  120. package/styles/components/BottomSheet.less +1 -2
  121. package/styles/components/Carousel.less +13 -9
  122. package/styles/components/Checkbox.less +15 -16
  123. package/styles/components/ClearableInput.less +3 -3
  124. package/styles/components/Counter.less +12 -12
  125. package/styles/components/DataTabs.less +2 -2
  126. package/styles/components/DatePicker.less +27 -27
  127. package/styles/components/Dialog.less +15 -11
  128. package/styles/components/Dropdown.less +11 -11
  129. package/styles/components/Expander.less +7 -7
  130. package/styles/components/ListMenu.less +8 -8
  131. package/styles/components/MapHere.less +3 -2
  132. package/styles/components/MapMarker.less +16 -17
  133. package/styles/components/MapSettings.less +5 -5
  134. package/styles/components/NoData.less +1 -1
  135. package/styles/components/Notification.less +12 -12
  136. package/styles/components/RadioButton.less +11 -12
  137. package/styles/components/Resizer.less +1 -1
  138. package/styles/components/Select.less +16 -26
  139. package/styles/components/Sidebar.less +29 -21
  140. package/styles/components/Slider.less +18 -18
  141. package/styles/components/Spinner.less +6 -6
  142. package/styles/components/StatsWidget.less +5 -5
  143. package/styles/components/SteppedProgressBar.less +32 -29
  144. package/styles/components/SupportMarker.less +1 -1
  145. package/styles/components/Switch.less +8 -8
  146. package/styles/components/TableSettingsDialog.less +7 -7
  147. package/styles/components/TableToolbar.less +1 -1
  148. package/styles/components/Tag.less +10 -10
  149. package/styles/components/Timeline.less +3 -3
  150. package/styles/components/Tooltip.less +10 -10
  151. package/styles/design/badges.less +10 -10
  152. package/styles/design/border.less +1 -1
  153. package/styles/design/breadcrumbs.less +2 -2
  154. package/styles/design/button-groups.less +25 -1
  155. package/styles/design/buttons.less +53 -109
  156. package/styles/design/callouts.less +3 -3
  157. package/styles/design/code.less +4 -6
  158. package/styles/design/colors.less +20 -20
  159. package/styles/design/form-input-groups.less +4 -4
  160. package/styles/design/form-inputs.less +33 -31
  161. package/styles/design/images.less +2 -2
  162. package/styles/design/labels.less +11 -11
  163. package/styles/design/list-group.less +14 -12
  164. package/styles/design/navs.less +27 -27
  165. package/styles/design/normalize.less +0 -9
  166. package/styles/design/pagination.less +10 -10
  167. package/styles/design/panels.less +10 -10
  168. package/styles/design/popovers.less +8 -8
  169. package/styles/design/progress-bars.less +8 -8
  170. package/styles/design/shadows.less +14 -7
  171. package/styles/design/tables.less +68 -106
  172. package/styles/design/text.less +5 -19
  173. package/styles/design/theme.less +10 -10
  174. package/styles/design/thumbnails.less +2 -2
  175. package/styles/design/type.less +4 -4
  176. package/styles/design/wells.less +1 -1
  177. package/styles/mapping/color-map.less +65 -64
  178. package/styles/mixins/_imports.less +14 -0
  179. package/styles/mixins/buttons.less +24 -56
  180. package/styles/mixins/forms.less +19 -55
  181. package/styles/mixins/hsl.less +19 -0
  182. package/styles/mixins/panels.less +2 -2
  183. package/styles/print/print.less +7 -7
  184. package/styles/rio-uikit-core.less +2 -2
  185. package/styles/rio-uikit-print-utilities.less +2 -2
  186. package/styles/rio-uikit-responsive-utilities.less +2 -2
  187. package/styles/variables/_index.less +196 -0
  188. package/styles/variables/colors.json +67 -0
  189. package/styles/variables/concated_css_variables.less +66 -0
  190. package/styles/variables/dark_colors.less +88 -0
  191. package/styles/variables/dark_css_variables.less +28 -0
  192. package/styles/variables/dark_css_variables_map.less +96 -0
  193. package/styles/variables/light_colors.less +92 -0
  194. package/styles/variables/light_css_variables.less +17 -0
  195. package/styles/variables/light_css_variables_map.less +100 -0
  196. package/styles/variables/screens.less +7 -0
  197. package/styles/variables/text.less +23 -0
  198. package/themes/BuyButton/styles/rio-buyButton.less +13 -8
  199. package/themes/MAN/styles/man-uikit.less +3 -0
  200. package/themes/SCANIA/styles/scania-uikit.less +3 -0
  201. package/themes/Volkswagen/styles/vw-uikit.less +21 -30
  202. package/themes/Website/styles/rio-website.less +145 -120
  203. package/themes/Xmas/styles/rio-xmas.less +59 -29
  204. package/types.ts +4 -0
  205. package/useScrollPosition.d.ts +4 -0
  206. package/useScrollPosition.js +2 -0
  207. package/utils/colorScheme.js +48 -0
  208. package/utils/init.js +2 -0
  209. package/version.json +1 -1
@@ -3,7 +3,7 @@
3
3
  border-radius: @border-radius-sm;
4
4
  border-style: solid;
5
5
  border-width: 1px;
6
- color: @color-white;
6
+ color: var(--color-white);
7
7
  display: inline-block;
8
8
  font-size: 75%;
9
9
  font-weight: @font-medium;
@@ -32,23 +32,23 @@
32
32
  // danger
33
33
 
34
34
  &-default {
35
- color: @gray-dark;
35
+ color: var(--gray-dark);
36
36
 
37
37
  &.label-filled {
38
- color: @color-white;
39
- border-color: @gray-dark;
40
- background-color: @gray-dark;
38
+ color: var(--color-white);
39
+ border-color: var(--gray-dark);
40
+ background-color: var(--gray-dark);
41
41
  }
42
42
  }
43
43
 
44
44
  &-muted {
45
- color: @gray;
46
- border-color: @gray-light;
45
+ color: var(--gray);
46
+ border-color: var(--gray-light);
47
47
 
48
48
  &.label-filled {
49
- color: @gray-dark;
50
- border-color: @gray-light;
51
- background-color: @gray-lightest;
49
+ color: var(--gray-dark);
50
+ border-color: var(--gray-light);
51
+ background-color: var(--gray-lightest);
52
52
  }
53
53
  }
54
54
 
@@ -57,7 +57,7 @@
57
57
  color: @value;
58
58
 
59
59
  &.label-filled {
60
- color: @color-white;
60
+ color: var(--color-white);
61
61
  border-color: @value;
62
62
  background-color: @value;
63
63
  }
@@ -1,11 +1,13 @@
1
+ @list-group-item-hover-bg: var(--gray-lightest);
2
+
1
3
  .list-group {
2
4
  .reset-list();
3
5
  margin-bottom: 20px;
4
6
  }
5
7
 
6
8
  .list-group-item {
7
- background-color: @color-white;
8
- border: 1px solid @gray-light;
9
+ background-color: var(--color-white);
10
+ border: 1px solid var(--gray-light);
9
11
  display: block;
10
12
  margin-bottom: -1px;
11
13
  padding: 10px 15px;
@@ -31,17 +33,17 @@
31
33
  &.disabled,
32
34
  &.disabled:hover,
33
35
  &.disabled:focus {
34
- background-color: @gray-lighter;
35
- color: @gray-light;
36
+ background-color: var(--gray-lighter);
37
+ color: var(--gray-light);
36
38
  cursor: not-allowed;
37
39
  }
38
40
 
39
41
  &.active,
40
42
  &.active:hover,
41
43
  &.active:focus {
42
- background-color: @brand-primary;
43
- border-color: @brand-primary;
44
- color: @color-white;
44
+ background-color: var(--brand-primary);
45
+ border-color: var(--brand-primary);
46
+ color: var(--color-white);
45
47
  z-index: 2;
46
48
  }
47
49
 
@@ -49,12 +51,12 @@
49
51
  button&,
50
52
  &.list-group-item-link {
51
53
  cursor: pointer;
52
- color: @gray-darkest;
54
+ color: var(--gray-darkest);
53
55
 
54
56
  &:hover,
55
57
  &:focus {
56
- background-color: @gray-lightest;
57
- color: @gray-darkest;
58
+ background-color: @list-group-item-hover-bg;
59
+ color: var(--gray-darkest);
58
60
  text-decoration: none;
59
61
  }
60
62
  }
@@ -67,7 +69,7 @@
67
69
  // warning
68
70
  // danger
69
71
  &-default {
70
- box-shadow: inset 5px 0 0 0 @gray;
72
+ box-shadow: inset 5px 0 0 0 var(--gray);
71
73
  }
72
74
 
73
75
  each(@colors-brand-and-status-map, {
@@ -94,7 +96,7 @@
94
96
  &.active,
95
97
  &.active:hover,
96
98
  &.active:focus {
97
- color: @color-white;
99
+ color: var(--color-white);
98
100
  background-color: @value;
99
101
  border-color: @value;
100
102
  }
@@ -23,7 +23,7 @@
23
23
 
24
24
  &.disabled,
25
25
  &:disabled {
26
- color: @gray-light;
26
+ color: var(--gray-light);
27
27
  pointer-events: none;
28
28
  }
29
29
  }
@@ -33,7 +33,7 @@
33
33
  cursor: not-allowed;
34
34
 
35
35
  > a, > span, > div {
36
- color: @gray-light;
36
+ color: var(--gray-light);
37
37
  pointer-events: none;
38
38
  }
39
39
  }
@@ -71,9 +71,9 @@
71
71
  }
72
72
 
73
73
  // nav tabs
74
- @nav-tabs-border-color: @gray-light;
75
- @nav-tabs-link-hover-border-color: @brand-primary;
76
- @nav-tabs-active-link-hover-border-color: @gray-light;
74
+ @nav-tabs-border-color: var(--gray-light);
75
+ @nav-tabs-link-hover-border-color: var(--brand-primary);
76
+ @nav-tabs-active-link-hover-border-color: var(--gray-light);
77
77
 
78
78
  .nav-tabs {
79
79
  border-bottom: 1px solid @nav-tabs-border-color;
@@ -92,15 +92,15 @@
92
92
  > a, > span, > div {
93
93
  border-radius: @border-radius-default @border-radius-default 0 0;
94
94
  border: 1px solid transparent;
95
- color: @gray-dark;
95
+ color: var(--gray-dark);
96
96
  cursor: pointer;
97
97
  line-height: @line-height-default;
98
98
  transition: all 100ms ease-in-out;
99
99
 
100
100
  &:hover,
101
101
  &:focus {
102
- color: @gray-darkest;
103
- background-color: @gray-lightest;
102
+ color: var(--gray-darkest);
103
+ background-color: var(--gray-lightest);
104
104
  border-color: @nav-tabs-border-color;
105
105
  outline: 0;
106
106
  }
@@ -109,12 +109,12 @@
109
109
  &.active {
110
110
  > a, > span, > div,
111
111
  > a:hover, > span:hover, > div:hover {
112
- background-color: @color-white;
112
+ background-color: var(--color-white);
113
113
  border-bottom: 1px solid transparent;
114
114
  border-left: 1px solid @nav-tabs-active-link-hover-border-color;
115
115
  border-right: 1px solid @nav-tabs-active-link-hover-border-color;
116
116
  border-top: 1px solid @nav-tabs-active-link-hover-border-color;
117
- color: @gray-darkest;
117
+ color: var(--gray-darkest);
118
118
  cursor: default;
119
119
 
120
120
  &:before {
@@ -128,7 +128,7 @@
128
128
  .tab-content {
129
129
  margin: 0;
130
130
  padding: 15px;
131
- background-color: @color-white;
131
+ background-color: var(--color-white);
132
132
  transition: all 200ms ease-in-out;
133
133
  }
134
134
 
@@ -140,8 +140,8 @@
140
140
 
141
141
  // nav pills
142
142
  @nav-pills-border-radius: @border-radius-default;
143
- @nav-pills-active-link-hover-bg: @brand-primary;
144
- @nav-pills-active-link-hover-color: @color-white;
143
+ @nav-pills-active-link-hover-bg: var(--brand-primary);
144
+ @nav-pills-active-link-hover-color: var(--color-white);
145
145
 
146
146
  .nav-pills {
147
147
  &:not(.nav-stacked) {
@@ -151,13 +151,13 @@
151
151
 
152
152
  > li {
153
153
  > a, > span, > div {
154
- color: @gray-dark;
154
+ color: var(--gray-dark);
155
155
  line-height: 22px;
156
156
  transition: all 100ms ease-in-out;
157
157
 
158
158
  &:hover,
159
159
  &:focus {
160
- color: @gray-darkest;
160
+ color: var(--gray-darkest);
161
161
  outline: 0;
162
162
  }
163
163
  }
@@ -165,14 +165,14 @@
165
165
  &.active,
166
166
  &:active {
167
167
  > a, > span, > div {
168
- color: @gray-darkest;
168
+ color: var(--gray-darkest);
169
169
  }
170
170
  }
171
171
 
172
172
  &.disabled,
173
173
  &:disabled {
174
174
  > a, > span, > div {
175
- color: @gray-light;
175
+ color: var(--gray-light);
176
176
 
177
177
  &:hover {
178
178
  box-shadow: none;
@@ -182,19 +182,19 @@
182
182
  }
183
183
 
184
184
  &:not(.nav-stacked):not(.nav-pills-filled) {
185
- box-shadow: 0 -1px inset @gray-dark;
185
+ box-shadow: 0 -1px inset var(--gray-dark);
186
186
  > li {
187
187
  > a, > span, > div {
188
188
  &:hover,
189
189
  &:focus {
190
- box-shadow: inset 0px -4px 0px 0px @gray-dark;
190
+ box-shadow: inset 0px -4px 0px 0px var(--gray-dark);
191
191
  }
192
192
  }
193
193
 
194
194
  &.active,
195
195
  &:active {
196
196
  > a, > span, > div {
197
- box-shadow: inset 0px -3px 0px 0px @gray-dark;
197
+ box-shadow: inset 0px -3px 0px 0px var(--gray-dark);
198
198
  }
199
199
  }
200
200
  }
@@ -219,7 +219,7 @@
219
219
  }
220
220
 
221
221
  &.nav-pills-filled {
222
- background: @gray-lightest;
222
+ background: var(--gray-lightest);
223
223
  border-radius: @nav-pills-border-radius;
224
224
  padding: @nav-pills-border-radius;
225
225
 
@@ -227,7 +227,7 @@
227
227
  &.active,
228
228
  &:hover {
229
229
  &:extend(.shadow-default);
230
- background: @color-white;
230
+ background: var(--color-white);
231
231
  border-radius: @nav-pills-border-radius;
232
232
  }
233
233
  }
@@ -240,7 +240,7 @@
240
240
  }
241
241
 
242
242
  > a, > span, > div {
243
- color: @gray-darkest;
243
+ color: var(--gray-darkest);
244
244
  border-radius: @nav-pills-border-radius;
245
245
  }
246
246
  }
@@ -248,7 +248,7 @@
248
248
  > li:not(.disabled):not(:disabled):not(.active) {
249
249
  &:hover {
250
250
  > a, > span, > div {
251
- background-color: @gray-lightest;
251
+ background-color: var(--gray-lightest);
252
252
  }
253
253
  }
254
254
  }
@@ -256,11 +256,11 @@
256
256
  &:not(.nav-pills-stacked-decent) {
257
257
  > li.active {
258
258
  > a, > span, > div {
259
- color: @color-white;
259
+ color: var(--color-white);
260
260
  background-color: @nav-pills-active-link-hover-bg;
261
261
 
262
262
  &:hover {
263
- color: @color-white;
263
+ color: var(--color-white);
264
264
  }
265
265
  }
266
266
  }
@@ -269,7 +269,7 @@
269
269
  &.nav-pills-stacked-decent {
270
270
  > li.active {
271
271
  > a, > span, > div {
272
- background-color: @color-highlight-lightest;
272
+ background-color: var(--color-highlight-lightest);
273
273
  }
274
274
  }
275
275
  }
@@ -145,15 +145,6 @@ html {
145
145
  margin: 0.67em 0;
146
146
  }
147
147
 
148
- //
149
- // Address styling not present in IE 8/9.
150
- //
151
-
152
- mark {
153
- background: #ff0;
154
- color: #000;
155
- }
156
-
157
148
  //
158
149
  // Address inconsistent and variable font size in all browsers.
159
150
  //
@@ -1,7 +1,7 @@
1
1
  // Pagination
2
- @pagination-color: @gray-dark;
3
- @pagination-active-bg: @gray-lighter;
4
- @pagination-active-color: @gray-dark;
2
+ @pagination-color: var(--gray-dark);
3
+ @pagination-active-bg: var(--gray-lighter);
4
+ @pagination-active-color: var(--gray-dark);
5
5
 
6
6
  .pagination {
7
7
  .reset-list();
@@ -60,16 +60,16 @@
60
60
  }
61
61
 
62
62
  &:empty {
63
- background: @color-highlight-decent;
63
+ background: var(--color-highlight-decent);
64
64
  border-radius: @border-radius-sm;
65
- border: 1px solid @color-highlight;
65
+ border: 1px solid var(--color-highlight);
66
66
  height: 10px;
67
67
  margin: 0 5px;
68
68
  width: 20px;
69
69
 
70
70
  &.active,
71
71
  &:hover {
72
- background: @color-highlight;
72
+ background: var(--color-highlight);
73
73
  }
74
74
  }
75
75
 
@@ -96,9 +96,9 @@
96
96
  }
97
97
 
98
98
  // Pager
99
- @pager-border: @gray-light;
100
- @pager-hover-bg: @gray-lighter;
101
- @pager-active-bg: @gray;
99
+ @pager-border: var(--gray-light);
100
+ @pager-hover-bg: var(--gray-lighter);
101
+ @pager-active-bg: var(--gray);
102
102
  @pager-active-color: @pagination-active-color;
103
103
 
104
104
  .pager {
@@ -153,7 +153,7 @@
153
153
  &,
154
154
  &:hover,
155
155
  &:focus {
156
- color: @gray-light;
156
+ color: var(--gray-light);
157
157
  cursor: not-allowed;
158
158
  }
159
159
  }
@@ -2,7 +2,7 @@
2
2
  @panel-y-padding: 10px;
3
3
 
4
4
  .panel {
5
- background-color: @color-white;
5
+ background-color: var(--color-white);
6
6
  border-radius: @border-radius-default;
7
7
  border: 1px solid transparent;
8
8
  margin-bottom: @grid-gutter-height;
@@ -13,15 +13,15 @@
13
13
 
14
14
  &.panel-default {
15
15
  &.active {
16
- background-color: @color-highlight-decent;
17
- border: 1px solid @brand-primary;
18
- box-shadow: inset 0 0 0 1px @brand-primary;
16
+ background-color: var(--color-highlight-decent);
17
+ border: 1px solid var(--brand-primary);
18
+ box-shadow: inset 0 0 0 1px var(--brand-primary);
19
19
 
20
20
  .panel-heading,
21
21
  .panel-footer {
22
- background-color: @color-highlight-decent;
23
- border-color: @brand-primary;
24
- box-shadow: inset 0 0 0 1px @brand-primary;
22
+ background-color: var(--color-highlight-decent);
23
+ border-color: var(--brand-primary);
24
+ box-shadow: inset 0 0 0 1px var(--brand-primary);
25
25
  }
26
26
  }
27
27
  }
@@ -66,7 +66,7 @@
66
66
  }
67
67
 
68
68
  // default
69
- .panel-variant(@color-white, @gray-light, @gray-darkest);
69
+ .panel-variant(var(--color-white), var(--gray-light), var(--gray-darkest));
70
70
 
71
71
  // primary
72
72
  // secondary
@@ -76,7 +76,7 @@
76
76
  // danger
77
77
  each(@colors-brand-and-status-map, {
78
78
  &.panel-@{key} {
79
- .panel-variant(@value, @value, @color-white);
79
+ .panel-variant(@value, @value, var(--color-white));
80
80
  }
81
81
  })
82
82
  }
@@ -86,7 +86,7 @@
86
86
  padding: @panel-x-padding;
87
87
 
88
88
  ~ .table {
89
- border-top: 1px solid @gray-light;
89
+ border-top: 1px solid var(--gray-light);
90
90
  margin-bottom: 0
91
91
  }
92
92
 
@@ -1,6 +1,6 @@
1
1
  @popover-max-width: 550px;
2
- @popover-color: @color-white;
3
- @popover-arrow-color: @color-white;
2
+ @popover-color: var(--color-white);
3
+ @popover-arrow-color: var(--color-white);
4
4
  @popover-arrow-width: 12px;
5
5
  @popover-arrow-outer-width: 11px;
6
6
 
@@ -9,14 +9,14 @@
9
9
  background-clip: padding-box;
10
10
  background-color: @popover-color;
11
11
  border-radius: @border-radius-lg;
12
- border: 1px solid @gray-light;
12
+ border: 1px solid var(--gray-light);
13
13
  max-width: @popover-max-width;
14
14
  padding: 0;
15
15
  position: absolute;
16
16
  z-index: @zindex-popover;
17
17
 
18
18
  .popover-title {
19
- border-bottom: 1px solid @gray-light;
19
+ border-bottom: 1px solid var(--gray-light);
20
20
  padding: 13px 14px;
21
21
  font-weight: normal;
22
22
  }
@@ -53,7 +53,7 @@
53
53
  > .arrow {
54
54
  left: 50%;
55
55
  border-bottom-width: 0;
56
- border-top-color: @gray-light;
56
+ border-top-color: var(--gray-light);
57
57
  bottom: -(@popover-arrow-outer-width);
58
58
 
59
59
  &:after {
@@ -71,7 +71,7 @@
71
71
  top: 50%;
72
72
  left: -(@popover-arrow-outer-width);
73
73
  border-left-width: 0;
74
- border-right-color: @gray-light;
74
+ border-right-color: var(--gray-light);
75
75
 
76
76
  &:after {
77
77
  content: "";
@@ -87,7 +87,7 @@
87
87
  > .arrow {
88
88
  left: 50%;
89
89
  border-top-width: 0;
90
- border-bottom-color: @gray-light;
90
+ border-bottom-color: var(--gray-light);
91
91
  top: -(@popover-arrow-outer-width);
92
92
 
93
93
  &:after {
@@ -105,7 +105,7 @@
105
105
  top: 50%;
106
106
  right: -(@popover-arrow-outer-width);
107
107
  border-right-width: 0;
108
- border-left-color: @gray-light;
108
+ border-left-color: var(--gray-light);
109
109
 
110
110
  &:after {
111
111
  content: "";
@@ -1,11 +1,11 @@
1
1
  .progress-divider {
2
2
  &:not(:last-child) {
3
- box-shadow: inset -2px 0 0 @color-white;
3
+ box-shadow: inset -2px 0 0 var(--color-white);
4
4
  }
5
5
 
6
6
  &:only-child {
7
7
  &:not([style*="width: 100%"]):not([style*="width: 99%"]):not([style*="width: 98%"]) {
8
- box-shadow: inset -2px 0 0 @color-white;
8
+ box-shadow: inset -2px 0 0 var(--color-white);
9
9
  }
10
10
  }
11
11
  }
@@ -18,13 +18,13 @@
18
18
  .progress {
19
19
  height: 10px;
20
20
  overflow: hidden;
21
- background-color: @gray-lighter;
21
+ background-color: var(--gray-lighter);
22
22
  border-radius: @border-radius-default;
23
23
  // margin-bottom: @grid-gutter-height;
24
24
 
25
25
  .progress-bar {
26
- background-color: @brand-primary;
27
- color: @color-white;
26
+ background-color: var(--brand-primary);
27
+ color: var(--color-white);
28
28
  float: left;
29
29
  font-size: @font-size-sm;
30
30
  height: 100%;
@@ -44,11 +44,11 @@
44
44
  // muted
45
45
  // white
46
46
  &.progress-bar-muted {
47
- background-color: @gray-lighter !important
47
+ background-color: var(--gray-lighter) !important
48
48
  }
49
49
 
50
50
  &.progress-bar-white {
51
- background-color: @color-white !important
51
+ background-color: var(--color-white) !important
52
52
  }
53
53
 
54
54
  // info
@@ -118,7 +118,7 @@
118
118
 
119
119
  .progress-striped .progress-bar, // backward compatibility
120
120
  .progress-bar-striped {
121
- @color: rgba(255,255,255,.15);
121
+ @color: .hsla(@color-white-hsl, 0.15)[@result];
122
122
  @angle: 45deg;
123
123
  background-size: 40px 40px;
124
124
  background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
@@ -1,19 +1,26 @@
1
- @smooth-shadow: rgba(0,0,0,.01);
2
- @hard-shadow: rgba(0,0,0,.03);
1
+ @smooth-shadow: .hsla(@always-color-black-hsl, 0.01)[@result];
2
+ @hard-shadow: .hsla(@always-color-black-hsl, 0.03)[@result];
3
+
4
+ @default-shadow-layer-1: 0 2px 1px -1px .hsla(@always-color-black-hsl, 0.1)[@result];
5
+ @default-shadow-layer-2: 0 1px 5px 0 .hsla(@always-color-black-hsl, 0.05)[@result];
6
+ @default-shadow-layer-3: 0 1px 10px 0 .hsla(@always-color-black-hsl, 0.05)[@result];
7
+
8
+ @default-accent-layer-1: 0 0 1px 0 .hsla(@always-color-black-hsl, 0.2)[@result];
9
+ @default-accent-layer-2: 0 2px 4px -1px .hsla(@always-color-black-hsl, 0.2)[@result];
3
10
 
4
11
  .shadow-none { box-shadow: none !important }
5
12
 
6
13
  .shadow-default {
7
14
  box-shadow:
8
- 0 2px 1px -1px rgba(196, 206, 214, 0.33),
9
- 0 1px 1px 0 rgba(181, 191, 199, 0.1),
10
- 0 1px 4px 0 rgba(119, 142, 160, 0.25) !important;
15
+ @default-shadow-layer-1,
16
+ @default-shadow-layer-2,
17
+ @default-shadow-layer-3 !important;
11
18
  }
12
19
 
13
20
  .shadow-accent {
14
21
  box-shadow:
15
- 0 0 1px 0 rgb(9 30 65 / 30%),
16
- 0 2px 4px -1px rgb(9 30 65 / 25%) !important;
22
+ @default-accent-layer-1,
23
+ @default-accent-layer-2 !important;
17
24
  }
18
25
 
19
26
  .shadow-smooth {