@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.
- package/.DS_Store +0 -0
- package/ColorScheme.d.ts +4 -0
- package/ColorScheme.js +2 -0
- package/Colors.js +1 -1
- package/TruckLayer.js +1 -1
- package/components/.DS_Store +0 -0
- package/components/applicationHeader/AppMenu.js +6 -3
- package/components/applicationHeader/AppMenuDropdown.js +6 -2
- package/components/applicationHeader/ApplicationHeader.js +10 -5
- package/components/applicationHeader/MobileAppMenu.js +8 -4
- package/components/assetTree/Tree.js +1 -1
- package/components/autosuggest/AutoSuggest.js +2 -2
- package/components/charts/chartHelper.js +1 -1
- package/components/clearableInput/ClearableInput.js +2 -1
- package/components/datepicker/DatePicker.js +8 -4
- package/components/filepicker/FilePicker.js +5 -4
- package/components/map/.DS_Store +0 -0
- package/components/map/assets/icon_map_settings_maptype_night_active.svg +12 -0
- package/components/map/assets/icon_map_settings_maptype_night_inactive.svg +12 -0
- package/components/map/components/.DS_Store +0 -0
- package/components/map/components/Map.js +167 -140
- package/components/map/components/constants.js +1 -0
- package/components/map/components/features/Route.js +6 -7
- package/components/map/components/features/basics/Polyline.js +10 -5
- package/components/map/components/features/layers/RoadRestrictionLayer.js +27 -0
- package/components/map/components/features/layers/TrafficLayer.js +19 -5
- package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +19 -0
- package/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +15 -0
- package/components/map/components/features/layers/baselayers/FleetStyleLayer.js +13 -17
- package/components/map/components/features/layers/baselayers/NightLayer.js +17 -0
- package/components/map/components/features/layers/baselayers/SatelliteLayer.js +13 -17
- package/components/map/components/features/layers/baselayers/TerrainLayer.js +13 -17
- package/components/map/components/features/layers/baselayers/useBaseLayer.js +53 -0
- package/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +1 -1
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +9 -3
- package/components/map/components/mapUtils.js +44 -8
- package/components/map/icons/MapIcon.js +64 -0
- package/components/mapMarker/ClusterMapMarker.js +2 -2
- package/components/mapMarker/SingleMapMarker.js +8 -2
- package/components/numberControl/NumberControl.js +34 -11
- package/components/numberInput/NumberInput.js +52 -50
- package/components/sidebars/Sidebar.js +2 -2
- package/hooks/useDarkMode.js +30 -0
- package/hooks/useElementSize.js +1 -1
- package/hooks/useFullscreen.js +37 -41
- package/hooks/useHereMap.ts +23 -0
- package/hooks/useMutationObserver.js +38 -0
- package/hooks/useScripts.ts +52 -0
- package/hooks/useScrollPosition.js +72 -0
- package/index.js +6 -1
- package/lib/.DS_Store +0 -0
- package/lib/es/.DS_Store +0 -0
- package/lib/es/ColorScheme.d.ts +4 -0
- package/lib/es/ColorScheme.js +18 -0
- package/lib/es/Colors.js +1 -1
- package/lib/es/TruckLayer.js +2 -2
- package/lib/es/components/.DS_Store +0 -0
- package/lib/es/components/applicationHeader/AppMenu.js +6 -3
- package/lib/es/components/applicationHeader/AppMenuDropdown.js +6 -2
- package/lib/es/components/applicationHeader/ApplicationHeader.js +10 -5
- package/lib/es/components/applicationHeader/MobileAppMenu.js +8 -4
- package/lib/es/components/assetTree/Tree.js +1 -1
- package/lib/es/components/autosuggest/AutoSuggest.js +2 -2
- package/lib/es/components/charts/chartHelper.js +1 -1
- package/lib/es/components/clearableInput/ClearableInput.js +2 -1
- package/lib/es/components/datepicker/DatePicker.js +7 -3
- package/lib/es/components/filepicker/FilePicker.js +5 -4
- package/lib/es/components/map/assets/icon_map_settings_maptype_night_active.svg +12 -0
- package/lib/es/components/map/assets/icon_map_settings_maptype_night_inactive.svg +12 -0
- package/lib/es/components/map/components/Map.js +165 -135
- package/lib/es/components/map/components/constants.js +3 -1
- package/lib/es/components/map/components/features/Route.js +6 -7
- package/lib/es/components/map/components/features/basics/Polyline.js +10 -7
- package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +35 -0
- package/lib/es/components/map/components/features/layers/TrafficLayer.js +18 -5
- package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +25 -0
- package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +22 -0
- package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.js +12 -17
- package/lib/es/components/map/components/features/layers/baselayers/NightLayer.js +23 -0
- package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.js +12 -17
- package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.js +12 -17
- package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +61 -0
- package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +1 -1
- package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +7 -1
- package/lib/es/components/map/components/mapUtils.js +44 -10
- package/lib/es/components/map/icons/MapIcon.js +67 -1
- package/lib/es/components/mapMarker/ClusterMapMarker.js +2 -2
- package/lib/es/components/mapMarker/SingleMapMarker.js +8 -2
- package/lib/es/components/numberControl/NumberControl.js +33 -10
- package/lib/es/components/numberInput/NumberInput.js +51 -50
- package/lib/es/components/sidebars/Sidebar.js +2 -2
- package/lib/es/hooks/useDarkMode.js +38 -0
- package/lib/es/hooks/useElementSize.js +1 -1
- package/lib/es/hooks/useFullscreen.js +37 -41
- package/lib/es/hooks/useHereMap.ts +23 -0
- package/lib/es/hooks/useMutationObserver.js +46 -0
- package/lib/es/hooks/useScripts.ts +52 -0
- package/lib/es/hooks/useScrollPosition.js +80 -0
- package/lib/es/index.js +40 -1
- package/lib/es/mapIndex.js +2 -2
- package/lib/es/styles/.DS_Store +0 -0
- package/lib/es/styles/components/Activity.less +9 -10
- package/lib/es/styles/components/ApplicationHeader.less +24 -29
- package/lib/es/styles/components/ApplicationLayout.less +7 -7
- package/lib/es/styles/components/AssetTree.less +30 -28
- package/lib/es/styles/components/AutoSuggest.less +2 -2
- package/lib/es/styles/components/BottomSheet.less +1 -2
- package/lib/es/styles/components/Carousel.less +13 -9
- package/lib/es/styles/components/Checkbox.less +15 -16
- package/lib/es/styles/components/ClearableInput.less +3 -3
- package/lib/es/styles/components/Counter.less +12 -12
- package/lib/es/styles/components/DataTabs.less +2 -2
- package/lib/es/styles/components/DatePicker.less +27 -27
- package/lib/es/styles/components/Dialog.less +15 -11
- package/lib/es/styles/components/Dropdown.less +11 -11
- package/lib/es/styles/components/Expander.less +7 -7
- package/lib/es/styles/components/ListMenu.less +8 -8
- package/lib/es/styles/components/MapHere.less +3 -2
- package/lib/es/styles/components/MapMarker.less +16 -17
- package/lib/es/styles/components/MapSettings.less +5 -5
- package/lib/es/styles/components/NoData.less +1 -1
- package/lib/es/styles/components/Notification.less +12 -12
- package/lib/es/styles/components/RadioButton.less +11 -12
- package/lib/es/styles/components/Resizer.less +1 -1
- package/lib/es/styles/components/Select.less +16 -26
- package/lib/es/styles/components/Sidebar.less +29 -21
- package/lib/es/styles/components/Slider.less +18 -18
- package/lib/es/styles/components/Spinner.less +6 -6
- package/lib/es/styles/components/StatsWidget.less +5 -5
- package/lib/es/styles/components/SteppedProgressBar.less +32 -29
- package/lib/es/styles/components/SupportMarker.less +1 -1
- package/lib/es/styles/components/Switch.less +8 -8
- package/lib/es/styles/components/TableSettingsDialog.less +7 -7
- package/lib/es/styles/components/TableToolbar.less +1 -1
- package/lib/es/styles/components/Tag.less +10 -10
- package/lib/es/styles/components/Timeline.less +3 -3
- package/lib/es/styles/components/Tooltip.less +10 -10
- package/lib/es/styles/design/badges.less +10 -10
- package/lib/es/styles/design/border.less +1 -1
- package/lib/es/styles/design/breadcrumbs.less +2 -2
- package/lib/es/styles/design/button-groups.less +25 -1
- package/lib/es/styles/design/buttons.less +53 -109
- package/lib/es/styles/design/callouts.less +3 -3
- package/lib/es/styles/design/code.less +4 -6
- package/lib/es/styles/design/colors.less +20 -20
- package/lib/es/styles/design/form-input-groups.less +4 -4
- package/lib/es/styles/design/form-inputs.less +33 -31
- package/lib/es/styles/design/images.less +2 -2
- package/lib/es/styles/design/labels.less +11 -11
- package/lib/es/styles/design/list-group.less +14 -12
- package/lib/es/styles/design/navs.less +27 -27
- package/lib/es/styles/design/normalize.less +0 -9
- package/lib/es/styles/design/pagination.less +10 -10
- package/lib/es/styles/design/panels.less +10 -10
- package/lib/es/styles/design/popovers.less +8 -8
- package/lib/es/styles/design/progress-bars.less +8 -8
- package/lib/es/styles/design/shadows.less +14 -7
- package/lib/es/styles/design/tables.less +68 -106
- package/lib/es/styles/design/text.less +5 -19
- package/lib/es/styles/design/theme.less +10 -10
- package/lib/es/styles/design/thumbnails.less +2 -2
- package/lib/es/styles/design/type.less +4 -4
- package/lib/es/styles/design/wells.less +1 -1
- package/lib/es/styles/mapping/color-map.less +76 -75
- package/lib/es/styles/mixins/_imports.less +14 -0
- package/lib/es/styles/mixins/buttons.less +24 -56
- package/lib/es/styles/mixins/forms.less +19 -55
- package/lib/es/styles/mixins/hsl.less +19 -0
- package/lib/es/styles/mixins/panels.less +2 -2
- package/lib/es/styles/print/print.less +7 -7
- package/lib/es/styles/rio-uikit-core.less +2 -2
- package/lib/es/styles/rio-uikit-print-utilities.less +2 -2
- package/lib/es/styles/rio-uikit-responsive-utilities.less +2 -2
- package/lib/es/styles/variables/_index.less +196 -0
- package/lib/es/styles/variables/colors.json +67 -0
- package/lib/es/styles/variables/concated_css_variables.less +66 -0
- package/lib/es/styles/variables/dark_colors.less +88 -0
- package/lib/es/styles/variables/dark_css_variables.less +28 -0
- package/lib/es/styles/variables/dark_css_variables_map.less +96 -0
- package/lib/es/styles/variables/light_colors.less +92 -0
- package/lib/es/styles/variables/light_css_variables.less +17 -0
- package/lib/es/styles/variables/light_css_variables_map.less +100 -0
- package/lib/es/styles/variables/screens.less +7 -0
- package/lib/es/styles/variables/text.less +23 -0
- package/lib/es/themes/.DS_Store +0 -0
- package/lib/es/themes/BuyButton/styles/rio-buyButton.less +13 -8
- package/lib/es/themes/MAN/styles/man-uikit.less +3 -0
- package/lib/es/themes/SCANIA/styles/scania-uikit.less +3 -0
- package/lib/es/themes/Volkswagen/styles/vw-uikit.less +21 -30
- package/lib/es/themes/Website/styles/rio-website.less +154 -124
- package/lib/es/themes/Xmas/styles/rio-xmas.less +59 -29
- package/lib/es/types.ts +27 -5
- package/lib/es/useDarkMode.d.ts +4 -0
- package/lib/es/useDarkMode.js +13 -0
- package/lib/es/useMutationObserver.d.ts +4 -0
- package/lib/es/useMutationObserver.js +13 -0
- package/lib/es/useScrollPosition.d.ts +4 -0
- package/lib/es/useScrollPosition.js +13 -0
- package/lib/es/utils/colorScheme.js +69 -0
- package/lib/es/utils/init.js +34 -34
- package/lib/es/version.json +1 -1
- package/mapIndex.js +1 -1
- package/package.json +34 -33
- package/styles/.DS_Store +0 -0
- package/styles/components/Activity.less +9 -10
- package/styles/components/ApplicationHeader.less +24 -29
- package/styles/components/ApplicationLayout.less +7 -7
- package/styles/components/AssetTree.less +30 -28
- package/styles/components/AutoSuggest.less +2 -2
- package/styles/components/BottomSheet.less +1 -2
- package/styles/components/Carousel.less +13 -9
- package/styles/components/Checkbox.less +15 -16
- package/styles/components/ClearableInput.less +3 -3
- package/styles/components/Counter.less +12 -12
- package/styles/components/DataTabs.less +2 -2
- package/styles/components/DatePicker.less +27 -27
- package/styles/components/Dialog.less +15 -11
- package/styles/components/Dropdown.less +11 -11
- package/styles/components/Expander.less +7 -7
- package/styles/components/ListMenu.less +8 -8
- package/styles/components/MapHere.less +3 -2
- package/styles/components/MapMarker.less +16 -17
- package/styles/components/MapSettings.less +5 -5
- package/styles/components/NoData.less +1 -1
- package/styles/components/Notification.less +12 -12
- package/styles/components/RadioButton.less +11 -12
- package/styles/components/Resizer.less +1 -1
- package/styles/components/Select.less +16 -26
- package/styles/components/Sidebar.less +29 -21
- package/styles/components/Slider.less +18 -18
- package/styles/components/Spinner.less +6 -6
- package/styles/components/StatsWidget.less +5 -5
- package/styles/components/SteppedProgressBar.less +32 -29
- package/styles/components/SupportMarker.less +1 -1
- package/styles/components/Switch.less +8 -8
- package/styles/components/TableSettingsDialog.less +7 -7
- package/styles/components/TableToolbar.less +1 -1
- package/styles/components/Tag.less +10 -10
- package/styles/components/Timeline.less +3 -3
- package/styles/components/Tooltip.less +10 -10
- package/styles/design/badges.less +10 -10
- package/styles/design/border.less +1 -1
- package/styles/design/breadcrumbs.less +2 -2
- package/styles/design/button-groups.less +25 -1
- package/styles/design/buttons.less +53 -109
- package/styles/design/callouts.less +3 -3
- package/styles/design/code.less +4 -6
- package/styles/design/colors.less +20 -20
- package/styles/design/form-input-groups.less +4 -4
- package/styles/design/form-inputs.less +33 -31
- package/styles/design/images.less +2 -2
- package/styles/design/labels.less +11 -11
- package/styles/design/list-group.less +14 -12
- package/styles/design/navs.less +27 -27
- package/styles/design/normalize.less +0 -9
- package/styles/design/pagination.less +10 -10
- package/styles/design/panels.less +10 -10
- package/styles/design/popovers.less +8 -8
- package/styles/design/progress-bars.less +8 -8
- package/styles/design/shadows.less +14 -7
- package/styles/design/tables.less +68 -106
- package/styles/design/text.less +5 -19
- package/styles/design/theme.less +10 -10
- package/styles/design/thumbnails.less +2 -2
- package/styles/design/type.less +4 -4
- package/styles/design/wells.less +1 -1
- package/styles/mapping/color-map.less +76 -75
- package/styles/mixins/_imports.less +14 -0
- package/styles/mixins/buttons.less +24 -56
- package/styles/mixins/forms.less +19 -55
- package/styles/mixins/hsl.less +19 -0
- package/styles/mixins/panels.less +2 -2
- package/styles/print/print.less +7 -7
- package/styles/rio-uikit-core.less +2 -2
- package/styles/rio-uikit-print-utilities.less +2 -2
- package/styles/rio-uikit-responsive-utilities.less +2 -2
- package/styles/variables/_index.less +196 -0
- package/styles/variables/colors.json +67 -0
- package/styles/variables/concated_css_variables.less +66 -0
- package/styles/variables/dark_colors.less +88 -0
- package/styles/variables/dark_css_variables.less +28 -0
- package/styles/variables/dark_css_variables_map.less +96 -0
- package/styles/variables/light_colors.less +92 -0
- package/styles/variables/light_css_variables.less +17 -0
- package/styles/variables/light_css_variables_map.less +100 -0
- package/styles/variables/screens.less +7 -0
- package/styles/variables/text.less +23 -0
- package/themes/.DS_Store +0 -0
- package/themes/BuyButton/styles/rio-buyButton.less +13 -8
- package/themes/MAN/styles/man-uikit.less +3 -0
- package/themes/SCANIA/styles/scania-uikit.less +3 -0
- package/themes/Volkswagen/.DS_Store +0 -0
- package/themes/Volkswagen/styles/vw-uikit.less +21 -30
- package/themes/Website/.DS_Store +0 -0
- package/themes/Website/styles/rio-website.less +154 -124
- package/themes/Xmas/styles/rio-xmas.less +59 -29
- package/types.ts +27 -5
- package/useDarkMode.d.ts +4 -0
- package/useDarkMode.js +2 -0
- package/useMutationObserver.d.ts +4 -0
- package/useMutationObserver.js +2 -0
- package/useScrollPosition.d.ts +4 -0
- package/useScrollPosition.js +2 -0
- package/utils/colorScheme.js +55 -0
- package/utils/init.js +34 -34
- package/version.json +1 -1
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
// RIO cdn
|
|
2
|
+
@cdnBase: "cdn.rio.cloud";
|
|
3
|
+
@fontBase: "fonts";
|
|
4
|
+
|
|
5
|
+
// Grid
|
|
6
|
+
@grid-columns: 12;
|
|
7
|
+
@grid-gutter-width: 20px;
|
|
8
|
+
@grid-gutter-height: 20px;
|
|
9
|
+
@grid-float-breakpoint: @screen-sm;
|
|
10
|
+
|
|
11
|
+
// Mapping // must match with the UIKIT demo values
|
|
12
|
+
@import (less) '../mapping/breakpoint-map.less';
|
|
13
|
+
@import (less) '../mapping/color-map.less';
|
|
14
|
+
@import (less) '../mapping/cols-map.less';
|
|
15
|
+
@import (less) '../mapping/numbers-map.less';
|
|
16
|
+
@import (less) '../mapping/positions-map.less';
|
|
17
|
+
@import (less) '../mapping/sizes-map.less';
|
|
18
|
+
@import (less) '../mapping/spacings-map.less';
|
|
19
|
+
|
|
20
|
+
// Screens
|
|
21
|
+
@import (less) "screens.less";
|
|
22
|
+
|
|
23
|
+
@screen-xs-min: @screen-xs;
|
|
24
|
+
@screen-xs-max: (@screen-ls - 0.01);
|
|
25
|
+
@screen-ls-min: @screen-ls;
|
|
26
|
+
@screen-ls-max: (@screen-sm - 0.01);
|
|
27
|
+
@screen-sm-min: @screen-sm;
|
|
28
|
+
@screen-sm-max: (@screen-md - 0.01);
|
|
29
|
+
@screen-md-min: @screen-md;
|
|
30
|
+
@screen-md-max: (@screen-lg - 0.01);
|
|
31
|
+
@screen-lg-min: @screen-lg;
|
|
32
|
+
@screen-lg-max: (@screen-xl - 0.01);
|
|
33
|
+
@screen-xl-min: @screen-xl;
|
|
34
|
+
@screen-xl-max: 10000px;
|
|
35
|
+
|
|
36
|
+
// Container
|
|
37
|
+
@container-ls: @screen-ls - (@grid-gutter-width * 2);
|
|
38
|
+
@container-sm: @screen-sm - (@grid-gutter-width * 2);
|
|
39
|
+
@container-md: @screen-md - (@grid-gutter-width * 2);
|
|
40
|
+
@container-lg: @screen-lg - (@grid-gutter-width * 2);
|
|
41
|
+
@container-xl: @screen-xl - (@grid-gutter-width * 2);
|
|
42
|
+
|
|
43
|
+
// Container Fluid
|
|
44
|
+
// @container-fluid-xs: px;
|
|
45
|
+
@container-fluid-sm: 980px;
|
|
46
|
+
@container-fluid-md: 1280px;
|
|
47
|
+
@container-fluid-lg: 1440px;
|
|
48
|
+
@container-fluid-xl: 1680px;
|
|
49
|
+
@container-fluid-xxl: 1920px;
|
|
50
|
+
|
|
51
|
+
// Padding
|
|
52
|
+
@padding-xs-vertical: 1px;
|
|
53
|
+
@padding-xs-horizontal: 5px;
|
|
54
|
+
@padding-sm-vertical: 5px;
|
|
55
|
+
@padding-sm-horizontal: 10px;
|
|
56
|
+
@padding-default-vertical: 6px;
|
|
57
|
+
@padding-default-horizontal: 12px;
|
|
58
|
+
@padding-lg-vertical: 10px;
|
|
59
|
+
@padding-lg-horizontal: 16px;
|
|
60
|
+
|
|
61
|
+
// Border Radius
|
|
62
|
+
@border-radius-xs: 2px;
|
|
63
|
+
@border-radius-sm: 3px;
|
|
64
|
+
@border-radius-default: 4px;
|
|
65
|
+
@border-radius-lg: 6px;
|
|
66
|
+
@border-radius-xl: 8px;
|
|
67
|
+
@border-radius-round: 1000px;
|
|
68
|
+
|
|
69
|
+
// Build Warmup and Coldplay Colors?
|
|
70
|
+
@buildColdplayColors: true;
|
|
71
|
+
@buildWarmupColors: true;
|
|
72
|
+
|
|
73
|
+
// CSS Vars
|
|
74
|
+
@import (less) "light_css_variables.less";
|
|
75
|
+
@import (less) "concated_css_variables.less";
|
|
76
|
+
|
|
77
|
+
// Darkmode
|
|
78
|
+
@hasDarkmode: true;
|
|
79
|
+
@hasDarkmodePrefersColorScheme: false;
|
|
80
|
+
|
|
81
|
+
& when (@hasDarkmode = true) {
|
|
82
|
+
@import (less) "dark_css_variables.less";
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Button Sizes
|
|
86
|
+
@btn-size-xs: 22px;
|
|
87
|
+
@btn-size-sm: 30px;
|
|
88
|
+
@btn-size-default: 34px;
|
|
89
|
+
@btn-size-lg: 45px;
|
|
90
|
+
|
|
91
|
+
// Button interaction opacity
|
|
92
|
+
@btn-hover-brightness: 5%;
|
|
93
|
+
@btn-active-brightness: 13%;
|
|
94
|
+
|
|
95
|
+
@btn-hover-border-brightness: 8%;
|
|
96
|
+
@btn-active-border-brightness: 16%;
|
|
97
|
+
|
|
98
|
+
// Text
|
|
99
|
+
@import (less) "text.less";
|
|
100
|
+
|
|
101
|
+
// Text - Sizes
|
|
102
|
+
@font-size-xs: @font-size-12; // only used in buttons and 10px is too small
|
|
103
|
+
@font-size-sm: @font-size-12;
|
|
104
|
+
@font-size-default: @font-size-14;
|
|
105
|
+
@font-size-lg: @font-size-16;
|
|
106
|
+
@font-size-xl: 25px;
|
|
107
|
+
@font-size-xxl: 30px;
|
|
108
|
+
|
|
109
|
+
// Text - Headlines - Weights
|
|
110
|
+
@headings-font-family: @font-family-base;
|
|
111
|
+
@headings-font-weight: @font-medium;
|
|
112
|
+
@headings-line-height: 1.1;
|
|
113
|
+
@headings-color: inherit;
|
|
114
|
+
|
|
115
|
+
// Text - Line Heights
|
|
116
|
+
@line-height-xs: 1.5;
|
|
117
|
+
@line-height-sm: 1.5;
|
|
118
|
+
@line-height-default: 1.428571429;
|
|
119
|
+
@line-height-lg: 1.4;
|
|
120
|
+
|
|
121
|
+
// Text - Font Family
|
|
122
|
+
@font-family-base: 'Source Sans Pro', Helvetica, Arial, sans-serif;
|
|
123
|
+
@font-family-monospace: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
|
|
124
|
+
@font-family-ios: 'SF Text', 'Source Sans Pro', Helvetica, Arial, sans-serif;
|
|
125
|
+
@font-family-android: 'Roboto', 'Source Sans Pro', Helvetica, Arial, sans-serif;
|
|
126
|
+
|
|
127
|
+
@font-source-sans: true;
|
|
128
|
+
@font-man: false;
|
|
129
|
+
@font-redring: false;
|
|
130
|
+
@font-san-francisco: false;
|
|
131
|
+
@font-roboto: false;
|
|
132
|
+
@font-vw: false;
|
|
133
|
+
@font-scania: false;
|
|
134
|
+
|
|
135
|
+
// Iconfont
|
|
136
|
+
@icon-font-name: "rioglyph";
|
|
137
|
+
|
|
138
|
+
// Variables
|
|
139
|
+
@text-color: var(--gray-darkest);
|
|
140
|
+
@link-color: var(--brand-primary);
|
|
141
|
+
@link-hover-color: hsl(var(--brand-primary-h),var(--brand-primary-s),calc(var(--brand-primary-l) - 10%));
|
|
142
|
+
|
|
143
|
+
// Media Queries
|
|
144
|
+
@screen-xs-min: @screen-xs;
|
|
145
|
+
@screen-sm-min: @screen-sm;
|
|
146
|
+
@screen-md-min: @screen-md;
|
|
147
|
+
@screen-lg-min: @screen-lg;
|
|
148
|
+
|
|
149
|
+
// ApplicationLayout
|
|
150
|
+
@ApplicationLayoutBodyPadding: 30px;
|
|
151
|
+
@ApplicationLayoutNotResponsiveWidth: 900px;
|
|
152
|
+
|
|
153
|
+
@ApplicationLayoutBodyHeight: 100vh; // --vh fallback
|
|
154
|
+
@ApplicationLayoutBodyHeightAndViewportFix: ~'calc(var(--vh, 1vh) * 100)';
|
|
155
|
+
|
|
156
|
+
@ApplicationLayoutBodyHeightWithoutHeader: ~'calc(100vh - @{ApplicationLayoutHeaderHeight})'; // --vh fallback
|
|
157
|
+
@ApplicationLayoutBodyHeightWithoutHeaderAndViewportFix: ~'calc(var(--vh, 1vh) * 100 - @{ApplicationLayoutHeaderHeight})';
|
|
158
|
+
|
|
159
|
+
@ApplicationLayoutBodyHeightWithoutFooter: ~'calc(100vh - (var(--ApplicationLayoutBodyBottomBarHeight)))'; // --vh fallback
|
|
160
|
+
@ApplicationLayoutBodyHeightWithoutFooterAndViewportFix: ~'calc(var(--vh, 1vh) * 100 - (var(--ApplicationLayoutBodyBottomBarHeight)))';
|
|
161
|
+
|
|
162
|
+
@ApplicationLayoutBodyHeightWithoutHeaderWithoutFooter: ~'calc(100vh - (@{ApplicationLayoutHeaderHeight} + var(--ApplicationLayoutBodyBottomBarHeight)))'; // --vh fallback
|
|
163
|
+
@ApplicationLayoutBodyHeightWithoutHeaderWithoutFooterAndViewportFix: ~'calc(var(--vh, 1vh) * 100 - (@{ApplicationLayoutHeaderHeight} + var(--ApplicationLayoutBodyBottomBarHeight)))';
|
|
164
|
+
|
|
165
|
+
// ApplicationHeader
|
|
166
|
+
@ApplicationLayoutHeaderHeight: 50px;
|
|
167
|
+
@ApplicationLayoutHeaderHeightWithoutBorder: ~'calc(@{ApplicationLayoutHeaderHeight} - 1px)';
|
|
168
|
+
|
|
169
|
+
@brand-icon-home: url('https://cdn.rio.cloud/svg/common/ico_home.svg');
|
|
170
|
+
@brand-icon-rio: url('https://cdn.rio.cloud/svg/common/ico_rio_colored.svg');
|
|
171
|
+
|
|
172
|
+
@dark-brand-icon-home: url('https://cdn.rio.cloud/svg/common/ico_home_white.svg');
|
|
173
|
+
@dark-brand-icon-rio: url('https://cdn.rio.cloud/svg/common/ico_rio_white.svg');
|
|
174
|
+
|
|
175
|
+
@brand-icon-size: 50px;
|
|
176
|
+
|
|
177
|
+
@ApplicationLayoutHeaderHeighticon-height: @ApplicationLayoutHeaderHeight;
|
|
178
|
+
@ApplicationLayoutHeaderHeightpadding-horizontal: @grid-gutter-width;
|
|
179
|
+
|
|
180
|
+
// ApplicationLayoutBody
|
|
181
|
+
@ApplicationLayoutBodyNavigationHeight: 50px;
|
|
182
|
+
|
|
183
|
+
// ApplicationFooter
|
|
184
|
+
@ApplicationLayoutBodyBottomBarHeight: var(--ApplicationLayoutBodyBottomBarHeight);
|
|
185
|
+
|
|
186
|
+
// Z-index
|
|
187
|
+
@zindex-tooltip: 1060;
|
|
188
|
+
@zindex-modal: 1050;
|
|
189
|
+
@zindex-modal-background: 1040;
|
|
190
|
+
@zindex-popover: 1010;
|
|
191
|
+
@zindex-navbar: 1000;
|
|
192
|
+
@zindex-dropdown: 1000;
|
|
193
|
+
@zindex-sidebar: 990;
|
|
194
|
+
@zindex-tooltip-onboarding: 990;
|
|
195
|
+
@zindex-map-marker-hover: 801;
|
|
196
|
+
@zindex-map-marker-active: 800;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"always-color-white": "#ffffff",
|
|
3
|
+
"always-color-black": "#000000",
|
|
4
|
+
"color-white": "#ffffff",
|
|
5
|
+
"color-black": "#000000",
|
|
6
|
+
"gray-darkest": "#2a3740",
|
|
7
|
+
"gray-darker": "#4C5667",
|
|
8
|
+
"gray-dark": "#697A8B",
|
|
9
|
+
"gray": "#A7AFBB",
|
|
10
|
+
"gray-light": "#D0D8DE",
|
|
11
|
+
"gray-lighter": "#E5EBF0",
|
|
12
|
+
"gray-lightest": "#f6f8f9",
|
|
13
|
+
"brand-primary": "#30b4c0",
|
|
14
|
+
"brand-secondary": "#b23672",
|
|
15
|
+
"brand-primary-decent": "#f4fbfc",
|
|
16
|
+
"brand-secondary-decent": "#fbf5f8",
|
|
17
|
+
"brand-info": "#4B80A6",
|
|
18
|
+
"brand-success": "#5cb85c",
|
|
19
|
+
"brand-warning": "#ff8e3c",
|
|
20
|
+
"brand-danger": "#d90000",
|
|
21
|
+
"brand-info-decent": "#f5f8fb",
|
|
22
|
+
"brand-success-decent": "#f6fbf5",
|
|
23
|
+
"brand-warning-decent": "#fdf5f0",
|
|
24
|
+
"brand-danger-decent": "#fdf3f3",
|
|
25
|
+
"color-code": "#f3f3f4",
|
|
26
|
+
"color-status-available": "#239b7d",
|
|
27
|
+
"color-status-driving": "#3690ae",
|
|
28
|
+
"color-status-resting": "#626b72",
|
|
29
|
+
"color-status-working": "#94488b",
|
|
30
|
+
"color-map-marker-active": "#ffffff",
|
|
31
|
+
"color-map-marker-asset": "#2a3740",
|
|
32
|
+
"color-map-marker-poi": "#b23672",
|
|
33
|
+
"color-map-marker-geofence": "#5a4876",
|
|
34
|
+
"color-map-marker-route": "#3690ae",
|
|
35
|
+
"color-map-marker-text": "#ffffff",
|
|
36
|
+
"color-rating-1": "#d90000",
|
|
37
|
+
"color-rating-2": "#ff8e3c",
|
|
38
|
+
"color-rating-3": "#f8c575",
|
|
39
|
+
"color-rating-4": "#5cb85c",
|
|
40
|
+
"color-rating-5": "#4b924c",
|
|
41
|
+
"color-highlight-darkest": "#114146",
|
|
42
|
+
"color-highlight-darker": "#1c686e",
|
|
43
|
+
"color-highlight-dark": "#268e97",
|
|
44
|
+
"color-highlight": "#30b4c0",
|
|
45
|
+
"color-highlight-light": "#8ddbe3",
|
|
46
|
+
"color-highlight-lighter": "#cef0f3",
|
|
47
|
+
"color-highlight-lightest": "#ebf9fa",
|
|
48
|
+
"color-highlight-decent": "#f3fbfc",
|
|
49
|
+
"color-coldplay-wine": "#520D4E",
|
|
50
|
+
"color-coldplay-aubergine": "#5a4876",
|
|
51
|
+
"color-coldplay-kashmir": "#536E8B",
|
|
52
|
+
"color-coldplay-fountain": "#67abc5",
|
|
53
|
+
"color-coldplay-turquoise": "#4ECCC1",
|
|
54
|
+
"color-coldplay-bermuda": "#79D4B3",
|
|
55
|
+
"color-coldplay-moos": "#A1DAA3",
|
|
56
|
+
"color-coldplay-primrose": "#C7E291",
|
|
57
|
+
"color-coldplay-khaki": "#F0EB83",
|
|
58
|
+
"color-warmup-crimson": "#31144F",
|
|
59
|
+
"color-warmup-victoria": "#493D6D",
|
|
60
|
+
"color-warmup-cadillac": "#7E3E72",
|
|
61
|
+
"color-warmup-raspberry": "#B23672",
|
|
62
|
+
"color-warmup-cerise": "#E72472",
|
|
63
|
+
"color-warmup-charm": "#C9778D",
|
|
64
|
+
"color-warmup-salmon": "#F19588",
|
|
65
|
+
"color-warmup-cherokee": "#F5BB89",
|
|
66
|
+
"color-warmup-corn": "#FDE082"
|
|
67
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// Reusable concated hsl css vars as less vars
|
|
2
|
+
@color-white-hsl: var(--color-white-h), var(--color-white-s), var(--color-white-l);
|
|
3
|
+
@color-black-hsl: var(--color-black-h), var(--color-black-s), var(--color-black-l);
|
|
4
|
+
@always-color-white-hsl: var(--always-color-white-h), var(--always-color-white-s), var(--always-color-white-l);
|
|
5
|
+
@always-color-black-hsl: var(--always-color-black-h), var(--always-color-black-s), var(--always-color-black-l);
|
|
6
|
+
@gray-darkest-hsl: var(--gray-darkest-h), var(--gray-darkest-s), var(--gray-darkest-l);
|
|
7
|
+
@gray-darker-hsl: var(--gray-darker-h), var(--gray-darker-s), var(--gray-darker-l);
|
|
8
|
+
@gray-dark-hsl: var(--gray-dark-h), var(--gray-dark-s), var(--gray-dark-l);
|
|
9
|
+
@gray-hsl: var(--gray-h), var(--gray-s), var(--gray-l);
|
|
10
|
+
@gray-light-hsl: var(--gray-light-h), var(--gray-light-s), var(--gray-light-l);
|
|
11
|
+
@gray-lighter-hsl: var(--gray-lighter-h), var(--gray-lighter-s), var(--gray-lighter-l);
|
|
12
|
+
@gray-lightest-hsl: var(--gray-lightest-h), var(--gray-lightest-s), var(--gray-lightest-l);
|
|
13
|
+
@brand-primary-hsl: var(--brand-primary-h), var(--brand-primary-s), var(--brand-primary-l);
|
|
14
|
+
@brand-secondary-hsl: var(--brand-secondary-h), var(--brand-secondary-s), var(--brand-secondary-l);
|
|
15
|
+
@brand-primary-decent-hsl: var(--brand-primary-decent-h), var(--brand-primary-decent-s), var(--brand-primary-decent-l);
|
|
16
|
+
@brand-secondary-decent-hsl: var(--brand-secondary-decent-h), var(--brand-secondary-decent-s), var(--brand-secondary-decent-l);
|
|
17
|
+
@brand-info-hsl: var(--brand-info-h), var(--brand-info-s), var(--brand-info-l);
|
|
18
|
+
@brand-success-hsl: var(--brand-success-h), var(--brand-success-s), var(--brand-success-l);
|
|
19
|
+
@brand-warning-hsl: var(--brand-warning-h), var(--brand-warning-s), var(--brand-warning-l);
|
|
20
|
+
@brand-danger-hsl: var(--brand-danger-h), var(--brand-danger-s), var(--brand-danger-l);
|
|
21
|
+
@brand-info-decent-hsl: var(--brand-info-decent-h), var(--brand-info-decent-s), var(--brand-info-decent-l);
|
|
22
|
+
@brand-success-decent-hsl: var(--brand-success-decent-h), var(--brand-success-decent-s), var(--brand-success-decent-l);
|
|
23
|
+
@brand-warning-decent-hsl: var(--brand-warning-decent-h), var(--brand-warning-decent-s), var(--brand-warning-decent-l);
|
|
24
|
+
@brand-danger-decent-hsl: var(--brand-danger-decent-h), var(--brand-danger-decent-s), var(--brand-danger-decent-l);
|
|
25
|
+
@color-code-hsl: var(--color-code-h), var(--color-code-s), var(--color-code-l);
|
|
26
|
+
@color-status-available-hsl: var(--color-status-available-h), var(--color-status-available-s), var(--color-status-available-l);
|
|
27
|
+
@color-status-driving-hsl: var(--color-status-driving-h), var(--color-status-driving-s), var(--color-status-driving-l);
|
|
28
|
+
@color-status-resting-hsl: var(--color-status-resting-h), var(--color-status-resting-s), var(--color-status-resting-l);
|
|
29
|
+
@color-status-working-hsl: var(--color-status-working-h), var(--color-status-working-s), var(--color-status-working-l);
|
|
30
|
+
@color-map-marker-active-hsl: var(--color-map-marker-active-h), var(--color-map-marker-active-s), var(--color-map-marker-active-l);
|
|
31
|
+
@color-map-marker-asset-hsl: var(--color-map-marker-asset-h), var(--color-map-marker-asset-s), var(--color-map-marker-asset-l);
|
|
32
|
+
@color-map-marker-poi-hsl: var(--color-map-marker-poi-h), var(--color-map-marker-poi-s), var(--color-map-marker-poi-l);
|
|
33
|
+
@color-map-marker-geofence-hsl: var(--color-map-marker-geofence-h), var(--color-map-marker-geofence-s), var(--color-map-marker-geofence-l);
|
|
34
|
+
@color-map-marker-route-hsl: var(--color-map-marker-route-h), var(--color-map-marker-route-s), var(--color-map-marker-route-l);
|
|
35
|
+
@color-map-marker-text-hsl: var(--color-map-marker-text-h), var(--color-map-marker-text-s), var(--color-map-marker-text-l);
|
|
36
|
+
@color-highlight-darkest-hsl: var(--color-highlight-darkest-h), var(--color-highlight-darkest-s), var(--color-highlight-darkest-l);
|
|
37
|
+
@color-highlight-darker-hsl: var(--color-highlight-darker-h), var(--color-highlight-darker-s), var(--color-highlight-darker-l);
|
|
38
|
+
@color-highlight-dark-hsl: var(--color-highlight-dark-h), var(--color-highlight-dark-s), var(--color-highlight-dark-l);
|
|
39
|
+
@color-highlight-hsl: var(--color-highlight-h), var(--color-highlight-s), var(--color-highlight-l);
|
|
40
|
+
@color-highlight-light-hsl: var(--color-highlight-light-h), var(--color-highlight-light-s), var(--color-highlight-light-l);
|
|
41
|
+
@color-highlight-lighter-hsl: var(--color-highlight-lighter-h), var(--color-highlight-lighter-s), var(--color-highlight-lighter-l);
|
|
42
|
+
@color-highlight-lightest-hsl: var(--color-highlight-lightest-h), var(--color-highlight-lightest-s), var(--color-highlight-lightest-l);
|
|
43
|
+
@color-highlight-decent-hsl: var(--color-highlight-decent-h), var(--color-highlight-decent-s), var(--color-highlight-decent-l);
|
|
44
|
+
@color-rating-1-hsl: var(--color-rating-1-h), var(--color-rating-1-s), var(--color-rating-1-l);
|
|
45
|
+
@color-rating-2-hsl: var(--color-rating-2-h), var(--color-rating-2-s), var(--color-rating-2-l);
|
|
46
|
+
@color-rating-3-hsl: var(--color-rating-3-h), var(--color-rating-3-s), var(--color-rating-3-l);
|
|
47
|
+
@color-rating-4-hsl: var(--color-rating-4-h), var(--color-rating-4-s), var(--color-rating-4-l);
|
|
48
|
+
@color-rating-5-hsl: var(--color-rating-5-h), var(--color-rating-5-s), var(--color-rating-5-l);
|
|
49
|
+
@color-coldplay-wine-hsl: var(--color-coldplay-wine-h), var(--color-coldplay-wine-s), var(--color-coldplay-wine-l);
|
|
50
|
+
@color-coldplay-aubergine-hsl: var(--color-coldplay-aubergine-h), var(--color-coldplay-aubergine-s), var(--color-coldplay-aubergine-l);
|
|
51
|
+
@color-coldplay-kashmir-hsl: var(--color-coldplay-kashmir-h), var(--color-coldplay-kashmir-s), var(--color-coldplay-kashmir-l);
|
|
52
|
+
@color-coldplay-fountain-hsl: var(--color-coldplay-fountain-h), var(--color-coldplay-fountain-s), var(--color-coldplay-fountain-l);
|
|
53
|
+
@color-coldplay-turquoise-hsl: var(--color-coldplay-turquoise-h), var(--color-coldplay-turquoise-s), var(--color-coldplay-turquoise-l);
|
|
54
|
+
@color-coldplay-bermuda-hsl: var(--color-coldplay-bermuda-h), var(--color-coldplay-bermuda-s), var(--color-coldplay-bermuda-l);
|
|
55
|
+
@color-coldplay-moos-hsl: var(--color-coldplay-moos-h), var(--color-coldplay-moos-s), var(--color-coldplay-moos-l);
|
|
56
|
+
@color-coldplay-primrose-hsl: var(--color-coldplay-primrose-h), var(--color-coldplay-primrose-s), var(--color-coldplay-primrose-l);
|
|
57
|
+
@color-coldplay-khaki-hsl: var(--color-coldplay-khaki-h), var(--color-coldplay-khaki-s), var(--color-coldplay-khaki-l);
|
|
58
|
+
@color-warmup-crimson-hsl: var(--color-warmup-crimson-h), var(--color-warmup-crimson-s), var(--color-warmup-crimson-l);
|
|
59
|
+
@color-warmup-victoria-hsl: var(--color-warmup-victoria-h), var(--color-warmup-victoria-s), var(--color-warmup-victoria-l);
|
|
60
|
+
@color-warmup-cadillac-hsl: var(--color-warmup-cadillac-h), var(--color-warmup-cadillac-s), var(--color-warmup-cadillac-l);
|
|
61
|
+
@color-warmup-raspberry-hsl: var(--color-warmup-raspberry-h), var(--color-warmup-raspberry-s), var(--color-warmup-raspberry-l);
|
|
62
|
+
@color-warmup-cerise-hsl: var(--color-warmup-cerise-h), var(--color-warmup-cerise-s), var(--color-warmup-cerise-l);
|
|
63
|
+
@color-warmup-charm-hsl: var(--color-warmup-charm-h), var(--color-warmup-charm-s), var(--color-warmup-charm-l);
|
|
64
|
+
@color-warmup-salmon-hsl: var(--color-warmup-salmon-h), var(--color-warmup-salmon-s), var(--color-warmup-salmon-l);
|
|
65
|
+
@color-warmup-cherokee-hsl: var(--color-warmup-cherokee-h), var(--color-warmup-cherokee-s), var(--color-warmup-cherokee-l);
|
|
66
|
+
@color-warmup-corn-hsl: var(--color-warmup-corn-h), var(--color-warmup-corn-s), var(--color-warmup-corn-l);
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// Color - Text
|
|
2
|
+
@dark-color-white: #151515;
|
|
3
|
+
@dark-color-black: #ededed;
|
|
4
|
+
|
|
5
|
+
// Color - Grays
|
|
6
|
+
@dark-gray-darkest: #8f999c;
|
|
7
|
+
@dark-gray-darker: #757c7f;
|
|
8
|
+
@dark-gray-dark: #72797c;
|
|
9
|
+
@dark-gray: #6e757a;
|
|
10
|
+
@dark-gray-light: #444a4c;
|
|
11
|
+
@dark-gray-lighter: #2a2f30;
|
|
12
|
+
@dark-gray-lightest: #0f1111;
|
|
13
|
+
|
|
14
|
+
// Color - Brand
|
|
15
|
+
@dark-brand-primary: #30b4c0;
|
|
16
|
+
@dark-brand-secondary: #b23672;
|
|
17
|
+
|
|
18
|
+
// Color - Brand Decent
|
|
19
|
+
@dark-brand-primary-decent: #123c40;
|
|
20
|
+
@dark-brand-secondary-decent: #311531;
|
|
21
|
+
|
|
22
|
+
// Color - Status
|
|
23
|
+
@dark-brand-info: #4B80A6;
|
|
24
|
+
@dark-brand-success: #53a653;
|
|
25
|
+
@dark-brand-warning: #d67632;
|
|
26
|
+
@dark-brand-danger: #ca2020;
|
|
27
|
+
|
|
28
|
+
// Color - Status Decent
|
|
29
|
+
@dark-brand-info-decent: #182d3d;
|
|
30
|
+
@dark-brand-success-decent: #182f18;
|
|
31
|
+
@dark-brand-warning-decent: #371f0f;
|
|
32
|
+
@dark-brand-danger-decent: #3e0b0b;
|
|
33
|
+
|
|
34
|
+
// Color - Code
|
|
35
|
+
@dark-color-code: #262626;
|
|
36
|
+
|
|
37
|
+
// Color - Driving Status // CURRENTLY NO DIFFERENCES TO THE LIGHT THEME
|
|
38
|
+
@dark-color-status-available: @color-status-available;
|
|
39
|
+
@dark-color-status-driving: @color-status-driving;
|
|
40
|
+
@dark-color-status-resting: @color-status-resting;
|
|
41
|
+
@dark-color-status-working: @color-status-working;
|
|
42
|
+
|
|
43
|
+
// Color - Map Marker // CURRENTLY NO DIFFERENCES TO THE LIGHT THEME
|
|
44
|
+
@dark-color-map-marker-active: @color-map-marker-active;
|
|
45
|
+
@dark-color-map-marker-asset: @color-map-marker-asset;
|
|
46
|
+
@dark-color-map-marker-poi: @color-map-marker-poi;
|
|
47
|
+
@dark-color-map-marker-geofence: @color-map-marker-geofence;
|
|
48
|
+
@dark-color-map-marker-route: @color-map-marker-route;
|
|
49
|
+
@dark-color-map-marker-text: @color-map-marker-text;
|
|
50
|
+
|
|
51
|
+
// Color - Rating // CURRENTLY NO DIFFERENCES TO THE LIGHT THEME
|
|
52
|
+
@dark-color-rating-1: @color-rating-1;
|
|
53
|
+
@dark-color-rating-2: @color-rating-2;
|
|
54
|
+
@dark-color-rating-3: @color-rating-3;
|
|
55
|
+
@dark-color-rating-4: @color-rating-4;
|
|
56
|
+
@dark-color-rating-5: @color-rating-5;
|
|
57
|
+
|
|
58
|
+
// Color - Highlight
|
|
59
|
+
@dark-color-highlight-darkest: #def2f5;
|
|
60
|
+
@dark-color-highlight-darker: #c9ebef;
|
|
61
|
+
@dark-color-highlight-dark: #a3dbe3;
|
|
62
|
+
@dark-color-highlight: @dark-brand-primary;
|
|
63
|
+
@dark-color-highlight-light: #3a808b;
|
|
64
|
+
@dark-color-highlight-lighter: #2a5b62;
|
|
65
|
+
@dark-color-highlight-lightest: #1b383d;
|
|
66
|
+
@dark-color-highlight-decent: #0e191b;
|
|
67
|
+
|
|
68
|
+
// Color - RIO Coldplay // CURRENTLY NO DIFFERENCES TO THE LIGHT THEME
|
|
69
|
+
@dark-color-coldplay-wine: @color-coldplay-wine;
|
|
70
|
+
@dark-color-coldplay-aubergine: @color-coldplay-aubergine;
|
|
71
|
+
@dark-color-coldplay-kashmir: @color-coldplay-kashmir;
|
|
72
|
+
@dark-color-coldplay-fountain: @color-coldplay-fountain;
|
|
73
|
+
@dark-color-coldplay-turquoise: @color-coldplay-turquoise;
|
|
74
|
+
@dark-color-coldplay-bermuda: @color-coldplay-bermuda;
|
|
75
|
+
@dark-color-coldplay-moos: @color-coldplay-moos;
|
|
76
|
+
@dark-color-coldplay-primrose: @color-coldplay-primrose;
|
|
77
|
+
@dark-color-coldplay-khaki: @color-coldplay-khaki;
|
|
78
|
+
|
|
79
|
+
// Color - RIO Warmup // CURRENTLY NO DIFFERENCES TO THE LIGHT THEME
|
|
80
|
+
@dark-color-warmup-crimson: @color-warmup-crimson;
|
|
81
|
+
@dark-color-warmup-victoria: @color-warmup-victoria;
|
|
82
|
+
@dark-color-warmup-cadillac: @color-warmup-cadillac;
|
|
83
|
+
@dark-color-warmup-raspberry: @color-warmup-raspberry;
|
|
84
|
+
@dark-color-warmup-cerise: @color-warmup-cerise;
|
|
85
|
+
@dark-color-warmup-charm: @color-warmup-charm;
|
|
86
|
+
@dark-color-warmup-salmon: @color-warmup-salmon;
|
|
87
|
+
@dark-color-warmup-cherokee: @color-warmup-cherokee;
|
|
88
|
+
@dark-color-warmup-corn: @color-warmup-corn;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Darkmode CSS Vars
|
|
2
|
+
@import (less) "dark_colors.less";
|
|
3
|
+
@import (less) "dark_css_variables_map.less";
|
|
4
|
+
|
|
5
|
+
.createDarkmodeCssVars() {
|
|
6
|
+
each(@darkModeColors, {
|
|
7
|
+
--@{key}: @value;
|
|
8
|
+
--@{key}-h: hue(@value);
|
|
9
|
+
--@{key}-s: saturation(@value);
|
|
10
|
+
--@{key}-l: lightness(@value);
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
each(@darkModeVariables, {
|
|
14
|
+
--@{key}: @value;
|
|
15
|
+
})
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
& when (@hasDarkmodePrefersColorScheme = true) {
|
|
19
|
+
@media (prefers-color-scheme: dark) {
|
|
20
|
+
:root:not([data-theme]) {
|
|
21
|
+
.createDarkmodeCssVars();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:root[data-theme="dark"] {
|
|
27
|
+
.createDarkmodeCssVars();
|
|
28
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
@darkModeColors: {
|
|
2
|
+
// Color - Text
|
|
3
|
+
color-white: @dark-color-white;
|
|
4
|
+
color-black: @dark-color-black;
|
|
5
|
+
|
|
6
|
+
// Color - Grays
|
|
7
|
+
gray-darkest: @dark-gray-darkest;
|
|
8
|
+
gray-darker: @dark-gray-darker;
|
|
9
|
+
gray-dark: @dark-gray-dark;
|
|
10
|
+
gray: @dark-gray;
|
|
11
|
+
gray-light: @dark-gray-light;
|
|
12
|
+
gray-lighter: @dark-gray-lighter;
|
|
13
|
+
gray-lightest: @dark-gray-lightest;
|
|
14
|
+
|
|
15
|
+
// Color - Brand
|
|
16
|
+
brand-primary: @dark-brand-primary;
|
|
17
|
+
brand-secondary: @dark-brand-secondary;
|
|
18
|
+
|
|
19
|
+
// Color - Brand Decent
|
|
20
|
+
brand-primary-decent: @dark-brand-primary-decent;
|
|
21
|
+
brand-secondary-decent: @dark-brand-secondary-decent;
|
|
22
|
+
|
|
23
|
+
// Color - Status
|
|
24
|
+
brand-info: @dark-brand-info;
|
|
25
|
+
brand-success: @dark-brand-success;
|
|
26
|
+
brand-warning: @dark-brand-warning;
|
|
27
|
+
brand-danger: @dark-brand-danger;
|
|
28
|
+
|
|
29
|
+
// Color - Status Decent
|
|
30
|
+
brand-info-decent: @dark-brand-info-decent;
|
|
31
|
+
brand-success-decent: @dark-brand-success-decent;
|
|
32
|
+
brand-warning-decent: @dark-brand-warning-decent;
|
|
33
|
+
brand-danger-decent: @dark-brand-danger-decent;
|
|
34
|
+
|
|
35
|
+
// Color - Code
|
|
36
|
+
color-code: @dark-color-code;
|
|
37
|
+
|
|
38
|
+
// Color - Driving Status // CURRENTLY NO DIFFERENCES TO THE LIGHT THEME
|
|
39
|
+
// color-status-available: @dark-color-status-available;
|
|
40
|
+
// color-status-driving: @dark-color-status-driving;
|
|
41
|
+
// color-status-resting: @dark-color-status-resting;
|
|
42
|
+
// color-status-working: @dark-color-status-working;
|
|
43
|
+
|
|
44
|
+
// Color - Map Marker // CURRENTLY NO DIFFERENCES TO THE LIGHT THEME
|
|
45
|
+
// color-map-marker-active: @dark-color-map-marker-active;
|
|
46
|
+
// color-map-marker-asset: @dark-color-map-marker-asset;
|
|
47
|
+
// color-map-marker-poi: @dark-color-map-marker-poi;
|
|
48
|
+
// color-map-marker-geofence: @dark-color-map-marker-geofence;
|
|
49
|
+
// color-map-marker-route: @dark-color-map-marker-route;
|
|
50
|
+
// color-map-marker-text: @dark-color-map-marker-text;
|
|
51
|
+
|
|
52
|
+
// Color - Highlight
|
|
53
|
+
color-highlight-darkest: @dark-color-highlight-darkest;
|
|
54
|
+
color-highlight-darker: @dark-color-highlight-darker;
|
|
55
|
+
color-highlight-dark: @dark-color-highlight-dark;
|
|
56
|
+
color-highlight: @dark-color-highlight;
|
|
57
|
+
color-highlight-light: @dark-color-highlight-light;
|
|
58
|
+
color-highlight-lighter: @dark-color-highlight-lighter;
|
|
59
|
+
color-highlight-lightest: @dark-color-highlight-lightest;
|
|
60
|
+
color-highlight-decent: @dark-color-highlight-decent;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@darkModeVariables: {
|
|
64
|
+
// Color - Rating // CURRENTLY NO DIFFERENCES TO THE LIGHT THEME
|
|
65
|
+
// color-rating-1: @dark-color-rating-1;
|
|
66
|
+
// color-rating-2: @dark-color-rating-2;
|
|
67
|
+
// color-rating-3: @dark-color-rating-3;
|
|
68
|
+
// color-rating-4: @dark-color-rating-4;
|
|
69
|
+
// color-rating-5: @dark-color-rating-5;
|
|
70
|
+
|
|
71
|
+
// Color - RIO Coldplay // CURRENTLY NO DIFFERENCES TO THE LIGHT THEME
|
|
72
|
+
// color-coldplay-wine: @dark-color-coldplay-wine;
|
|
73
|
+
// color-coldplay-aubergine: @dark-color-coldplay-aubergine;
|
|
74
|
+
// color-coldplay-kashmir: @dark-color-coldplay-kashmir;
|
|
75
|
+
// color-coldplay-fountain: @dark-color-coldplay-fountain;
|
|
76
|
+
// color-coldplay-turquoise: @dark-color-coldplay-turquoise;
|
|
77
|
+
// color-coldplay-bermuda: @dark-color-coldplay-bermuda;
|
|
78
|
+
// color-coldplay-moos: @dark-color-coldplay-moos;
|
|
79
|
+
// color-coldplay-primrose: @dark-color-coldplay-primrose;
|
|
80
|
+
// color-coldplay-khaki: @dark-color-coldplay-khaki;
|
|
81
|
+
|
|
82
|
+
// Color - RIO Warmup // CURRENTLY NO DIFFERENCES TO THE LIGHT THEME
|
|
83
|
+
// color-warmup-crimson: @dark-color-warmup-crimson;
|
|
84
|
+
// color-warmup-victoria: @dark-color-warmup-victoria;
|
|
85
|
+
// color-warmup-cadillac: @dark-color-warmup-cadillac;
|
|
86
|
+
// color-warmup-raspberry: @dark-color-warmup-raspberry;
|
|
87
|
+
// color-warmup-cerise: @dark-color-warmup-cerise;
|
|
88
|
+
// color-warmup-charm: @dark-color-warmup-charm;
|
|
89
|
+
// color-warmup-salmon: @dark-color-warmup-salmon;
|
|
90
|
+
// color-warmup-cherokee: @dark-color-warmup-cherokee;
|
|
91
|
+
// color-warmup-corn: @dark-color-warmup-corn;
|
|
92
|
+
|
|
93
|
+
// SVGs
|
|
94
|
+
brand-icon-rio: url(https://cdn.rio.cloud/svg/common/ico_rio_white.svg);
|
|
95
|
+
brand-icon-home: url(https://cdn.rio.cloud/svg/common/ico_home_white.svg);
|
|
96
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// Colors
|
|
2
|
+
@always-color-white: #ffffff;
|
|
3
|
+
@always-color-black: #000000;
|
|
4
|
+
|
|
5
|
+
// Color - Text
|
|
6
|
+
@color-white: #ffffff;
|
|
7
|
+
@color-black: #000000;
|
|
8
|
+
|
|
9
|
+
// Color - Grays
|
|
10
|
+
@gray-darkest: #2a3740;
|
|
11
|
+
@gray-darker: #4C5667;
|
|
12
|
+
@gray-dark: #697A8B;
|
|
13
|
+
@gray: #A7AFBB;
|
|
14
|
+
@gray-light: #D0D8DE;
|
|
15
|
+
@gray-lighter: #E5EBF0;
|
|
16
|
+
@gray-lightest: #f6f8f9;
|
|
17
|
+
|
|
18
|
+
// Color - Brand
|
|
19
|
+
@brand-primary: #30b4c0;
|
|
20
|
+
@brand-secondary: #b23672;
|
|
21
|
+
|
|
22
|
+
// Color - Brand Decent
|
|
23
|
+
@brand-primary-decent: #f4fbfc;
|
|
24
|
+
@brand-secondary-decent: #fbf5f8;
|
|
25
|
+
|
|
26
|
+
// Color - Status
|
|
27
|
+
@brand-info: #4B80A6;
|
|
28
|
+
@brand-success: #5cb85c;
|
|
29
|
+
@brand-warning: #ff8e3c;
|
|
30
|
+
@brand-danger: #d90000;
|
|
31
|
+
|
|
32
|
+
// Color - Status Decent
|
|
33
|
+
@brand-info-decent: #f5f8fb;
|
|
34
|
+
@brand-success-decent: #f6fbf5;
|
|
35
|
+
@brand-warning-decent: #fdf5f0;
|
|
36
|
+
@brand-danger-decent: #fdf3f3;
|
|
37
|
+
|
|
38
|
+
// Color - Code
|
|
39
|
+
@color-code: #f3f3f4;
|
|
40
|
+
|
|
41
|
+
// Color - Driving Status
|
|
42
|
+
@color-status-available: #239b7d;
|
|
43
|
+
@color-status-driving: #3690ae;
|
|
44
|
+
@color-status-resting: #626b72;
|
|
45
|
+
@color-status-working: #94488b;
|
|
46
|
+
|
|
47
|
+
// Color - Map Marker
|
|
48
|
+
@color-map-marker-active: #ffffff;
|
|
49
|
+
@color-map-marker-asset: #2a3740;
|
|
50
|
+
@color-map-marker-poi: #b23672;
|
|
51
|
+
@color-map-marker-geofence: #5a4876;
|
|
52
|
+
@color-map-marker-route: #3690ae;
|
|
53
|
+
@color-map-marker-text: #ffffff;
|
|
54
|
+
|
|
55
|
+
// Color - Rating
|
|
56
|
+
@color-rating-1: #d90000;
|
|
57
|
+
@color-rating-2: #ff8e3c;
|
|
58
|
+
@color-rating-3: #f8c575;
|
|
59
|
+
@color-rating-4: #5cb85c;
|
|
60
|
+
@color-rating-5: #4b924c;
|
|
61
|
+
|
|
62
|
+
// Color - Highlight
|
|
63
|
+
@color-highlight-darkest: #114146;
|
|
64
|
+
@color-highlight-darker: #1c686e;
|
|
65
|
+
@color-highlight-dark: #268e97;
|
|
66
|
+
@color-highlight: #30b4c0;
|
|
67
|
+
@color-highlight-light: #8ddbe3;
|
|
68
|
+
@color-highlight-lighter: #cef0f3;
|
|
69
|
+
@color-highlight-lightest: #ebf9fa;
|
|
70
|
+
@color-highlight-decent: #f3fbfc;
|
|
71
|
+
|
|
72
|
+
// Color - RIO Coldplay
|
|
73
|
+
@color-coldplay-wine: #520D4E;
|
|
74
|
+
@color-coldplay-aubergine: #5a4876;
|
|
75
|
+
@color-coldplay-kashmir: #536E8B;
|
|
76
|
+
@color-coldplay-fountain: #67abc5;
|
|
77
|
+
@color-coldplay-turquoise: #4ECCC1;
|
|
78
|
+
@color-coldplay-bermuda: #79D4B3;
|
|
79
|
+
@color-coldplay-moos: #A1DAA3;
|
|
80
|
+
@color-coldplay-primrose: #C7E291;
|
|
81
|
+
@color-coldplay-khaki: #F0EB83;
|
|
82
|
+
|
|
83
|
+
// Color - RIO Warmup
|
|
84
|
+
@color-warmup-crimson: #31144F;
|
|
85
|
+
@color-warmup-victoria: #493D6D;
|
|
86
|
+
@color-warmup-cadillac: #7E3E72;
|
|
87
|
+
@color-warmup-raspberry: #B23672;
|
|
88
|
+
@color-warmup-cerise: #E72472;
|
|
89
|
+
@color-warmup-charm: #C9778D;
|
|
90
|
+
@color-warmup-salmon: #F19588;
|
|
91
|
+
@color-warmup-cherokee: #F5BB89;
|
|
92
|
+
@color-warmup-corn: #FDE082;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Color Vars and Maps
|
|
2
|
+
@import (less) "light_colors.less";
|
|
3
|
+
@import (less) "light_css_variables_map.less";
|
|
4
|
+
|
|
5
|
+
// Default CSS Vars
|
|
6
|
+
:root, :root[data-theme="light"] {
|
|
7
|
+
each(@lightModeColors, {
|
|
8
|
+
--@{key}: @value;
|
|
9
|
+
--@{key}-h: hue(@value);
|
|
10
|
+
--@{key}-s: saturation(@value);
|
|
11
|
+
--@{key}-l: lightness(@value);
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
each(@lightModeVariables, {
|
|
15
|
+
--@{key}: @value;
|
|
16
|
+
})
|
|
17
|
+
}
|