@kando-env/kando-ui 1.0.34-alpha.0 → 1.0.34-alpha.1

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 (125) hide show
  1. package/lib/CovidView/views/components/MapStyle.scss +316 -319
  2. package/lib/CovidView/views/components/SidebarStyle.scss +10 -10
  3. package/lib/CovidView/views/components/SummaryStyle.scss +51 -51
  4. package/lib/CovidView/views/components/TrendGraphNVL/TrendGraphNVL.js +3 -3
  5. package/lib/CovidView/views/components/TrendGraphNVL/styles.scss +15 -16
  6. package/lib/CovidView/views/components/TrendPopupContent/TrendPopupContent.js +1 -1
  7. package/lib/CovidView/views/components/TrendPopupContent/index.js +1 -1
  8. package/lib/CovidView/views/components/TrendPopupContent/styles.scss +24 -24
  9. package/lib/CovidView/views/components/areas/Area.js +23 -23
  10. package/lib/CovidView/views/components/areas/AreaPolygonsWBE.js +3 -3
  11. package/lib/CovidView/views/components/areas/AreasStyle.scss +263 -263
  12. package/lib/CovidView/views/components/areas/Sort.js +5 -5
  13. package/lib/DashboardV2/Header/DoubleTabs/DoubleTabs.js +4 -4
  14. package/lib/DashboardV2/Header/DoubleTabs/styles.js +1 -1
  15. package/lib/DashboardV2/SamplingParameters/NoResults/NoResults.js +2 -2
  16. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.js +4 -4
  17. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExceptionBar/styles.js +2 -2
  18. package/lib/DashboardV2/SamplingParameters/SamplingContainer/SamplingContainer.js +1 -1
  19. package/lib/DashboardV2/SamplingParameters/SamplingParameters.js +2 -2
  20. package/lib/DashboardV2/SamplingParameters/SamplingParameters.mock.js +1 -1
  21. package/lib/DashboardV2/SamplingParameters/charts/ParametersChart.js +1 -1
  22. package/lib/DashboardV2/SamplingParameters/charts/SamplingChart.js +2 -2
  23. package/lib/DashboardV2/SamplingParameters/styles/samplingParameters.js +1 -1
  24. package/lib/DashboardV2/SamplingParameters/styles/styles.js +6 -6
  25. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/AreaBox/styles.js +2 -2
  26. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/styles.js +1 -1
  27. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/FactoryBox/styles.js +2 -2
  28. package/lib/DashboardV2/UtilityDashboard/MostPolluting/MostPolluting.js +3 -2
  29. package/lib/DashboardV2/UtilityDashboard/MostPolluting/MostPolluting.stories.js +1 -1
  30. package/lib/DashboardV2/UtilityDashboard/MostPolluting/ShowMore/styles.js +2 -2
  31. package/lib/DashboardV2/UtilityDashboard/MostPolluting/styles.js +1 -1
  32. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/MostSevereEvents.js +12 -4
  33. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/MostSevereEvents.stories.js +18 -18
  34. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/NoEvents/NoEvents.stories.js +2 -2
  35. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/SevereEvent/SevereEvent.js +2 -3
  36. package/lib/DashboardV2/UtilityDashboard/TopBar/TopBar.js +2 -2
  37. package/lib/DashboardV2/UtilityDashboard/UtilityDashboard.stories.js +1 -1
  38. package/lib/DashboardV2/styles.scss +111 -111
  39. package/lib/EventsView/views/_colors.scss +1 -1
  40. package/lib/EventsView/views/components/areas/AreaPolygon.js +4 -4
  41. package/lib/EventsView/views/components/edges/Edge.js +9 -9
  42. package/lib/EventsView/views/components/events/EventsStyle.scss +590 -582
  43. package/lib/EventsView/views/components/events/event_info/EventDetails.js +16 -16
  44. package/lib/EventsView/views/components/events/event_info/EventInfoStyle.scss +420 -421
  45. package/lib/EventsView/views/components/events/event_info/charts/EventDetailsLineChart.js +4 -4
  46. package/lib/EventsView/views/components/events/event_info/charts/EventDetailsPieChart.js +4 -4
  47. package/lib/EventsView/views/components/events/event_info/samplings/Samplings.js +4 -4
  48. package/lib/EventsView/views/components/events/event_info/sources/Sources.js +3 -3
  49. package/lib/EventsView/views/components/events/events_list/Filter/FiltersDropDown.js +6 -6
  50. package/lib/EventsView/views/components/events/events_list/Sort.js +13 -13
  51. package/lib/EventsView/views/components/map/FloatingGraph.js +1 -1
  52. package/lib/EventsView/views/components/map/floatingGraphStyle.scss +46 -46
  53. package/lib/EventsView/views/components/map/mapStyle.scss +316 -321
  54. package/lib/EventsView/views/components/points/PointMarkers.js +1 -1
  55. package/lib/macros/getVersion.js +2 -2
  56. package/lib/shared/TimeRangeSelector/constants.js +1 -1
  57. package/lib/shared/TimeRangeSelector/index.js +1 -1
  58. package/lib/shared/components/Breadcrumbs/Breadcrumbs.js +1 -1
  59. package/lib/shared/components/Breadcrumbs/index.js +1 -1
  60. package/lib/shared/components/Breadcrumbs/styles.scss +6 -6
  61. package/lib/shared/components/ContentLoader/ContentLoader.js +1 -1
  62. package/lib/shared/components/ContentLoader/index.js +1 -1
  63. package/lib/shared/components/DamageType/DamageType.js +1 -1
  64. package/lib/shared/components/DamageType/styles.scss +40 -40
  65. package/lib/shared/components/DischargeHeatmap/DischargeHeatmap.js +3 -3
  66. package/lib/shared/components/DischargeHeatmap/styles.scss +12 -13
  67. package/lib/shared/components/ErrorBoundary.js +1 -1
  68. package/lib/shared/components/Events/Events.js +12 -12
  69. package/lib/shared/components/Events/styles.scss +107 -108
  70. package/lib/shared/components/InfoBar/InfoBar.js +1 -1
  71. package/lib/shared/components/InfoBar/InfoBar.stories.js +1 -1
  72. package/lib/shared/components/KandoModal/index.js +1 -1
  73. package/lib/shared/components/KandoModal/styles.scss +14 -14
  74. package/lib/shared/components/KandoNavbar/NavbarStyle.scss +175 -182
  75. package/lib/shared/components/KandoNavbar/index.js +1 -1
  76. package/lib/shared/components/LiveEvents/styles.scss +67 -67
  77. package/lib/shared/components/LoaderByPercent/LoaderByPercent.js +5 -5
  78. package/lib/shared/components/Map/Map.js +3 -3
  79. package/lib/shared/components/Map/styles.scss +4 -5
  80. package/lib/shared/components/NarrowHeader.js +1 -1
  81. package/lib/shared/components/PointInfo/PointInfo.js +4 -4
  82. package/lib/shared/components/PointInfo/index.js +1 -1
  83. package/lib/shared/components/PointInfo/styles.scss +35 -36
  84. package/lib/shared/components/Search/Search.js +1 -1
  85. package/lib/shared/components/Search/index.js +1 -1
  86. package/lib/shared/components/Search/styles.scss +21 -21
  87. package/lib/shared/components/Sector/index.js +1 -1
  88. package/lib/shared/components/Sector/styles.scss +13 -13
  89. package/lib/shared/components/Select/Select.scss +1 -1
  90. package/lib/shared/components/Spinner/Spinner.js +3 -3
  91. package/lib/shared/components/Spinner/Spinner.stories.js +1 -1
  92. package/lib/shared/components/Spinner/index.js +1 -1
  93. package/lib/shared/components/Spinner/styles.js +1 -1
  94. package/lib/shared/components/Toggle/index.js +1 -1
  95. package/lib/shared/components/Toggle/styles.scss +31 -32
  96. package/lib/shared/components/TrendGraph/styles.scss +1 -1
  97. package/lib/shared/components/TrendGraphNVL/TrendGraphNVL.js +3 -3
  98. package/lib/shared/components/TrendGraphNVL/styles.scss +13 -13
  99. package/lib/shared/helpers/time.js +1 -1
  100. package/lib/shared/redux/WBE/actions.js +1 -1
  101. package/lib/shared/redux/WBE/reducer.js +1 -1
  102. package/lib/shared/redux/areas/actionTypes.js +1 -1
  103. package/lib/shared/redux/areas/actions.js +1 -1
  104. package/lib/shared/redux/context/actions.js +1 -1
  105. package/lib/shared/redux/context/reducer.js +1 -1
  106. package/lib/shared/redux/edges/actionTypes.js +1 -1
  107. package/lib/shared/redux/edges/actions.js +1 -1
  108. package/lib/shared/redux/events/actionTypes.js +1 -1
  109. package/lib/shared/redux/events/actions.js +1 -1
  110. package/lib/shared/redux/global/actionTypes.js +1 -1
  111. package/lib/shared/redux/points/actionTypes.js +1 -1
  112. package/lib/shared/redux/points/actions.js +1 -1
  113. package/lib/shared/redux/rootActionTypes.js +1 -1
  114. package/lib/shared/redux/rootActions.js +1 -1
  115. package/lib/shared/utilities/ActionUtility.js +1 -1
  116. package/lib/shared/utilities/KandoDate.js +1 -1
  117. package/lib/shared/utilities/KandoModal.js +2 -2
  118. package/lib/shared/utilities/LocalStorage.js +1 -1
  119. package/lib/shared/utilities/TimeFormat.js +3 -3
  120. package/lib/shared/utilities/custom_hooks/useApi.js +1 -1
  121. package/lib/shared/utilities/custom_hooks/useClickOutside.js +3 -3
  122. package/lib/shared/utilities/custom_hooks/useMap.js +1 -3
  123. package/lib/shared/utilities/custom_hooks/useQueryURL.js +1 -1
  124. package/lib/shared/utilities/custom_hooks/useRemoveExistingLayers.js +1 -1
  125. package/package.json +1 -1
