Norkart / Leaflet-MiniMap

A minimap control plugin for Leaflet
BSD 2-Clause "Simplified" License
395 stars 125 forks source link

CSS feedback #112

Open seyfro opened 8 years ago

seyfro commented 8 years ago

Hi Rob,

I would suggest changing the following CSS definition from

.leaflet-control-minimap {
    border:solid rgba(255, 255, 255, 1.0) 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    border-radius: 3px;
    background: #f8f8f9;
    transition: all .6s;
}

to

.leaflet-control-minimap {
    border:solid rgba(255, 255, 255, 1.0) 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    border-radius: 3px;
    background: #f8f8f9;
    transition: all .6s;
    box-sizing:unset;
}

Several users reported issues with minimap icon not being displayed correctly as their theme´s CSS was overriding the minimap CSS, see the following example: before

Add box-sizing:unset; as stated above, fixes this issue: after best,

Robert