From a9f995eb1dd9d98af1e1380ab70e452f7cf0f9de Mon Sep 17 00:00:00 2001 From: vimux Date: Mon, 9 Dec 2019 09:23:51 -0500 Subject: [PATCH] Add a separate file for print styles --- assets/css/main.css | 41 ------------------------------------ assets/css/print.css | 40 +++++++++++++++++++++++++++++++++++ layouts/_default/baseof.html | 3 ++- 3 files changed, 42 insertions(+), 42 deletions(-) create mode 100644 assets/css/print.css diff --git a/assets/css/main.css b/assets/css/main.css index 5f72bcb..4578265 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -702,44 +702,3 @@ button:not(:-moz-focusring):focus > .main-nav__btn-box { margin: .3125rem .3125rem 0; } } - -/* Print */ -@media print { - .post__content a, - .post__meta a, - .post__tag { - color: #000; - text-decoration: underline; - } - - .logo, - .block, - .post__title, - .post__title-link, - .meta-categories__link, - .post__meta, - .post__content { - color: #000; - } - - .main-nav, - .comments, - .post__toc, - .related, - .footer__copyright-credits { - display: none; - } - - .header, - .block { - border: 0; - } - - mark { - background-color: #25a; - } - - blockquote { - border-color: #000; - } -} diff --git a/assets/css/print.css b/assets/css/print.css new file mode 100644 index 0000000..3fffa17 --- /dev/null +++ b/assets/css/print.css @@ -0,0 +1,40 @@ +/* Print */ +@media print { + .post__content a, + .post__meta a, + .post__tag { + color: #000; + text-decoration: underline; + } + + .logo, + .block, + .post__title, + .post__title-link, + .meta-categories__link, + .post__meta, + .post__content { + color: #000; + } + + .main-nav, + .comments, + .post__toc, + .related, + .footer__copyright-credits { + display: none; + } + + .header, + .block { + border: 0; + } + + mark { + background-color: #25a; + } + + blockquote { + border-color: #000; + } +} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a00a20f..232ac80 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -16,7 +16,8 @@ {{- end }} {{- $cssReboot := resources.Get "css/reboot.css" }} {{- $cssMain := resources.Get "css/main.css" }} - {{- $style := slice $cssReboot $cssMain | resources.Concat "css/bundle.css" }} + {{- $cssPrint := resources.Get "css/print.css" }} + {{- $style := slice $cssReboot $cssMain $cssPrint | resources.Concat "css/bundle.css" }} {{- range .Site.Params.customCSS }}