From: Anton Khorev Date: Fri, 28 Jul 2023 18:24:52 +0000 (+0300) Subject: Move map attribution print styles to print.scss X-Git-Tag: live~1124^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6fca88ab16d7e762fed34f8cb0e8d0577991d79f Move map attribution print styles to print.scss --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 19cc8e5be..14f7d5fbc 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -642,19 +642,6 @@ body.small-nav { #attribution { display: none; - - table { - width: 100% - } -} - -.attribution_license, -.attribution_project { - text-align: left; -} - -.attribution_notice { - text-align: center; } .donate-attr { color: darken($green, 10%) !important; } diff --git a/app/assets/stylesheets/print.scss b/app/assets/stylesheets/print.scss index fa04314b1..71fdf3978 100644 --- a/app/assets/stylesheets/print.scss +++ b/app/assets/stylesheets/print.scss @@ -18,6 +18,8 @@ html { border: 1px solid black; } +/* Rules for attribution text under the main map shown on printouts */ + #attribution { position: absolute !important; bottom: 0; @@ -26,4 +28,17 @@ html { height: 40px; font-size: 12px; text-align: center; + + table { + width: 100% + } +} + +.attribution_license, +.attribution_project { + text-align: left; +} + +.attribution_notice { + text-align: center; }