Reuse styles for map-ui panel
This commit is contained in:
parent
9172695f7f
commit
e96a64ca9c
6 changed files with 29 additions and 14 deletions
|
@ -123,6 +123,7 @@ function getShortUrl(map) {
|
|||
function getUrl(map) {
|
||||
var center = map.getCenter(),
|
||||
zoom = map.getZoom();
|
||||
|
||||
return (window.location.hostname.match(/^www\.openstreetmap\.org/i) ?
|
||||
'http://openstreetmap.org/?' : '/?') +
|
||||
querystring.stringify({
|
||||
|
|
|
@ -16,9 +16,11 @@ L.OSM.key = function (options) {
|
|||
var $ui = $('<div>')
|
||||
.attr('class', 'layers-ui');
|
||||
|
||||
$('<h2>')
|
||||
.text(I18n.t('javascripts.key.title'))
|
||||
.appendTo($ui);
|
||||
$('<section>')
|
||||
.appendTo($ui)
|
||||
.append(
|
||||
$('<h2>')
|
||||
.text(I18n.t('javascripts.key.title')));
|
||||
|
||||
var $section = $('<section>')
|
||||
.appendTo($ui);
|
||||
|
|
|
@ -18,9 +18,11 @@ L.OSM.layers = function(options) {
|
|||
var $ui = $('<div>')
|
||||
.attr('class', 'layers-ui');
|
||||
|
||||
$('<h2>')
|
||||
.text(I18n.t('javascripts.map.layers.header'))
|
||||
.appendTo($ui);
|
||||
$('<section>')
|
||||
.appendTo($ui)
|
||||
.append(
|
||||
$('<h2>')
|
||||
.text(I18n.t('javascripts.map.layers.header')));
|
||||
|
||||
if (OSM.STATUS != 'api_offline' && OSM.STATUS != 'database_offline') {
|
||||
var overlaySection = $('<section>')
|
||||
|
|
|
@ -16,11 +16,13 @@ L.OSM.share = function (options) {
|
|||
var $ui = $('<div>')
|
||||
.attr('class', 'share-ui');
|
||||
|
||||
$('<h2>')
|
||||
.text(I18n.t('javascripts.share.title'))
|
||||
.appendTo($ui);
|
||||
$('<section>')
|
||||
.appendTo($ui)
|
||||
.append(
|
||||
$('<h2>')
|
||||
.text(I18n.t('javascripts.share.title')));
|
||||
|
||||
var $share_link = $('<div></div>')
|
||||
var $share_link = $('<section></section>')
|
||||
.appendTo($ui);
|
||||
|
||||
var $title = $('<h3></h3>')
|
||||
|
|
|
@ -22,7 +22,7 @@ L.OSM.sidebar = function(selector) {
|
|||
current = $();
|
||||
} else {
|
||||
$(sidebar).show();
|
||||
controlContainer.css({paddingRight: '200px'});
|
||||
controlContainer.css({paddingRight: '250px'});
|
||||
current = pane;
|
||||
}
|
||||
|
||||
|
|
|
@ -584,17 +584,26 @@ a.donate {
|
|||
position: absolute;
|
||||
display: none;
|
||||
right: 0;
|
||||
width: 200px;
|
||||
width: 250px;
|
||||
height: 100%;
|
||||
background: white;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.layers-ui {
|
||||
#map-ui {
|
||||
section {
|
||||
border-top: 1px solid #868e85;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
section:first-child {
|
||||
border-top:0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin:0;
|
||||
}
|
||||
|
||||
li {
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
|
@ -764,7 +773,6 @@ a.donate {
|
|||
/* Rules for the map key which appears in the popout sidebar */
|
||||
|
||||
#mapkey {
|
||||
padding: $lineheight $lineheight 0 $lineheight;
|
||||
.mapkey-table-key img {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue