control.onAddPane = function (map, button, $ui) {
var $section = $("<div>")
- .attr("class", "section")
+ .attr("class", "p-3")
.appendTo($ui);
$ui
var layers = options.layers;
var baseSection = $("<div>")
- .attr("class", "section base-layers d-grid gap-3")
+ .attr("class", "base-layers d-grid gap-3 p-3 border-bottom border-secondary-subtle")
.appendTo($ui);
layers.forEach(function (layer, i) {
if (OSM.STATUS !== "api_offline" && OSM.STATUS !== "database_offline") {
var overlaySection = $("<div>")
- .attr("class", "section overlay-layers")
+ .attr("class", "overlay-layers p-3")
.appendTo($ui);
$("<p>")
// Link / Embed
var $linkSection = $("<div>")
- .attr("class", "section share-link")
+ .attr("class", "share-link p-3 border-bottom border-secondary-subtle")
.appendTo($ui);
$("<h4>")
// Geo URI
var $geoUriSection = $("<div>")
- .attr("class", "section share-geo-uri")
+ .attr("class", "share-geo-uri p-3 border-bottom border-secondary-subtle")
.appendTo($ui);
$("<h4>")
// Image
var $imageSection = $("<div>")
- .attr("class", "section share-image")
+ .attr("class", "share-image p-3")
.appendTo($ui);
$("<h4>")
width: 250px;
height: 100%;
overflow: auto;
-
- .section {
- border-bottom: 1px solid $grey;
- padding: $spacer;
- }
}
}