summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBung <crc32@qq.com>2023-01-04 12:10:44 -0800
committerGitHub <noreply@github.com>2023-01-04 15:10:44 -0500
commitb2328b44baaced7a89e897332a66dac4a975efe8 (patch)
tree6e213b0d12ae77e49e9e513bc09b02db72c2c4c5
parent81b7f9108f139bbf237f3e121fdbe9ff32a7193f (diff)
downloadNim-b2328b44baaced7a89e897332a66dac4a975efe8.tar.gz
make it printer friendly (#21218)
-rw-r--r--doc/nimdoc.css9
-rw-r--r--nimdoc/testproject/expected/nimdoc.out.css9
2 files changed, 18 insertions, 0 deletions
diff --git a/doc/nimdoc.css b/doc/nimdoc.css
index f924f5a36..1417d9eff 100644
--- a/doc/nimdoc.css
+++ b/doc/nimdoc.css
@@ -147,6 +147,15 @@ body {
   box-sizing: border-box;

   margin-left: 1%; }

 

+@media print {

+  #global-links, .link-seesrc, .theme-switch-wrapper, #searchInputDiv, .search-groupby {

+    display:none;

+  }

+  .columns {

+    width:100% !important;

+  }

+}

+

 .column:first-child, .columns:first-child {

   margin-left: 0; }

 

diff --git a/nimdoc/testproject/expected/nimdoc.out.css b/nimdoc/testproject/expected/nimdoc.out.css
index f924f5a36..1417d9eff 100644
--- a/nimdoc/testproject/expected/nimdoc.out.css
+++ b/nimdoc/testproject/expected/nimdoc.out.css
@@ -147,6 +147,15 @@ body {
   box-sizing: border-box;

   margin-left: 1%; }

 

+@media print {

+  #global-links, .link-seesrc, .theme-switch-wrapper, #searchInputDiv, .search-groupby {

+    display:none;

+  }

+  .columns {

+    width:100% !important;

+  }

+}

+

 .column:first-child, .columns:first-child {

   margin-left: 0; }