Fix invalid HTML in investments sidebar
A <div> can't be a direct child of a <ul>. In this case the <ul> tag didn't make much sense because there isn't a list; just a map. Note the `z-index` rule which was added in commit25e1afea48is ignored because the map element is statically positioned. I'm not sure why it was added; can't reproduce the rendering problem both that commit and commitc5a749212mention. Maybe back then the element had a `position: relative` rule or similar somewhere.
This commit is contained in:
@@ -977,13 +977,6 @@ footer {
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-map {
|
||||
|
||||
.map {
|
||||
z-index: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-title {
|
||||
border-top: 2px solid $brand;
|
||||
display: inline-block;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<ul class="no-bullet sidebar-map">
|
||||
<div class="map">
|
||||
<%= render_map(@map_location, "budgets", false, nil, @investments_map_coordinates) %>
|
||||
</div>
|
||||
</ul>
|
||||
<div class="map">
|
||||
<%= render_map(@map_location, "budgets", false, nil, @investments_map_coordinates) %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user