mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-02-17 20:31:37 +01:00
Make compass rose smaller on mobile device browsers
This commit is contained in:
parent
dc2dc578e9
commit
4992e92aab
@ -669,6 +669,14 @@
|
|||||||
background-image: url(../images/compass_W.png);
|
background-image: url(../images/compass_W.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mobilecompass {
|
||||||
|
top: 5px;
|
||||||
|
right: 10px;
|
||||||
|
height: 42px;
|
||||||
|
width: 42px;
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
/*******************
|
/*******************
|
||||||
* Chat
|
* Chat
|
||||||
*/
|
*/
|
||||||
|
@ -306,10 +306,11 @@ DynMap.prototype = {
|
|||||||
updateHeight();
|
updateHeight();
|
||||||
});
|
});
|
||||||
// The Compass
|
// The Compass
|
||||||
var compass = $('<div/>')
|
var compass = $('<div/>').
|
||||||
.addClass('compass')
|
addClass('compass');
|
||||||
.appendTo(container);
|
if(L.Browser.mobile)
|
||||||
|
compass.addClass('mobilecompass');
|
||||||
|
compass.appendTo(container);
|
||||||
// TODO: Enable hash-links.
|
// TODO: Enable hash-links.
|
||||||
/*
|
/*
|
||||||
var link;
|
var link;
|
||||||
|
Loading…
Reference in New Issue
Block a user