From a835d3328deea93b05803d95d34e0c66618dc9c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Thu, 30 Sep 2021 00:16:12 +0300 Subject: Template and CSS improvements * Improvements to weblog.html and base.html to not show on the indeces pages without dates, i.e. making them hidden drafts. * media print rule to be able to comfortably print articles. --- sass/css/yaroslavps.scss | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) (limited to 'sass/css') diff --git a/sass/css/yaroslavps.scss b/sass/css/yaroslavps.scss index 723d3a5..1017f79 100644 --- a/sass/css/yaroslavps.scss +++ b/sass/css/yaroslavps.scss @@ -273,3 +273,49 @@ h2 > span.publish-date { background-color: #00000000; } } + +@media print { + html, + body, + .main-container { + background-image: none; + background-color: #fff; + } + + h1, + h2, + h3, + h4, + h5, + h6, + ul, + ol, + li, + p, + a[href], + sup, + sub { + color: #000; + font-family: $font_serif; + } + + a[href] { + text-decoration: none; + } + + .sidebar-container { + display: none; + } + + .header-container, + .content-container { + grid-column-start: 1; + grid-column-end: 3; + } + + .publish-date, + pre, + code { + color: #777; + } +} -- cgit v1.2.3