Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit831be3a92d020c7dd0b3db169756e6fb9d30d748 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-11-20 10:29:01 +0200
Committer
 Syndamia <kamen@syndamia.com>
2022-11-20 10:29:01 +0200
Files6206d47e01f3316eb2da48898772b18d040b16e6
syndamia.com-831be3a92d020c7dd0b3db169756e6fb9d30d748.tar
syndamia.com-831be3a92d020c7dd0b3db169756e6fb9d30d748.tar.gz
syndamia.com-831be3a92d020c7dd0b3db169756e6fb9d30d748.zip
Parent11605cc8f9765c5ae847f3398401d21431811522 (diff)
[styles] Improved layout and colors when printing a page
1 files changed, 16 insertions, 0 deletions
-rw-r--r--src/styles.css16
diff --git a/src/styles.css b/src/styles.css
index 9ff0cb6..6f55703 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -482,6 +482,22 @@ dd code {
}
}
+/* Printing support */
+
+@media print {
+ h2 + a img, h3 + a img, h4 + a img, h5 + a img, h6 + a img,
+ nav, #scrollBtn {
+ display: none !important;
+ }
+ body {
+ margin: 0;
+ }
+ body, article {
+ background-color: white;
+ border: none !important;
+ }
+}
+
/* Script specific styling */
.btn:hover {