@rio-cloud/rio-uikit 0.15.1 → 0.16.0-beta-3

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 (215) hide show
  1. package/README.md +46 -3
  2. package/lib/components/actionBarItem/ActionBarItem.js +4 -4
  3. package/lib/components/actionBarItem/ActionBarItemPopoverContent.js +43 -0
  4. package/lib/components/actionBarItem/ActionBarOverlay.js +8 -3
  5. package/lib/components/applicationHeader/AppMenuDropdown.js +9 -13
  6. package/lib/components/applicationLayout/ApplicationLayout.js +2 -0
  7. package/lib/components/applicationLayout/ApplicationLayoutBody.js +5 -3
  8. package/lib/components/assetTree/AssetTree.js +1 -1
  9. package/lib/components/assetTree/Tree.js +2 -2
  10. package/lib/components/assetTree/TreeLeaf.js +9 -9
  11. package/lib/components/bottomSheet/BottomSheet.js +11 -7
  12. package/lib/components/browserWarning/BrowserIcons.js +76 -0
  13. package/lib/components/browserWarning/BrowserWarning.js +4 -4
  14. package/lib/components/browserWarning/BrowserWarningMessageDE.js +20 -22
  15. package/lib/components/browserWarning/BrowserWarningMessageEN.js +20 -22
  16. package/lib/components/carousel/Carousel.js +7 -426
  17. package/lib/components/checkbox/Checkbox.js +4 -4
  18. package/lib/components/datepicker/DatePicker.js +15 -6
  19. package/lib/components/dialog/ConfirmationDialog.js +8 -6
  20. package/lib/components/dialog/SaveDialog.js +3 -1
  21. package/lib/components/dropdown/ButtonDropdown.js +8 -11
  22. package/lib/components/filepicker/FilePicker.js +65 -96
  23. package/lib/components/listMenu/ListMenu.js +40 -23
  24. package/lib/components/map/components/features/old/MapSettings.js +5 -5
  25. package/lib/components/map/components/features/old/settings/MapClusterSettings.js +13 -13
  26. package/lib/components/map/components/features/old/settings/MapLayerSettings.js +15 -15
  27. package/lib/components/map/components/features/old/settings/MapTypeSettings.js +20 -20
  28. package/lib/components/map/components/features/settings/ZoomButtons.js +10 -10
  29. package/lib/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +20 -18
  30. package/lib/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +8 -8
  31. package/lib/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +42 -32
  32. package/lib/components/map/components/features/settings/buttons/MapBoundingBoxButton.js +8 -8
  33. package/lib/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +8 -8
  34. package/lib/components/map/components/features/settings/buttons/MapLockMarkerButton.js +8 -8
  35. package/lib/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.js +8 -8
  36. package/lib/components/map/components/features/settings/items/MapLayerIncidentsItem.js +8 -6
  37. package/lib/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.js +8 -6
  38. package/lib/components/map/components/features/settings/items/MapLayerTrafficItem.js +8 -6
  39. package/lib/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.js +8 -8
  40. package/lib/components/map/icons/MapIcon.js +500 -0
  41. package/lib/components/numberInput/NumberInput.js +6 -6
  42. package/lib/components/onboarding/OnboardingTip.js +9 -9
  43. package/lib/components/states/NotBookedState.js +2 -2
  44. package/lib/components/table/TableSettingsDialogFooter.js +1 -1
  45. package/lib/components/teaser/Teaser.js +1 -1
  46. package/lib/components/teaser/TeaserContainer.js +8 -8
  47. package/lib/components/tooltip/Tooltip.js +5 -5
  48. package/lib/es/DeviceUtils.d.ts +4 -2
  49. package/lib/es/deviceUtils.js +12 -0
  50. package/lib/es/useFullscreen.d.ts +4 -0
  51. package/lib/es/useFullscreen.js +15 -0
  52. package/lib/hooks/useClipboard.js +2 -2
  53. package/lib/hooks/useFullscreen.js +242 -0
  54. package/lib/style/css/_exports/man-uikit.less +7 -5
  55. package/lib/style/css/_exports/rio-buyButton.less +30 -41
  56. package/lib/style/css/_exports/rio-uikit-core.less +106 -127
  57. package/lib/style/css/_exports/rio-uikit-print-utilities.less +6 -11
  58. package/lib/style/css/_exports/rio-uikit-responsive-utilities.less +6 -11
  59. package/lib/style/css/_exports/rio-uikit.less +5 -4
  60. package/lib/style/css/_exports/rio-website.less +41 -15
  61. package/lib/style/css/_exports/vw-uikit.less +10 -8
  62. package/lib/style/css/animations/_imports.less +9 -0
  63. package/lib/style/css/animations/collapse.less +16 -0
  64. package/lib/style/css/animations/fade.less +28 -0
  65. package/lib/style/css/animations/pinging.less +7 -0
  66. package/lib/style/css/animations/rotate.less +52 -0
  67. package/lib/style/css/animations/scale.less +35 -0
  68. package/lib/style/css/animations/slide.less +39 -0
  69. package/lib/style/css/animations/spinning.less +4 -0
  70. package/lib/style/css/animations/transition.less +129 -0
  71. package/lib/style/css/animations/translate.less +28 -0
  72. package/lib/style/css/components/Activity.less +93 -0
  73. package/lib/style/css/components/ApplicationHeader.less +438 -0
  74. package/lib/style/css/components/ApplicationLayout.less +236 -0
  75. package/lib/style/css/components/AssetTree.less +443 -0
  76. package/lib/style/css/components/AutoSuggest.less +22 -0
  77. package/lib/style/css/components/BottomSheet.less +14 -0
  78. package/lib/style/css/components/Carousel.less +212 -0
  79. package/lib/style/css/components/Checkbox.less +224 -0
  80. package/lib/style/css/components/ClearableInput.less +115 -0
  81. package/lib/style/css/components/Counter.less +142 -0
  82. package/lib/style/css/components/DataTabs.less +100 -0
  83. package/lib/style/css/components/DatePicker.less +391 -0
  84. package/lib/style/css/components/Dialog.less +482 -0
  85. package/lib/style/css/components/Dropdown.less +186 -0
  86. package/lib/style/css/components/Expander.less +196 -0
  87. package/lib/style/css/components/FilePicker.less +8 -0
  88. package/lib/style/css/components/ListMenu.less +77 -0
  89. package/lib/style/css/components/MapHere.less +91 -0
  90. package/lib/style/css/components/MapMarker.less +347 -0
  91. package/lib/style/css/components/MapSettings.less +140 -0
  92. package/lib/style/css/components/NoData.less +8 -0
  93. package/lib/style/css/components/Notification.less +234 -0
  94. package/lib/style/css/components/RadioButton.less +173 -0
  95. package/lib/style/css/components/Resizer.less +43 -0
  96. package/lib/style/css/components/Select.less +286 -0
  97. package/lib/style/css/components/Sidebar.less +157 -0
  98. package/lib/style/css/components/Slider.less +278 -0
  99. package/lib/style/css/components/Spinner.less +49 -0
  100. package/lib/style/css/components/StatsWidget.less +111 -0
  101. package/lib/style/css/components/SteppedProgressBar.less +323 -0
  102. package/lib/style/css/components/SupportMarker.less +34 -0
  103. package/lib/style/css/components/Switch.less +145 -0
  104. package/lib/style/css/components/TableSettingsDialog.less +96 -0
  105. package/lib/style/css/components/TableSortArrows.less +54 -0
  106. package/lib/style/css/components/TableToolbar.less +121 -0
  107. package/lib/style/css/components/Tag.less +246 -0
  108. package/lib/style/css/components/TagManager.less +4 -0
  109. package/lib/style/css/components/Teaser.less +12 -0
  110. package/lib/style/css/components/Timeline.less +69 -0
  111. package/lib/style/css/components/Tooltip.less +261 -0
  112. package/lib/style/css/design/alerts.less +55 -0
  113. package/lib/style/css/design/aspect-ratio.less +23 -0
  114. package/lib/style/css/design/badges.less +120 -0
  115. package/lib/style/css/design/blockquote.less +49 -0
  116. package/lib/style/css/design/border.less +192 -0
  117. package/lib/style/css/design/breadcrumbs.less +20 -0
  118. package/lib/style/css/design/button-groups.less +194 -0
  119. package/lib/style/css/design/buttons.less +540 -0
  120. package/lib/style/css/design/callouts.less +27 -0
  121. package/lib/style/css/design/caret.less +28 -0
  122. package/lib/style/css/design/close.less +12 -0
  123. package/lib/style/css/design/code.less +45 -0
  124. package/lib/style/css/design/colors.less +202 -0
  125. package/lib/style/css/design/cols.less +56 -0
  126. package/lib/style/css/design/container.less +29 -0
  127. package/lib/style/css/design/cursors.less +19 -0
  128. package/lib/style/css/design/custom.less +20 -0
  129. package/lib/style/css/design/ellipsis.less +46 -0
  130. package/lib/style/css/design/flexgrid.less +7 -0
  131. package/lib/style/css/design/fonts.less +318 -0
  132. package/lib/style/css/design/form-input-groups.less +245 -0
  133. package/lib/style/css/design/form-inputs.less +655 -0
  134. package/lib/style/css/design/iframe.less +80 -0
  135. package/lib/style/css/design/images.less +47 -0
  136. package/lib/style/css/design/labels.less +66 -0
  137. package/lib/style/css/design/list-group.less +95 -0
  138. package/lib/style/css/design/navs.less +254 -0
  139. package/lib/style/css/design/normalize.less +436 -0
  140. package/lib/style/css/design/opacity.less +26 -0
  141. package/lib/style/css/design/overflow.less +1 -0
  142. package/lib/style/css/design/pagination.less +161 -0
  143. package/lib/style/css/design/panels.less +105 -0
  144. package/lib/style/css/design/popovers.less +117 -0
  145. package/lib/style/css/design/position.less +16 -0
  146. package/lib/style/css/design/progress-bars.less +131 -0
  147. package/lib/style/css/design/responsive/_imports.less +68 -0
  148. package/lib/style/css/design/responsive/backgrounds.less +32 -0
  149. package/lib/style/css/design/responsive/display.less +9 -0
  150. package/lib/style/css/design/responsive/flexgrid.less +75 -0
  151. package/lib/style/css/design/responsive/floating.less +4 -0
  152. package/lib/style/css/design/responsive/gap.less +41 -0
  153. package/lib/style/css/design/responsive/hyphens.less +14 -0
  154. package/lib/style/css/design/responsive/margin.less +127 -0
  155. package/lib/style/css/design/responsive/overflow.less +16 -0
  156. package/lib/style/css/design/responsive/padding.less +71 -0
  157. package/lib/style/css/design/responsive/position.less +102 -0
  158. package/lib/style/css/design/responsive/sizing.less +115 -0
  159. package/lib/style/css/design/responsive/text.less +71 -0
  160. package/lib/style/css/design/responsive/visibility.less +115 -0
  161. package/lib/style/css/design/responsive-embed.less +31 -0
  162. package/lib/style/css/design/responsive-video.less +22 -0
  163. package/lib/style/css/design/rioglyph.less +24 -0
  164. package/lib/style/css/design/rounded.less +44 -0
  165. package/lib/style/css/design/shadows.less +65 -0
  166. package/lib/style/css/design/tables.less +854 -0
  167. package/lib/style/css/design/text.less +201 -0
  168. package/lib/style/css/design/theme.less +200 -0
  169. package/lib/style/css/design/thumbnails.less +29 -0
  170. package/lib/style/css/design/transition.less +33 -0
  171. package/lib/style/css/design/type.less +159 -0
  172. package/lib/style/css/design/utilities.less +75 -0
  173. package/lib/style/css/design/visibilty.less +38 -0
  174. package/lib/style/css/design/wells.less +17 -0
  175. package/lib/style/css/design/z-index.less +21 -0
  176. package/lib/style/css/mapping/breakpoint-map.less +44 -0
  177. package/lib/style/css/mapping/color-map.less +200 -0
  178. package/lib/style/css/mapping/cols-map.less +15 -0
  179. package/lib/style/css/mapping/numbers-map.less +16 -0
  180. package/lib/style/css/mapping/positions-map.less +21 -0
  181. package/lib/style/css/mapping/sizes-map.less +129 -0
  182. package/lib/style/css/mapping/spacings-map.less +28 -0
  183. package/lib/style/css/mixins/_mixins.less +13 -0
  184. package/lib/style/css/mixins/alerts.less +13 -0
  185. package/lib/style/css/mixins/border-radius.less +16 -0
  186. package/lib/style/css/mixins/buttons.less +117 -0
  187. package/lib/style/css/mixins/clearfix.less +9 -0
  188. package/lib/style/css/mixins/cols.less +59 -0
  189. package/lib/style/css/mixins/forms.less +61 -0
  190. package/lib/style/css/mixins/panels.less +27 -0
  191. package/lib/style/css/mixins/placeholder.less +17 -0
  192. package/lib/style/css/mixins/reset.less +27 -0
  193. package/lib/style/css/mixins/sizings.less +21 -0
  194. package/lib/style/css/mixins/spinner.less +30 -0
  195. package/lib/style/css/mixins/table.less +26 -0
  196. package/lib/style/css/mixins/tabs.less +4 -0
  197. package/lib/style/css/mixins/text.less +5 -0
  198. package/lib/style/css/print/print.less +1 -4
  199. package/lib/style/css/rio-theme/alerts.less +23 -61
  200. package/lib/style/css/rio-theme/badges.less +16 -28
  201. package/lib/style/css/rio-theme/blockquote.less +14 -97
  202. package/lib/style/css/rio-theme/mixins/alerts.less +13 -1
  203. package/lib/style/css/shared/colors.json +1 -1
  204. package/lib/style/css/shared/colors.less +11 -8
  205. package/lib/style/css/shared/text.less +6 -5
  206. package/lib/style/css/utils/responsive/grid.less +15 -6
  207. package/lib/style/css/variables.less +179 -0
  208. package/lib/style/fonts/rioglyph/rioglyph.less +6 -11
  209. package/lib/style/fonts/rioglyph/rioglyph.woff +0 -0
  210. package/lib/types.ts +70 -59
  211. package/lib/utils/buttonEffect.js +3 -1
  212. package/lib/utils/deviceUtils.js +40 -3
  213. package/lib/utils/init.js +22 -7
  214. package/lib/version.json +1 -1
  215. package/package.json +47 -31
