@rio-cloud/rio-uikit 0.16.1 → 0.16.2-beta.10

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 (306) hide show
  1. package/.DS_Store +0 -0
  2. package/ColorScheme.d.ts +4 -0
  3. package/ColorScheme.js +2 -0
  4. package/Colors.js +1 -1
  5. package/TruckLayer.js +1 -1
  6. package/components/.DS_Store +0 -0
  7. package/components/applicationHeader/AppMenu.js +6 -3
  8. package/components/applicationHeader/AppMenuDropdown.js +6 -2
  9. package/components/applicationHeader/ApplicationHeader.js +10 -5
  10. package/components/applicationHeader/MobileAppMenu.js +8 -4
  11. package/components/assetTree/Tree.js +1 -1
  12. package/components/autosuggest/AutoSuggest.js +2 -2
  13. package/components/charts/chartHelper.js +1 -1
  14. package/components/clearableInput/ClearableInput.js +2 -1
  15. package/components/datepicker/DatePicker.js +8 -4
  16. package/components/filepicker/FilePicker.js +5 -4
  17. package/components/map/.DS_Store +0 -0
  18. package/components/map/assets/icon_map_settings_maptype_night_active.svg +12 -0
  19. package/components/map/assets/icon_map_settings_maptype_night_inactive.svg +12 -0
  20. package/components/map/components/.DS_Store +0 -0
  21. package/components/map/components/Map.js +167 -140
  22. package/components/map/components/constants.js +1 -0
  23. package/components/map/components/features/Route.js +6 -7
  24. package/components/map/components/features/basics/Polyline.js +10 -5
  25. package/components/map/components/features/layers/RoadRestrictionLayer.js +27 -0
  26. package/components/map/components/features/layers/TrafficLayer.js +19 -5
  27. package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +19 -0
  28. package/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +15 -0
  29. package/components/map/components/features/layers/baselayers/FleetStyleLayer.js +13 -17
  30. package/components/map/components/features/layers/baselayers/NightLayer.js +17 -0
  31. package/components/map/components/features/layers/baselayers/SatelliteLayer.js +13 -17
  32. package/components/map/components/features/layers/baselayers/TerrainLayer.js +13 -17
  33. package/components/map/components/features/layers/baselayers/useBaseLayer.js +53 -0
  34. package/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +1 -1
  35. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +9 -3
  36. package/components/map/components/mapUtils.js +44 -8
  37. package/components/map/icons/MapIcon.js +64 -0
  38. package/components/mapMarker/ClusterMapMarker.js +2 -2
  39. package/components/mapMarker/SingleMapMarker.js +8 -2
  40. package/components/numberControl/NumberControl.js +34 -11
  41. package/components/numberInput/NumberInput.js +52 -50
  42. package/components/sidebars/Sidebar.js +2 -2
  43. package/hooks/useDarkMode.js +30 -0
  44. package/hooks/useElementSize.js +1 -1
  45. package/hooks/useFullscreen.js +37 -41
  46. package/hooks/useHereMap.ts +23 -0
  47. package/hooks/useMutationObserver.js +38 -0
  48. package/hooks/useScripts.ts +52 -0
  49. package/hooks/useScrollPosition.js +72 -0
  50. package/index.js +6 -1
  51. package/lib/.DS_Store +0 -0
  52. package/lib/es/.DS_Store +0 -0
  53. package/lib/es/ColorScheme.d.ts +4 -0
  54. package/lib/es/ColorScheme.js +18 -0
  55. package/lib/es/Colors.js +1 -1
  56. package/lib/es/TruckLayer.js +2 -2
  57. package/lib/es/components/.DS_Store +0 -0
  58. package/lib/es/components/applicationHeader/AppMenu.js +6 -3
  59. package/lib/es/components/applicationHeader/AppMenuDropdown.js +6 -2
  60. package/lib/es/components/applicationHeader/ApplicationHeader.js +10 -5
  61. package/lib/es/components/applicationHeader/MobileAppMenu.js +8 -4
  62. package/lib/es/components/assetTree/Tree.js +1 -1
  63. package/lib/es/components/autosuggest/AutoSuggest.js +2 -2
  64. package/lib/es/components/charts/chartHelper.js +1 -1
  65. package/lib/es/components/clearableInput/ClearableInput.js +2 -1
  66. package/lib/es/components/datepicker/DatePicker.js +7 -3
  67. package/lib/es/components/filepicker/FilePicker.js +5 -4
  68. package/lib/es/components/map/assets/icon_map_settings_maptype_night_active.svg +12 -0
  69. package/lib/es/components/map/assets/icon_map_settings_maptype_night_inactive.svg +12 -0
  70. package/lib/es/components/map/components/Map.js +165 -135
  71. package/lib/es/components/map/components/constants.js +3 -1
  72. package/lib/es/components/map/components/features/Route.js +6 -7
  73. package/lib/es/components/map/components/features/basics/Polyline.js +10 -7
  74. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +35 -0
  75. package/lib/es/components/map/components/features/layers/TrafficLayer.js +18 -5
  76. package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +25 -0
  77. package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +22 -0
  78. package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.js +12 -17
  79. package/lib/es/components/map/components/features/layers/baselayers/NightLayer.js +23 -0
  80. package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.js +12 -17
  81. package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.js +12 -17
  82. package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +61 -0
  83. package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +1 -1
  84. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +7 -1
  85. package/lib/es/components/map/components/mapUtils.js +44 -10
  86. package/lib/es/components/map/icons/MapIcon.js +67 -1
  87. package/lib/es/components/mapMarker/ClusterMapMarker.js +2 -2
  88. package/lib/es/components/mapMarker/SingleMapMarker.js +8 -2
  89. package/lib/es/components/numberControl/NumberControl.js +33 -10
  90. package/lib/es/components/numberInput/NumberInput.js +51 -50
  91. package/lib/es/components/sidebars/Sidebar.js +2 -2
  92. package/lib/es/hooks/useDarkMode.js +38 -0
  93. package/lib/es/hooks/useElementSize.js +1 -1
  94. package/lib/es/hooks/useFullscreen.js +37 -41
  95. package/lib/es/hooks/useHereMap.ts +23 -0
  96. package/lib/es/hooks/useMutationObserver.js +46 -0
  97. package/lib/es/hooks/useScripts.ts +52 -0
  98. package/lib/es/hooks/useScrollPosition.js +80 -0
  99. package/lib/es/index.js +40 -1
  100. package/lib/es/mapIndex.js +2 -2
  101. package/lib/es/styles/.DS_Store +0 -0
  102. package/lib/es/styles/components/Activity.less +9 -10
  103. package/lib/es/styles/components/ApplicationHeader.less +24 -29
  104. package/lib/es/styles/components/ApplicationLayout.less +7 -7
  105. package/lib/es/styles/components/AssetTree.less +30 -28
  106. package/lib/es/styles/components/AutoSuggest.less +2 -2
  107. package/lib/es/styles/components/BottomSheet.less +1 -2
  108. package/lib/es/styles/components/Carousel.less +13 -9
  109. package/lib/es/styles/components/Checkbox.less +15 -16
  110. package/lib/es/styles/components/ClearableInput.less +3 -3
  111. package/lib/es/styles/components/Counter.less +12 -12
  112. package/lib/es/styles/components/DataTabs.less +2 -2
  113. package/lib/es/styles/components/DatePicker.less +27 -27
  114. package/lib/es/styles/components/Dialog.less +15 -11
  115. package/lib/es/styles/components/Dropdown.less +11 -11
  116. package/lib/es/styles/components/Expander.less +7 -7
  117. package/lib/es/styles/components/ListMenu.less +8 -8
  118. package/lib/es/styles/components/MapHere.less +3 -2
  119. package/lib/es/styles/components/MapMarker.less +16 -17
  120. package/lib/es/styles/components/MapSettings.less +5 -5
  121. package/lib/es/styles/components/NoData.less +1 -1
  122. package/lib/es/styles/components/Notification.less +12 -12
  123. package/lib/es/styles/components/RadioButton.less +11 -12
  124. package/lib/es/styles/components/Resizer.less +1 -1
  125. package/lib/es/styles/components/Select.less +16 -26
  126. package/lib/es/styles/components/Sidebar.less +29 -21
  127. package/lib/es/styles/components/Slider.less +18 -18
  128. package/lib/es/styles/components/Spinner.less +6 -6
  129. package/lib/es/styles/components/StatsWidget.less +5 -5
  130. package/lib/es/styles/components/SteppedProgressBar.less +32 -29
  131. package/lib/es/styles/components/SupportMarker.less +1 -1
  132. package/lib/es/styles/components/Switch.less +8 -8
  133. package/lib/es/styles/components/TableSettingsDialog.less +7 -7
  134. package/lib/es/styles/components/TableToolbar.less +1 -1
  135. package/lib/es/styles/components/Tag.less +10 -10
  136. package/lib/es/styles/components/Timeline.less +3 -3
  137. package/lib/es/styles/components/Tooltip.less +10 -10
  138. package/lib/es/styles/design/badges.less +10 -10
  139. package/lib/es/styles/design/border.less +1 -1
  140. package/lib/es/styles/design/breadcrumbs.less +2 -2
  141. package/lib/es/styles/design/button-groups.less +25 -1
  142. package/lib/es/styles/design/buttons.less +53 -109
  143. package/lib/es/styles/design/callouts.less +3 -3
  144. package/lib/es/styles/design/code.less +4 -6
  145. package/lib/es/styles/design/colors.less +20 -20
  146. package/lib/es/styles/design/form-input-groups.less +4 -4
  147. package/lib/es/styles/design/form-inputs.less +33 -31
  148. package/lib/es/styles/design/images.less +2 -2
  149. package/lib/es/styles/design/labels.less +11 -11
  150. package/lib/es/styles/design/list-group.less +14 -12
  151. package/lib/es/styles/design/navs.less +27 -27
  152. package/lib/es/styles/design/normalize.less +0 -9
  153. package/lib/es/styles/design/pagination.less +10 -10
  154. package/lib/es/styles/design/panels.less +10 -10
  155. package/lib/es/styles/design/popovers.less +8 -8
  156. package/lib/es/styles/design/progress-bars.less +8 -8
  157. package/lib/es/styles/design/shadows.less +14 -7
  158. package/lib/es/styles/design/tables.less +68 -106
  159. package/lib/es/styles/design/text.less +5 -19
  160. package/lib/es/styles/design/theme.less +10 -10
  161. package/lib/es/styles/design/thumbnails.less +2 -2
  162. package/lib/es/styles/design/type.less +4 -4
  163. package/lib/es/styles/design/wells.less +1 -1
  164. package/lib/es/styles/mapping/color-map.less +76 -75
  165. package/lib/es/styles/mixins/_imports.less +14 -0
  166. package/lib/es/styles/mixins/buttons.less +24 -56
  167. package/lib/es/styles/mixins/forms.less +19 -55
  168. package/lib/es/styles/mixins/hsl.less +19 -0
  169. package/lib/es/styles/mixins/panels.less +2 -2
  170. package/lib/es/styles/print/print.less +7 -7
  171. package/lib/es/styles/rio-uikit-core.less +2 -2
  172. package/lib/es/styles/rio-uikit-print-utilities.less +2 -2
  173. package/lib/es/styles/rio-uikit-responsive-utilities.less +2 -2
  174. package/lib/es/styles/variables/_index.less +196 -0
  175. package/lib/es/styles/variables/colors.json +67 -0
  176. package/lib/es/styles/variables/concated_css_variables.less +66 -0
  177. package/lib/es/styles/variables/dark_colors.less +88 -0
  178. package/lib/es/styles/variables/dark_css_variables.less +28 -0
  179. package/lib/es/styles/variables/dark_css_variables_map.less +96 -0
  180. package/lib/es/styles/variables/light_colors.less +92 -0
  181. package/lib/es/styles/variables/light_css_variables.less +17 -0
  182. package/lib/es/styles/variables/light_css_variables_map.less +100 -0
  183. package/lib/es/styles/variables/screens.less +7 -0
  184. package/lib/es/styles/variables/text.less +23 -0
  185. package/lib/es/themes/.DS_Store +0 -0
  186. package/lib/es/themes/BuyButton/styles/rio-buyButton.less +13 -8
  187. package/lib/es/themes/MAN/styles/man-uikit.less +3 -0
  188. package/lib/es/themes/SCANIA/styles/scania-uikit.less +3 -0
  189. package/lib/es/themes/Volkswagen/styles/vw-uikit.less +21 -30
  190. package/lib/es/themes/Website/styles/rio-website.less +154 -124
  191. package/lib/es/themes/Xmas/styles/rio-xmas.less +59 -29
  192. package/lib/es/types.ts +27 -5
  193. package/lib/es/useDarkMode.d.ts +4 -0
  194. package/lib/es/useDarkMode.js +13 -0
  195. package/lib/es/useMutationObserver.d.ts +4 -0
  196. package/lib/es/useMutationObserver.js +13 -0
  197. package/lib/es/useScrollPosition.d.ts +4 -0
  198. package/lib/es/useScrollPosition.js +13 -0
  199. package/lib/es/utils/colorScheme.js +69 -0
  200. package/lib/es/utils/init.js +34 -34
  201. package/lib/es/version.json +1 -1
  202. package/mapIndex.js +1 -1
  203. package/package.json +34 -33
  204. package/styles/.DS_Store +0 -0
  205. package/styles/components/Activity.less +9 -10
  206. package/styles/components/ApplicationHeader.less +24 -29
  207. package/styles/components/ApplicationLayout.less +7 -7
  208. package/styles/components/AssetTree.less +30 -28
  209. package/styles/components/AutoSuggest.less +2 -2
  210. package/styles/components/BottomSheet.less +1 -2
  211. package/styles/components/Carousel.less +13 -9
  212. package/styles/components/Checkbox.less +15 -16
  213. package/styles/components/ClearableInput.less +3 -3
  214. package/styles/components/Counter.less +12 -12
  215. package/styles/components/DataTabs.less +2 -2
  216. package/styles/components/DatePicker.less +27 -27
  217. package/styles/components/Dialog.less +15 -11
  218. package/styles/components/Dropdown.less +11 -11
  219. package/styles/components/Expander.less +7 -7
  220. package/styles/components/ListMenu.less +8 -8
  221. package/styles/components/MapHere.less +3 -2
  222. package/styles/components/MapMarker.less +16 -17
  223. package/styles/components/MapSettings.less +5 -5
  224. package/styles/components/NoData.less +1 -1
  225. package/styles/components/Notification.less +12 -12
  226. package/styles/components/RadioButton.less +11 -12
  227. package/styles/components/Resizer.less +1 -1
  228. package/styles/components/Select.less +16 -26
  229. package/styles/components/Sidebar.less +29 -21
  230. package/styles/components/Slider.less +18 -18
  231. package/styles/components/Spinner.less +6 -6
  232. package/styles/components/StatsWidget.less +5 -5
  233. package/styles/components/SteppedProgressBar.less +32 -29
  234. package/styles/components/SupportMarker.less +1 -1
  235. package/styles/components/Switch.less +8 -8
  236. package/styles/components/TableSettingsDialog.less +7 -7
  237. package/styles/components/TableToolbar.less +1 -1
  238. package/styles/components/Tag.less +10 -10
  239. package/styles/components/Timeline.less +3 -3
  240. package/styles/components/Tooltip.less +10 -10
  241. package/styles/design/badges.less +10 -10
  242. package/styles/design/border.less +1 -1
  243. package/styles/design/breadcrumbs.less +2 -2
  244. package/styles/design/button-groups.less +25 -1
  245. package/styles/design/buttons.less +53 -109
  246. package/styles/design/callouts.less +3 -3
  247. package/styles/design/code.less +4 -6
  248. package/styles/design/colors.less +20 -20
  249. package/styles/design/form-input-groups.less +4 -4
  250. package/styles/design/form-inputs.less +33 -31
  251. package/styles/design/images.less +2 -2
  252. package/styles/design/labels.less +11 -11
  253. package/styles/design/list-group.less +14 -12
  254. package/styles/design/navs.less +27 -27
  255. package/styles/design/normalize.less +0 -9
  256. package/styles/design/pagination.less +10 -10
  257. package/styles/design/panels.less +10 -10
  258. package/styles/design/popovers.less +8 -8
  259. package/styles/design/progress-bars.less +8 -8
  260. package/styles/design/shadows.less +14 -7
  261. package/styles/design/tables.less +68 -106
  262. package/styles/design/text.less +5 -19
  263. package/styles/design/theme.less +10 -10
  264. package/styles/design/thumbnails.less +2 -2
  265. package/styles/design/type.less +4 -4
  266. package/styles/design/wells.less +1 -1
  267. package/styles/mapping/color-map.less +76 -75
  268. package/styles/mixins/_imports.less +14 -0
  269. package/styles/mixins/buttons.less +24 -56
  270. package/styles/mixins/forms.less +19 -55
  271. package/styles/mixins/hsl.less +19 -0
  272. package/styles/mixins/panels.less +2 -2
  273. package/styles/print/print.less +7 -7
  274. package/styles/rio-uikit-core.less +2 -2
  275. package/styles/rio-uikit-print-utilities.less +2 -2
  276. package/styles/rio-uikit-responsive-utilities.less +2 -2
  277. package/styles/variables/_index.less +196 -0
  278. package/styles/variables/colors.json +67 -0
  279. package/styles/variables/concated_css_variables.less +66 -0
  280. package/styles/variables/dark_colors.less +88 -0
  281. package/styles/variables/dark_css_variables.less +28 -0
  282. package/styles/variables/dark_css_variables_map.less +96 -0
  283. package/styles/variables/light_colors.less +92 -0
  284. package/styles/variables/light_css_variables.less +17 -0
  285. package/styles/variables/light_css_variables_map.less +100 -0
  286. package/styles/variables/screens.less +7 -0
  287. package/styles/variables/text.less +23 -0
  288. package/themes/.DS_Store +0 -0
  289. package/themes/BuyButton/styles/rio-buyButton.less +13 -8
  290. package/themes/MAN/styles/man-uikit.less +3 -0
  291. package/themes/SCANIA/styles/scania-uikit.less +3 -0
  292. package/themes/Volkswagen/.DS_Store +0 -0
  293. package/themes/Volkswagen/styles/vw-uikit.less +21 -30
  294. package/themes/Website/.DS_Store +0 -0
  295. package/themes/Website/styles/rio-website.less +154 -124
  296. package/themes/Xmas/styles/rio-xmas.less +59 -29
  297. package/types.ts +27 -5
  298. package/useDarkMode.d.ts +4 -0
  299. package/useDarkMode.js +2 -0
  300. package/useMutationObserver.d.ts +4 -0
  301. package/useMutationObserver.js +2 -0
  302. package/useScrollPosition.d.ts +4 -0
  303. package/useScrollPosition.js +2 -0
  304. package/utils/colorScheme.js +55 -0
  305. package/utils/init.js +34 -34
  306. package/version.json +1 -1
