File tree Expand file tree Collapse file tree 2 files changed +56
-1
lines changed
Expand file tree Collapse file tree 2 files changed +56
-1
lines changed Original file line number Diff line number Diff line change @@ -181,12 +181,18 @@ export default {
181181 </script >
182182
183183<style lang="scss" scoped>
184- #map {
184+ /deep/ #map {
185185 position : absolute ;
186186 top : 0 ;
187187 bottom : 0 ;
188188 width : 100% ;
189189 height : 100% ;
190+
191+ .mapboxgl-ctrl-top-right {
192+ .mapboxgl-ctrl {
193+ margin-top : 26px ;
194+ }
195+ }
190196}
191197
192198/deep/ .popup {
Original file line number Diff line number Diff line change 2323 :suggestions =" countries"
2424 :selection.sync =" country" />
2525 </DrawerItem >
26+ <DrawerItem title =" MAP LEGEND" >
27+ <div class =" legend" >
28+ <p >
29+ <span class =" legend_item legend_cluster" ></span > <span >Clustered affected country / state</span >
30+ </p >
31+ <span class =" legend_detail" >Clicking it will break the cluster into small and much specific country / state</span >
32+ <p >
33+ <span class =" legend_item" ></span > <span >Affected country / state</span >
34+ </p >
35+ <span class =" legend_detail" >Clicking it will show overview of known case in that country / state</span >
36+ </div >
37+ </DrawerItem >
2638 <DrawerItem title =" TIMELINE" >
2739 <div class =" timeline" >
2840 <p >FEATURE TO BE ADDED SOON</p >
@@ -120,6 +132,43 @@ export default {
120132 }
121133}
122134
135+ .legend {
136+ position : relative ;
137+ white-space : normal ;
138+
139+ p {
140+ display : flex ;
141+ align-items : center ;
142+ margin-bottom : 8px ;
143+ }
144+
145+ span {
146+ display : inline-block ;
147+
148+ & .legend_detail {
149+ display : block ;
150+ margin-bottom : 24px ;
151+ font-size : 14px ;
152+ font-weight : 300 ;
153+ color : #f2f2f2 ;
154+ margin-left : 44px ;
155+ }
156+ }
157+
158+ & _item {
159+ flex : 0 0 auto ;
160+ border-radius : 100% ;
161+ margin-right : 12px ;
162+ width : 32px ;
163+ height : 32px ;
164+ background-color : #ffe4b2 ;
165+ }
166+
167+ & _cluster {
168+ background-color : #ffa500 ;
169+ }
170+ }
171+
123172.timeline {
124173 position : relative ;
125174 white-space : normal ;
You can’t perform that action at this time.
0 commit comments