Style date and re-add close button

This commit is contained in:
Arne Schlüter 2015-02-09 09:59:01 +01:00
commit 65a9b75e0c
2 changed files with 18 additions and 4 deletions

View file

@ -18,7 +18,7 @@ a {
color: inherit;
}
/* background map */
/* map of incidents */
#map {
height: 100%;
@ -51,6 +51,22 @@ a {
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 {
border-radius: 50%;
border: 2px solid rgba(0,0,0,.5);
@ -170,8 +186,6 @@ a {
left: 0;
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%);
display: table-cell;
vertical-align: center;
}
#overlay .text {

View file

@ -34,7 +34,7 @@ class Visualization {
var popup = new L.Popup({
autoPanPadding: [96, 96],
closeButton: false,
closeButton: true,
maxHeight: 250
});
this.oms.addListener('click', function (marker) {