Skip to content

Commit

Permalink
Reduce font size in print
Browse files Browse the repository at this point in the history
  • Loading branch information
damithc committed Nov 30, 2023
1 parent bf0d018 commit 5a0fd85
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,36 @@ mark {
#page-nav {
display: none;
}

footer {
display: none;
}

/* Reduce font size when printing */
h1 {
font-size: 1.2rem !important;
}
h2 {
font-size: 1.0rem !important;
}
h3 {
font-size: 0.9rem !important;
}
h4 {
font-size: 0.8rem !important;
}
h5 {
font-size: 0.7rem !important;
}
body {
font-size: 0.65rem !important;
}
.btn {
font-size: 0.65rem !important;
}
img {
zoom: 0.8; /* might not work on some browsers */
}
}
/* ------------------- site-specific styles -------------------- */

Expand Down

0 comments on commit 5a0fd85

Please sign in to comment.