The previous padding didn't match the main sidebar, and also used
sass division as part of the calculation.
.attr("class", "section base-layers")
.appendTo($ui);
- var baseLayers = $("<ul class='list-unstyled'>")
+ var baseLayers = $("<ul class='list-unstyled mb-0'>")
.appendTo(baseSection);
layers.forEach(function (layer) {
var $ui = $("<div>")
.attr("class", uiClass + "-ui");
- $("<div class='sidebar_heading d-flex'>")
+ $("<div class='d-flex p-3 pb-0'>")
.appendTo($ui)
.append($("<h4 class='flex-grow-1 text-break'>")
.text(I18n.t(paneTitle)))
.section {
border-bottom: 1px solid $grey;
- padding: 10px 20px;
+ padding: $spacer;
}
}
}
/* Rules for the sidebar */
-.sidebar_heading {
- position: relative;
- padding: $lineheight/2 $lineheight;
- // background: $offwhite;
- // border-bottom: 1px solid $grey;
-}
-
#browse_status {
input {
display: block;
<div id="mapkey">
- <table class="table table-sm table-borderless mapkey-table">
+ <table class="table table-sm table-borderless mapkey-table mb-0">
<% YAML.load_file(Rails.root.join("config/key.yml")).each do |name,data| %>
<% data.each do |entry| %>
<tr class="mapkey-table-entry" data-layer="<%= name %>" data-zoom-min="<%= entry["min_zoom"] %>" data-zoom-max="<%= entry["max_zoom"] %>">