@rio-cloud/rio-uikit 0.16.1-beta.24 → 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 (292) hide show
  1. package/AutoSuggest.d.ts +6 -5
  2. package/Bar.d.ts +4 -1
  3. package/Carousel.d.ts +2 -0
  4. package/ColorScheme.d.ts +4 -0
  5. package/ColorScheme.js +2 -0
  6. package/Colors.js +1 -1
  7. package/ConfirmationDialog.d.ts +8 -1
  8. package/ContentLoader.d.ts +4 -1
  9. package/ExpanderList.d.ts +5 -5
  10. package/Fade.d.ts +10 -1
  11. package/FilePicker.d.ts +5 -1
  12. package/ListMenu.d.ts +6 -5
  13. package/Map.d.ts +10 -7
  14. package/MediaDialog.d.ts +8 -4
  15. package/MenuItem.d.ts +1 -1
  16. package/Multiselect.d.ts +11 -4
  17. package/NumberControl.d.ts +4 -1
  18. package/NumberInput.d.ts +4 -1
  19. package/OnboardingTip.d.ts +26 -1
  20. package/OverlayTrigger.d.ts +25 -1
  21. package/Popover.d.ts +7 -1
  22. package/Resizer.d.ts +9 -1
  23. package/ResponsiveVideo.d.ts +4 -1
  24. package/RuleConnector.d.ts +5 -1
  25. package/SaveDialog.d.ts +8 -1
  26. package/Select.d.ts +5 -5
  27. package/Sidebar.d.ts +7 -1
  28. package/SimpleDialog.d.ts +8 -1
  29. package/SimpleTooltip.d.ts +25 -1
  30. package/SplitDialog.d.ts +8 -1
  31. package/SteppedProgressBar.d.ts +5 -1
  32. package/Switch.d.ts +4 -1
  33. package/TagManager.d.ts +5 -5
  34. package/Tooltip.d.ts +28 -1
  35. package/components/charts/chartHelper.js +1 -1
  36. package/components/dropdown/ButtonDropdown.js +9 -3
  37. package/components/mapMarker/ClusterMapMarker.js +2 -2
  38. package/components/mapMarker/SingleMapMarker.js +2 -2
  39. package/components/rules/RuleConnector.js +4 -1
  40. package/components/selects/BaseDropdownMenu.js +40 -26
  41. package/components/selects/Multiselect.js +5 -3
  42. package/components/selects/Select.js +7 -5
  43. package/components/sidebars/Sidebar.js +1 -1
  44. package/framer-motion.d.ts +1 -0
  45. package/hooks/useScrollPosition.js +72 -0
  46. package/index.js +4 -1
  47. package/lib/es/AutoSuggest.d.ts +6 -5
  48. package/lib/es/Bar.d.ts +4 -1
  49. package/lib/es/Carousel.d.ts +2 -0
  50. package/lib/es/ColorScheme.d.ts +4 -0
  51. package/lib/es/ColorScheme.js +18 -0
  52. package/lib/es/Colors.js +1 -1
  53. package/lib/es/ConfirmationDialog.d.ts +8 -1
  54. package/lib/es/ContentLoader.d.ts +4 -1
  55. package/lib/es/ExpanderList.d.ts +5 -5
  56. package/lib/es/Fade.d.ts +10 -1
  57. package/lib/es/FilePicker.d.ts +5 -1
  58. package/lib/es/ListMenu.d.ts +6 -5
  59. package/lib/es/Map.d.ts +10 -7
  60. package/lib/es/MediaDialog.d.ts +8 -4
  61. package/lib/es/MenuItem.d.ts +1 -1
  62. package/lib/es/Multiselect.d.ts +11 -4
  63. package/lib/es/NumberControl.d.ts +4 -1
  64. package/lib/es/NumberInput.d.ts +4 -1
  65. package/lib/es/OnboardingTip.d.ts +26 -1
  66. package/lib/es/OverlayTrigger.d.ts +25 -1
  67. package/lib/es/Popover.d.ts +7 -1
  68. package/lib/es/Resizer.d.ts +9 -1
  69. package/lib/es/ResponsiveVideo.d.ts +4 -1
  70. package/lib/es/RuleConnector.d.ts +5 -1
  71. package/lib/es/SaveDialog.d.ts +8 -1
  72. package/lib/es/Select.d.ts +5 -5
  73. package/lib/es/Sidebar.d.ts +7 -1
  74. package/lib/es/SimpleDialog.d.ts +8 -1
  75. package/lib/es/SimpleTooltip.d.ts +25 -1
  76. package/lib/es/SplitDialog.d.ts +8 -1
  77. package/lib/es/SteppedProgressBar.d.ts +5 -1
  78. package/lib/es/Switch.d.ts +4 -1
  79. package/lib/es/TagManager.d.ts +5 -5
  80. package/lib/es/Tooltip.d.ts +28 -1
  81. package/lib/es/components/charts/chartHelper.js +1 -1
  82. package/lib/es/components/dropdown/ButtonDropdown.js +9 -3
  83. package/lib/es/components/mapMarker/ClusterMapMarker.js +2 -2
  84. package/lib/es/components/mapMarker/SingleMapMarker.js +2 -2
  85. package/lib/es/components/rules/RuleConnector.js +4 -1
  86. package/lib/es/components/selects/BaseDropdownMenu.js +40 -26
  87. package/lib/es/components/selects/Multiselect.js +5 -3
  88. package/lib/es/components/selects/Select.js +7 -5
  89. package/lib/es/components/sidebars/Sidebar.js +1 -1
  90. package/lib/es/framer-motion.d.ts +1 -0
  91. package/lib/es/hooks/useScrollPosition.js +80 -0
  92. package/lib/es/index.js +24 -1
  93. package/lib/es/styles/components/Activity.less +9 -10
  94. package/lib/es/styles/components/ApplicationHeader.less +24 -29
  95. package/lib/es/styles/components/ApplicationLayout.less +7 -7
  96. package/lib/es/styles/components/AssetTree.less +30 -28
  97. package/lib/es/styles/components/AutoSuggest.less +2 -2
  98. package/lib/es/styles/components/BottomSheet.less +1 -2
  99. package/lib/es/styles/components/Carousel.less +13 -9
  100. package/lib/es/styles/components/Checkbox.less +15 -16
  101. package/lib/es/styles/components/ClearableInput.less +3 -3
  102. package/lib/es/styles/components/Counter.less +12 -12
  103. package/lib/es/styles/components/DataTabs.less +2 -2
  104. package/lib/es/styles/components/DatePicker.less +27 -27
  105. package/lib/es/styles/components/Dialog.less +15 -11
  106. package/lib/es/styles/components/Dropdown.less +22 -13
  107. package/lib/es/styles/components/Expander.less +7 -7
  108. package/lib/es/styles/components/ListMenu.less +8 -8
  109. package/lib/es/styles/components/MapHere.less +3 -2
  110. package/lib/es/styles/components/MapMarker.less +16 -17
  111. package/lib/es/styles/components/MapSettings.less +5 -5
  112. package/lib/es/styles/components/NoData.less +1 -1
  113. package/lib/es/styles/components/Notification.less +12 -12
  114. package/lib/es/styles/components/RadioButton.less +11 -12
  115. package/lib/es/styles/components/Resizer.less +1 -1
  116. package/lib/es/styles/components/Select.less +21 -32
  117. package/lib/es/styles/components/Sidebar.less +29 -21
  118. package/lib/es/styles/components/Slider.less +18 -18
  119. package/lib/es/styles/components/Spinner.less +6 -6
  120. package/lib/es/styles/components/StatsWidget.less +5 -5
  121. package/lib/es/styles/components/SteppedProgressBar.less +32 -29
  122. package/lib/es/styles/components/SupportMarker.less +1 -1
  123. package/lib/es/styles/components/Switch.less +8 -8
  124. package/lib/es/styles/components/TableSettingsDialog.less +7 -7
  125. package/lib/es/styles/components/TableToolbar.less +1 -1
  126. package/lib/es/styles/components/Tag.less +10 -10
  127. package/lib/es/styles/components/Timeline.less +3 -3
  128. package/lib/es/styles/components/Tooltip.less +10 -10
  129. package/lib/es/styles/design/badges.less +10 -10
  130. package/lib/es/styles/design/border.less +1 -1
  131. package/lib/es/styles/design/breadcrumbs.less +2 -2
  132. package/lib/es/styles/design/button-groups.less +25 -1
  133. package/lib/es/styles/design/buttons.less +53 -109
  134. package/lib/es/styles/design/callouts.less +3 -3
  135. package/lib/es/styles/design/code.less +4 -6
  136. package/lib/es/styles/design/colors.less +20 -20
  137. package/lib/es/styles/design/fonts.less +23 -23
  138. package/lib/es/styles/design/form-input-groups.less +4 -4
  139. package/lib/es/styles/design/form-inputs.less +33 -31
  140. package/lib/es/styles/design/images.less +2 -2
  141. package/lib/es/styles/design/labels.less +11 -11
  142. package/lib/es/styles/design/list-group.less +14 -12
  143. package/lib/es/styles/design/navs.less +27 -27
  144. package/lib/es/styles/design/normalize.less +0 -11
  145. package/lib/es/styles/design/pagination.less +10 -10
  146. package/lib/es/styles/design/panels.less +10 -10
  147. package/lib/es/styles/design/popovers.less +8 -8
  148. package/lib/es/styles/design/progress-bars.less +8 -8
  149. package/lib/es/styles/design/responsive/flexgrid.less +4 -6
  150. package/lib/es/styles/design/responsive/sizing.less +3 -0
  151. package/lib/es/styles/design/shadows.less +14 -7
  152. package/lib/es/styles/design/tables.less +68 -106
  153. package/lib/es/styles/design/text.less +5 -19
  154. package/lib/es/styles/design/theme.less +10 -10
  155. package/lib/es/styles/design/thumbnails.less +2 -2
  156. package/lib/es/styles/design/type.less +4 -4
  157. package/lib/es/styles/design/wells.less +1 -1
  158. package/lib/es/styles/mapping/color-map.less +65 -64
  159. package/lib/es/styles/mixins/_imports.less +14 -0
  160. package/lib/es/styles/mixins/buttons.less +24 -56
  161. package/lib/es/styles/mixins/forms.less +19 -55
  162. package/lib/es/styles/mixins/hsl.less +19 -0
  163. package/lib/es/styles/mixins/panels.less +2 -2
  164. package/lib/es/styles/print/print.less +7 -7
  165. package/lib/es/styles/rio-uikit-core.less +2 -2
  166. package/lib/es/styles/rio-uikit-print-utilities.less +2 -2
  167. package/lib/es/styles/rio-uikit-responsive-utilities.less +2 -2
  168. package/lib/es/styles/variables/_index.less +196 -0
  169. package/lib/es/styles/variables/colors.json +67 -0
  170. package/lib/es/styles/variables/concated_css_variables.less +66 -0
  171. package/lib/es/styles/variables/dark_colors.less +88 -0
  172. package/lib/es/styles/variables/dark_css_variables.less +28 -0
  173. package/lib/es/styles/variables/dark_css_variables_map.less +96 -0
  174. package/lib/es/styles/variables/light_colors.less +92 -0
  175. package/lib/es/styles/variables/light_css_variables.less +17 -0
  176. package/lib/es/styles/variables/light_css_variables_map.less +100 -0
  177. package/lib/es/styles/variables/screens.less +7 -0
  178. package/lib/es/styles/variables/text.less +23 -0
  179. package/lib/es/themes/BuyButton/styles/rio-buyButton.less +13 -8
  180. package/lib/es/themes/MAN/styles/man-uikit.less +3 -0
  181. package/lib/es/themes/SCANIA/styles/scania-uikit.less +3 -0
  182. package/lib/es/themes/Volkswagen/styles/vw-uikit.less +21 -30
  183. package/lib/es/themes/Website/styles/rio-website.less +145 -120
  184. package/lib/es/themes/Xmas/styles/rio-xmas.less +59 -29
  185. package/lib/es/types.ts +20 -16
  186. package/lib/es/useScrollPosition.d.ts +4 -0
  187. package/lib/es/{BoxConnector.js → useScrollPosition.js} +2 -2
  188. package/lib/es/utils/colorScheme.js +57 -0
  189. package/lib/es/utils/init.js +2 -0
  190. package/lib/es/version.json +1 -1
  191. package/package.json +6 -4
  192. package/styles/components/Activity.less +9 -10
  193. package/styles/components/ApplicationHeader.less +24 -29
  194. package/styles/components/ApplicationLayout.less +7 -7
  195. package/styles/components/AssetTree.less +30 -28
  196. package/styles/components/AutoSuggest.less +2 -2
  197. package/styles/components/BottomSheet.less +1 -2
  198. package/styles/components/Carousel.less +13 -9
  199. package/styles/components/Checkbox.less +15 -16
  200. package/styles/components/ClearableInput.less +3 -3
  201. package/styles/components/Counter.less +12 -12
  202. package/styles/components/DataTabs.less +2 -2
  203. package/styles/components/DatePicker.less +27 -27
  204. package/styles/components/Dialog.less +15 -11
  205. package/styles/components/Dropdown.less +22 -13
  206. package/styles/components/Expander.less +7 -7
  207. package/styles/components/ListMenu.less +8 -8
  208. package/styles/components/MapHere.less +3 -2
  209. package/styles/components/MapMarker.less +16 -17
  210. package/styles/components/MapSettings.less +5 -5
  211. package/styles/components/NoData.less +1 -1
  212. package/styles/components/Notification.less +12 -12
  213. package/styles/components/RadioButton.less +11 -12
  214. package/styles/components/Resizer.less +1 -1
  215. package/styles/components/Select.less +21 -32
  216. package/styles/components/Sidebar.less +29 -21
  217. package/styles/components/Slider.less +18 -18
  218. package/styles/components/Spinner.less +6 -6
  219. package/styles/components/StatsWidget.less +5 -5
  220. package/styles/components/SteppedProgressBar.less +32 -29
  221. package/styles/components/SupportMarker.less +1 -1
  222. package/styles/components/Switch.less +8 -8
  223. package/styles/components/TableSettingsDialog.less +7 -7
  224. package/styles/components/TableToolbar.less +1 -1
  225. package/styles/components/Tag.less +10 -10
  226. package/styles/components/Timeline.less +3 -3
  227. package/styles/components/Tooltip.less +10 -10
  228. package/styles/design/badges.less +10 -10
  229. package/styles/design/border.less +1 -1
  230. package/styles/design/breadcrumbs.less +2 -2
  231. package/styles/design/button-groups.less +25 -1
  232. package/styles/design/buttons.less +53 -109
  233. package/styles/design/callouts.less +3 -3
  234. package/styles/design/code.less +4 -6
  235. package/styles/design/colors.less +20 -20
  236. package/styles/design/fonts.less +23 -23
  237. package/styles/design/form-input-groups.less +4 -4
  238. package/styles/design/form-inputs.less +33 -31
  239. package/styles/design/images.less +2 -2
  240. package/styles/design/labels.less +11 -11
  241. package/styles/design/list-group.less +14 -12
  242. package/styles/design/navs.less +27 -27
  243. package/styles/design/normalize.less +0 -11
  244. package/styles/design/pagination.less +10 -10
  245. package/styles/design/panels.less +10 -10
  246. package/styles/design/popovers.less +8 -8
  247. package/styles/design/progress-bars.less +8 -8
  248. package/styles/design/responsive/flexgrid.less +4 -6
  249. package/styles/design/responsive/sizing.less +3 -0
  250. package/styles/design/shadows.less +14 -7
  251. package/styles/design/tables.less +68 -106
  252. package/styles/design/text.less +5 -19
  253. package/styles/design/theme.less +10 -10
  254. package/styles/design/thumbnails.less +2 -2
  255. package/styles/design/type.less +4 -4
  256. package/styles/design/wells.less +1 -1
  257. package/styles/mapping/color-map.less +65 -64
  258. package/styles/mixins/_imports.less +14 -0
  259. package/styles/mixins/buttons.less +24 -56
  260. package/styles/mixins/forms.less +19 -55
  261. package/styles/mixins/hsl.less +19 -0
  262. package/styles/mixins/panels.less +2 -2
  263. package/styles/print/print.less +7 -7
  264. package/styles/rio-uikit-core.less +2 -2
  265. package/styles/rio-uikit-print-utilities.less +2 -2
  266. package/styles/rio-uikit-responsive-utilities.less +2 -2
  267. package/styles/variables/_index.less +196 -0
  268. package/styles/variables/colors.json +67 -0
  269. package/styles/variables/concated_css_variables.less +66 -0
  270. package/styles/variables/dark_colors.less +88 -0
  271. package/styles/variables/dark_css_variables.less +28 -0
  272. package/styles/variables/dark_css_variables_map.less +96 -0
  273. package/styles/variables/light_colors.less +92 -0
  274. package/styles/variables/light_css_variables.less +17 -0
  275. package/styles/variables/light_css_variables_map.less +100 -0
  276. package/styles/variables/screens.less +7 -0
  277. package/styles/variables/text.less +23 -0
  278. package/themes/BuyButton/styles/rio-buyButton.less +13 -8
  279. package/themes/MAN/styles/man-uikit.less +3 -0
  280. package/themes/SCANIA/styles/scania-uikit.less +3 -0
  281. package/themes/Volkswagen/styles/vw-uikit.less +21 -30
  282. package/themes/Website/styles/rio-website.less +145 -120
  283. package/themes/Xmas/styles/rio-xmas.less +59 -29
  284. package/types.ts +20 -16
  285. package/useScrollPosition.d.ts +4 -0
  286. package/useScrollPosition.js +2 -0
  287. package/utils/colorScheme.js +48 -0
  288. package/utils/init.js +2 -0
  289. package/version.json +1 -1
  290. package/BoxConnector.js +0 -2
  291. package/components/boxConnector/BoxConnector.js +0 -40
  292. package/lib/es/components/boxConnector/BoxConnector.js +0 -48
