Make IE sane

This commit is contained in:
Mike Primm 2011-08-01 23:21:36 -05:00
parent 37c9d4b9cd
commit 0bbcf6510e
8 changed files with 24 additions and 21 deletions

View File

@ -11,25 +11,6 @@
margin-right: 20px !important;
}
/*******************
* Leaflet overrides
*/
.leaflet-control-zoom-in {
background-image: url(../images/zoom-in.png);
}
.leaflet-control-zoom-out {
background-image: url(../images/zoom-out.png);
}
.leaflet-control-layers a {
background-image: url(../images/layers.png);
}
.leaflet-popup-close-button {
background: white url(../images/popup-close.png);
}
/*******************
* Page setup
*/
@ -54,6 +35,22 @@
font-weight: bold;
}
.leaflet-control-zoom-in {
background-color: #eee;
}
.leaflet-control-zoom-out {
background-color: #eee;
}
.leaflet-control-zoom-in:hover {
background-color: #fff;
}
.leaflet-control-zoom-out:hover {
background-color: #fff;
}
/*******************
* Map Setup
@ -239,6 +236,7 @@
.dynmap .panel .clock {
display: inline-block;
height: 16px;
z-index:50;
font-weight: bold;
background-repeat: no-repeat;
@ -287,6 +285,7 @@
width: 150px;
height: 60px;
background: rgba(0,0,0,0.6);
z-index:50;
margin: auto;
}
@ -534,6 +533,7 @@
position: absolute;
top: 0px;
left: 34px;
z-index:20;
white-space: nowrap;
@ -665,6 +665,7 @@
position: absolute;
bottom: 0px;
left: 14px;
z-index:50;
border-color: rgba(0,0,0,0.5);
background: rgba(0,0,0,0.6);
@ -685,10 +686,11 @@
outline: none;
color: #fff;
background-color: #000000;
border: 0px;
background: rgba(0, 0, 0, 0.6);
background: url(../images/chat_cursor.png) rgba(0,0,0,0.6);
background-image: url(../images/chat_cursor.png);
background-repeat: no-repeat;
background-position: 1px center;

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 963 B

After

Width:  |  Height:  |  Size: 963 B

View File

Before

Width:  |  Height:  |  Size: 959 B

After

Width:  |  Height:  |  Size: 959 B

View File

@ -179,7 +179,8 @@ function loadjs(url, completed) {
// Hack for IE, don't know whether this still applies to IE9.
script.onreadystatechange = function() {
script.onload();
if (script.readyState == 'loaded' || script.readyState == 'complete')
script.onload();
};
(document.head || document.getElementsByTagName('head')[0]).appendChild(script);
}