From 544d37759157f59f5dbc8e4e1301c30340c0a176 Mon Sep 17 00:00:00 2001 From: ryanhamley Date: Tue, 9 Oct 2018 14:33:57 -0700 Subject: [PATCH] Show compact attribution on IE11 --- src/css/mapbox-gl.css | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/css/mapbox-gl.css b/src/css/mapbox-gl.css index 98dbd96017f..03d57dd22cd 100644 --- a/src/css/mapbox-gl.css +++ b/src/css/mapbox-gl.css @@ -217,20 +217,25 @@ a.mapboxgl-ctrl-logo.mapboxgl-compact { @media screen { .mapboxgl-ctrl-attrib.mapboxgl-compact { - padding-top: 2px; - padding-bottom: 2px; margin: 0 10px 10px; position: relative; - padding-right: 24px; background-color: #fff; border-radius: 3px 12px 12px 3px; - visibility: hidden; } .mapboxgl-ctrl-attrib.mapboxgl-compact:hover { + padding: 2px 24px 2px 4px; visibility: visible; } + .mapboxgl-ctrl-attrib.mapboxgl-compact > a { + display: none; + } + + .mapboxgl-ctrl-attrib.mapboxgl-compact:hover > a { + display: inline; + } + .mapboxgl-ctrl-attrib.mapboxgl-compact::after { content: ''; cursor: pointer; @@ -242,7 +247,6 @@ a.mapboxgl-ctrl-logo.mapboxgl-compact { width: 24px; height: 24px; box-sizing: border-box; - visibility: visible; border-radius: 12px; } }