@@ -1,5 +1,5 @@
1
1
  .ApplicationHeader {
2
- background-color: @color-white;
2
+ background-color: var(--color-white);
3
3
  border: none;
4
4
  display: flex;
5
5
  float: none !important;
@@ -14,7 +14,7 @@
14
14
  right: 0;
15
15
  bottom: 0;
16
16
  height: 1px;
17
- background-color:@gray-light;
17
+ background-color:var(--gray-light);
18
18
  z-index: 1;
19
19
  }
20
20
 
@@ -48,15 +48,15 @@
48
48
 
49
49
  .CollapsedDropdown > .dropdown-menu {
50
50
  > .ApplicationActionBar {
51
- background-color: @gray-lightest;
52
- //border-bottom: 1px solid @gray-lighter;
53
- border-top: 1px solid @gray-lighter;
51
+ background-color: var(--gray-lightest);
52
+ //border-bottom: 1px solid var(--gray-lighter);
53
+ border-top: 1px solid var(--gray-lighter);
54
54
  justify-content: flex-end;
55
55
  position: relative;
56
56
  width: 100%;
57
57
 
58
58
  .ActionBarItemIcon .badge {
59
- border-color: @gray-lightest;
59
+ border-color: var(--gray-lightest);
60
60
  }
61
61
  }
62
62
  }
