mirror of
https://github.com/heyarne/berliner-winter.git
synced 2026-05-06 19:23:39 +02:00
Style date and re-add close button
This commit is contained in:
parent
8bcb3c62f9
commit
65a9b75e0c
2 changed files with 18 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* background map */
|
/* map of incidents */
|
||||||
|
|
||||||
#map {
|
#map {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
@ -51,6 +51,22 @@ a {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.leaflet-popup-content .date {
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 1.2em;
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-container a.leaflet-popup-close-button {
|
||||||
|
pointer-events: auto;
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
font-family: 'Libre Baskerville', serif;
|
||||||
|
font-size: 1.2em;
|
||||||
|
padding: 1.3em;
|
||||||
|
}
|
||||||
|
|
||||||
.circle-marker {
|
.circle-marker {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 2px solid rgba(0,0,0,.5);
|
border: 2px solid rgba(0,0,0,.5);
|
||||||
|
|
@ -170,8 +186,6 @@ a {
|
||||||
left: 0;
|
left: 0;
|
||||||
background: -webkit-linear-gradient(top right, rgba(255,255,255,.2), white 50%);
|
background: -webkit-linear-gradient(top right, rgba(255,255,255,.2), white 50%);
|
||||||
background: linear-gradient(to bottom left, rgba(255,255,255,.2), white 50%);
|
background: linear-gradient(to bottom left, rgba(255,255,255,.2), white 50%);
|
||||||
display: table-cell;
|
|
||||||
vertical-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#overlay .text {
|
#overlay .text {
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ class Visualization {
|
||||||
|
|
||||||
var popup = new L.Popup({
|
var popup = new L.Popup({
|
||||||
autoPanPadding: [96, 96],
|
autoPanPadding: [96, 96],
|
||||||
closeButton: false,
|
closeButton: true,
|
||||||
maxHeight: 250
|
maxHeight: 250
|
||||||
});
|
});
|
||||||
this.oms.addListener('click', function (marker) {
|
this.oms.addListener('click', function (marker) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue