Extract component to render a map
This way it'll be easier to refactor it.
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
@import "legislation";
|
||||
@import "legislation_process";
|
||||
@import "legislation_process_form";
|
||||
@import "map_location";
|
||||
@import "moderation_actions";
|
||||
@import "notification_item";
|
||||
@import "community";
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
// 20. Documents
|
||||
// 21. Related content
|
||||
// 22. Images
|
||||
// 23. Maps
|
||||
// 24. Homepage
|
||||
// 25. LocalCensusRecords
|
||||
//
|
||||
@@ -2152,48 +2151,6 @@ table {
|
||||
}
|
||||
}
|
||||
|
||||
// 23. Maps
|
||||
// -----------------
|
||||
|
||||
.location-map-remove-marker {
|
||||
border-bottom: 1px dotted #cf2a0e;
|
||||
color: $delete;
|
||||
display: inline-block;
|
||||
margin-top: $line-height / 2;
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:focus {
|
||||
border-bottom-style: solid;
|
||||
color: #cf2a0e;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.leaflet-bar a {
|
||||
|
||||
&.leaflet-disabled {
|
||||
color: #525252;
|
||||
}
|
||||
}
|
||||
|
||||
.leaflet-container {
|
||||
|
||||
.leaflet-control-attribution {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
|
||||
a {
|
||||
@include link;
|
||||
}
|
||||
}
|
||||
|
||||
.leaflet-bottom,
|
||||
.leaflet-pane,
|
||||
.leaflet-top {
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
// 24. Homepage
|
||||
// ------------
|
||||
|
||||
|
||||
38
app/assets/stylesheets/map_location.scss
Normal file
38
app/assets/stylesheets/map_location.scss
Normal file
@@ -0,0 +1,38 @@
|
||||
.location-map-remove-marker {
|
||||
border-bottom: 1px dotted #cf2a0e;
|
||||
color: $delete;
|
||||
display: inline-block;
|
||||
margin-top: $line-height / 2;
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:focus {
|
||||
border-bottom-style: solid;
|
||||
color: #cf2a0e;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.leaflet-bar a {
|
||||
|
||||
&.leaflet-disabled {
|
||||
color: #525252;
|
||||
}
|
||||
}
|
||||
|
||||
.leaflet-container {
|
||||
|
||||
.leaflet-control-attribution {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
|
||||
a {
|
||||
@include link;
|
||||
}
|
||||
}
|
||||
|
||||
.leaflet-bottom,
|
||||
.leaflet-pane,
|
||||
.leaflet-top {
|
||||
z-index: 4;
|
||||
}
|
||||
Reference in New Issue
Block a user