CSS cleanup (thanks to CSSLint)

This commit is contained in:
Mourner 2011-06-16 15:02:42 +03:00
parent 233e63af53
commit 4d46f03065
2 changed files with 21 additions and 12 deletions

27
dist/leaflet.css vendored
View File

@ -25,6 +25,7 @@
.leaflet-marker-shadow { .leaflet-marker-shadow {
-moz-user-select: none; -moz-user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
user-select: none;
} }
.leaflet-marker-icon, .leaflet-marker-icon,
.leaflet-marker-shadow { .leaflet-marker-shadow {
@ -81,7 +82,6 @@
.leaflet-control { .leaflet-control {
float: left; float: left;
clear: both; clear: both;
display: inline;
} }
.leaflet-right .leaflet-control { .leaflet-right .leaflet-control {
float: right; float: right;
@ -103,9 +103,9 @@
padding: 5px; padding: 5px;
background: rgba(0, 0, 0, 0.25); background: rgba(0, 0, 0, 0.25);
border-radius: 7px;
-moz-border-radius: 7px; -moz-border-radius: 7px;
-webkit-border-radius: 7px; -webkit-border-radius: 7px;
border-radius: 7px;
} }
.leaflet-control-zoom a { .leaflet-control-zoom a {
display: block; display: block;
@ -115,9 +115,9 @@
background-repeat: no-repeat; background-repeat: no-repeat;
background-color: rgba(255, 255, 255, 0.75); background-color: rgba(255, 255, 255, 0.75);
border-radius: 4px;
-moz-border-radius: 4px; -moz-border-radius: 4px;
-webkit-border-radius: 4px; -webkit-border-radius: 4px;
border-radius: 4px;
} }
.leaflet-control-zoom a:hover { .leaflet-control-zoom a:hover {
background-color: #fff; background-color: #fff;
@ -143,6 +143,8 @@
background-color: rgba(255, 255, 255, 0.7); background-color: rgba(255, 255, 255, 0.7);
-moz-box-shadow: 0 0 7px #ccc;
-webkit-box-shadow: 0 0 7px #ccc;
box-shadow: 0 0 7px #ccc; box-shadow: 0 0 7px #ccc;
} }
@ -156,20 +158,22 @@
-moz-transition: opacity 0.2s linear; -moz-transition: opacity 0.2s linear;
-o-transition: opacity 0.2s linear; -o-transition: opacity 0.2s linear;
transition: opacity 0.2s linear; transition: opacity 0.2s linear;
} }
.leaflet-fade-anim .leaflet-tile-loaded { .leaflet-fade-anim .leaflet-tile-loaded {
opacity: 1; opacity: 1;
} }
.leaflet-fade-anim .leaflet-popup { .leaflet-fade-anim .leaflet-popup {
opacity: 0;
-webkit-transition: opacity 0.2s linear; -webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear; -moz-transition: opacity 0.2s linear;
-o-transition: opacity 0.2s linear; -o-transition: opacity 0.2s linear;
opacity: 0; transition: opacity 0.2s linear;
} }
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup { .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
opacity: 1; opacity: 1;
} }
.leaflet-zoom-anim .leaflet-tile { .leaflet-zoom-anim .leaflet-tile {
-webkit-transition: none; -webkit-transition: none;
@ -215,15 +219,15 @@
-webkit-transform: rotate(45deg); -webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg); -ms-transform: rotate(45deg);
-o-transform: rotate(45deg); -o-transform: rotate(45deg);
transform: rotate(45deg);
} }
.leaflet-popup-close-button { .leaflet-popup-close-button {
position: absolute; position: absolute;
top: 9px; top: 9px;
right: 9px; right: 9px;
width: 8px; width: 10px;
height: 8px; height: 10px;
padding: 1px;
overflow: hidden; overflow: hidden;
} }
@ -247,6 +251,7 @@
} }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { .leaflet-popup-content-wrapper, .leaflet-popup-tip {
background: white; background: white;
box-shadow: 0 1px 10px #888; box-shadow: 0 1px 10px #888;
-moz-box-shadow: 0 1px 10px #888; -moz-box-shadow: 0 1px 10px #888;
-webkit-box-shadow: 0 1px 14px #999; -webkit-box-shadow: 0 1px 14px #999;

4
dist/leaflet.ie.css vendored
View File

@ -12,6 +12,10 @@
position: absolute; position: absolute;
} }
.leaflet-control {
display: inline;
}
.leaflet-popup-tip { .leaflet-popup-tip {
width: 21px; width: 21px;
_width: 27px; _width: 27px;