Improve control styling for legacy IE versions
IE < 9 does not support RGBA transparency, so instead fall back to more readable alternatives where possible. Conflicts: css/ol.css
This commit is contained in:
+89
-14
@@ -1,17 +1,32 @@
|
|||||||
.ol-attribution {
|
.ol-attribution {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
color: #eeeeee;
|
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
background: rgba(0,60,136,0.3);
|
|
||||||
font-family: 'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;
|
font-family: 'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
}
|
}
|
||||||
.ol-attribution a {
|
.ol-attribution a {
|
||||||
color: white;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* rgba is not supported on IE <= 8, fall back to black text so that it's readable */
|
||||||
|
.ol-attribution {
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
.ol-attribution:not([ie8andbelow]) {
|
||||||
|
color: #eeeeee;
|
||||||
|
background: rgba(0,60,136,0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* white links are unreadable on IE <= 8 with no background, fall back to blue links */
|
||||||
|
.ol-attribution a {
|
||||||
|
color: #7b98bc;
|
||||||
|
}
|
||||||
|
.ol-attribution a:not([ie8andbelow]) {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
.ol-attribution ul {
|
.ol-attribution ul {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -32,20 +47,26 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.ol-full-screen {
|
.ol-full-screen {
|
||||||
background: rgba(255,255,255,0.4);
|
/* IE <= 8 doesn't support rgba, fall back to a light grey */
|
||||||
|
background: #eee;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 8px;
|
right: 8px;
|
||||||
top: 8px;
|
top: 8px;
|
||||||
}
|
}
|
||||||
|
.ol-full-screen:not([ie8andbelow]) {
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a light grey */
|
||||||
|
background: rgba(255,255,255,0.4);
|
||||||
|
}
|
||||||
@media print {
|
@media print {
|
||||||
.ol-full-screen {
|
.ol-full-screen {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ol-full-screen a {
|
.ol-full-screen a {
|
||||||
background: rgba(0,60,136,0.5);
|
/* IE <= 8 doesn't support rgba, fall back to a light blue */
|
||||||
|
background: #7b98bc;
|
||||||
color: white;
|
color: white;
|
||||||
display: block;
|
display: block;
|
||||||
font-family: 'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;
|
font-family: 'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;
|
||||||
@@ -59,6 +80,10 @@
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
width: 22px;
|
width: 22px;
|
||||||
}
|
}
|
||||||
|
.ol-full-screen a:not([ie8andbelow]) {
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a light blue */
|
||||||
|
background: rgba(0,60,136,0.5);
|
||||||
|
}
|
||||||
a.ol-full-screen-false:after {
|
a.ol-full-screen-false:after {
|
||||||
content: "\2194";
|
content: "\2194";
|
||||||
}
|
}
|
||||||
@@ -73,6 +98,11 @@ a.ol-full-screen-true:after {
|
|||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
.ol-full-screen a:hover {
|
.ol-full-screen a:hover {
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a light blue */
|
||||||
|
background: #4c6079;
|
||||||
|
}
|
||||||
|
.ol-full-screen a:hover:not([ie8andbelow]) {
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a light blue */
|
||||||
background: rgba(0,60,136,0.7);
|
background: rgba(0,60,136,0.7);
|
||||||
}
|
}
|
||||||
.ol-logo {
|
.ol-logo {
|
||||||
@@ -92,17 +122,22 @@ a.ol-full-screen-true:after {
|
|||||||
.ol-mouse-position {
|
.ol-mouse-position {
|
||||||
top: 8px;
|
top: 8px;
|
||||||
right: 8px;
|
right: 8px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ol-scale-line {
|
.ol-scale-line {
|
||||||
background: rgba(0,60,136,0.3);
|
/* IE <= 8 doesn't support rgba, fall back to a light blue */
|
||||||
|
background: #95b9e6;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
bottom: 8px;
|
bottom: 8px;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
.ol-scale-line:not([ie8andbelow]) {
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a light blue */
|
||||||
|
background: rgba(0,60,136,0.3);
|
||||||
|
}
|
||||||
.ol-scale-line-inner {
|
.ol-scale-line-inner {
|
||||||
border: 1px solid #eeeeee;
|
border: 1px solid #eeeeee;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
@@ -129,10 +164,15 @@ a.ol-full-screen-true:after {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 8px;
|
top: 8px;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
background: rgba(255,255,255,0.4);
|
/* IE <= 8 doesn't support rgba, fall back to a light grey */
|
||||||
|
background-color: #eee;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
}
|
}
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a light grey */
|
||||||
|
.ol-zoom:not([ie8andbelow]) {
|
||||||
|
background-color: rgba(255,255,255,0.4);
|
||||||
|
}
|
||||||
@media print {
|
@media print {
|
||||||
.ol-zoom {
|
.ol-zoom {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -152,7 +192,12 @@ a.ol-full-screen-true:after {
|
|||||||
height: 22px;
|
height: 22px;
|
||||||
width: 22px;
|
width: 22px;
|
||||||
line-height: 19px;
|
line-height: 19px;
|
||||||
background: rgba(0,60,136,0.5);
|
/* IE <= 8 doesn't support rgba, fall back to a light blue */
|
||||||
|
background-color: #7b98bc;
|
||||||
|
}
|
||||||
|
.ol-zoom a:not([ie8andbelow]) {
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a light blue */
|
||||||
|
background-color: rgba(0,60,136,0.5);
|
||||||
}
|
}
|
||||||
.ol-touch .ol-zoom a {
|
.ol-touch .ol-zoom a {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
@@ -163,7 +208,12 @@ a.ol-full-screen-true:after {
|
|||||||
.ol-zoom a:hover {
|
.ol-zoom a:hover {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background: rgba(0,60,136,0.7);
|
/* IE <= 8 doesn't support rgba, fall back to a lighter blue */
|
||||||
|
background-color: #4c6079;
|
||||||
|
}
|
||||||
|
.ol-zoom a:hover:not([ie8andbelow]) {
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a lighter blue */
|
||||||
|
background-color: rgba(0,60,136,0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ol-zoom-in {
|
.ol-zoom-in {
|
||||||
@@ -184,7 +234,8 @@ a.ol-full-screen-true:after {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 67px;
|
top: 67px;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
background: rgba(255, 255, 255, 0.4);
|
/* IE <= 8 doesn't support rgba, fall back to a light grey */
|
||||||
|
background: #eee;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
width: 28px;
|
width: 28px;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
@@ -193,26 +244,40 @@ a.ol-full-screen-true:after {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
.ol-zoomslider:not([ie8andbelow]) {
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a light grey */
|
||||||
|
background: rgba(255, 255, 255, 0.4);
|
||||||
|
}
|
||||||
.ol-zoomslider-thumb {
|
.ol-zoomslider-thumb {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 2px;
|
margin: 2px;
|
||||||
background: rgba(0,60,136,0.5);
|
/* IE <= 8 doesn't support rgba, fall back to a lighter blue */
|
||||||
|
background: #7b98bc;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
outline: none;
|
outline: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
width: 24px;
|
width: 24px;
|
||||||
}
|
}
|
||||||
|
.ol-zoomslider-thumb:not([ie8andbelow]) {
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a lighter blue */
|
||||||
|
background: rgba(0,60,136,0.5);
|
||||||
|
}
|
||||||
.ol-zoom-extent {
|
.ol-zoom-extent {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: rgba(255,255,255,0.4);
|
/* IE <= 8 doesn't support rgba, fall back to a light grey */
|
||||||
|
background: #eee;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
top: 65px;
|
top: 65px;
|
||||||
}
|
}
|
||||||
|
.ol-zoom-extent:not([ie8andbelow]) {
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a light grey */
|
||||||
|
background: rgba(255,255,255,0.4);
|
||||||
|
}
|
||||||
@media print {
|
@media print {
|
||||||
.ol-zoom-extent {
|
.ol-zoom-extent {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -230,9 +295,14 @@ a.ol-full-screen-true:after {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
width: 22px;
|
width: 22px;
|
||||||
background-color: rgba(0, 60, 136, 0.5);
|
/* IE <= 8 doesn't support rgba, fall back to a lighter blue */
|
||||||
|
background-color: #7b98bc;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
.ol-zoom-extent a:not([ie8andbelow]) {
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a lighter blue */
|
||||||
|
background-color: rgba(0, 60, 136, 0.5);
|
||||||
|
}
|
||||||
.ol-touch .ol-zoom-extent a {
|
.ol-touch .ol-zoom-extent a {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
@@ -240,6 +310,11 @@ a.ol-full-screen-true:after {
|
|||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
}
|
}
|
||||||
.ol-zoom-extent a:hover {
|
.ol-zoom-extent a:hover {
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a lighter blue */
|
||||||
|
background-color: #4c6079;
|
||||||
|
}
|
||||||
|
.ol-zoom-extent a:hover:not([ie8andbelow]) {
|
||||||
|
/* IE <= 8 doesn't support rgba, fall back to a lighter blue */
|
||||||
background-color: rgba(0, 60, 136, 0.7);
|
background-color: rgba(0, 60, 136, 0.7);
|
||||||
}
|
}
|
||||||
.ol-zoom-extent a:after {
|
.ol-zoom-extent a:after {
|
||||||
|
|||||||
Reference in New Issue
Block a user