From d3c389ccc5de02f226760ac9247d346fed70c526 Mon Sep 17 00:00:00 2001 From: Paul DeBruicker Date: Thu, 25 Jun 2020 07:43:12 -0700 Subject: [PATCH 1/4] add print css. hides the sidebar, keeps the logo --- _sass/utilities/_print.scss | 12 ++++++++++++ _sass/utilities/utilities.scss | 1 + 2 files changed, 13 insertions(+) create mode 100644 _sass/utilities/_print.scss diff --git a/_sass/utilities/_print.scss b/_sass/utilities/_print.scss new file mode 100644 index 0000000..49c7d55 --- /dev/null +++ b/_sass/utilities/_print.scss @@ -0,0 +1,12 @@ +@media print{ + .side-bar{ + width: 100%; + height: auto; + .main-nav, footer{ + display: none; + } + } + .main-content{ + margin-left: 20px; + } +} diff --git a/_sass/utilities/utilities.scss b/_sass/utilities/utilities.scss index 6c25bdf..921bb57 100644 --- a/_sass/utilities/utilities.scss +++ b/_sass/utilities/utilities.scss @@ -3,3 +3,4 @@ @import "./typography"; @import "./lists"; @import "./spacing"; +@import "./print"; From 871522465514eb36d01e7f02ac707d8aa7cf1c51 Mon Sep 17 00:00:00 2001 From: Patrick Marsceill Date: Fri, 26 Jun 2020 15:33:03 -0400 Subject: [PATCH 2/4] Add IDs to target print styles --- _layouts/default.html | 4 ++-- _sass/print.scss | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 _sass/print.scss diff --git a/_layouts/default.html b/_layouts/default.html index 1c0b215..1d41a71 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -123,7 +123,7 @@ layout: table_wrappers