@@ -1,725 +1,733 @@
1
1
  @media only screen and (max-width: 450px) {
2
- .sidenav {
3
- width: 100vw !important;
2
+ .sidenav {
3
+ width: 100vw !important;
4
4
 
5
- &--collapsed {
6
- .ltrs & {
7
- left: -100vw !important;
8
- }
5
+ &--collapsed {
6
+ .ltrs & {
7
+ left: -100vw !important;
8
+ }
9
9
 
10
- .rtls & {
11
- right: -100vw !important;
12
- }
10
+ .rtls & {
11
+ right: -100vw !important;
12
+ }
13
+ }
13
14
  }
14
- }
15
15
 
16
- .event-info__event-path {
17
- display: block !important;
18
- }
16
+ .event-info__event-path {
17
+ display: block !important;
18
+ }
19
19
 
20
- .back_button_container {
21
- width: 100vw !important;
22
- }
20
+ .back_button_container {
21
+ width: 100vw !important;
22
+ }
23
23
 
24
- .toggle-expansion-button-mobile {
25
- display: block !important;
26
- }
24
+ .toggle-expansion-button-mobile {
25
+ display: block !important;
26
+ }
27
27
 
28
- .toggle-expansion-button {
29
- display: none;
30
- }
28
+ .toggle-expansion-button {
29
+ display: none;
30
+ }
31
31
  }
32
32
 
33
33
  .sidenav {
34
- z-index: 999;
35
- position: fixed;
36
- top: 4em;
37
- width: 450px;
38
- height: 100%;
39
- box-shadow: 0px 10px 10px rgba(0, 0, 0, .1);
40
- background: rgba(255,255,255,0.9);
41
- transition: 0.3s cubic-bezier(1,0,0,1);
42
- font-size: 0.9em;
43
-
44
- .ltrs & {
45
- left: 0;
46
- }
47
- .rtls & {
48
- right: 0;
49
- }
50
-
51
- h6 {
52
- font-weight: 900;
53
- }
54
-
55
- .danger {
56
- color: #f6004f;
57
- font-weight: bold;
58
- }
34
+ z-index: 999;
35
+ position: fixed;
36
+ top: 4em;
37
+ width: 450px;
38
+ height: 100%;
39
+ box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
40
+ background: rgba(255, 255, 255, 0.9);
41
+ transition: 0.3s cubic-bezier(1, 0, 0, 1);
42
+ font-size: 0.9em;
59
43
 
60
- .nav-expansion-icon {
61
- width: 100%;
62
- height: 50%;
63
- padding: 2px;
64
- margin: 50% 0;
65
-
66
- svg {
67
- width: 100%;
68
- height: 100%;
69
- }
70
- }
71
-
72
- &--collapsed {
73
44
  .ltrs & {
74
- left: -450px;
45
+ left: 0;
75
46
  }
76
47
  .rtls & {
77
- right: -450px;
48
+ right: 0;
78
49
  }
79
- }
80
-
81
- .toggle-expansion-button {
82
- position: absolute;
83
- top: 0;
84
- width: 1.5em;
85
- height: 3em;
86
- background: white;
87
- z-index: 9;
88
- border-bottom-right-radius: 9px;
89
- border-top-right-radius: 9px;
90
- cursor: pointer;
91
50
 
92
- .ltrs & {
93
- right: -22px !important;
94
- }
95
- .rtls & {
96
- left: -21px !important;
97
- transform: rotate(180deg);
51
+ h6 {
52
+ font-weight: 900;
98
53
  }
99
- }
100
54
 
101
- .toggle-expansion-button-mobile {
102
- display: none;
103
- position: absolute;
104
- top: 0;
105
- width: 100%;
106
- background: white;
107
- padding: 12px 20px;
108
- box-shadow: 0px 3px 3px rgba(0, 0, 0, .1);
109
-
110
- a {
111
- color: #007bff;
55
+ .danger {
56
+ color: #f6004f;
57
+ font-weight: bold;
112
58
  }
113
59
 
114
- .ltrs & {
115
- right: -100% !important;
116
- }
117
- .rtls & {
118
- left: -100% !important;
60
+ .nav-expansion-icon {
61
+ width: 100%;
62
+ height: 50%;
63
+ padding: 2px;
64
+ margin: 50% 0;
119
65
 
120
- svg {
121
- transform: rotate(180deg);
122
- }
66
+ svg {
67
+ width: 100%;
68
+ height: 100%;
69
+ }
123
70
  }
124
- }
125
71
 
126
- .events-header {
127
- position: sticky;
128
- position: sticky;
129
- top: 0;
130
- left: 0;
131
- display: flex;
132
- width: 100%;
133
- background: white;
134
- padding: 1.5em;
135
- justify-content: space-between;
136
- box-shadow: 0px 3px 4px rgba(0,0,0,.1);
137
- z-index: 9;
138
-
139
- .filter {
140
- cursor: pointer;
72
+ &--collapsed {
73
+ .ltrs & {
74
+ left: -450px;
75
+ }
76
+ .rtls & {
77
+ right: -450px;
78
+ }
141
79
  }
142
- }
143
- }
144
80
 
145
- .events-container {
146
- padding: 0 1.5em 1.5em 1.5em;
147
- text-align: center;
148
- overflow: scroll;
149
- height: 85%;
150
-
151
- .events {
152
- padding-bottom: 8em;
153
-
154
- &__blankslate {
155
- display: flex;
156
- flex-direction: column;
157
- justify-content: center;
158
- height: 70%;
159
-
160
- img {
161
- width: 6em;
162
- align-self: center;
163
- }
164
-
165
- .apply_default_filter_button {
166
- color: #f6004f;
167
- border: 1px solid #f6004f;
168
- padding: 9px;
169
- border-radius: 26px;
170
- width: 11em;
171
- align-self: center;
172
- text-decoration: none;
173
- cursor: pointer;
174
- font-size: 21px;
175
- font-weight: 200;
176
- }
177
- }
178
-
179
- .event {
180
- position: relative;
181
- width: 100%;
182
- height: 14em;
183
- box-shadow: 0 8px 16px 0 rgba(0,0,0,.08);
184
- border-radius: 8px;
185
- text-align: center;
186
- margin: 1.5em 0;
187
- background: white;
188
- cursor: pointer;
189
-
190
- .event-id {
81
+ .toggle-expansion-button {
191
82
  position: absolute;
192
- font-size: .5em;
193
- top: -1.9em;
83
+ top: 0;
84
+ width: 1.5em;
85
+ height: 3em;
86
+ background: white;
87
+ z-index: 9;
88
+ border-bottom-right-radius: 9px;
89
+ border-top-right-radius: 9px;
90
+ cursor: pointer;
194
91
 
195
92
  .ltrs & {
196
- right: 0 !important;
93
+ right: -22px !important;
197
94
  }
198
95
  .rtls & {
199
- left: 0 !important;
96
+ left: -21px !important;
97
+ transform: rotate(180deg);
200
98
  }
201
- }
202
-
203
- &:hover {
204
- box-shadow: 0 8px 16px 0 rgba(0,0,0,.15);
205
- transition: 0.2s ease;
206
- }
207
-
208
- &:active {
209
- background: #f2f2f2;
210
- box-shadow: 0 0 0 rgba(0,0,0,.15);
211
- transition: 0.1s ease;
212
- }
99
+ }
213
100
 
214
- .event-container {
215
- height: 100%;
216
- display: flex;
217
- justify-content: unset;
101
+ .toggle-expansion-button-mobile {
102
+ display: none;
103
+ position: absolute;
104
+ top: 0;
105
+ width: 100%;
106
+ background: white;
107
+ padding: 12px 20px;
108
+ box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.1);
218
109
 
219
- &--active {
220
- box-shadow: 0px 0px 20px rgba(246,0,79,.4);
110
+ a {
111
+ color: #007bff;
221
112
  }
222
113
 
223
- &__severity {
224
- height: 100%;
225
- width: 5px;
226
- margin: 0;
114
+ .ltrs & {
115
+ right: -100% !important;
116
+ }
117
+ .rtls & {
118
+ left: -100% !important;
227
119
 
228
- &--0 {
229
- background: #f6b22f;
230
- }
120
+ svg {
121
+ transform: rotate(180deg);
122
+ }
123
+ }
124
+ }
231
125
 
232
- &--1 {
233
- background: #f67129;
234
- }
126
+ .events-header {
127
+ position: sticky;
128
+ position: sticky;
129
+ top: 0;
130
+ left: 0;
131
+ display: flex;
132
+ width: 100%;
133
+ background: white;
134
+ padding: 1.5em;
135
+ justify-content: space-between;
136
+ box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.1);
137
+ z-index: 9;
235
138
 
236
- &--2 {
237
- background: #f6004f;
238
- }
139
+ .filter {
140
+ cursor: pointer;
239
141
  }
142
+ }
143
+ }
240
144
 
241
- .event-content {
242
- width: 100%;
243
- overflow: scroll;
145
+ .events-container {
146
+ padding: 0 1.5em 1.5em 1.5em;
147
+ text-align: center;
148
+ overflow: scroll;
149
+ height: 85%;
244
150
 
245
- .truncated-text {
246
- padding: 2px;
247
- border-radius: 3px;
248
- text-align: center;
249
- text-overflow: ellipsis;
250
- width: 7em;
251
- font-size: 10px;
252
- overflow: hidden !important;
253
-
254
- b {
255
- white-space: nowrap;
256
- text-overflow: ellipsis;
257
- }
258
- }
151
+ .events {
152
+ padding-bottom: 8em;
259
153
 
260
- &__header {
154
+ &__blankslate {
261
155
  display: flex;
262
- justify-content: space-between;
263
- background: rgba(0,0,0,.1);
264
- padding: .5em 1em;
156
+ flex-direction: column;
157
+ justify-content: center;
158
+ height: 70%;
265
159
 
266
- p {
267
- margin: 0;
160
+ img {
161
+ width: 6em;
162
+ align-self: center;
268
163
  }
269
164
 
270
- .pollution-discharge {
271
- display: flex;
272
- font-size: 10px;
273
- align-items: center;
274
-
275
- img {
276
- width: 24px;
277
- margin: 0 5px;
278
- }
165
+ .apply_default_filter_button {
166
+ color: #f6004f;
167
+ border: 1px solid #f6004f;
168
+ padding: 9px;
169
+ border-radius: 26px;
170
+ width: 11em;
171
+ align-self: center;
172
+ text-decoration: none;
173
+ cursor: pointer;
174
+ font-size: 21px;
175
+ font-weight: 200;
279
176
  }
280
- }
281
-
282
- &__body {
283
- font-size: 0.9em;
284
- padding: 0 10px;
285
-
286
- &--top {
287
- padding: 10px 0;
288
- border-bottom: 1px solid rgba(0,0,0,.1);
289
-
290
- p {
291
- margin: 0;
292
- font-weight: 300;
293
- }
294
-
295
- .ltrs & {
296
- text-align: left;
297
- }
298
- .rtls & {
299
- text-align: right;
300
- }
301
-
302
- .damage-types {
303
- padding: .5em 0;
304
- display: flex;
305
- justify-content: space-between;
177
+ }
178
+
179
+ .event {
180
+ position: relative;
181
+ width: 100%;
182
+ height: 14em;
183
+ box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.08);
184
+ border-radius: 8px;
185
+ text-align: center;
186
+ margin: 1.5em 0;
187
+ background: white;
188
+ cursor: pointer;
189
+
190
+ .event-id {
191
+ position: absolute;
192
+ font-size: 0.5em;
193
+ top: -1.9em;
306
194
 
307
195
  .ltrs & {
308
- text-align: left;
196
+ right: 0 !important;
309
197
  }
310
198
  .rtls & {
311
- text-align: right;
199
+ left: 0 !important;
312
200
  }
201
+ }
313
202
 
314
- p {
315
- margin-bottom: .5em;
316
- }
203
+ &:hover {
204
+ box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.15);
205
+ transition: 0.2s ease;
206
+ }
317
207
 
318
- &__type {
319
- display: flex;
320
- align-items: center;
208
+ &:active {
209
+ background: #f2f2f2;
210
+ box-shadow: 0 0 0 rgba(0, 0, 0, 0.15);
211
+ transition: 0.1s ease;
212
+ }
321
213
 
322
- &__icon {
323
- width: 25px;
214
+ .event-container {
215
+ height: 100%;
216
+ display: flex;
217
+ justify-content: unset;
324
218
 
325
- .ltrs & {
326
- margin-right: 6px;
327
- }
328
- .rtls & {
329
- margin-left: 6px;
330
- }
331
- }
219
+ &--active {
220
+ box-shadow: 0px 0px 20px rgba(246, 0, 79, 0.4);
332
221
  }
333
- }
334
- }
335
222
 
336
- &--bottom {
337
- padding: 7px 0 0 0;
338
- display: flex;
339
- justify-content: space-between;
223
+ &__severity {
224
+ height: 100%;
225
+ width: 5px;
226
+ margin: 0;
340
227
 
341
- .ltrs & {
342
- text-align: left;
343
- }
344
- .rtls & {
345
- text-align: right;
346
- }
228
+ &--0 {
229
+ background: #f6b22f;
230
+ }
347
231
 
348
- p {
349
- margin-bottom: 3px;
350
- }
232
+ &--1 {
233
+ background: #f67129;
234
+ }
351
235
 
352
- &__item {
353
- width: 20%;
354
- }
236
+ &--2 {
237
+ background: #f6004f;
238
+ }
239
+ }
355
240
 
356
- .early-warnings {
357
- padding: .5em 1em;
358
- width: 50%;
241
+ .event-content {
242
+ width: 100%;
243
+ overflow: scroll;
244
+
245
+ .truncated-text {
246
+ padding: 2px;
247
+ border-radius: 3px;
248
+ text-align: center;
249
+ text-overflow: ellipsis;
250
+ width: 7em;
251
+ font-size: 10px;
252
+ overflow: hidden !important;
253
+
254
+ b {
255
+ white-space: nowrap;
256
+ text-overflow: ellipsis;
257
+ }
258
+ }
359
259
 
360
- li {
361
- margin: 0 0 25px 0;
260
+ &__header {
261
+ display: flex;
262
+ justify-content: space-between;
263
+ background: rgba(0, 0, 0, 0.1);
264
+ padding: 0.5em 1em;
265
+
266
+ p {
267
+ margin: 0;
268
+ }
269
+
270
+ .pollution-discharge {
271
+ display: flex;
272
+ font-size: 10px;
273
+ align-items: center;
274
+
275
+ img {
276
+ width: 24px;
277
+ margin: 0 5px;
278
+ }
279
+ }
280
+ }
281
+
282
+ &__body {
283
+ font-size: 0.9em;
284
+ padding: 0 10px;
285
+
286
+ &--top {
287
+ padding: 10px 0;
288
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
289
+
290
+ p {
291
+ margin: 0;
292
+ font-weight: 300;
293
+ }
294
+
295
+ .ltrs & {
296
+ text-align: left;
297
+ }
298
+ .rtls & {
299
+ text-align: right;
300
+ }
301
+
302
+ .damage-types {
303
+ padding: 0.5em 0;
304
+ display: flex;
305
+ justify-content: space-between;
306
+
307
+ .ltrs & {
308
+ text-align: left;
309
+ }
310
+ .rtls & {
311
+ text-align: right;
312
+ }
313
+
314
+ p {
315
+ margin-bottom: 0.5em;
316
+ }
317
+
318
+ &__type {
319
+ display: flex;
320
+ align-items: center;
321
+
322
+ &__icon {
323
+ width: 25px;
324
+
325
+ .ltrs & {
326
+ margin-right: 6px;
327
+ }
328
+ .rtls & {
329
+ margin-left: 6px;
330
+ }
331
+ }
332
+ }
333
+ }
334
+ }
335
+
336
+ &--bottom {
337
+ padding: 7px 0 0 0;
338
+ display: flex;
339
+ justify-content: space-between;
340
+
341
+ .ltrs & {
342
+ text-align: left;
343
+ }
344
+ .rtls & {
345
+ text-align: right;
346
+ }
347
+
348
+ p {
349
+ margin-bottom: 3px;
350
+ }
351
+
352
+ &__item {
353
+ width: 20%;
354
+ }
355
+
356
+ .early-warnings {
357
+ padding: 0.5em 1em;
358
+ width: 50%;
359
+
360
+ li {
361
+ margin: 0 0 25px 0;
362
+ }
363
+ }
364
+ }
365
+ }
362
366
  }
363
- }
364
367
  }
365
- }
366
368
  }
367
- }
368
369
  }
369
- }
370
370
  }
371
371
 
372
372
  .severity {
373
- font-weight: bold;
374
- position: absolute;
375
-
376
- .rtls & {
377
- right: -4em;
378
- }
379
-
380
- .ltrs & {
381
- left: -4em;
382
- }
383
-
384
- &--2 {
385
- color: #f6004f;
386
- }
387
- &--1 {
388
- color: #f65700;
389
- }
390
- &--0 {
391
- color: #f6a200;
392
- }
393
- &--clear {
394
- color: #1db232;
395
- }
373
+ font-weight: bold;
374
+ position: absolute;
375
+
376
+ .rtls & {
377
+ right: -4em;
378
+ }
379
+
380
+ .ltrs & {
381
+ left: -4em;
382
+ }
383
+
384
+ &--2 {
385
+ color: #f6004f;
386
+ }
387
+ &--1 {
388
+ color: #f65700;
389
+ }
390
+ &--0 {
391
+ color: #f6a200;
392
+ }
393
+ &--clear {
394
+ color: #1db232;
395
+ }
396
396
  }
397
397
 
398
- .loader {
399
- margin: 1.5em auto;
400
- border: 7px solid #f3f3f3;
401
- border-radius: 50%;
402
- border-top: 7px solid #e20e53;
403
- width: 70px !important;
404
- height: 70px !important;
405
- animation: spin 1s cubic-bezier(0.79, 0.14, 0.15, 0.86) infinite;
406
- box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, .1);
407
- }
398
+ .loader {
399
+ margin: 1.5em auto;
400
+ border: 7px solid #f3f3f3;
401
+ border-radius: 50%;
402
+ border-top: 7px solid #e20e53;
403
+ width: 70px !important;
404
+ height: 70px !important;
405
+ animation: spin 1s cubic-bezier(0.79, 0.14, 0.15, 0.86) infinite;
406
+ box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.1);
407
+ }
408
408
 
409
409
  @-webkit-keyframes spin {
410
- 0% { -webkit-transform: rotate(0deg); }
411
- 100% { -webkit-transform: rotate(360deg); }
410
+ 0% {
411
+ -webkit-transform: rotate(0deg);
412
+ }
413
+ 100% {
414
+ -webkit-transform: rotate(360deg);
415
+ }
412
416
  }
413
417
 
414
418
  @keyframes spin {
415
- 0% { transform: rotate(0deg); }
416
- 100% { transform: rotate(360deg); }
419
+ 0% {
420
+ transform: rotate(0deg);
421
+ }
422
+ 100% {
423
+ transform: rotate(360deg);
424
+ }
417
425
  }
418
426
 
419
427
  .more-info {
420
- font-size: 0.9em;
421
- height: 100%;
422
- overflow: scroll;
428
+ font-size: 0.9em;
429
+ height: 100%;
430
+ overflow: scroll;
423
431
 
424
- &__content {
425
- padding: 15px 1.5em 2.5em 1.5em;
426
- }
432
+ &__content {
433
+ padding: 15px 1.5em 2.5em 1.5em;
434
+ }
427
435
  }
428
436
 
429
437
  .back_button_container {
430
- z-index: 9;
431
- background: white;
432
- position: sticky;
433
- width: 450px;
434
- max-width: 450px;
435
- height: 3.3em;
436
- left: 0;
437
- top: 0;
438
- padding: 12px 20px;
439
- box-shadow: 0px 3px 3px rgba(0, 0, 0, .1);
440
-
441
- &__button {
442
- svg {
443
- .rtls & {
444
- transform: rotate(180deg);
445
- }
446
- }
447
- }
438
+ z-index: 9;
439
+ background: white;
440
+ position: sticky;
441
+ width: 450px;
442
+ max-width: 450px;
443
+ height: 3.3em;
444
+ left: 0;
445
+ top: 0;
446
+ padding: 12px 20px;
447
+ box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.1);
448
+
449
+ &__button {
450
+ svg {
451
+ .rtls & {
452
+ transform: rotate(180deg);
453
+ }
454
+ }
455
+ }
448
456
  }
449
457
 
450
458
  .filter-container {
451
- z-index: 9;
452
- position: absolute;
453
- top: 0em;
454
- min-height: 7em;
455
- width: calc(100vw - 450px);
456
- background: white;
457
- box-shadow: 0px 2px 27px rgba(0,0,0,.2);
458
- padding: 1em;
459
-
460
- &--hidden {
461
- display: none;
462
- }
463
-
464
- .rtls & {
465
- right: 450px;
466
- }
467
-
468
- .ltrs & {
469
- left: 450px;
470
- }
471
-
472
- &::before {
473
- content: '◀';
474
- display: block;
475
- color: black;
459
+ z-index: 9;
476
460
  position: absolute;
477
- top: 18px;
478
- color: white;
461
+ top: 0em;
462
+ min-height: 7em;
463
+ width: calc(100vw - 450px);
464
+ background: white;
465
+ box-shadow: 0px 2px 27px rgba(0, 0, 0, 0.2);
466
+ padding: 1em;
467
+
468
+ &--hidden {
469
+ display: none;
470
+ }
479
471
 
480
472
  .rtls & {
481
- right: -10px;
482
- transform: rotate(180deg);
473
+ right: 450px;
483
474
  }
484
475
 
485
476
  .ltrs & {
486
- left: -10px;
477
+ left: 450px;
487
478
  }
488
- }
489
479
 
490
- .apply-button-container {
491
- cursor: pointer;
492
-
493
- .apply-button {
494
- border: 1px solid #f6004f;
495
- padding: 6px 12px;
496
- border-radius: 12px;
497
- color: #f6004f;
498
- font-weight: 800;
499
- text-decoration: none;
500
- }
501
- }
480
+ &::before {
481
+ content: '◀';
482
+ display: block;
483
+ color: black;
484
+ position: absolute;
485
+ top: 18px;
486
+ color: white;
502
487
 
503
- #dropdown-basic {
504
- background: white;
505
- color: black;
506
- font-size: 1em;
507
- border: none;
508
- padding: 0;
488
+ .rtls & {
489
+ right: -10px;
490
+ transform: rotate(180deg);
491
+ }
509
492
 
510
- &:focus {
511
- box-shadow: none !important;
512
- border: none !important;
493
+ .ltrs & {
494
+ left: -10px;
495
+ }
513
496
  }
514
- }
515
-
516
- .dropdown-menu.show {
517
- width: max-content;
518
497
 
519
- .filter-dropdown-item {
520
- display: flex;
521
- justify-content: space-between;
522
- padding: 0 20px;
498
+ .apply-button-container {
499
+ cursor: pointer;
523
500
 
524
- &:hover {
525
- .filter-actions {
526
- opacity: 1;
527
- transition: ease-in 0.1s;
501
+ .apply-button {
502
+ border: 1px solid #f6004f;
503
+ padding: 6px 12px;
504
+ border-radius: 12px;
505
+ color: #f6004f;
506
+ font-weight: 800;
507
+ text-decoration: none;
528
508
  }
529
- }
530
-
531
- .filter-actions {
532
- font-size: 0.7em;
533
- display: flex;
534
- align-items: center;
535
- opacity: 0;
536
- }
537
509
  }
538
- }
539
-
540
- &__content {
541
- &__header {
542
- display: flex;
543
- justify-content: space-between;
544
510
 
545
- .title {
546
- p {
547
- margin: 0;
511
+ #dropdown-basic {
512
+ background: white;
513
+ color: black;
514
+ font-size: 1em;
515
+ border: none;
516
+ padding: 0;
517
+
518
+ &:focus {
519
+ box-shadow: none !important;
520
+ border: none !important;
548
521
  }
549
- }
550
-
551
- .actions {
552
- display: flex;
553
-
554
- .action {
555
- padding: 0 5px;
556
- cursor: pointer;
557
- color: black;
558
- margin: 0 3px;
559
- text-decoration: none;
560
-
561
- .dropdown-item {
562
- color: black;
563
- }
522
+ }
564
523
 
565
- .dropdown-item.disabled {
566
- color: #6c757d !important;
567
- }
524
+ .dropdown-menu.show {
525
+ width: max-content;
568
526
 
569
- &--save {
570
- margin: 0;
571
- padding: .25rem 1.5rem;
527
+ .filter-dropdown-item {
528
+ display: flex;
529
+ justify-content: space-between;
530
+ padding: 0 20px;
572
531
 
573
532
  &:hover {
574
- text-decoration: none;
575
- background-color: #f8f9fa;
533
+ .filter-actions {
534
+ opacity: 1;
535
+ transition: ease-in 0.1s;
536
+ }
576
537
  }
577
- }
578
-
579
- span {
580
- padding: 0 6px;
581
- min-width: 6em;
582
- }
583
-
584
- .new-filter-popup {
585
- text-align: center;
586
- padding: 15px;
587
- cursor: text;
588
538
 
589
- button {
590
- width: 100%;
539
+ .filter-actions {
540
+ font-size: 0.7em;
541
+ display: flex;
542
+ align-items: center;
543
+ opacity: 0;
591
544
  }
592
- }
593
545
  }
594
- }
595
546
  }
596
547
 
597
- &__body {
598
- display: flex;
599
- align-items: center;
548
+ &__content {
549
+ &__header {
550
+ display: flex;
551
+ justify-content: space-between;
600
552
 
601
- .input-group {
602
- width: 15em;
603
- position: absolute;
604
- z-index: 9;
605
- top: .5em;
606
- background: white;
553
+ .title {
554
+ p {
555
+ margin: 0;
556
+ }
557
+ }
607
558
 
608
- .rtls & {
609
- left: 5em;
610
- }
559
+ .actions {
560
+ display: flex;
611
561
 
612
- .ltrs & {
613
- right: 6em;
614
- }
615
- }
562
+ .action {
563
+ padding: 0 5px;
564
+ cursor: pointer;
565
+ color: black;
566
+ margin: 0 3px;
567
+ text-decoration: none;
616
568
 
617
- .filter {
618
- display: flex;
619
- align-items: center;
620
-
621
- .custom-dropdown {
622
- display: flex;
623
- flex-direction: column;
624
- position: relative;
625
- background: #ffffff;
626
- border: 1px solid #dddddd;
627
- color: #666666;
628
- width: 13.2em;
629
- overflow: hidden;
630
- padding: 10px;
631
-
632
- .option {
633
- margin: 5px 0;
634
-
635
- input {
636
- margin: 0 3px;
637
- cursor: pointer !important;
638
- }
569
+ .dropdown-item {
570
+ color: black;
571
+ }
639
572
 
640
- label {
641
- cursor: pointer !important;
642
- }
643
- }
644
- }
645
- }
573
+ .dropdown-item.disabled {
574
+ color: #6c757d !important;
575
+ }
646
576
 
647
- .filter_items {
648
- display: flex;
649
- flex-wrap: wrap;
650
- margin: 12px 0;
577
+ &--save {
578
+ margin: 0;
579
+ padding: 0.25rem 1.5rem;
580
+
581
+ &:hover {
582
+ text-decoration: none;
583
+ background-color: #f8f9fa;
584
+ }
585
+ }
651
586
 
652
- .fixed-action {
653
- padding: 12px;
587
+ span {
588
+ padding: 0 6px;
589
+ min-width: 6em;
590
+ }
591
+
592
+ .new-filter-popup {
593
+ text-align: center;
594
+ padding: 15px;
595
+ cursor: text;
596
+
597
+ button {
598
+ width: 100%;
599
+ }
600
+ }
601
+ }
602
+ }
654
603
  }
655
604
 
656
- .filter_item {
657
- padding: 6px 12px;
658
- background: rgba(0,0,0,.1);
659
- border-radius: 12px;
660
- margin: 6px 12px;
661
- display: flex;
662
- justify-content: space-between;
663
- align-items: center;
664
- position: relative;
665
- min-height: 33px;
666
- cursor: pointer;
667
- margin-left: 0;
668
-
669
- &__content {
605
+ &__body {
670
606
  display: flex;
671
607
  align-items: center;
672
608
 
673
- &__selections {
674
- display: flex;
675
- flex-wrap: wrap;
609
+ .input-group {
610
+ width: 15em;
611
+ position: absolute;
612
+ z-index: 9;
613
+ top: 0.5em;
614
+ background: white;
676
615
 
677
- &__selection {
678
- margin: 0 5px;
679
- font-weight: bold;
680
- }
681
- }
682
- }
683
-
684
- a {
685
- cursor: pointer;
616
+ .rtls & {
617
+ left: 5em;
618
+ }
686
619
 
687
- .rtls & {
688
- margin-right: 15px;
620
+ .ltrs & {
621
+ right: 6em;
622
+ }
689
623
  }
690
624
 
691
- .ltrs & {
692
- margin-left: 15px;
625
+ .filter {
626
+ display: flex;
627
+ align-items: center;
628
+
629
+ .custom-dropdown {
630
+ display: flex;
631
+ flex-direction: column;
632
+ position: relative;
633
+ background: #ffffff;
634
+ border: 1px solid #dddddd;
635
+ color: #666666;
636
+ width: 13.2em;
637
+ overflow: hidden;
638
+ padding: 10px;
639
+
640
+ .option {
641
+ margin: 5px 0;
642
+
643
+ input {
644
+ margin: 0 3px;
645
+ cursor: pointer !important;
646
+ }
647
+
648
+ label {
649
+ cursor: pointer !important;
650
+ }
651
+ }
652
+ }
693
653
  }
694
- }
695
654
 
696
- .filter-items-options-popup-container {
697
- position: absolute;
698
- bottom: 0;
699
- transform: translateY(100%);
700
- left: 0;
701
- z-index: 9;
655
+ .filter_items {
656
+ display: flex;
657
+ flex-wrap: wrap;
658
+ margin: 12px 0;
702
659
 
703
- .filter-items-options-popup {
704
- width: 200px;
660
+ .fixed-action {
661
+ padding: 12px;
662
+ }
663
+
664
+ .filter_item {
665
+ padding: 6px 12px;
666
+ background: rgba(0, 0, 0, 0.1);
667
+ border-radius: 12px;
668
+ margin: 6px 12px;
669
+ display: flex;
670
+ justify-content: space-between;
671
+ align-items: center;
672
+ position: relative;
673
+ min-height: 33px;
674
+ cursor: pointer;
675
+ margin-left: 0;
676
+
677
+ &__content {
678
+ display: flex;
679
+ align-items: center;
680
+
681
+ &__selections {
682
+ display: flex;
683
+ flex-wrap: wrap;
684
+
685
+ &__selection {
686
+ margin: 0 5px;
687
+ font-weight: bold;
688
+ }
689
+ }
690
+ }
691
+
692
+ a {
693
+ cursor: pointer;
694
+
695
+ .rtls & {
696
+ margin-right: 15px;
697
+ }
698
+
699
+ .ltrs & {
700
+ margin-left: 15px;
701
+ }
702
+ }
703
+
704
+ .filter-items-options-popup-container {
705
+ position: absolute;
706
+ bottom: 0;
707
+ transform: translateY(100%);
708
+ left: 0;
709
+ z-index: 9;
710
+
711
+ .filter-items-options-popup {
712
+ width: 200px;
713
+ }
714
+ }
715
+ }
705
716
  }
706
- }
707
717
  }
708
- }
709
718
  }
710
- }
711
719
  }
712
720
 
713
721
  .sort {
714
- display: flex;
715
- align-items: center;
722
+ display: flex;
723
+ align-items: center;
716
724
 
717
- .form-group {
718
- margin: 0;
725
+ .form-group {
726
+ margin: 0;
719
727
 
720
- select {
721
- border: none;
722
- font-weight: 800;
728
+ select {
729
+ border: none;
730
+ font-weight: 800;
731
+ }
723
732
  }
724
- }
725
- }
733
+ }