From 4d46f030651cc470cc173f4878aae042d8ac6892 Mon Sep 17 00:00:00 2001 From: Mourner Date: Thu, 16 Jun 2011 15:02:42 +0300 Subject: [PATCH] CSS cleanup (thanks to CSSLint) --- dist/leaflet.css | 29 +++++++++++++++++------------ dist/leaflet.ie.css | 4 ++++ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/dist/leaflet.css b/dist/leaflet.css index 40235dc3..b47c502d 100644 --- a/dist/leaflet.css +++ b/dist/leaflet.css @@ -25,6 +25,7 @@ .leaflet-marker-shadow { -moz-user-select: none; -webkit-user-select: none; + user-select: none; } .leaflet-marker-icon, .leaflet-marker-shadow { @@ -81,7 +82,6 @@ .leaflet-control { float: left; clear: both; - display: inline; } .leaflet-right .leaflet-control { float: right; @@ -103,9 +103,9 @@ padding: 5px; background: rgba(0, 0, 0, 0.25); - border-radius: 7px; -moz-border-radius: 7px; -webkit-border-radius: 7px; + border-radius: 7px; } .leaflet-control-zoom a { display: block; @@ -115,9 +115,9 @@ background-repeat: no-repeat; background-color: rgba(255, 255, 255, 0.75); - border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; + border-radius: 4px; } .leaflet-control-zoom a:hover { background-color: #fff; @@ -143,6 +143,8 @@ 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; } @@ -156,20 +158,22 @@ -moz-transition: opacity 0.2s linear; -o-transition: opacity 0.2s linear; transition: opacity 0.2s linear; -} + } .leaflet-fade-anim .leaflet-tile-loaded { opacity: 1; -} + } .leaflet-fade-anim .leaflet-popup { + opacity: 0; + -webkit-transition: opacity 0.2s linear; -moz-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 { opacity: 1; -} + } .leaflet-zoom-anim .leaflet-tile { -webkit-transition: none; @@ -215,15 +219,15 @@ -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); + transform: rotate(45deg); } .leaflet-popup-close-button { position: absolute; top: 9px; right: 9px; - width: 8px; - height: 8px; - padding: 1px; + width: 10px; + height: 10px; overflow: hidden; } @@ -247,8 +251,9 @@ } .leaflet-popup-content-wrapper, .leaflet-popup-tip { background: white; + 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; } .leaflet-popup-content-wrapper { diff --git a/dist/leaflet.ie.css b/dist/leaflet.ie.css index 9accbe84..141a16f5 100644 --- a/dist/leaflet.ie.css +++ b/dist/leaflet.ie.css @@ -11,6 +11,10 @@ display: inline-block; position: absolute; } + +.leaflet-control { + display: inline; + } .leaflet-popup-tip { width: 21px;