@rio-cloud/rio-uikit 0.16.1 → 0.16.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ColorScheme.d.ts +4 -0
- package/ColorScheme.js +2 -0
- package/Colors.js +1 -1
- package/components/charts/chartHelper.js +1 -1
- package/components/mapMarker/ClusterMapMarker.js +2 -2
- package/components/mapMarker/SingleMapMarker.js +2 -2
- package/components/sidebars/Sidebar.js +1 -1
- package/hooks/useScrollPosition.js +72 -0
- package/index.js +4 -1
- 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/components/charts/chartHelper.js +1 -1
- package/lib/es/components/mapMarker/ClusterMapMarker.js +2 -2
- package/lib/es/components/mapMarker/SingleMapMarker.js +2 -2
- package/lib/es/components/sidebars/Sidebar.js +1 -1
- package/lib/es/hooks/useScrollPosition.js +80 -0
- package/lib/es/index.js +24 -1
- 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 +65 -64
- 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/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 +145 -120
- package/lib/es/themes/Xmas/styles/rio-xmas.less +59 -29
- package/lib/es/types.ts +4 -0
- package/lib/es/useScrollPosition.d.ts +4 -0
- package/lib/es/useScrollPosition.js +13 -0
- package/lib/es/utils/colorScheme.js +57 -0
- package/lib/es/utils/init.js +2 -0
- package/lib/es/version.json +1 -1
- package/package.json +4 -3
- 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 +65 -64
- 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/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/styles/vw-uikit.less +21 -30
- package/themes/Website/styles/rio-website.less +145 -120
- package/themes/Xmas/styles/rio-xmas.less +59 -29
- package/types.ts +4 -0
- package/useScrollPosition.d.ts +4 -0
- package/useScrollPosition.js +2 -0
- package/utils/colorScheme.js +48 -0
- package/utils/init.js +2 -0
- package/version.json +1 -1
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// black
|
|
6
6
|
// white
|
|
7
7
|
@colors-text-map: {
|
|
8
|
-
black:
|
|
9
|
-
white:
|
|
8
|
+
black: var(--color-black);
|
|
9
|
+
white: var(--color-white);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
// Color Map - Gray
|
|
@@ -18,27 +18,27 @@
|
|
|
18
18
|
// lighter
|
|
19
19
|
// lightest
|
|
20
20
|
@colors-gray-map: {
|
|
21
|
-
darkest:
|
|
22
|
-
darker:
|
|
23
|
-
dark:
|
|
24
|
-
gray:
|
|
25
|
-
light:
|
|
26
|
-
lighter:
|
|
27
|
-
lightest:
|
|
21
|
+
darkest: var(--gray-darkest);
|
|
22
|
+
darker: var(--gray-darker);
|
|
23
|
+
dark: var(--gray-dark);
|
|
24
|
+
gray: var(--gray);
|
|
25
|
+
light: var(--gray-light);
|
|
26
|
+
lighter: var(--gray-lighter);
|
|
27
|
+
lightest: var(--gray-lightest);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
// Color Map - Brand
|
|
31
31
|
// primary
|
|
32
32
|
// secondary
|
|
33
33
|
@colors-brand-map: {
|
|
34
|
-
primary:
|
|
35
|
-
secondary:
|
|
34
|
+
primary: var(--brand-primary);
|
|
35
|
+
secondary: var(--brand-secondary);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
// Color Map - Brand Decent
|
|
39
39
|
@colors-brand-decent-map: {
|
|
40
|
-
primary:
|
|
41
|
-
secondary:
|
|
40
|
+
primary: var(--brand-primary-decent);
|
|
41
|
+
secondary: var(--brand-secondary-decent);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// Color Map - Status
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
|
|
56
56
|
// Color Map - Status Decent
|
|
57
57
|
@colors-status-decent-map: {
|
|
58
|
-
info:
|
|
59
|
-
success:
|
|
60
|
-
warning:
|
|
61
|
-
danger:
|
|
58
|
+
info: var(--brand-info-decent);
|
|
59
|
+
success: var(--brand-success-decent);
|
|
60
|
+
warning: var(--brand-warning-decent);
|
|
61
|
+
danger: var(--brand-danger-decent);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
// Color Map - Brand & Status
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
// warning
|
|
71
71
|
// danger
|
|
72
72
|
@colors-brand-and-status-map: {
|
|
73
|
-
primary:
|
|
74
|
-
secondary:
|
|
73
|
+
primary: var(--brand-primary);
|
|
74
|
+
secondary: var(--brand-secondary);
|
|
75
75
|
info: @brand-info;
|
|
76
76
|
success: @brand-success;
|
|
77
77
|
warning: @brand-warning;
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
// Color Map - Brand & Status Decent
|
|
82
82
|
// SASS has a map-merge function, LESS unfortunately not...
|
|
83
83
|
@colors-brand-and-status-decent-map: {
|
|
84
|
-
primary:
|
|
85
|
-
secondary:
|
|
86
|
-
info:
|
|
87
|
-
success:
|
|
88
|
-
warning:
|
|
89
|
-
danger:
|
|
84
|
+
primary: var(--brand-primary-decent);
|
|
85
|
+
secondary: var(--brand-secondary-decent);
|
|
86
|
+
info: var(--brand-info-decent);
|
|
87
|
+
success: var(--brand-success-decent);
|
|
88
|
+
warning: var(--brand-warning-decent);
|
|
89
|
+
danger: var(--brand-danger-decent);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
// Color Map - Forms
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
// status-resting
|
|
104
104
|
// status-working
|
|
105
105
|
@colors-driving-status-map: {
|
|
106
|
-
status-available:
|
|
107
|
-
status-driving:
|
|
108
|
-
status-resting:
|
|
109
|
-
status-working:
|
|
106
|
+
status-available: var(--color-status-available);
|
|
107
|
+
status-driving: var(--color-status-driving);
|
|
108
|
+
status-resting: var(--color-status-resting);
|
|
109
|
+
status-working: var(--color-status-working);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
// Color Map - Map Marker
|
|
@@ -115,10 +115,11 @@
|
|
|
115
115
|
// map-marker-geofence
|
|
116
116
|
// map-marker-route
|
|
117
117
|
@colors-map-marker-map: {
|
|
118
|
-
map-marker-
|
|
119
|
-
map-marker-
|
|
120
|
-
map-marker-
|
|
121
|
-
map-marker-
|
|
118
|
+
map-marker-active: var(--color-map-marker-active);
|
|
119
|
+
map-marker-asset: var(--color-map-marker-asset);
|
|
120
|
+
map-marker-poi: var(--color-map-marker-poi);
|
|
121
|
+
map-marker-geofence: var(--color-map-marker-geofence);
|
|
122
|
+
map-marker-route: var(--color-map-marker-route);
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
// Color Map - Rating
|
|
@@ -128,11 +129,11 @@
|
|
|
128
129
|
// rating-4
|
|
129
130
|
// rating-5
|
|
130
131
|
@colors-rating-map: {
|
|
131
|
-
rating-1:
|
|
132
|
-
rating-2:
|
|
133
|
-
rating-3:
|
|
134
|
-
rating-4:
|
|
135
|
-
rating-5:
|
|
132
|
+
rating-1: var(--color-rating-1);
|
|
133
|
+
rating-2: var(--color-rating-2);
|
|
134
|
+
rating-3: var(--color-rating-3);
|
|
135
|
+
rating-4: var(--color-rating-4);
|
|
136
|
+
rating-5: var(--color-rating-5);
|
|
136
137
|
}
|
|
137
138
|
|
|
138
139
|
// Color Map - Highlight
|
|
@@ -145,14 +146,14 @@
|
|
|
145
146
|
// highlight-lightest
|
|
146
147
|
// highlight-decent
|
|
147
148
|
@colors-highlight-map: {
|
|
148
|
-
highlight-darkest:
|
|
149
|
-
highlight-darker:
|
|
150
|
-
highlight-dark:
|
|
151
|
-
highlight:
|
|
152
|
-
highlight-light:
|
|
153
|
-
highlight-lighter:
|
|
154
|
-
highlight-lightest:
|
|
155
|
-
highlight-decent:
|
|
149
|
+
highlight-darkest: var(--color-highlight-darkest);
|
|
150
|
+
highlight-darker: var(--color-highlight-darker);
|
|
151
|
+
highlight-dark: var(--color-highlight-dark);
|
|
152
|
+
highlight: var(--color-highlight);
|
|
153
|
+
highlight-light: var(--color-highlight-light);
|
|
154
|
+
highlight-lighter: var(--color-highlight-lighter);
|
|
155
|
+
highlight-lightest: var(--color-highlight-lightest);
|
|
156
|
+
highlight-decent: var(--color-highlight-decent);
|
|
156
157
|
}
|
|
157
158
|
|
|
158
159
|
// Color Map - RIO Coldplay
|
|
@@ -166,15 +167,15 @@
|
|
|
166
167
|
// coldplay-primrose
|
|
167
168
|
// coldplay-khaki
|
|
168
169
|
@colors-coldplay-map: {
|
|
169
|
-
coldplay-wine:
|
|
170
|
-
coldplay-aubergine:
|
|
171
|
-
coldplay-kashmir:
|
|
172
|
-
coldplay-fountain:
|
|
173
|
-
coldplay-turquoise:
|
|
174
|
-
coldplay-bermuda:
|
|
175
|
-
coldplay-moos:
|
|
176
|
-
coldplay-primrose:
|
|
177
|
-
coldplay-khaki:
|
|
170
|
+
coldplay-wine: var(--color-coldplay-wine);
|
|
171
|
+
coldplay-aubergine: var(--color-coldplay-aubergine);
|
|
172
|
+
coldplay-kashmir: var(--color-coldplay-kashmir);
|
|
173
|
+
coldplay-fountain: var(--color-coldplay-fountain);
|
|
174
|
+
coldplay-turquoise: var(--color-coldplay-turquoise);
|
|
175
|
+
coldplay-bermuda: var(--color-coldplay-bermuda);
|
|
176
|
+
coldplay-moos: var(--color-coldplay-moos);
|
|
177
|
+
coldplay-primrose: var(--color-coldplay-primrose);
|
|
178
|
+
coldplay-khaki: var(--color-coldplay-khaki);
|
|
178
179
|
}
|
|
179
180
|
|
|
180
181
|
// Color Map - RIO Warmup
|
|
@@ -188,13 +189,13 @@
|
|
|
188
189
|
// warmup-cherokee
|
|
189
190
|
// warmup-corn
|
|
190
191
|
@colors-warmup-map: {
|
|
191
|
-
warmup-crimson:
|
|
192
|
-
warmup-victoria:
|
|
193
|
-
warmup-cadillac:
|
|
194
|
-
warmup-raspberry:
|
|
195
|
-
warmup-cerise:
|
|
196
|
-
warmup-charm:
|
|
197
|
-
warmup-salmon:
|
|
198
|
-
warmup-cherokee:
|
|
199
|
-
warmup-corn:
|
|
192
|
+
warmup-crimson: var(--color-warmup-crimson);
|
|
193
|
+
warmup-victoria: var(--color-warmup-victoria);
|
|
194
|
+
warmup-cadillac: var(--color-warmup-cadillac);
|
|
195
|
+
warmup-raspberry: var(--color-warmup-raspberry);
|
|
196
|
+
warmup-cerise: var(--color-warmup-cerise);
|
|
197
|
+
warmup-charm: var(--color-warmup-charm);
|
|
198
|
+
warmup-salmon: var(--color-warmup-salmon);
|
|
199
|
+
warmup-cherokee: var(--color-warmup-cherokee);
|
|
200
|
+
warmup-corn: var(--color-warmup-corn);
|
|
200
201
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@import (less) 'border-radius.less';
|
|
2
|
+
@import (less) 'buttons.less';
|
|
3
|
+
@import (less) 'clearfix.less';
|
|
4
|
+
@import (less) 'cols.less';
|
|
5
|
+
@import (less) 'forms.less';
|
|
6
|
+
@import (less) 'hsl.less';
|
|
7
|
+
@import (less) 'panels.less';
|
|
8
|
+
@import (less) 'placeholder.less';
|
|
9
|
+
@import (less) 'reset.less';
|
|
10
|
+
@import (less) 'sizings.less';
|
|
11
|
+
@import (less) 'spinner.less';
|
|
12
|
+
@import (less) 'tabs.less';
|
|
13
|
+
@import (less) 'table.less';
|
|
14
|
+
@import (less) 'text.less';
|
|
@@ -1,75 +1,43 @@
|
|
|
1
|
-
.button-
|
|
2
|
-
@important: ~'';
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
@
|
|
9
|
-
@active-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@
|
|
13
|
-
@active-
|
|
1
|
+
.button-style (
|
|
2
|
+
@important: ~''; // mandatory
|
|
3
|
+
@color; // mandatory
|
|
4
|
+
@hsl-background-object; // mandatory
|
|
5
|
+
@hsl-border-object: @hsl-background-object;
|
|
6
|
+
|
|
7
|
+
// interaction background
|
|
8
|
+
@hover-background: .hslb(@hsl-background-object, '-', @btn-hover-brightness)[@result];
|
|
9
|
+
@active-background: .hslb(@hsl-background-object, '-', @btn-active-brightness)[@result];
|
|
10
|
+
|
|
11
|
+
// interaction border
|
|
12
|
+
@hover-border: .hslb(@hsl-background-object, '-', @btn-hover-border-brightness)[@result];
|
|
13
|
+
@active-border: .hslb(@hsl-background-object, '-', @btn-active-border-brightness)[@result];
|
|
14
|
+
|
|
15
|
+
// interaction color
|
|
14
16
|
@hover-color: @color;
|
|
15
17
|
@active-color: @color;
|
|
16
|
-
@focus-color: @color;
|
|
17
|
-
@active-hover-color: @color;
|
|
18
18
|
)
|
|
19
19
|
{
|
|
20
|
-
color: @color @important;
|
|
21
|
-
background-color: @background @important;
|
|
22
|
-
border: 1px solid @border @important;
|
|
23
20
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
color: @focus-color @important;
|
|
28
|
-
}
|
|
21
|
+
color: @color @important;
|
|
22
|
+
background-color: hsl(@hsl-background-object) @important;
|
|
23
|
+
border: 1px solid hsl(@hsl-border-object) @important;
|
|
29
24
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
color: @hover-color @important;
|
|
35
|
-
}
|
|
25
|
+
&:hover, &:focus {
|
|
26
|
+
background-color: @hover-background @important;
|
|
27
|
+
border-color: @hover-border @important;
|
|
28
|
+
color: @hover-color @important;
|
|
36
29
|
}
|
|
37
30
|
|
|
38
31
|
&:active,
|
|
39
32
|
&.active,
|
|
40
|
-
.open > .dropdown-toggle& {
|
|
33
|
+
.open > .dropdown-toggle & {
|
|
41
34
|
background-color: @active-background @important;
|
|
42
35
|
border-color: @active-border @important;
|
|
43
36
|
color: @active-color @important;
|
|
44
|
-
|
|
45
|
-
@media (hover: hover) {
|
|
46
|
-
&:hover,
|
|
47
|
-
&:focus {
|
|
48
|
-
background-color: @active-hover-background @important;
|
|
49
|
-
border-color: @active-hover-border @important;
|
|
50
|
-
color: @active-hover-color @important;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&:active,
|
|
56
|
-
&.active,
|
|
57
|
-
.open > .dropdown-toggle& {
|
|
58
|
-
background-image: none @important;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&.disabled,
|
|
62
|
-
&[disabled],
|
|
63
|
-
fieldset[disabled] & {
|
|
64
|
-
&:hover,
|
|
65
|
-
&:focus {
|
|
66
|
-
background-color: @background @important;
|
|
67
|
-
border-color: @border @important;
|
|
68
|
-
}
|
|
69
37
|
}
|
|
70
38
|
|
|
71
39
|
.badge {
|
|
72
|
-
color: @background @important;
|
|
40
|
+
color: hsl(@hsl-background-object) @important;
|
|
73
41
|
background-color: @color @important;
|
|
74
42
|
}
|
|
75
43
|
}
|
package/styles/mixins/forms.less
CHANGED
|
@@ -1,61 +1,25 @@
|
|
|
1
|
-
.form-control-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.checkbox,
|
|
7
|
-
.radio-inline,
|
|
8
|
-
.checkbox-inline,
|
|
9
|
-
&.radio label,
|
|
10
|
-
&.checkbox label,
|
|
11
|
-
&.radio-inline label,
|
|
12
|
-
&.checkbox-inline label {
|
|
13
|
-
color: @text-color;
|
|
14
|
-
}
|
|
15
|
-
// Set the border and box shadow on specific inputs to match
|
|
16
|
-
.form-control {
|
|
17
|
-
border-color: @border-color;
|
|
18
|
-
box-shadow:inset 0 1px 1px rgba(0,0,0,.075); // Redeclare so transitions work
|
|
19
|
-
&:focus {
|
|
20
|
-
border-color: darken(@border-color, 10%);
|
|
21
|
-
box-shadow: inset 0 1px 1px rgba(0,0,0,.075)~"," 0 0 6px lighten(@border-color, 20%);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
// Set validation states also for addons
|
|
25
|
-
.input-group-addon:not(.input-group-addon-label) {
|
|
26
|
-
color: @text-color;
|
|
27
|
-
border-color: @border-color;
|
|
28
|
-
background-color: @background-color;
|
|
29
|
-
}
|
|
30
|
-
// Optional feedback icon
|
|
31
|
-
.form-control-feedback {
|
|
32
|
-
color: @text-color;
|
|
33
|
-
}
|
|
1
|
+
.form-control-focus(@color: @input-border-focus) {
|
|
2
|
+
&:focus {
|
|
3
|
+
border-color: @color;
|
|
4
|
+
outline: 0;
|
|
5
|
+
box-shadow: none;
|
|
34
6
|
}
|
|
7
|
+
}
|
|
35
8
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
}
|
|
9
|
+
.input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
|
|
10
|
+
height: @input-height;
|
|
11
|
+
padding: @padding-vertical @padding-horizontal;
|
|
12
|
+
font-size: @font-size;
|
|
13
|
+
line-height: @line-height;
|
|
14
|
+
border-radius: @border-radius;
|
|
44
15
|
|
|
45
|
-
|
|
16
|
+
select& {
|
|
46
17
|
height: @input-height;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
line-height: @line-height;
|
|
50
|
-
border-radius: @border-radius;
|
|
51
|
-
|
|
52
|
-
select& {
|
|
53
|
-
height: @input-height;
|
|
54
|
-
line-height: @input-height;
|
|
55
|
-
}
|
|
18
|
+
line-height: @input-height;
|
|
19
|
+
}
|
|
56
20
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
21
|
+
textarea&,
|
|
22
|
+
select[multiple]& {
|
|
23
|
+
height: auto;
|
|
61
24
|
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.hex-to-LESS-hsl(@hex) {
|
|
2
|
+
@hue: hue(@hex);
|
|
3
|
+
@saturation: saturation(@hex);
|
|
4
|
+
@lightness: lightness(@hex);
|
|
5
|
+
|
|
6
|
+
@result: @hue, @saturation, @lightness;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.hsla(@hsl; @alpha) {
|
|
10
|
+
@result: hsla(@hsl, @alpha);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.hslb(@hsl; @operator; @brightness) {
|
|
14
|
+
@hue: extract(@hsl, 1);
|
|
15
|
+
@saturation: extract(@hsl, 2);
|
|
16
|
+
@lightness: extract(@hsl, 3);
|
|
17
|
+
|
|
18
|
+
@result: hsl(@hue, @saturation, ~"calc(@{lightness} @{operator} @{brightness})");
|
|
19
|
+
}
|
package/styles/print/print.less
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
html,
|
|
18
18
|
html:not(.window-iframe) {
|
|
19
|
-
background-color:
|
|
19
|
+
background-color: var(--color-white);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.scroll-to-top {
|
|
@@ -142,8 +142,8 @@
|
|
|
142
142
|
tr {
|
|
143
143
|
th,
|
|
144
144
|
td {
|
|
145
|
-
background-color:
|
|
146
|
-
border: 1px solid
|
|
145
|
+
background-color: var(--color-white) !important;
|
|
146
|
+
border: 1px solid var(--gray-lighter) !important;
|
|
147
147
|
padding: 10px !important;
|
|
148
148
|
white-space: pre-wrap !important;
|
|
149
149
|
word-break: break-word !important;
|
|
@@ -185,10 +185,10 @@
|
|
|
185
185
|
border-top-width: 5px !important;
|
|
186
186
|
border-top-style: solid !important;
|
|
187
187
|
|
|
188
|
-
&.progress-bar-status-resting { border-top-color:
|
|
189
|
-
&.progress-bar-status-driving { border-top-color:
|
|
190
|
-
&.progress-bar-status-working { border-top-color:
|
|
191
|
-
&.progress-bar-status-available { border-top-color:
|
|
188
|
+
&.progress-bar-status-resting { border-top-color: var(--color-status-resting) !important }
|
|
189
|
+
&.progress-bar-status-driving { border-top-color: var(--color-status-driving) !important }
|
|
190
|
+
&.progress-bar-status-working { border-top-color: var(--color-status-working) !important }
|
|
191
|
+
&.progress-bar-status-available { border-top-color: var(--color-status-available) !important }
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
}
|