@@ -0,0 +1,196 @@
1
+ .expander-panel,
2
+ .expander-list {
3
+ .expander-icon {
4
+ transition: all 150ms ease-in-out;
5
+ }
6
+
7
+ .panel-heading,
8
+ .list-group-item {
9
+ &.open {
10
+ .expander-icon {
11
+ transform: rotate(180deg);
12
+ }
13
+ }
14
+ }
15
+ }
16
+
17
+ .expander-panel {
18
+ .panel-heading {
19
+ align-items: center;
20
+ border-bottom: none;
21
+ cursor: pointer;
22
+ display: flex;
23
+ justify-content: space-between;
24
+ position: relative;
25
+
26
+ .expander-icon {
27
+ order: 2;
28
+ }
29
+
30
+ .title {
31
+ flex: 0 1 auto;
32
+ margin: 0 7px 0 0;
33
+ order: 1;
34
+ user-select: none;
35
+ }
36
+
37
+ &.icon-left {
38
+ .expander-icon {
39
+ order: 1;
40
+ }
41
+
42
+ .title {
43
+ order: 2;
44
+ margin: 0 0 0 7px;
45
+ }
46
+ }
47
+ }
48
+
49
+ &.panel {
50
+ box-shadow: none;
51
+ }
52
+
53
+ &.panel-blank {
54
+ background-color: transparent;
55
+
56
+ > .panel-heading {
57
+ .expander-icon {
58
+ color: @gray;
59
+ }
60
+ }
61
+ }
62
+
63
+ &.panel-default {
64
+ > .panel-heading {
65
+ background-color: transparent;
66
+
67
+ .expander-icon {
68
+ color: @gray;
69
+ }
70
+ }
71
+
72
+ .panel-body {
73
+ box-shadow: inset 0px 1px 0px 0px @gray-light;
74
+
75
+ .panel-body {
76
+ box-shadow: none
77
+ }
78
+ }
79
+ }
80
+
81
+ &.panel-separator {
82
+ background-color: transparent;
83
+
84
+ .panel-heading {
85
+ background-color: transparent;
86
+ padding-left: 0;
87
+ padding-right: 0;
88
+
89
+ .expander-icon {
90
+ color: @gray-dark;
91
+ order: 1;
92
+ }
93
+
94
+ .title {
95
+ margin: 0 7px;
96
+ order: 2;
97
+ }
98
+
99
+ .separator {
100
+ order: 3;
101
+ flex: 1 1 auto;
102
+
103
+ hr {
104
+ border-top-width: 2px;
105
+ margin: 0;
106
+ }
107
+ }
108
+
109
+ &:not(.icon-left) {
110
+ .expander-icon {
111
+ order: 3;
112
+ }
113
+
114
+ .separator {
115
+ order: 1;
116
+ }
117
+ }
118
+ }
119
+
120
+ > div > .panel-body {
121
+ padding: 0;
122
+ }
123
+ }
124
+
125
+ &.panel-info,
126
+ &.panel-primary,
127
+ &.panel-warning,
128
+ &.panel-danger,
129
+ &.panel-success {
130
+ .expander-icon {
131
+ color: @color-white;
132
+ }
133
+ }
134
+ }
135
+
136
+ /*
137
+ * Styles for ExpanderList - based on Bootstrap List Groups.
138
+ * Some styles have to be extended in order to support using the Grid within the header
139
+ * and to use an icon to indicate open/close state
140
+ */
141
+ .expander-list {
142
+ .list-group-item {
143
+ display: flex;
144
+ align-items: center;
145
+ justify-content: space-between;
146
+ flex-direction: column;
147
+ padding: 0;
148
+
149
+ &.list-group-item-primary,
150
+ &.list-group-item-success,
151
+ &.list-group-item-danger,
152
+ &.list-group-item-warning,
153
+ &.list-group-item-info {
154
+ color: inherit;
155
+ }
156
+
157
+ .expander-list-header {
158
+ align-items: center;
159
+ display: flex;
160
+ justify-content: space-between;
161
+ padding: 10px 15px;
162
+ width: 100%;
163
+
164
+ .expander-icon {
165
+ color: @gray;
166
+ }
167
+
168
+ &-content {
169
+ width: 100%;
170
+ }
171
+ }
172
+
173
+ &.expandable {
174
+ .expander-list-header {
175
+ cursor: pointer;
176
+ font-weight: @font-normal;
177
+ transition: background-color 100ms ease-in-out;
178
+
179
+ &:hover {
180
+ background-color: @gray-lightest;
181
+ }
182
+ }
183
+ }
184
+
185
+ .expander-list-body-wrapper {
186
+ width: 100%;
187
+ }
188
+
189
+ // Due to animation reasons, the padding for the content need to be set on another wrapper element
190
+ // inside the body element, otherwise the animation stutters.
191
+ .expander-list-body-wrapper .expander-list-body {
192
+ padding: 15px;
193
+ width: 100%;
194
+ }
195
+ }
196
+ }
@@ -0,0 +1,8 @@
1
+ .FilePicker {
2
+ width: 100%;
3
+ height: 100%;
4
+
5
+ .invisible {
6
+ visibility: hidden;
7
+ }
8
+ }
@@ -0,0 +1,77 @@
1
+ .ListMenu {
2
+ width: 100%;
3
+
4
+ .ListMenuGroup {
5
+ padding: 0 15px 20px 15px;
6
+ margin: 0;
7
+ list-style: none;
8
+
9
+ li {
10
+ width: 100%;
11
+ color: @gray-darkest;
12
+
13
+ &.ListMenuHeader {
14
+ display: block;
15
+ font-weight: bold;
16
+ font-size: 16px;
17
+ margin: 0 0 10px 0;
18
+
19
+ > span,
20
+ a {
21
+ margin: 0 0 0 10px;
22
+ padding: 5px 10px 5px 0;
23
+ }
24
+
25
+ a {
26
+ color: @gray-darkest;
27
+
28
+ &:hover,
29
+ &.active {
30
+ text-decoration: none;
31
+ color: @brand-primary;
32
+ }
33
+ }
34
+ }
35
+
36
+ &.subitem > * {
37
+ margin-left: 30px !important;
38
+ }
39
+
40
+ &:not(.ListMenuHeader) {
41
+
42
+ > span,
43
+ a {
44
+ border-left: 2px solid @gray-light;
45
+ display: block;
46
+ font-weight: normal;
47
+ margin: 0 0 0 10px;
48
+ padding: 4px 10px;
49
+ text-decoration: none;
50
+ }
51
+
52
+ &.disabled {
53
+ > span,
54
+ a {
55
+ color: @gray-light;
56
+ cursor: not-allowed;
57
+ }
58
+ }
59
+
60
+ &:not(.disabled) {
61
+ > span,
62
+ a {
63
+ color: @gray-darker;
64
+ cursor: pointer;
65
+
66
+ &:hover,
67
+ &.active {
68
+ border-left-color: @brand-primary;
69
+ border-width: 3px;
70
+ color: @brand-primary;
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,91 @@
1
+ .Map {
2
+ .H_imprint {
3
+ .H_logo {
4
+ margin-left: 0 !important;
5
+ }
6
+
7
+ .H_copyright {
8
+ background: transparent !important;
9
+ left: 0;
10
+ right: auto !important;
11
+ margin-left: 0 !important;
12
+ padding: 2px 0 !important;
13
+ }
14
+ }
15
+
16
+ .H_ui {
17
+ .H_scalebar {
18
+ margin-left: 30px;
19
+ }
20
+
21
+ .H_context_menu {
22
+ &:extend(.shadow-hard);
23
+ border-radius: @border-radius-default;
24
+ font-family: @font-family-base;
25
+ max-width: 225px;
26
+ padding: 0;
27
+
28
+ html.device-ios & {
29
+ font-family: @font-family-ios;
30
+ }
31
+
32
+ html.device-android & {
33
+ font-family: @font-family-android;
34
+ }
35
+
36
+ .H_context_menu_item {
37
+ align-items: center;
38
+ display: flex;
39
+ line-height: 1.25;
40
+ margin-bottom: 0;
41
+ min-height: 24px; // in case there is a spinner as label
42
+ padding: 7px 10px;
43
+ color: @gray-darkest;
44
+
45
+ &.disabled {
46
+ opacity: 0.5;
47
+ cursor: not-allowed !important;
48
+ }
49
+
50
+ &.clickable:not(.disabled) {
51
+ opacity: 0.8;
52
+
53
+ &:hover {
54
+ opacity: 1;
55
+ }
56
+ }
57
+
58
+ &:first-child {
59
+ border-top-left-radius: @border-radius-default;
60
+ border-top-right-radius: @border-radius-default;
61
+ }
62
+
63
+ &:last-child {
64
+ border-bottom-left-radius: @border-radius-default;
65
+ border-bottom-right-radius: @border-radius-default;
66
+ }
67
+ }
68
+
69
+ .H_context_menu_item_separator {
70
+ background: @gray-lighter;
71
+ border: none;
72
+ height: 1px;
73
+ padding-bottom: 0;
74
+ }
75
+ }
76
+ }
77
+
78
+ >div:first-child {
79
+ >div:first-child {
80
+ >div:first-child {
81
+ >div {
82
+ z-index: auto !important;
83
+ }
84
+
85
+ >canvas {
86
+ z-index: -1 !important;
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
@@ -0,0 +1,347 @@
1
+ @clusterSize: 40px;
2
+ @singleSize: 60px;
3
+ @bubbleSize: @singleSize * 0.4;
4
+ @iconSize: @bubbleSize * 1.25;
5
+ @positionSize: ceil(@bubbleSize * 0.3);
6
+ @positionTriangleSize: @iconSize * 0.2;
7
+ @animationDuration: 0.25s ease;
8
+ @shadowStyle: 0 0 5px rgba(0, 0, 0, 0.5);
9
+
10
+ @nameMaxWidth: 200px;
11
+
12
+ .rio-map-name {
13
+ font-size: @bubbleSize * 0.6;
14
+ font-weight: @font-normal;
15
+ line-height: @iconSize;
16
+ padding: 0 @bubbleSize * 0.4;
17
+ // max-width animation
18
+ overflow: hidden;
19
+ text-overflow: ellipsis;
20
+ transition: max-width 1s ease;
21
+ white-space: nowrap;
22
+ }
23
+
24
+ .rio-map-bubble {
25
+ border-radius: @border-radius-round;
26
+ color: @color-white;
27
+ text-align: center;
28
+
29
+ &.exception {
30
+ background-color: @brand-danger;
31
+ }
32
+
33
+ &.warning {
34
+ background-color: @brand-warning;
35
+ }
36
+
37
+ .rio-map-single & {
38
+ font-size: @bubbleSize * 0.5;
39
+ height: @bubbleSize;
40
+ line-height: @bubbleSize;
41
+ min-width: @bubbleSize;
42
+ padding: 0 @bubbleSize * 0.4;
43
+ }
44
+
45
+ .rio-map-cluster & {
46
+ font-size: @bubbleSize * 0.5;
47
+ height: @bubbleSize * 0.8;
48
+ line-height: @bubbleSize * 0.8;
49
+ min-width: @bubbleSize * 0.8;
50
+ padding: 0 @bubbleSize * 0.3;
51
+ }
52
+ }
53
+
54
+ .rio-map-marker {
55
+ box-sizing: border-box;
56
+ display: block;
57
+ pointer-events: none;
58
+ position: absolute;
59
+ user-select: none;
60
+
61
+ * {
62
+ box-sizing: border-box;
63
+ }
64
+
65
+ &.rio-map-marker-bottom-center {
66
+ .rio-map-marker-translate {
67
+ transform: translate(-50%, -100%);
68
+ }
69
+ }
70
+
71
+ &.rio-map-marker-center-center {
72
+ .rio-map-marker-translate {
73
+ transform: translate(-50%, -50%);
74
+ }
75
+ }
76
+
77
+ .rio-map-marker-translate {
78
+ position: absolute;
79
+ }
80
+
81
+ .rio-map-cluster {
82
+ position: relative;
83
+
84
+ .rio-map-cluster-cirlce {
85
+ border-radius: @border-radius-round;
86
+ border-style: solid;
87
+ border-width: 1px;
88
+ cursor: pointer;
89
+ display: block;
90
+ filter: drop-shadow(0 0 1px rgba(0,0,0,.2));
91
+ font-size: @clusterSize * 0.36;
92
+ font-weight: 500;
93
+ height: @clusterSize;
94
+ line-height: @clusterSize;
95
+ padding: 0 @clusterSize * 0.15;
96
+ pointer-events: initial;
97
+ text-align: center;
98
+ transition: background-color @animationDuration;
99
+ min-width: @clusterSize;
100
+
101
+ .rio-map-cluster-content {
102
+ display: flex;
103
+ align-items: center;
104
+ justify-content: center;
105
+
106
+ .rio-map-icon {
107
+ margin-right: @bubbleSize * 0.15;
108
+ }
109
+ }
110
+ }
111
+
112
+ .rio-map-bubble {
113
+ display: block;
114
+ position: absolute;
115
+
116
+ // 1st bubble
117
+ right: 0;
118
+ text-align: left;
119
+ top: 0;
120
+ transform: translate(35%, -50%);
121
+
122
+ // 2nd bubble
123
+ + .rio-map-bubble {
124
+ left: 0;
125
+ right: @clusterSize;
126
+ text-align: right;
127
+ top: auto;
128
+ bottom: 0;
129
+ right: auto;
130
+ transform: translate(-35%, 50%);
131
+ }
132
+ }
133
+ }
134
+
135
+ .rio-map-single {
136
+ align-items: center;
137
+ border-radius: 2px;
138
+ border-style: solid;
139
+ border-width: 1px;
140
+ cursor: pointer;
141
+ display: flex;
142
+ filter: drop-shadow(0 0 1px rgba(0,0,0,.2));
143
+ pointer-events: initial;
144
+ position: relative;
145
+ transition: background-color @animationDuration, filter @animationDuration, margin-bottom @animationDuration;
146
+
147
+ &:not(.fixed) {
148
+ margin-bottom: @iconSize * 0.5;
149
+ }
150
+
151
+ &.fixed {
152
+ margin-bottom: @positionTriangleSize * 0.45;
153
+
154
+ ~ .rio-map-position-arrow {
155
+ bottom: 0;
156
+ }
157
+
158
+ ~ .rio-map-position {
159
+ display: none;
160
+ }
161
+ }
162
+
163
+ .rio-map-icon {
164
+ margin-right: @bubbleSize * 0.4;
165
+
166
+ &.rioglyph {
167
+ top: 0; // unnecessary rioglyph hack
168
+
169
+ &:before {
170
+ display: block;
171
+ font-size: @iconSize * 0.6;
172
+ height: @iconSize;
173
+ line-height: @iconSize;
174
+ text-align: center;
175
+ width: 100%;
176
+ }
177
+ }
178
+ }
179
+
180
+ &.moving {
181
+ border-radius: @border-radius-round;
182
+ }
183
+
184
+ &:before {
185
+ bottom: 0;
186
+ content: '';
187
+ cursor: pointer;
188
+ display: block;
189
+ height: 0;
190
+ pointer-events: initial;
191
+ position: absolute;
192
+ width: 100%;
193
+ transition: height @animationDuration ~',' bottom @animationDuration;
194
+ }
195
+
196
+ .rio-map-icon {
197
+ margin: 0 @bubbleSize * 0.3;
198
+
199
+ + .rio-map-icon {
200
+ margin: 0 @bubbleSize * 0.3 0 -(@bubbleSize) * 0.3;
201
+ }
202
+
203
+ + .rio-map-name {
204
+ padding: 0 @bubbleSize * 0.4 0 0;
205
+ }
206
+ }
207
+
208
+ .rio-map-direction {
209
+ border-radius: @border-radius-round;
210
+ background-color: lighten(@color-map-marker-asset, 5%);
211
+ background-image: url(~'data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2250%22%20height%3D%2250%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill-rule%3D%22nonzero%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22transparent%22%20d%3D%22M0%200h50v50H0z%22%2F%3E%3Cpath%20d%3D%22M25%2012L12%2036s6.5-5%2013-5%2013%205%2013%205L25%2012z%22%20fill%3D%22%23FFF%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');
212
+ background-repeat: no-repeat;
213
+ background-size: @iconSize;
214
+ height: @iconSize;
215
+ transition: background-color @animationDuration;
216
+ width: @iconSize;
217
+ }
218
+
219
+ .rio-map-bubble {
220
+ &:not(:last-child) {
221
+ margin-right: @bubbleSize * 0.1;
222
+ }
223
+ &:last-child {
224
+ margin-right: @bubbleSize * 0.2;
225
+ }
226
+ }
227
+ }
228
+
229
+ .rio-map-position-arrow {
230
+ background-color: @color-white;
231
+ bottom: (@iconSize * 0.5) - (@positionTriangleSize * 0.45);
232
+ color: transparent;
233
+ height: @positionTriangleSize;
234
+ left: calc(~'50% - @{positionTriangleSize} * 0.5');
235
+ position: absolute;
236
+ transform: rotate(-45deg);
237
+ transition: bottom @animationDuration;
238
+ width: @positionTriangleSize;
239
+ z-index: -1;
240
+ }
241
+
242
+ .rio-map-position {
243
+ background-color: @color-white;
244
+ border-radius: @border-radius-round;
245
+ border-style: solid;
246
+ border-width: ceil(@positionSize * 0.3);
247
+ display: block;
248
+ height: @positionSize;
249
+ left: 50%;
250
+ position: absolute;
251
+ transform: translate(-50%, -50%);
252
+ transition: all 0.25s ease;
253
+ width: @positionSize;
254
+ }
255
+
256
+ &:not(.fixed):not(:hover):not(.hover) {
257
+ .rio-map-single {
258
+ .rio-map-name {
259
+ max-width: @nameMaxWidth;
260
+ }
261
+ }
262
+ }
263
+
264
+ &:hover,
265
+ &.hover {
266
+ z-index: @zindex-map-marker-hover !important;
267
+ }
268
+
269
+ &.active {
270
+ z-index: @zindex-map-marker-active !important;
271
+ }
272
+
273
+ &:hover,
274
+ &.hover,
275
+ &.active {
276
+ .rio-map-single:not(.fixed) {
277
+ margin-bottom: @iconSize * 0.65;
278
+
279
+ &:before {
280
+ bottom: -(@positionTriangleSize + (@iconSize * 0.65));
281
+ height: @positionTriangleSize + (@iconSize * 0.65);
282
+ }
283
+
284
+ .rio-map-name {
285
+ max-width: 400px;
286
+ }
287
+
288
+ + .rio-map-position-arrow {
289
+ bottom: (@iconSize * 0.65) - (@positionTriangleSize * 0.45);
290
+ }
291
+ }
292
+ }
293
+
294
+ .rio-map-bubble,
295
+ .rio-map-name {
296
+ &:empty {
297
+ display: none !important;
298
+ }
299
+ }
300
+ }
301
+
302
+ #rio-map-context-menu {
303
+ background-color: @color-map-marker-asset;
304
+ border: 1px solid @color-map-marker-asset;
305
+ box-shadow: @shadowStyle;
306
+ display: none;
307
+ position: absolute;
308
+ z-index: 10;
309
+
310
+ &.rio-map-context-menu--active {
311
+ display: block;
312
+ }
313
+
314
+ > ul {
315
+ list-style: none;
316
+ margin: 0;
317
+ padding: 0;
318
+
319
+ > li {
320
+ color: @color-white;
321
+ display: flex;
322
+ padding: 0 @bubbleSize * 0.4;
323
+
324
+ &.clickable {
325
+ cursor: pointer;
326
+
327
+ &:hover,
328
+ &.hover {
329
+ background-color: darken(@color-map-marker-asset, 5%);
330
+ }
331
+ }
332
+
333
+ &:not(:last-child) {
334
+ border-bottom: 1px solid darken(@color-map-marker-asset, 5%);
335
+ margin-bottom: 0;
336
+ }
337
+
338
+ .rio-map-text {
339
+ padding: @bubbleSize * 0.4 @bubbleSize * 0.2;
340
+ }
341
+
342
+ .rio-map-icon {
343
+ margin-right: 0;
344
+ }
345
+ }
346
+ }
347
+ }