Skip to content

Commit

Permalink
print stylesheet for modals
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed May 27, 2022
1 parent bb04224 commit a39af54
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/stylesheets/print.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions public/stylesheets/print.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@media print {
html.is-clipped {
overflow: visible !important;

main,
.navbar,
.modal-card-head,
footer {
display: none;
}

.modal {
position: static;
display: block;
overflow: auto;
}

.modal-card {
display: block;
max-height: none;
margin: 0;
overflow: auto;
}

a {
color: #000;
text-decoration: underline;
}
}
}
1 change: 1 addition & 0 deletions views/_headTags.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed&display=swap" rel="stylesheet">

<link rel="stylesheet" href="<%= urlPrefix %>/stylesheets/style.min.css" />
<link rel="stylesheet" href="<%= urlPrefix %>/stylesheets/print.min.css" media="print" />
<link rel="stylesheet" href="<%= urlPrefix %>/lib/fa5/css/all.min.css" />

<link rel="apple-touch-icon" sizes="180x180" href="<%= urlPrefix %>/apple-touch-icon.png">
Expand Down

0 comments on commit a39af54

Please sign in to comment.