From 548be24b48d7ec311b5a4d8797f9e5f39258ae20 Mon Sep 17 00:00:00 2001 From: kamataryo <6292312+kamataryo@users.noreply.github.com> Date: Wed, 11 Oct 2023 16:48:56 +0900 Subject: [PATCH] Add @media print CSS to remove unnecessary html element close #384 --- src/lib/CustomAttributionControl.ts | 6 ++++++ src/style.css | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/lib/CustomAttributionControl.ts b/src/lib/CustomAttributionControl.ts index 0e9e5dc5..43a0f0ed 100644 --- a/src/lib/CustomAttributionControl.ts +++ b/src/lib/CustomAttributionControl.ts @@ -190,6 +190,12 @@ class CustomAttributionControl implements IControl { } } + @media print { + .maplibregl-ctrl-attrib-button { + display: none!important; + } + } + .maplibregl-ctrl-attrib a { color: rgba(0,0,0,.75); text-decoration: none; diff --git a/src/style.css b/src/style.css index 307c7bae..3e288fb2 100644 --- a/src/style.css +++ b/src/style.css @@ -129,3 +129,9 @@ display: block!important; } /* End: CSS for Attribution */ + +@media print { + .maplibregl-control-container button { + display: none; + } +}