0

Styling for the worldselector control

This commit is contained in:
Andrew Chin
2012-04-07 17:56:30 -04:00
parent 94b5f21d10
commit f4d43d544a
2 changed files with 13 additions and 0 deletions

View File

@@ -47,6 +47,8 @@ overviewer.views.WorldView = Backbone.View.extend({
overviewer.views.WorldSelectorView = Backbone.View.extend({ overviewer.views.WorldSelectorView = Backbone.View.extend({
initialize: function() { initialize: function() {
if(overviewer.collections.worldViews.length > 1) { if(overviewer.collections.worldViews.length > 1) {
$(this.el).addClass("customControl");
// a div will have already been created for us, we just // a div will have already been created for us, we just
// need to register it with the google maps control // need to register it with the google maps control
var selectBox = document.createElement('select'); var selectBox = document.createElement('select');

View File

@@ -40,6 +40,17 @@ body {
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
} }
.customControl > select {
font-size: 12px;
line-height: 160%;
text-align: center;
border: 1px solid #A9BBDF;
border-radius: 2px 2px;
box-shadow: rgba(0, 0, 0, 0.347656) 2px 2px 3px;
}
.customControl > div.top { .customControl > div.top {
font-size: 12px; font-size: 12px;
line-height: 160%; line-height: 160%;