@kando-env/kando-ui 1.0.34 → 1.0.36

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 (127) hide show
  1. package/lib/CovidView/views/components/Body.js +2 -2
  2. package/lib/CovidView/views/components/MapStyle.scss +316 -319
  3. package/lib/CovidView/views/components/SidebarStyle.scss +10 -10
  4. package/lib/CovidView/views/components/SummaryStyle.scss +51 -51
  5. package/lib/CovidView/views/components/TrendGraphNVL/TrendGraphNVL.js +3 -3
  6. package/lib/CovidView/views/components/TrendGraphNVL/styles.scss +15 -16
  7. package/lib/CovidView/views/components/TrendPopupContent/TrendPopupContent.js +1 -1
  8. package/lib/CovidView/views/components/TrendPopupContent/index.js +1 -1
  9. package/lib/CovidView/views/components/TrendPopupContent/styles.scss +24 -24
  10. package/lib/CovidView/views/components/areas/Area.js +23 -23
  11. package/lib/CovidView/views/components/areas/AreaPolygonsWBE.js +3 -3
  12. package/lib/CovidView/views/components/areas/AreasStyle.scss +262 -263
  13. package/lib/CovidView/views/components/areas/Sort.js +5 -5
  14. package/lib/DashboardV2/Header/DoubleTabs/DoubleTabs.js +6 -6
  15. package/lib/DashboardV2/Header/DoubleTabs/styles.js +3 -3
  16. package/lib/DashboardV2/Header/InfoBar/InfoBar.js +3 -2
  17. package/lib/DashboardV2/SamplingParameters/NoResults/NoResults.js +2 -2
  18. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.js +4 -4
  19. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExceptionBar/styles.js +2 -2
  20. package/lib/DashboardV2/SamplingParameters/SamplingContainer/SamplingContainer.js +1 -1
  21. package/lib/DashboardV2/SamplingParameters/SamplingParameters.js +2 -2
  22. package/lib/DashboardV2/SamplingParameters/SamplingParameters.mock.js +1 -1
  23. package/lib/DashboardV2/SamplingParameters/charts/ParametersChart.js +1 -1
  24. package/lib/DashboardV2/SamplingParameters/charts/SamplingChart.js +2 -2
  25. package/lib/DashboardV2/SamplingParameters/styles/samplingParameters.js +1 -1
  26. package/lib/DashboardV2/SamplingParameters/styles/styles.js +6 -6
  27. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/AreaBox/styles.js +2 -2
  28. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/styles.js +1 -1
  29. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/FactoryBox/styles.js +2 -2
  30. package/lib/DashboardV2/UtilityDashboard/MostPolluting/MostPolluting.js +3 -2
  31. package/lib/DashboardV2/UtilityDashboard/MostPolluting/MostPolluting.stories.js +1 -1
  32. package/lib/DashboardV2/UtilityDashboard/MostPolluting/ShowMore/styles.js +2 -2
  33. package/lib/DashboardV2/UtilityDashboard/MostPolluting/styles.js +1 -1
  34. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/MostSevereEvents.js +1 -2
  35. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/MostSevereEvents.stories.js +18 -18
  36. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/NoEvents/NoEvents.stories.js +2 -2
  37. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/SevereEvent/SevereEvent.js +2 -3
  38. package/lib/DashboardV2/UtilityDashboard/TopBar/TopBar.js +2 -2
  39. package/lib/DashboardV2/UtilityDashboard/UtilityDashboard.stories.js +1 -1
  40. package/lib/DashboardV2/styles.scss +111 -111
  41. package/lib/EventsView/views/_colors.scss +1 -1
  42. package/lib/EventsView/views/components/areas/AreaPolygon.js +4 -4
  43. package/lib/EventsView/views/components/edges/Edge.js +9 -9
  44. package/lib/EventsView/views/components/events/EventsStyle.scss +590 -582
  45. package/lib/EventsView/views/components/events/event_info/EventDetails.js +16 -16
  46. package/lib/EventsView/views/components/events/event_info/EventInfoStyle.scss +420 -421
  47. package/lib/EventsView/views/components/events/event_info/charts/EventDetailsLineChart.js +4 -4
  48. package/lib/EventsView/views/components/events/event_info/charts/EventDetailsPieChart.js +4 -4
  49. package/lib/EventsView/views/components/events/event_info/samplings/Samplings.js +4 -4
  50. package/lib/EventsView/views/components/events/event_info/sources/Sources.js +3 -3
  51. package/lib/EventsView/views/components/events/events_list/Filter/FiltersDropDown.js +6 -6
  52. package/lib/EventsView/views/components/events/events_list/Sort.js +13 -13
  53. package/lib/EventsView/views/components/map/FloatingGraph.js +1 -1
  54. package/lib/EventsView/views/components/map/floatingGraphStyle.scss +46 -46
  55. package/lib/EventsView/views/components/map/mapStyle.scss +316 -321
  56. package/lib/EventsView/views/components/points/PointMarkers.js +1 -1
  57. package/lib/macros/getVersion.js +1 -1
  58. package/lib/shared/TimeRangeSelector/constants.js +1 -1
  59. package/lib/shared/TimeRangeSelector/index.js +1 -1
  60. package/lib/shared/components/Breadcrumbs/Breadcrumbs.js +1 -1
  61. package/lib/shared/components/Breadcrumbs/index.js +1 -1
  62. package/lib/shared/components/Breadcrumbs/styles.scss +6 -6
  63. package/lib/shared/components/ContentLoader/ContentLoader.js +1 -1
  64. package/lib/shared/components/ContentLoader/index.js +1 -1
  65. package/lib/shared/components/DamageType/DamageType.js +1 -1
  66. package/lib/shared/components/DamageType/styles.scss +40 -40
  67. package/lib/shared/components/DischargeHeatmap/DischargeHeatmap.js +3 -3
  68. package/lib/shared/components/DischargeHeatmap/styles.scss +12 -13
  69. package/lib/shared/components/ErrorBoundary.js +1 -1
  70. package/lib/shared/components/Events/Events.js +12 -12
  71. package/lib/shared/components/Events/styles.scss +107 -108
  72. package/lib/shared/components/InfoBar/InfoBar.js +1 -1
  73. package/lib/shared/components/InfoBar/InfoBar.stories.js +1 -1
  74. package/lib/shared/components/KandoModal/index.js +1 -1
  75. package/lib/shared/components/KandoModal/styles.scss +14 -14
  76. package/lib/shared/components/KandoNavbar/NavbarStyle.scss +175 -182
  77. package/lib/shared/components/KandoNavbar/index.js +1 -1
  78. package/lib/shared/components/LiveEvents/styles.scss +67 -67
  79. package/lib/shared/components/LoaderByPercent/LoaderByPercent.js +5 -5
  80. package/lib/shared/components/Map/Map.js +3 -3
  81. package/lib/shared/components/Map/styles.scss +4 -5
  82. package/lib/shared/components/NarrowHeader.js +1 -1
  83. package/lib/shared/components/PointInfo/PointInfo.js +4 -4
  84. package/lib/shared/components/PointInfo/index.js +1 -1
  85. package/lib/shared/components/PointInfo/styles.scss +35 -36
  86. package/lib/shared/components/Search/Search.js +1 -1
  87. package/lib/shared/components/Search/index.js +1 -1
  88. package/lib/shared/components/Search/styles.scss +21 -21
  89. package/lib/shared/components/Sector/index.js +1 -1
  90. package/lib/shared/components/Sector/styles.scss +13 -13
  91. package/lib/shared/components/Select/Select.scss +1 -1
  92. package/lib/shared/components/Spinner/Spinner.js +3 -3
  93. package/lib/shared/components/Spinner/Spinner.stories.js +1 -1
  94. package/lib/shared/components/Spinner/index.js +1 -1
  95. package/lib/shared/components/Spinner/styles.js +1 -1
  96. package/lib/shared/components/Toggle/index.js +1 -1
  97. package/lib/shared/components/Toggle/styles.scss +31 -32
  98. package/lib/shared/components/TrendGraph/styles.scss +1 -1
  99. package/lib/shared/components/TrendGraphNVL/TrendGraphNVL.js +3 -3
  100. package/lib/shared/components/TrendGraphNVL/styles.scss +13 -13
  101. package/lib/shared/helpers/time.js +1 -1
  102. package/lib/shared/redux/WBE/actions.js +1 -1
  103. package/lib/shared/redux/WBE/reducer.js +1 -1
  104. package/lib/shared/redux/areas/actionTypes.js +1 -1
  105. package/lib/shared/redux/areas/actions.js +1 -1
  106. package/lib/shared/redux/context/actions.js +1 -1
  107. package/lib/shared/redux/context/reducer.js +1 -1
  108. package/lib/shared/redux/edges/actionTypes.js +1 -1
  109. package/lib/shared/redux/edges/actions.js +1 -1
  110. package/lib/shared/redux/events/actionTypes.js +1 -1
  111. package/lib/shared/redux/events/actions.js +1 -1
  112. package/lib/shared/redux/global/actionTypes.js +1 -1
  113. package/lib/shared/redux/points/actionTypes.js +1 -1
  114. package/lib/shared/redux/points/actions.js +1 -1
  115. package/lib/shared/redux/rootActionTypes.js +1 -1
  116. package/lib/shared/redux/rootActions.js +1 -1
  117. package/lib/shared/utilities/ActionUtility.js +1 -1
  118. package/lib/shared/utilities/KandoDate.js +1 -1
  119. package/lib/shared/utilities/KandoModal.js +2 -2
  120. package/lib/shared/utilities/LocalStorage.js +1 -1
  121. package/lib/shared/utilities/TimeFormat.js +3 -3
  122. package/lib/shared/utilities/custom_hooks/useApi.js +1 -1
  123. package/lib/shared/utilities/custom_hooks/useClickOutside.js +3 -3
  124. package/lib/shared/utilities/custom_hooks/useMap.js +1 -3
  125. package/lib/shared/utilities/custom_hooks/useQueryURL.js +1 -1
  126. package/lib/shared/utilities/custom_hooks/useRemoveExistingLayers.js +1 -1
  127. package/package.json +1 -1