@@ -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);
@@ -34,6 +34,9 @@
34
34
  .align-self-start@{suffix} { align-self: flex-start !important }
35
35
  .align-self-stretch@{suffix} { align-self: stretch !important }
36
36
 
37
+ .place-items-center@{suffix} { place-items: center !important }
38
+ .place-self-center@{suffix} { place-self: center !important }
39
+
37
40
  /* Flexbox - Helper */
38
41
  .flex-0-1@{suffix} { flex: 0 1 auto !important }
39
42
  .flex-1-0@{suffix} { flex: 1 0 auto !important }
@@ -70,9 +73,4 @@ each(@gridColumns, {
70
73
  .grid-colspan-auto@{suffix} { grid-column: auto !important }
71
74
 
72
75
  // AutoRows
73
- .grid-auto-rows@{suffix} { grid-auto-rows: minmax(min-content, max-content)}
74
-
75
- // Placement
76
- .place-items-center@{suffix} {
77
- place-items: center !important;
78
- }
76
+ .grid-auto-rows@{suffix} { grid-auto-rows: minmax(min-content, max-content)}
@@ -10,6 +10,9 @@
10
10
  .max-height-0@{suffix} { max-height: 0 !important }
11
11
  .max-width-0@{suffix} { max-width: 0 !important }
12
12
 
13
+ .max-width-none@{suffix} { max-width: none !important }
14
+ .max-height-none@{suffix} { max-height: none !important }
15
+
13
16
  // width/height px
14
17
  each(@sizes-px, {
15
18
  // width
@@ -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 {
@@ -1,10 +1,5 @@
1
1
  @table-cell-padding: 12px;
2
2
  @table-condensed-cell-padding: 7px;
3
- @table-bg: @color-white;
4
- @table-bg-hover: @gray-light;
5
- @table-bg-active: @gray-light;
6
- @table-bg-highlight: @color-highlight-lightest;
7
- @table-border-color: @gray-lighter;
8
3
 
9
4
  .table {
10
5
  background-color: transparent;
@@ -33,7 +28,7 @@
33
28
 
34
29
  @media screen and (max-width: @screen-ls) {
35
30
  -ms-overflow-style: -ms-autohiding-scrollbar;
36
- border: 1px solid @table-border-color;
31
+ border: 1px solid var(--gray-lighter);
37
32
  overflow-y: hidden;
38
33
  width: 100%;
39
34
 
@@ -96,7 +91,7 @@
96
91
  // .table.table-head-filled
97
92
  &.table-head-filled {
98
93
  thead > tr th {
99
- background-color: @gray-lightest;
94
+ background-color: var(--gray-lightest);
100
95
 
101
96
  &.table-checkbox {
102
97
  z-index: 2;
@@ -143,24 +138,24 @@
143
138
  &:first-child {
144
139
  left: 0;
145
140
  z-index: 2;
146
- border-right: 4px solid @table-border-color;
141
+ border-right: 4px solid var(--gray-lighter);
147
142
  }
148
143
 
149
144
  &:last-child {
150
145
  right: 0;
151
146
  z-index: 2;
152
- border-left: 4px solid @table-border-color;
147
+ border-left: 4px solid var(--gray-lighter);
153
148
  }
154
149
  }
155
150
 
156
151
  tbody > tr {
157
152
  td {
158
153
  &:first-child {
159
- background-color: @color-white;
154
+ background-color: var(--color-white);
160
155
  left: 0;
161
156
  position: sticky;
162
157
  //z-index: 2;
163
- border-right: 4px solid @table-border-color;
158
+ border-right: 4px solid var(--gray-lighter);
164
159
  }
165
160
  }
166
161
  }
@@ -177,11 +172,11 @@
177
172
  tbody > tr {
178
173
  td {
179
174
  &:last-child {
180
- background-color: @color-white;
175
+ background-color: var(--color-white);
181
176
  right: 0;
182
177
  position: sticky;
183
178
  //z-index: 2;
184
- border-left: 4px solid @table-border-color;
179
+ border-left: 4px solid var(--gray-lighter);
185
180
  }
186
181
  }
187
182
  }
@@ -262,8 +257,8 @@
262
257
  background-color: transparent;
263
258
 
264
259
  > th {
265
- border-bottom: 2px solid @table-border-color;
266
- border-top: 1px solid @table-border-color;
260
+ border-bottom: 2px solid var(--gray-lighter);
261
+ border-top: 1px solid var(--gray-lighter);
267
262
  font-weight: @font-light;
268
263
  text-align: left;
269
264
  white-space: nowrap;
@@ -297,7 +292,7 @@
297
292
  }
298
293
 
299
294
  > tbody > tr {
300
- background-color: @table-bg;
295
+ background-color: var(--color-white);
301
296
  .table-state(info, @brand-info, false);
302
297
  .table-state(warning, @brand-warning, false);
303
298
  .table-state(success, @brand-success, false);
@@ -311,11 +306,11 @@
311
306
  }
312
307
 
313
308
  &:last-child {
314
- border-bottom: 1px solid @table-border-color;
309
+ border-bottom: 1px solid var(--gray-lighter);
315
310
  }
316
311
 
317
312
  td {
318
- border-top: 1px solid @table-border-color;
313
+ border-top: 1px solid var(--gray-lighter);
319
314
  vertical-align: middle;
320
315
 
321
316
  &:focus,
@@ -357,7 +352,7 @@
357
352
 
358
353
  &.active {
359
354
  td {
360
- .table-state(active, @brand-primary, false)
355
+ .table-state(active, var(--brand-primary), false)
361
356
  }
362
357
  }
363
358
 
@@ -380,11 +375,11 @@
380
375
  > thead > tr > th,
381
376
  > tbody > tr > td {
382
377
  border: none;
383
- border-top: 4px solid @table-border-color;
378
+ border-top: 4px solid var(--gray-lighter);
384
379
  }
385
380
 
386
381
  > tbody > tr:last-child {
387
- border-bottom: 4px solid @table-border-color;
382
+ border-bottom: 4px solid var(--gray-lighter);
388
383
  }
389
384
 
390
385
  > tbody > tr > td {
@@ -395,7 +390,7 @@
395
390
  // Zebra-striping
396
391
  &.table-striped {
397
392
  > tbody > tr:nth-of-type(odd) {
398
- background-color: darken(@table-bg, 2%);
393
+ background-color: .hslb(@color-white-hsl, '-', '2%')[@result];
399
394
  }
400
395
  }
401
396
 
@@ -408,15 +403,15 @@
408
403
  .table-state(danger, @brand-danger, true);
409
404
 
410
405
  &:hover {
411
- background-color: @table-bg;
406
+ background-color: var(--color-white);
412
407
 
413
408
  td:not([class*='bg-']) {
414
- box-shadow: inset 0 500px 0 0 @table-bg-highlight;
409
+ box-shadow: inset 0 500px 0 0 var(--color-highlight-lightest);
415
410
  }
416
411
  }
417
412
  &.active:hover {
418
413
  td {
419
- .table-state(active, @brand-primary, false)
414
+ .table-state(active, var(--brand-primary), false)
420
415
  }
421
416
  }
422
417
  }
@@ -432,7 +427,7 @@
432
427
  &.table-multi-cards {
433
428
  tbody {
434
429
  tr {
435
- border: 3px solid @gray-lighter;
430
+ border: 3px solid var(--gray-lighter);
436
431
  }
437
432
  }
438
433
  }
@@ -466,73 +461,40 @@
466
461
  text-align: left;
467
462
 
468
463
  .dropdown {
469
- &:not(.open) {
470
- .dropdown-toggle {
471
- padding: 0 6px;
472
- .button-variant(
473
- ~'!important';
474
- @btn-default-bg;
475
- @btn-default-border;
476
- @btn-default-color;
477
- @btn-default-color;
478
- @btn-default-color;
479
- @btn-default-color;
480
- darken(@btn-default-color, 17%);
481
- darken(@btn-default-border, 12%);
482
- darken(@btn-default-border, 12%);
483
- darken(@btn-default-border, 25%);
484
- darken(@btn-default-border, 25%);
485
- @btn-default-bg;
486
- @btn-default-bg;
487
- @btn-default-bg;
488
- @btn-default-bg;
489
- );
490
-
491
- &:focus,
492
- &:active {
493
- background-color: @color-white !important;
494
- border-color: @color-highlight !important;
495
-
496
- &:hover {
497
- .rioglyph {
498
- color: @color-highlight !important;
499
- }
500
- }
501
- }
464
+ .dropdown-toggle {
465
+ padding: 0 6px;
466
+
467
+ .button-style(
468
+ ~'!important';
469
+ var(--brand-primary);
470
+ @color-white-hsl;
471
+ @brand-primary-hsl;
472
+
473
+ var(--brand-primary);
474
+ .hslb(@brand-primary-hsl, '-', @btn-active-brightness)[@result];
475
+
476
+ var(--brand-primary);
477
+ .hslb(@brand-primary-hsl, '-', @btn-active-border-brightness)[@result];
478
+
479
+ var(--color-white);
480
+ var(--color-white);
481
+ );
482
+
483
+ &:focus,
484
+ &:active {
485
+ background-color: var(--color-white) !important;
486
+ border-color: var(--color-highlight) !important;
502
487
 
503
488
  &:hover {
504
489
  .rioglyph {
505
- color: @color-white !important;
490
+ color: var(--color-highlight) !important;
506
491
  }
507
492
  }
508
493
  }
509
- }
510
494
 
511
- &.open {
512
- .dropdown-toggle {
513
- .button-variant(
514
- ~'!important';
515
- @btn-default-bg;
516
- @btn-default-border;
517
- @btn-default-color;
518
- @btn-default-color;
519
- @btn-default-color;
520
- @btn-default-color;
521
- darken(@btn-default-color, 17%);
522
- darken(@btn-default-border, 12%);
523
- darken(@btn-default-border, 12%);
524
- darken(@btn-default-border, 25%);
525
- darken(@btn-default-border, 25%);
526
- @btn-default-bg;
527
- @btn-default-bg;
528
- @btn-default-bg;
529
- @btn-default-bg;
530
- );
531
-
532
- &:hover, &:active, &:focus {
533
- .rioglyph:before {
534
- color: @color-white !important;
535
- }
495
+ &:hover {
496
+ .rioglyph {
497
+ color: var(--color-white) !important;
536
498
  }
537
499
  }
538
500
  }
@@ -549,7 +511,7 @@
549
511
  margin: -(@cardsSpace * 0.5) - (@cardsSpace * 0.5) 0 - (@cardsSpace * 0.5);
550
512
 
551
513
  tr {
552
- border: 3px solid @color-white;
514
+ border: 3px solid var(--color-white);
553
515
  display: flex;
554
516
  flex-wrap: wrap;
555
517
  margin: @cardsSpace * 0.5;
@@ -574,7 +536,7 @@
574
536
  width: 100%;
575
537
 
576
538
  &:not([class*='table-']) {
577
- border-top: 1px solid @gray-lighter;
539
+ border-top: 1px solid var(--gray-lighter);
578
540
  width: 100%;
579
541
  }
580
542
 
@@ -614,7 +576,7 @@
614
576
 
615
577
  &[data-field]:not([data-field='']) {
616
578
  &:before {
617
- color: @gray;
579
+ color: var(--gray);
618
580
  content: attr(data-field) ':';
619
581
  float: left;
620
582
  margin-right: 10px;
@@ -651,12 +613,12 @@
651
613
  }
652
614
 
653
615
  &:not(.active):not(.table-card-placeholder) {
654
- background-color: @color-white !important;
616
+ background-color: var(--color-white) !important;
655
617
  }
656
618
 
657
619
  &.active {
658
- background: @table-bg-highlight !important;
659
- border-color: @brand-primary;
620
+ background: var(--color-highlight-lightest) !important;
621
+ border-color: var(--brand-primary);
660
622
 
661
623
  td {
662
624
  box-shadow: none !important;
@@ -669,15 +631,15 @@
669
631
  tbody {
670
632
  tr {
671
633
  &:hover {
672
- border-color: @table-bg-highlight;
634
+ border-color: var(--color-highlight-lightest);
673
635
 
674
636
  &.active {
675
- border-color: @brand-primary;
637
+ border-color: var(--brand-primary);
676
638
  }
677
639
 
678
640
  td {
679
- background: @table-bg-highlight;
680
- border-color: darken(@table-border-color, 8%);
641
+ background: var(--color-highlight-lightest);
642
+ border-color: .hslb(@gray-lighter-hsl, '-', '8%')[@result];
681
643
  }
682
644
  }
683
645
  }
@@ -767,19 +729,19 @@
767
729
  // grouped tr`s
768
730
  tr {
769
731
  &.compactRow {
770
- background-color: @color-white !important;
732
+ background-color: var(--color-white) !important;
771
733
  }
772
734
 
773
735
  &.extendedRow {
774
- background-color: darken(@table-bg, 2%) !important;
736
+ background-color: .hslb(@color-white-hsl, '-', '2%')[@result] !important;
775
737
 
776
738
  td {
777
- border-top: 2px solid @table-border-color !important;
739
+ border-top: 2px solid var(--gray-lighter) !important;
778
740
  }
779
741
 
780
742
  + .compactRow {
781
743
  td {
782
- border-top: 20px solid @table-border-color !important;
744
+ border-top: 20px solid var(--gray-lighter) !important;
783
745
  }
784
746
  }
785
747
  }
@@ -812,16 +774,16 @@
812
774
  .table-state(@state, @color, @hoverable) {
813
775
  & when (@state = active) {
814
776
  background-color: transparent;
815
- box-shadow: inset 0 2px 0 0 @color, inset 0 -2px 0 0 @color, inset 0 500px 0 0 @table-bg-highlight;
777
+ box-shadow: inset 0 2px 0 0 @color, inset 0 -2px 0 0 @color, inset 0 500px 0 0 var(--color-highlight-lightest);
816
778
 
817
779
  &:first-child {
818
780
  box-shadow: inset 0 2px 0 0 @color, inset 0 -2px 0 0 @color, inset 2px 0 0 0 @color,
819
- inset 0 500px 0 0 @table-bg-highlight;
781
+ inset 0 500px 0 0 var(--color-highlight-lightest);
820
782
  }
821
783
 
822
784
  &:last-child {
823
785
  box-shadow: inset 0 2px 0 0 @color, inset -2px 0 0 0 @color, inset 0 -2px 0 0 @color,
824
- inset 0 500px 0 0 @table-bg-highlight;
786
+ inset 0 500px 0 0 var(--color-highlight-lightest);
825
787
  }
826
788
  }
827
789
 
@@ -829,14 +791,14 @@
829
791
  &.@{state} {
830
792
  & when (@hoverable = true) {
831
793
  &:hover > td:first-child {
832
- box-shadow: inset 5px 0 0 0 @color, inset 0 500px 0 0 @table-bg-highlight;
794
+ box-shadow: inset 5px 0 0 0 @color, inset 0 500px 0 0 var(--color-highlight-lightest);
833
795
  }
834
796
  }
835
797
 
836
798
  &.active, &.active:hover {
837
799
  > td:first-child {
838
- box-shadow: inset 5px 0 0 0 @color, inset 0 2px 0 0 @brand-primary, inset 0 -2px 0 0 @brand-primary,
839
- inset 0 500px 0 0 @table-bg-highlight;
800
+ box-shadow: inset 5px 0 0 0 @color, inset 0 2px 0 0 var(--brand-primary), inset 0 -2px 0 0 var(--brand-primary),
801
+ inset 0 500px 0 0 var(--color-highlight-lightest);
840
802
  }
841
803
  }
842
804
 
@@ -1,14 +1,14 @@
1
1
  .text-muted,
2
- .hover-text-muted:hover { color: @gray !important }
2
+ .hover-text-muted:hover { color: var(--gray) !important }
3
3
 
4
4
  .text-color-transparent,
5
5
  .hover-text-color-transparent:hover { color: transparent !important }
6
6
 
7
7
  .text-color-white,
8
- .hover-text-color-white:hover { color: @color-white !important }
8
+ .hover-text-color-white:hover { color: var(--color-white) !important }
9
9
 
10
10
  .text-color-black,
11
- .hover-text-color-black:hover { color: @color-black !important }
11
+ .hover-text-color-black:hover { color: var(--color-black) !important }
12
12
 
13
13
  // text alignment
14
14
  .align-top { vertical-align: top !important }
@@ -55,6 +55,7 @@ each(@colors-gray-map, {
55
55
  // map-marker-poi
56
56
  // map-marker-geofence
57
57
  // map-marker-route
58
+ .color-map-marker-text { color: var(--color-map-marker-text) !important }
58
59
  each(@colors-map-marker-map, {
59
60
  .text-color-@{key},
60
61
  .hover-text-color-@{key}:hover {
@@ -183,19 +184,4 @@ h2, h3, h4, h5, h6, [class*='text-size-h'] {
183
184
 
184
185
  /* Text - Selection */
185
186
  .user-select-none { user-select: none !important }
186
- .user-select-all { user-select: all !important }
187
-
188
- // primary
189
- // secondary
190
- // info
191
- // success
192
- // warning
193
- // danger
194
- // each(@colors-brand-and-status-map, {
195
- // .text-@{key} {
196
- // a&:hover,
197
- // a&:focus {
198
- // color: darken(@value, 10%);
199
- // }
200
- // }
201
- // })
187
+ .user-select-all { user-select: all !important }
@@ -1,11 +1,11 @@
1
1
  html {
2
2
  -webkit-tap-highlight-color: rgba(0,0,0,0);
3
- background: @color-white;
3
+ background: var(--color-white);
4
4
  font-size: 62.5%; // 14px = 1.4rem
5
5
 
6
6
  &:not(.window-iframe) {
7
7
  // background coloring
8
- background-color: @gray-lighter;
8
+ background-color: var(--gray-lighter);
9
9
 
10
10
  // larger font-sizes on mobile (including no uikit.js fallback)
11
11
  &.ua-mobile:not(.ua-mobile-ipad),
@@ -105,7 +105,7 @@ hr {
105
105
  margin-top: @grid-gutter-height;
106
106
  margin-bottom: @grid-gutter-height;
107
107
  border: 0;
108
- border-top: 1px solid @gray-lighter;
108
+ border-top: 1px solid var(--gray-lighter);
109
109
  }
110
110
 
111
111
  ul {
@@ -132,7 +132,7 @@ ul {
132
132
  > span.rioglyph {
133
133
  padding: 3px;
134
134
  font-size: 18px;
135
- color: @gray-darker;
135
+ color: var(--gray-darker);
136
136
 
137
137
  + span {
138
138
  margin-left: 10px;
@@ -159,8 +159,8 @@ ul {
159
159
  position: absolute;
160
160
  top: -4px; // with respect to 1px border
161
161
  left: @treeListIconLeft;
162
- border-left: 1px solid @gray-light;
163
- border-bottom: 1px solid @gray-light;
162
+ border-left: 1px solid var(--gray-light);
163
+ border-bottom: 1px solid var(--gray-light);
164
164
  width: @treeListIconWidth;
165
165
  height: 15px;
166
166
  }
@@ -170,8 +170,8 @@ ul {
170
170
  content: '';
171
171
  top: 10px;
172
172
  left: @treeListIconLeft;
173
- border-left: 1px solid @gray-light;
174
- border-top: 1px solid @gray-light;
173
+ border-left: 1px solid var(--gray-light);
174
+ border-top: 1px solid var(--gray-light);
175
175
  width: @treeListIconWidth;
176
176
  height: 100%;
177
177
  }
@@ -193,8 +193,8 @@ ul {
193
193
 
194
194
  li {
195
195
  padding: 10px 12px;
196
- border: 1px solid @gray-light;
197
- background: @color-white;
196
+ border: 1px solid var(--gray-light);
197
+ background: var(--color-white);
198
198
  border-radius: 3px;
199
199
  margin-bottom: 10px;
200
200
 
@@ -1,7 +1,7 @@
1
1
  .thumbnail {
2
- background-color: @color-white;
2
+ background-color: var(--color-white);
3
3
  border-radius: @border-radius-default;
4
- border: 1px solid @gray-light;
4
+ border: 1px solid var(--gray-light);
5
5
  display: block;
6
6
  line-height: @line-height-default;
7
7
  transition:border .2s ease-in-out;
@@ -9,7 +9,7 @@ h1, h2, h3, h4, h5, h6,
9
9
  .small {
10
10
  font-weight: normal;
11
11
  line-height: 1;
12
- color: @gray-light;
12
+ color: var(--gray-light);
13
13
  }
14
14
  }
15
15
 
@@ -74,7 +74,7 @@ small,
74
74
 
75
75
  mark,
76
76
  .mark {
77
- background-color: @brand-warning-decent;
77
+ background-color: var(--brand-warning-decent);
78
78
  padding: .2em;
79
79
  }
80
80
 
@@ -84,7 +84,7 @@ mark,
84
84
  .page-header {
85
85
  padding-bottom: ((@grid-gutter-height / 2) - 1);
86
86
  margin: (@grid-gutter-height * 2) 0 @grid-gutter-height;
87
- border-bottom: 1px solid @gray-lighter;
87
+ border-bottom: 1px solid var(--gray-lighter);
88
88
  }
89
89
 
90
90
 
@@ -148,7 +148,7 @@ dd {
148
148
  abbr[title],
149
149
  abbr[data-original-title] {
150
150
  cursor: help;
151
- border-bottom: 1px dotted @gray-light;
151
+ border-bottom: 1px dotted var(--gray-light);
152
152
  }
153
153
 
154
154
  // Addresses
@@ -1,5 +1,5 @@
1
1
  .well {
2
- background-color: @color-white;
2
+ background-color: var(--color-white);
3
3
  border-radius: @border-radius-default;
4
4
  margin-bottom: 20px;
5
5
  min-height: 20px;