Skip to content

Commit

Permalink
Merge pull request #4184 from AntonKhorev/print
Browse files Browse the repository at this point in the history
Show sidebar in print media
  • Loading branch information
gravitystorm authored Sep 27, 2023
2 parents e8af4b8 + 00f5c75 commit 228ab23
Showing 1 changed file with 41 additions and 13 deletions.
54 changes: 41 additions & 13 deletions app/assets/stylesheets/print.scss
Original file line number Diff line number Diff line change
@@ -1,30 +1,58 @@
html {
height: 100%;
}

body {
height: 100%;
margin: 0;
}

#content {
height: 100%;
}

header,
#sidebar,
#permalink,
.leaflet-control {
display: none;
}

html {
height: 100%;
.map-layout .overlay-sidebar #sidebar {
display: none;
}

.map-layout #sidebar {
page-break-after: always;

& > * {
display: none;
}
#sidebar_content {
display: unset;
}

button,
input,
textarea,
.secondary-actions {
display: none;
}
}

#map-ui {
display: none !important;
}

#map {
position: absolute !important;
top: 0;
bottom: 40px;
left: 0;
right: 0;
position: relative;
height: calc(100% - 40px);
box-sizing: border-box;
border: 1px solid black;
}

/* Rules for attribution text under the main map shown on printouts */

#attribution {
position: absolute !important;
bottom: 0;
left: 0;
right: 0;
page-break-inside: avoid;
height: 40px;
font-size: 12px;
text-align: center;
Expand Down

0 comments on commit 228ab23

Please sign in to comment.