aboutsummaryrefslogtreecommitdiff
path: root/sass
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-09-30 00:16:12 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-09-30 00:16:12 +0300
commita835d3328deea93b05803d95d34e0c66618dc9c1 (patch)
tree03b332dff1a502de8aaa629a878fcc7d3550ac2d /sass
parent1581c10376dc3df7206da1feebc1e237e137d1be (diff)
downloadyaroslavps.com-a835d3328deea93b05803d95d34e0c66618dc9c1.tar.gz
yaroslavps.com-a835d3328deea93b05803d95d34e0c66618dc9c1.zip
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.
Diffstat (limited to 'sass')
-rw-r--r--sass/css/yaroslavps.scss46
1 files changed, 46 insertions, 0 deletions
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;
+ }
+}