@@ -1,368 +1,365 @@
1
1
  .covid-view-map {
2
+ @media only screen and (max-width: 450px) {
3
+ .map-container {
4
+ .ltrs & {
5
+ left: 0 !important;
6
+ }
7
+ .rtls & {
8
+ right: 0 !important;
9
+ }
10
+ }
2
11
 
3
- @media only screen and (max-width: 450px) {
4
- .map-container {
5
- .ltrs & {
6
- left: 0 !important;
7
- }
8
- .rtls & {
9
- right: 0 !important;
10
- }
11
- }
12
-
13
- .event-timerange {
14
- max-width: 85%!important;
15
- z-index: 999;
16
- bottom: 4.5rem !important;
17
- left: 5rem !important;
18
- padding: 13px!important;
19
- border: 2px solid rgba(0,0,0,.2);
20
- box-shadow: unset !important;
21
-
22
- .ltrs & {
23
- left: 3em !important;
24
- }
25
- .rtls & {
26
- right: 3em !important;
27
- }
28
- }
12
+ .event-timerange {
13
+ max-width: 85% !important;
14
+ z-index: 999;
15
+ bottom: 4.5rem !important;
16
+ left: 5rem !important;
17
+ padding: 13px !important;
18
+ border: 2px solid rgba(0, 0, 0, 0.2);
19
+ box-shadow: unset !important;
20
+
21
+ .ltrs & {
22
+ left: 3em !important;
23
+ }
24
+ .rtls & {
25
+ right: 3em !important;
26
+ }
27
+ }
29
28
 
30
- .timerange--sidenav-collapsed {
31
- transition: 0.3s cubic-bezier(1, 0, 0, 1);
29
+ .timerange--sidenav-collapsed {
30
+ transition: 0.3s cubic-bezier(1, 0, 0, 1);
32
31
 
33
- .ltrs & {
34
- left: 3em !important;
35
- }
36
- .rtls & {
37
- right: 3em !important;
38
- }
39
- }
32
+ .ltrs & {
33
+ left: 3em !important;
34
+ }
35
+ .rtls & {
36
+ right: 3em !important;
37
+ }
38
+ }
40
39
 
41
- .timerange--expanded {
42
- max-width: 100% !important;
43
- }
40
+ .timerange--expanded {
41
+ max-width: 100% !important;
42
+ }
44
43
 
45
- .slider::-webkit-slider-thumb {
46
- width: 23px !important;
47
- height: 23px !important;
48
- }
44
+ .slider::-webkit-slider-thumb {
45
+ width: 23px !important;
46
+ height: 23px !important;
47
+ }
49
48
 
50
- .slider::-moz-range-thumb {
51
- width: 23px !important;
52
- height: 23px !important;
53
- }
49
+ .slider::-moz-range-thumb {
50
+ width: 23px !important;
51
+ height: 23px !important;
52
+ }
54
53
 
54
+ #map {
55
+ .leaflet-control-container {
56
+ .leaflet-left {
57
+ bottom: 2.2em;
58
+ top: auto;
59
+ transition: 0.3s cubic-bezier(1, 0, 0, 1);
60
+
61
+ .ltrs & {
62
+ left: 0em !important;
63
+ }
64
+ .rtls & {
65
+ right: 0.5em !important;
66
+ left: unset !important;
67
+ }
68
+
69
+ &--collapsed {
70
+ .ltrs & {
71
+ left: 0 !important;
72
+ }
73
+ .rtls & {
74
+ left: unset !important;
75
+ right: 1em !important;
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
55
81
 
56
- #map {
57
- .leaflet-control-container {
58
- .leaflet-left {
59
- bottom: 2.2em;
60
- top: auto;
82
+ .flexible-modal {
83
+ width: 100vw !important;
84
+ left: 31.9em !important;
85
+ }
86
+ }
87
+
88
+ .map-container {
89
+ position: fixed;
90
+ top: 3.7em;
91
+ height: 100%;
92
+ overflow: hidden;
61
93
  transition: 0.3s cubic-bezier(1, 0, 0, 1);
62
94
 
63
95
  .ltrs & {
64
- left: 0em !important;
96
+ left: 450px;
97
+ right: 0;
65
98
  }
66
99
  .rtls & {
67
- right: .5em !important;
68
- left: unset !important;
100
+ left: 0;
101
+ right: 450px;
69
102
  }
70
103
 
71
- &--collapsed {
72
- .ltrs & {
73
- left: 0 !important;
74
- }
75
- .rtls & {
76
- left: unset !important;
77
- right: 1em !important;
78
- }
104
+ &--sidenav-collapsed {
105
+ .ltrs & {
106
+ left: 0 !important;
107
+ right: 0;
108
+ }
109
+ .rtls & {
110
+ left: 0;
111
+ right: 0 !important;
112
+ }
113
+ transition: 0.3s cubic-bezier(1, 0, 0, 1);
79
114
  }
80
- }
81
- }
82
- }
83
115
 
84
- .flexible-modal {
85
- width: 100vw !important;
86
- left: 31.9em !important;
87
- }
88
- }
89
-
90
- .map-container {
91
- position: fixed;
92
- top: 3.7em;
93
- height: 100%;
94
- overflow: hidden;
95
- transition: 0.3s cubic-bezier(1, 0, 0, 1);
96
-
97
- .ltrs & {
98
- left: 450px;
99
- right: 0;
100
- }
101
- .rtls & {
102
- left: 0;
103
- right: 450px;
104
- }
105
-
106
- &--sidenav-collapsed {
107
- .ltrs & {
108
- left: 0 !important;
109
- right: 0;
110
- }
111
- .rtls & {
112
- left: 0;
113
- right: 0 !important;
116
+ #map {
117
+ height: calc(100vh - 7em);
118
+
119
+ .leaflet-control-container {
120
+ .leaflet-left {
121
+ bottom: 2.2em;
122
+ top: auto;
123
+ transition: 0.3s cubic-bezier(1, 0, 0, 1);
124
+
125
+ .ltrs & {
126
+ left: 2.3em;
127
+ }
128
+ .rtls & {
129
+ right: 3em;
130
+ left: unset;
131
+ }
132
+
133
+ &--collapsed {
134
+ .ltrs & {
135
+ left: 0 !important;
136
+ }
137
+ .rtls & {
138
+ left: unset !important;
139
+ right: 1em !important;
140
+ }
141
+ }
142
+ }
143
+ }
144
+ }
114
145
  }
115
- transition: 0.3s cubic-bezier(1, 0, 0, 1);
116
- }
117
146
 
118
- #map {
119
- height: calc(100% - 45px);
120
-
121
- .leaflet-control-container {
122
- .leaflet-left {
123
- bottom: 2.2em;
124
- top: auto;
147
+ .event-timerange {
148
+ position: absolute;
149
+ z-index: 999;
150
+ bottom: 4.5rem;
151
+ background: white;
152
+ padding: 8.5px;
153
+ border-radius: 3px;
125
154
  transition: 0.3s cubic-bezier(1, 0, 0, 1);
155
+ overflow: hidden;
156
+ box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.5);
157
+
158
+ &:hover {
159
+ background: rgb(248, 248, 248);
160
+ }
126
161
 
127
162
  .ltrs & {
128
- left: 2.3em;
163
+ left: 33em;
129
164
  }
130
165
  .rtls & {
131
- right: 3em;
132
- left: unset;
166
+ left: auto !important;
167
+ right: 5rem;
133
168
  }
134
169
 
135
- &--collapsed {
136
- .ltrs & {
137
- left: 0 !important;
138
- }
139
- .rtls & {
140
- left: unset !important;
141
- right: 1em !important;
142
- }
170
+ .timerange {
171
+ display: flex;
172
+ align-items: center;
173
+ width: 1.6em;
174
+ overflow: hidden;
175
+ transition: 0.3s cubic-bezier(1, 0, 0, 1);
176
+
177
+ &--expanded {
178
+ width: 30rem;
179
+ }
180
+
181
+ .clock-icon {
182
+ cursor: pointer;
183
+ font-size: 25px;
184
+
185
+ .ltrs & {
186
+ margin-right: 10px;
187
+ }
188
+ .rtls & {
189
+ margin-left: 10px;
190
+ margin-right: 1px;
191
+ }
192
+ }
193
+
194
+ .time {
195
+ min-width: 11em;
196
+ }
143
197
  }
144
- }
145
- }
146
- }
147
- }
148
198
 
149
- .event-timerange {
150
- position: absolute;
151
- z-index: 999;
152
- bottom: 4.5rem;
153
- background: white;
154
- padding: 8.5px;
155
- border-radius: 3px;
156
- transition: 0.3s cubic-bezier(1, 0, 0, 1);
157
- overflow: hidden;
158
- box-shadow: 0px 1px 6px rgba(0,0,0,0.5);
159
-
160
- &:hover {
161
- background: rgb(248, 248, 248);
162
- }
163
-
164
- .ltrs & {
165
- left: 33em;
166
- }
167
- .rtls & {
168
- left: auto !important;
169
- right: 5rem;
170
- }
171
-
172
- .timerange {
173
- display: flex;
174
- align-items: center;
175
- width: 1.6em;
176
- overflow: hidden;
177
- transition: 0.3s cubic-bezier(1,0,0,1);
178
-
179
- &--expanded {
180
- width: 30rem;
181
- }
182
-
183
- .clock-icon {
184
- cursor: pointer;
185
- font-size: 25px;
186
-
187
- .ltrs & {
188
- margin-right: 10px;
189
- }
190
- .rtls & {
191
- margin-left: 10px;
192
- margin-right: 1px;
193
- }
194
- }
195
-
196
- .time {
197
- min-width: 11em;
198
- }
199
- }
200
-
201
- .slider {
202
- -webkit-appearance: none;
203
- appearance: none;
204
- width: 100%;
205
- height: 2px;
206
- background: #9b9b9b;
207
- outline: none;
208
- opacity: 0.7;
209
- -webkit-transition: .2s;
210
- transition: opacity .2s;
211
- margin: 1em 0;
212
- }
213
-
214
- /* Mouse-over effects */
215
- .slider:hover {
216
- opacity: 1;
217
- }
218
-
219
- /* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
220
- .slider::-webkit-slider-thumb {
221
- -webkit-appearance: none;
222
- appearance: none;
223
- width: 15px;
224
- height: 15px;
225
- background: #007bff;
226
- border-radius: 50%;
227
- cursor: pointer;
228
- }
229
-
230
- .slider::-moz-range-thumb {
231
- width: 15px;
232
- height: 15px;
233
- background: #007bff;
234
- border-radius: 50%;
235
- cursor: pointer;
236
- }
237
- }
238
-
239
- .timerange--sidenav-collapsed {
240
- transition: 0.3s cubic-bezier(1, 0, 0, 1);
241
-
242
- .ltrs & {
243
- left: 5em;
244
- }
245
- .rtls & {
246
- right: 5em;
247
- }
248
- }
199
+ .slider {
200
+ -webkit-appearance: none;
201
+ appearance: none;
202
+ width: 100%;
203
+ height: 2px;
204
+ background: #9b9b9b;
205
+ outline: none;
206
+ opacity: 0.7;
207
+ -webkit-transition: 0.2s;
208
+ transition: opacity 0.2s;
209
+ margin: 1em 0;
210
+ }
249
211
 
250
- .show-error {
251
- display: none;
212
+ /* Mouse-over effects */
213
+ .slider:hover {
214
+ opacity: 1;
215
+ }
252
216
 
253
- .general-error {
254
- text-align: center;
255
- margin: 0.2em 0;
256
- font-size: 10em;
217
+ /* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
218
+ .slider::-webkit-slider-thumb {
219
+ -webkit-appearance: none;
220
+ appearance: none;
221
+ width: 15px;
222
+ height: 15px;
223
+ background: #007bff;
224
+ border-radius: 50%;
225
+ cursor: pointer;
226
+ }
257
227
 
258
- svg {
259
- margin: 0.2em 0;
228
+ .slider::-moz-range-thumb {
229
+ width: 15px;
230
+ height: 15px;
231
+ background: #007bff;
232
+ border-radius: 50%;
233
+ cursor: pointer;
234
+ }
260
235
  }
261
- }
262
- }
263
236
 
264
- .event-popup {
265
- .popup-graph-icon {
266
- position: absolute;
267
- top: 20px;
268
-
269
- .ltrs & {
270
- right: 18px;
271
- }
272
- .rtls & {
273
- left: 18px;
274
- }
237
+ .timerange--sidenav-collapsed {
238
+ transition: 0.3s cubic-bezier(1, 0, 0, 1);
275
239
 
276
- img {
277
- width: 15px;
240
+ .ltrs & {
241
+ left: 5em;
242
+ }
243
+ .rtls & {
244
+ right: 5em;
245
+ }
278
246
  }
279
- }
280
247
 
281
- .popup-content {
282
- .ltrs & {
283
- text-align: left;
284
- }
285
- .rtls & {
286
- text-align: right;
287
- }
248
+ .show-error {
249
+ display: none;
288
250
 
289
- p {
290
- margin: 10px 0;
291
- }
251
+ .general-error {
252
+ text-align: center;
253
+ margin: 0.2em 0;
254
+ font-size: 10em;
292
255
 
293
- &__site-name {
294
- width: 9em;
256
+ svg {
257
+ margin: 0.2em 0;
258
+ }
259
+ }
295
260
  }
296
261
 
297
- &__damage-type {
298
- .damage-types {
299
- &__type {
300
- display: flex;
301
- align-items: center;
302
-
303
- img {
304
- width: 15px;
305
- }
262
+ .event-popup {
263
+ .popup-graph-icon {
264
+ position: absolute;
265
+ top: 20px;
266
+
267
+ .ltrs & {
268
+ right: 18px;
269
+ }
270
+ .rtls & {
271
+ left: 18px;
272
+ }
273
+
274
+ img {
275
+ width: 15px;
276
+ }
277
+ }
306
278
 
307
- span {
308
- padding: 0 5px;
309
- }
279
+ .popup-content {
280
+ .ltrs & {
281
+ text-align: left;
282
+ }
283
+ .rtls & {
284
+ text-align: right;
285
+ }
286
+
287
+ p {
288
+ margin: 10px 0;
289
+ }
290
+
291
+ &__site-name {
292
+ width: 9em;
293
+ }
294
+
295
+ &__damage-type {
296
+ .damage-types {
297
+ &__type {
298
+ display: flex;
299
+ align-items: center;
300
+
301
+ img {
302
+ width: 15px;
303
+ }
304
+
305
+ span {
306
+ padding: 0 5px;
307
+ }
308
+ }
309
+ }
310
+ }
311
+
312
+ &__discharge-time {
313
+ display: flex;
314
+ justify-content: space-between;
315
+
316
+ div {
317
+ text-align: center;
318
+ }
319
+ }
320
+
321
+ &__severity {
322
+ &--0 {
323
+ color: #f6b22f;
324
+ }
325
+
326
+ &--1 {
327
+ color: #f67129;
328
+ }
329
+
330
+ &--2 {
331
+ color: #f6004f;
332
+ }
333
+ }
310
334
  }
311
- }
312
335
  }
313
336
 
314
- &__discharge-time {
315
- display: flex;
316
- justify-content: space-between;
317
-
318
- div {
319
- text-align: center;
320
- }
337
+ .leaflet-container a.leaflet-popup-close-button {
338
+ display: none;
321
339
  }
322
340
 
323
- &__severity {
324
- &--0 {
325
- color: #f6b22f;
326
- }
327
-
328
- &--1 {
329
- color: #f67129;
330
- }
331
-
332
- &--2 {
333
- color: #f6004f;
334
- }
341
+ .flexible-modal {
342
+ position: absolute;
343
+ z-index: 1;
344
+ border: 1px solid #ccc;
345
+ background: white;
346
+ }
347
+ .flexible-modal-resizer {
348
+ position: absolute;
349
+ right: 0;
350
+ bottom: 0;
351
+ cursor: se-resize;
352
+ margin: 5px;
353
+ border-bottom: solid 2px #333;
354
+ border-right: solid 2px #333;
355
+ }
356
+ .flexible-modal-drag-area {
357
+ background: rgba(0, 0, 0, 0.1);
358
+ height: 25px;
359
+ position: absolute;
360
+ right: 0;
361
+ top: 0;
362
+ cursor: move;
363
+ width: 100% !important;
335
364
  }
336
- }
337
- }
338
-
339
- .leaflet-container a.leaflet-popup-close-button {
340
- display: none;
341
- }
342
-
343
- .flexible-modal {
344
- position: absolute;
345
- z-index: 1;
346
- border: 1px solid #ccc;
347
- background: white;
348
- }
349
- .flexible-modal-resizer {
350
- position:absolute;
351
- right:0;
352
- bottom:0;
353
- cursor:se-resize;
354
- margin:5px;
355
- border-bottom: solid 2px #333;
356
- border-right: solid 2px #333;
357
- }
358
- .flexible-modal-drag-area{
359
- background: rgba(0,0,0,.1);
360
- height: 25px;
361
- position: absolute;
362
- right: 0;
363
- top: 0;
364
- cursor: move;
365
- width: 100% !important;
366
- }
367
-
368
365
  }
@@ -1,11 +1,11 @@
1
1
  .sidebar {
2
- z-index: 999;
3
- position: fixed;
4
- top: 4em;
5
- width: 450px;
6
- height: 100%;
7
- box-shadow: 0px 10px 10px rgba(0,0,0,0.1);
8
- background: rgba(255, 255, 255, 0.9);
9
- transition: 0.3s cubic-bezier(1, 0, 0, 1);
10
- font-size: 0.9em;
11
- }
2
+ z-index: 999;
3
+ position: absolute;
4
+ top: 4em;
5
+ width: 450px;
6
+ height: calc(100% - 4em);
7
+ box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
8
+ background: rgba(255, 255, 255, 0.9);
9
+ transition: 0.3s cubic-bezier(1, 0, 0, 1);
10
+ font-size: 0.9em;
11
+ }