From c5eb80e610d9c9a6cc085cd76f49e6a76675f776 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 9 Oct 2019 14:19:24 +0200 Subject: [PATCH 1/3] Remove font sizing from the attribution control --- src/ol/ol.css | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ol/ol.css b/src/ol/ol.css index 039e25c1a8..36845ba789 100644 --- a/src/ol/ol.css +++ b/src/ol/ol.css @@ -182,15 +182,12 @@ .ol-attribution ul { margin: 0; padding: 0 .5em; - font-size: .7rem; - line-height: 1.375em; color: #000; text-shadow: 0 0 2px #fff; } .ol-attribution li { display: inline; list-style: none; - line-height: inherit; } .ol-attribution li:not(:last-child):after { content: " "; @@ -213,8 +210,6 @@ bottom: 0; right: 0; border-radius: 4px 0 0; - height: 1.1em; - line-height: 1em; } .ol-attribution.ol-uncollapsible img { margin-top: -.2em; From 97ded06ee466b097fe65a8162de15feda94e5baa Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 9 Oct 2019 16:48:19 +0200 Subject: [PATCH 2/3] Remove attribution control custom style in examples --- examples/resources/layout.css | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/examples/resources/layout.css b/examples/resources/layout.css index a1873a1222..6ceca474fc 100644 --- a/examples/resources/layout.css +++ b/examples/resources/layout.css @@ -71,16 +71,8 @@ ol.inline>li { background: url(map-background.jpg) repeat; margin-bottom: 10px; } -.ol-attribution.ol-logo-only, -.ol-attribution.ol-uncollapsible { - max-width: calc(100% - 3em); - height: 1.5em; -} .ol-attribution ul { - font-size: 1rem; -} -.ol-control button, .ol-attribution, .ol-scale-line-inner { - font-family: 'Lucida Grande',Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif; + font-size: 14px; } .iframe-info iframe { width: 100%; From a126702e95d43b6f770709304e0d6ce5e4808642 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 14 Oct 2019 09:24:18 +0200 Subject: [PATCH 3/3] Add back max-width for the attribution control in examples --- examples/resources/layout.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/resources/layout.css b/examples/resources/layout.css index 6ceca474fc..9fa3d8d461 100644 --- a/examples/resources/layout.css +++ b/examples/resources/layout.css @@ -71,6 +71,10 @@ ol.inline>li { background: url(map-background.jpg) repeat; margin-bottom: 10px; } +.ol-attribution.ol-logo-only, +.ol-attribution.ol-uncollapsible { + max-width: calc(100% - 3em); +} .ol-attribution ul { font-size: 14px; }