Post trek update: recentering map + style minor changes

This commit is contained in:
2016-06-09 23:11:10 +02:00
parent 4d480a6bca
commit 68d7711186
4 changed files with 52 additions and 3130 deletions

View File

@@ -38,15 +38,17 @@ oSpot.pageInit = function(asHash)
}); });
//Centering map on last message //Centering map on last message
var oLastMsg = oMessages[oMessages.length-1]; //var oLastMsg = oMessages[oMessages.length-1];
var $Map = $("#map").gmap3( var $Map = $("#map").gmap3(
{ {
map: map:
{ {
options: options:
{ {
center:{lat:oLastMsg.latitude, lng:oLastMsg.longitude}, //center:{lat:oLastMsg.latitude, lng:oLastMsg.longitude},
zoom:12, //zoom:12,
center:{lat:-43.5, lng:171.5},
zoom:6,
mapTypeId:google.maps.MapTypeId.HYBRID, mapTypeId:google.maps.MapTypeId.HYBRID,
scaleControl:true scaleControl:true
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -74,54 +74,55 @@
.signature { .signature {
margin:0.5em 0 0 0; margin:0.5em 0 0 0;
text-align: right; text-align: right;
font-style: italic;
} }
} .header {
padding: 0.5em 1em;
font-style: italic;
font-size:0.8em;
text-align:right;
.header { .index {
padding: 0.5em 1em; float:left;
font-style: italic; font-style: normal;
font-size:0.8em; }
text-align:right;
.index { .time {
float:left; cursor:default;
font-style: normal; }
} }
} .body {
padding: 0em 1em 0.5em;
.body {
padding: 0em 1em 0.5em;
}
.post.picture {
background:#F3EC9F;
color:#635C28;
a {
display:inline-block;
line-height:0;
margin:0;
} }
&.picture {
background:#F3EC9F;
color:#635C28;
img { a {
width:100%; display:inline-block;
image-orientation:from-image; line-height:0;
border: 1px solid white; margin:0;
outline:none; }
img {
width:100%;
image-orientation:from-image;
border: 1px solid white;
outline:none;
}
} }
&.message {
background: #6DFF58;
color:#326526;
} p {
.post.message { font-size:0.9em;
background: #6DFF58; margin:0.5em 0;
color:#326526; }
p { p:first-child {
font-size:0.9em; margin-top:1em;
margin:0.5em 0; }
}
p:first-child {
margin-top:1em;
} }
} }