@@ -82,7 +82,7 @@
82
82
 
83
83
  .navbar-brand {
84
84
  background-color: transparent !important;
85
- background-image: @brand-icon-rio !important;
85
+ background-image: var(--brand-icon-rio) !important;
86
86
  background-size: cover;
87
87
  display: block;
88
88
  height: @ApplicationLayoutHeaderHeighticon-height;
@@ -92,7 +92,7 @@
92
92
  width: @ApplicationLayoutHeaderHeight;
93
93
 
94
94
  &:after {
95
- background: @color-black;
95
+ background: var(--color-black);
96
96
  bottom: 0;
97
97
  content: '';
98
98
  display: block;
@@ -104,7 +104,7 @@
104
104
  }
105
105
 
106
106
  &.home-icon {
107
- background-image: @brand-icon-home !important;
107
+ background-image: var(--brand-icon-home) !important;
108
108
  }
109
109
 
110
110
  > a,
@@ -116,28 +116,23 @@
116
116
  }
117
117
 
118
118
  .ApplicationActionBar {
119
- background-color: @color-white;
119
+ background-color: var(--color-white);
120
120
  cursor: auto;
121
121
  display: flex;
122
122
 
123
- // position: absolute;
124
- // right: 0;
125
- // top: 0;
126
-
127
123
  > .navigationItem {
128
124
  align-items: center;
129
- color: @gray-dark;
125
+ color: var(--gray);
130
126
  cursor: pointer;
131
127
  display: flex;
132
- fill: @gray-dark;
128
+ fill: var(--gray-darkest);
133
129
  height: @ApplicationLayoutHeaderHeightWithoutBorder;
134
130
  justify-content: center;
135
131
  position: relative;
136
- //text-align: center;
137
132
 
138
133
  &:hover .icon {
139
- color: @gray-darker;
140
- fill: @gray-darker;
134
+ color: var(--color-black);
135
+ fill: var(--color-black);
141
136
  }
142
137
 
143
138
  > .ActionBarItem {
@@ -203,7 +198,7 @@
203
198
 
204
199
  &Icon {
205
200
  margin-top: 2px;
206
- color: @gray-dark;
201
+ color: var(--gray-darkest);
207
202
  font-size: 16px;
208
203
  }
209
204
 
@@ -239,8 +234,8 @@
239
234
  max-width: calc(~'100% - @{ApplicationLayoutHeaderHeight}');
240
235
 
241
236
  // NOTE: enforce it with important so all services look similar
242
- background-color: @color-white !important;
243
- color: @color-black !important;
237
+ // background-color: var(--color-white) !important;
238
+ color: var(--color-black) !important;
244
239
 
245
240
  .dropdown {
246
241
  width: 300px;
@@ -271,7 +266,7 @@
271
266
 
272
267
  // Style the separator between main dropdown and submodules
273
268
  &:after {
274
- background-color: @gray-lighter;
269
+ background-color: var(--gray-lighter);
275
270
  bottom: 15px;
276
271
  content: '';
277
272
  display: block;
@@ -328,7 +323,7 @@
328
323
  overflow-y: auto;
329
324
 
330
325
  > li > a {
331
- color: @color-black;
326
+ color: var(--color-black);
332
327
  font-size: 14px;
333
328
  font-weight: @font-medium;
334
329
  padding: 5px @ApplicationLayoutHeaderHeightpadding-horizontal;
@@ -397,7 +392,7 @@
397
392
 
398
393
  > a {
399
394
  background-color: transparent;
400
- color: @gray;
395
+ color: var(--gray);
401
396
  cursor: pointer;
402
397
  font-size: 14px;
403
398
  margin: 0 15px;
@@ -419,7 +414,7 @@
419
414
  &.disabled,
420
415
  &:disabled {
421
416
  > a {
422
- color: @gray-light
417
+ color: var(--gray-light)
423
418
  }
424
419
  }
425
420
 
@@ -430,11 +425,11 @@
430
425
  &:hover > a {
431
426
  &:not(.disabled):not(:disabled) {
432
427
  background-color: transparent;
433
- box-shadow: inset 0 -4px 0 @color-black, 0 0px 0 @color-black;
434
- color: @color-black;
428
+ box-shadow: inset 0 -4px 0 var(--color-black), 0 0px 0 var(--color-black);
429
+ color: var(--color-black);
435
430
 
436
431
  &:after {
437
- background-color: @color-black;
432
+ background-color: var(--color-black);
438
433
  height: 3px;
439
434
  width: 100%;
440
435
  z-index: 1;
@@ -56,8 +56,8 @@
56
56
  .ApplicationLayoutBodyNavigation {
57
57
  &:not(.unstyled) {
58
58
  align-items: center;
59
- background: @color-white;
60
- border-bottom: 1px solid @gray-light;
59
+ background: var(--color-white);
60
+ border-bottom: 1px solid var(--gray-light);
61
61
  display: flex;
62
62
  justify-content: space-between;
63
63
  // padding: 0 @ApplicationLayoutBodyPadding*0.25 0 @ApplicationLayoutBodyPadding*0.5;
@@ -85,14 +85,14 @@
85
85
 
86
86
  &:hover,
87
87
  &:focus {
88
- box-shadow: inset 0px -2px 0px 0px @color-black;
88
+ box-shadow: inset 0px -2px 0px 0px var(--color-black);
89
89
  }
90
90
  }
91
91
 
92
92
  &.active,
93
93
  &:active {
94
94
  > a, > span, > div {
95
- box-shadow: inset 0px -3px 0px 0px @color-black;
95
+ box-shadow: inset 0px -3px 0px 0px var(--color-black);
96
96
  }
97
97
  }
98
98
  }
@@ -175,10 +175,10 @@
175
175
 
176
176
  .ApplicationLayoutBodyBottomBar {
177
177
  align-items: center;
178
- background-color: @color-white;
179
- border-top: 1px solid @gray-light;
178
+ background-color: var(--color-white);
179
+ border-top: 1px solid var(--gray-light);
180
180
  display: flex;
181
- height: @footer-height;
181
+ height: @ApplicationLayoutBodyBottomBarHeight;
182
182
  padding: 10px;
183
183
 
184
184
  &.use-body-padding {
@@ -1,5 +1,7 @@
1
- @asset-tree-shadow-color: rgba(0, 0, 0, 0.1);
1
+ @asset-tree-shadow-color: .hsla(@always-color-black-hsl, 0.1)[@result];
2
2
  @asset-tree-collapsed-width: 50px;
3
+ @asset-tree-sidebar-bg: @always-color-black;
4
+ @asset-tree-sidebar-icon-color: @always-color-white;
3
5
 
4
6
  // font-weight hotfix old tree
5
7
  .ObjectTree {
@@ -9,7 +11,7 @@
9
11
  .AssetTree {
10
12
  position: relative;
11
13
  height: 100%;
12
- background-color: @color-white;
14
+ background-color: var(--color-white);
13
15
 
14
16
  &Content {
15
17
  display: flex;
@@ -17,7 +19,7 @@
17
19
  }
18
20
 
19
21
  .TreeSidebar {
20
- background: @color-black;
22
+ background: @asset-tree-sidebar-bg;
21
23
  display: flex;
22
24
  flex-direction: column;
23
25
  min-width: @asset-tree-collapsed-width;
@@ -31,7 +33,7 @@
31
33
  width: @asset-tree-collapsed-width;
32
34
 
33
35
  .rioglyph {
34
- color: @color-white;
36
+ color: @asset-tree-sidebar-icon-color;
35
37
  font-size: 18px;
36
38
  height: @asset-tree-collapsed-width;
37
39
  line-height: @asset-tree-collapsed-width;
@@ -70,7 +72,7 @@
70
72
 
71
73
  li {
72
74
  align-items: center;
73
- color: @color-white;
75
+ color: @asset-tree-sidebar-icon-color;
74
76
  cursor: pointer;
75
77
  display: flex;
76
78
  font-size: 30px;
@@ -93,7 +95,7 @@
93
95
  }
94
96
 
95
97
  &.active {
96
- color: @color-white;
98
+ color: @asset-tree-sidebar-icon-color;
97
99
 
98
100
  &:before, &:after {
99
101
  border-color: transparent;
@@ -109,12 +111,12 @@
109
111
  }
110
112
 
111
113
  &:before {
112
- border-right-color: @color-black;
114
+ border-right-color: @asset-tree-sidebar-bg;
113
115
  right: 1px;
114
116
  }
115
117
 
116
118
  &:after {
117
- border-right-color: @color-white;
119
+ border-right-color: var(--color-white);
118
120
  right: 0;
119
121
  }
120
122
 
@@ -125,9 +127,9 @@
125
127
 
126
128
  &.selected {
127
129
  .selection-bubble:after {
128
- background: @brand-primary;
130
+ background: var(--brand-primary);
129
131
  border-radius: @border-radius-round;
130
- border: 2px solid @color-black;
132
+ border: 2px solid var(--color-black);
131
133
  content: '';
132
134
  height: 14px;
133
135
  position: absolute;
@@ -144,7 +146,7 @@
144
146
  position: absolute;
145
147
  height: 100%;
146
148
  width: 0;
147
- border: 1px dashed @gray-darkest;
149
+ border: 1px dashed var(--gray-darkest);
148
150
  opacity: 0.2;
149
151
  pointer-events: none;
150
152
  }
@@ -153,12 +155,12 @@
153
155
  .ApplicationLayoutSidebar:not(.right) & {
154
156
  float: left;
155
157
  left: 0;
156
- box-shadow: 1px 0 0 0 @gray-light;
158
+ box-shadow: 1px 0 0 0 var(--gray-light);
157
159
  }
158
160
 
159
161
  .ApplicationLayoutSidebar.right & {
160
162
  float: right;
161
- box-shadow: -1px 0 0 0 @gray-light;
163
+ box-shadow: -1px 0 0 0 var(--gray-light);
162
164
  }
163
165
  }
164
166
 
@@ -179,25 +181,25 @@
179
181
 
180
182
  html:not(.ua-desktop) & {
181
183
  .TreeSidebar {
182
- background: @gray-lightest;
183
- box-shadow: inset -1px 0 @gray-light;
184
+ background: var(--gray-lightest);
185
+ box-shadow: inset -1px 0 var(--gray-light);
184
186
  }
185
187
 
186
188
  &.closed {
187
189
  .TreeSidebar {
188
- background: @color-white;
190
+ background: var(--color-white);
189
191
  }
190
192
  }
191
193
 
192
194
  .TreeSidebarToggle {
193
195
  .rioglyph {
194
- color: @color-black;
196
+ color: var(--color-black);
195
197
  }
196
198
  }
197
199
 
198
200
  .TreeSidebarNavigation {
199
201
  li {
200
- color: @color-black;
202
+ color: var(--color-black);
201
203
 
202
204
  .rioglyph {
203
205
  opacity: 0.5;
@@ -205,11 +207,11 @@
205
207
 
206
208
  &.active {
207
209
  &:before {
208
- border-right-color: @gray-light;
210
+ border-right-color: var(--gray-light);
209
211
  }
210
212
 
211
213
  &:after {
212
- border-right-color: @color-white;
214
+ border-right-color: var(--color-white);
213
215
  }
214
216
 
215
217
  .rioglyph {
@@ -219,7 +221,7 @@
219
221
 
220
222
  &.selected {
221
223
  .selection-bubble:after {
222
- border: 2px solid @gray-lightest;
224
+ border: 2px solid var(--gray-lightest);
223
225
  }
224
226
  }
225
227
  }
@@ -229,11 +231,11 @@
229
231
 
230
232
  // TREE
231
233
  .TreeHeader {
232
- background: @color-white;
234
+ background: var(--color-white);
233
235
  position: sticky;
234
236
  top: 0;
235
237
  z-index: 1;
236
- border-bottom: 1px solid @gray-light;
238
+ border-bottom: 1px solid var(--gray-light);
237
239
 
238
240
  .TreeHead {
239
241
  min-height: 50px;
@@ -304,13 +306,13 @@
304
306
 
305
307
  .TreeNode,
306
308
  .TreeLeaf {
307
- background: @color-white;
308
- border-bottom: 1px solid @gray-lighter;
309
+ background: var(--color-white);
310
+ border-bottom: 1px solid var(--gray-lighter);
309
311
  display: flex;
310
312
  padding: 0 10px 0 15px;
311
313
 
312
314
  &:hover {
313
- background-color: @gray-lightest;
315
+ background-color: var(--gray-lightest);
314
316
  }
315
317
 
316
318
  &.active {
@@ -365,7 +367,7 @@
365
367
 
366
368
  .TreeLabelNameTextSubline {
367
369
  font-size: 12px;
368
- color: @gray;
370
+ color: var(--gray);
369
371
  }
370
372
  }
371
373
 
@@ -384,7 +386,7 @@
384
386
  }
385
387
 
386
388
  .TreeLabelExpander {
387
- color: @gray-dark;
389
+ color: var(--gray-dark);
388
390
  position: absolute;
389
391
  right: 5px;
390
392
  top: 50%;
@@ -11,8 +11,8 @@
11
11
  overflow-y: auto;
12
12
 
13
13
  > .active {
14
- color: @color-white;
15
- background-color: @brand-primary;
14
+ color: var(--color-white);
15
+ background-color: var(--brand-primary);
16
16
  }
17
17
 
18
18
  > li > a {
@@ -9,6 +9,5 @@
9
9
  position: absolute;
10
10
  inset: 0;
11
11
  z-index: @z-index-bottom-sheet - 1;
12
- background: #000000;
13
- opacity: 50%;
12
+ background: .hsla(@always-color-black-hsl, 0.5)[@result];
14
13
  }
@@ -77,7 +77,7 @@
77
77
  .carousel-control-prev {
78
78
  align-items: center;
79
79
  bottom: 0;
80
- color: @color-white;
80
+ color: var(--color-white);
81
81
  display: flex;
82
82
  justify-content: center;
83
83
  opacity: .5;
@@ -98,7 +98,7 @@
98
98
  .carousel-control-prev {
99
99
  &:focus,
100
100
  &:hover {
101
- color: @color-white;
101
+ color: var(--color-white);
102
102
  opacity: .9;
103
103
  outline: 0;
104
104
  text-decoration: none !important;
@@ -121,7 +121,7 @@
121
121
  .carousel-control-next-icon {
122
122
  align-items: center;
123
123
  border-radius: @border-radius-round;
124
- color: @gray-dark;
124
+ color: var(--gray-dark);
125
125
  display: flex;
126
126
  height: 60px;
127
127
  justify-content: center;
@@ -134,7 +134,7 @@
134
134
  }
135
135
 
136
136
  &:hover {
137
- background: fade(@gray-darkest, 10%);
137
+ background: .hsla(@gray-darkest-hsl, 0.1)[@result];
138
138
  }
139
139
  }
140
140
 
@@ -161,9 +161,9 @@
161
161
  z-index: 15;
162
162
 
163
163
  li {
164
- background: @color-white;
164
+ background: var(--color-white);
165
165
  border-radius: @border-radius-sm;
166
- border: 1px solid @brand-primary;
166
+ border: 1px solid var(--brand-primary);
167
167
  display: inline-block;
168
168
  height: 10px;
169
169
  margin: 0 2px;
@@ -175,7 +175,7 @@
175
175
  }
176
176
 
177
177
  &.active {
178
- background: @brand-primary;
178
+ background: var(--brand-primary);
179
179
  }
180
180
 
181
181
  @media (prefers-reduced-motion:reduce) {
@@ -185,14 +185,18 @@
185
185
  }
186
186
 
187
187
  .carousel-caption {
188
- background: linear-gradient(0deg, rgba(255, 255, 255, 1) 80%, rgba(255, 255, 255, 0) 100%);
189
188
  bottom: 0;
190
- color: @gray-darkest;
189
+ color: var(--gray-darkest);
191
190
  left: 0;
192
191
  padding: 20px 20px 10px 20px;
193
192
  position: absolute;
194
193
  right: 0;
195
194
  text-align: center;
195
+ background: linear-gradient(
196
+ 0deg,
197
+ .hsla(@color-white-hsl, 0.8)[@result],
198
+ .hsla(@color-white-hsl, 0)[@result],
199
+ );
196
200
  }
197
201
 
198
202
  .carousel {
@@ -1,9 +1,8 @@
1
1
  @dim-checkbox-size-default: 16px;
2
2
  @dim-checkbox-size-lg: 20px;
3
- @color-disabled-inverted: darken(@gray-darker, 20%);
4
3
 
5
4
  .checkbox {
6
- color: @gray-darkest;
5
+ color: var(--gray-darkest);
7
6
  cursor: pointer;
8
7
  font-size: @font-size-default;
9
8
  margin-bottom: 0;
@@ -33,7 +32,7 @@
33
32
 
34
33
  // use tag name for being stronger than the checked style and to avoid using important
35
34
  input[type='checkbox'] + .checkbox-text:before {
36
- border-color: @gray-darker;
35
+ border-color: var(--gray-darker);
37
36
  }
38
37
  }
39
38
 
@@ -73,7 +72,7 @@
73
72
  -webkit-font-smoothing: antialiased;
74
73
  background-color: transparent;
75
74
  border-radius: @border-radius-sm;
76
- border: 1px solid @gray;
75
+ border: 1px solid var(--gray);
77
76
  display: block;
78
77
  font-family: @icon-font-name;
79
78
  font-style: normal;
@@ -120,12 +119,12 @@
120
119
  }
121
120
 
122
121
  .rioglyph {
123
- color: @gray;
122
+ color: var(--gray);
124
123
  display: block;
125
124
  }
126
125
 
127
126
  .checkbox-label {
128
- color: @gray-darkest;
127
+ color: var(--gray-darkest);
129
128
  }
130
129
  }
131
130
 
@@ -140,9 +139,9 @@
140
139
  align-items: center;
141
140
  justify-content: center;
142
141
  font-size: 88%;
143
- color: @color-white;
144
- border-color: @brand-primary;
145
- background-color: @brand-primary;
142
+ color: var(--color-white);
143
+ border-color: var(--brand-primary);
144
+ background-color: var(--brand-primary);
146
145
  animation: checkbox-tick 100ms ease-in;
147
146
  }
148
147
  }
@@ -150,7 +149,7 @@
150
149
  + .checkbox-icon {
151
150
  .rioglyph {
152
151
  animation: checkbox-tick 100ms ease-in;
153
- color: @brand-primary;
152
+ color: var(--brand-primary);
154
153
  }
155
154
  }
156
155
  }
@@ -161,13 +160,13 @@
161
160
 
162
161
  // Define style for 'diabled' state
163
162
  &:disabled + .checkbox-text {
164
- //color: @gray-light;
163
+ //color: var(--gray-light);
165
164
  opacity: 0.5;
166
165
  cursor: not-allowed;
167
166
 
168
167
  &:before {
169
- border-color: @gray-light;
170
- background-color: @gray-light;
168
+ border-color: var(--gray-light);
169
+ background-color: var(--gray-light);
171
170
  }
172
171
  }
173
172
 
@@ -176,9 +175,9 @@
176
175
  &:indeterminate + .checkbox-text:before {
177
176
  .rioglyph();
178
177
  content: @rioglyph-minus-light;
179
- color: @brand-primary;
180
- border-color: @brand-primary;
181
- background-color: @color-white;
178
+ color: var(--brand-primary);
179
+ border-color: var(--brand-primary);
180
+ background-color: var(--color-white);
182
181
  }
183
182
 
184
183
  // Define colors for error case
@@ -89,10 +89,10 @@
89
89
  // The inputClearButton class is used for multiple inputs such as clearableInput, DateRangePicker...
90
90
  .inputClearButton {
91
91
  align-items: center;
92
- background: @color-white;
92
+ background: var(--color-white);
93
93
  border-radius: @border-radius-default;
94
94
  bottom: 2px;
95
- color: @gray;
95
+ color: var(--gray);
96
96
  cursor: pointer;
97
97
  display: flex;
98
98
  justify-content: flex-start;
@@ -112,7 +112,7 @@
112
112
  }
113
113
 
114
114
  &:hover {
115
- color: darken(@gray, 20%);
115
+ color: .hslb(@gray-hsl, '-', '20%')[@result];
116
116
  }
117
117
 
118
118
  > .clearButtonIcon {
@@ -87,16 +87,16 @@
87
87
  &.color-gray {
88
88
  > * {
89
89
  &:before {
90
- color: @gray;
91
- border-color: @gray;
90
+ color: var(--gray);
91
+ border-color: var(--gray);
92
92
  }
93
93
  }
94
94
  &.filled {
95
95
  > * {
96
96
  &:before {
97
- background-color: @gray;
97
+ background-color: var(--gray);
98
98
  border: none;
99
- color: @color-white;
99
+ color: var(--color-white);
100
100
  }
101
101
  }
102
102
  }
@@ -106,16 +106,16 @@
106
106
  &.color-primary {
107
107
  > * {
108
108
  &:before {
109
- color: @brand-primary;
110
- border-color: @brand-primary;
109
+ color: var(--brand-primary);
110
+ border-color: var(--brand-primary);
111
111
  }
112
112
  }
113
113
  &.filled {
114
114
  > * {
115
115
  &:before {
116
- background-color: @brand-primary;
116
+ background-color: var(--brand-primary);
117
117
  border: none;
118
- color: @color-white;
118
+ color: var(--color-white);
119
119
  }
120
120
  }
121
121
  }
@@ -125,16 +125,16 @@
125
125
  &.color-secondary {
126
126
  > * {
127
127
  &:before {
128
- color: @brand-secondary;
129
- border-color: @brand-secondary;
128
+ color: var(--brand-secondary);
129
+ border-color: var(--brand-secondary);
130
130
  }
131
131
  }
132
132
  &.filled {
133
133
  > * {
134
134
  &:before {
135
- background-color: @brand-secondary;
135
+ background-color: var(--brand-secondary);
136
136
  border: none;
137
- color: @color-white;
137
+ color: var(--color-white);
138
138
  }
139
139
  }
140
140
  }