Feature/map styling (#34)

* Improve map styling

* Make button dark
This commit is contained in:
Misode
2019-12-20 22:57:51 +01:00
committed by GitHub
parent b5e16b4f9c
commit 40f14ef84f
2 changed files with 30 additions and 0 deletions

View File

@@ -49,6 +49,21 @@
background-color: #4b4f54 !important;
}
.btn-outline-danger:hover {
background-color: #dae0e5 !important;
color: black;
}
.btn-dark {
background-color: white !important;
color: #149633;
border-color: #149633 !important;
}
.btn-dark:hover {
color: black;
}
.dropdown-item {
cursor: pointer;
}
@@ -161,6 +176,20 @@ body[data-style="dark"] .card.bg-info .card.bg-info {
color: black !important;
}
body[data-style="dark"] .btn-outline-danger {
background-color: #2d3236 !important;
}
body[data-style="dark"] .btn-dark {
background-color: #2d3236 !important;
color: #149633;
border-color: #149633;
}
body[data-style="dark"] .btn-dark:hover {
color: white;
}
body[data-style="dark"] .card.bg-dark {
background-color: #4b4f54 !important;
color: white !important;

View File

@@ -270,6 +270,7 @@ function generateMap(data, struct) {
$header.append('<button type="button" class="btn btn-danger mb-2 float-right" onclick="removeFromMap(this)" data-i18n="' + struct.translate + '_remove"></button>');
$item.prepend($header);
} else {
$item.addClass("ml-3");
$item.append('<div class="input-group-append"><button class="btn btn-outline-danger bg-light" type="button" onclick="removeFromMap(this)" data-i18n="remove"></button></div>');
}
out[field.id] = outValue;