kopia lustrzana https://github.com/robhawkes/vizicities
Fixed default attribution styling
rodzic
8f0c1cbfec
commit
45183f29c4
|
@ -1,10 +1,4 @@
|
|||
/* Extending defaults from Attribution.js */
|
||||
.ui-attribution {
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
border-radius: 3px 0 0;
|
||||
padding: 3px 5px;
|
||||
}
|
||||
|
||||
.ui-attribution a {
|
||||
color: #222;
|
||||
text-decoration: none;
|
||||
|
|
|
@ -45,6 +45,10 @@
|
|||
|
||||
attributionDOM.innerHTML = "<a href='https://www.openstreetmap.org/copyright'>Data © OpenStreetMap contributors</a> | <a href='http://github.com/robhawkes/vizicities'>Powered by ViziCities</a>";
|
||||
|
||||
attributionDOM.style.background = "rgba(255, 255, 255, 0.6)";
|
||||
attributionDOM.style.borderRadius = "3px 0 0";
|
||||
attributionDOM.style.padding = "3px 5px";
|
||||
|
||||
this.domContainer.appendChild(attributionDOM);
|
||||
|
||||
return attributionDOM;
|
||||
|
|
Ładowanie…
Reference in New Issue