Skip to content

Commit

Permalink
Change print margins for material theme for better firefox compatibil…
Browse files Browse the repository at this point in the history
…ity, see #56
  • Loading branch information
timvink committed Oct 2, 2021
1 parent b94a6f0 commit cb68737
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
11 changes: 4 additions & 7 deletions mkdocs_print_site_plugin/css/print-site-material.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,14 @@ https://github.com/squidfunk/mkdocs-material */
#print-site-page td {
word-wrap: break-word;
}

}

@page {

/*
Note this CSS file is added to all MkDocs pages
So this @page logic will affect print of all pages
*/

size: a4 portrait;
margin: 15mm 10mm 25mm 10mm;
size: A4 portrait;
margin: 4em 1.5em 4em 1.5em;
padding: 0em 0em 0em 0em;
counter-increment: page;

@bottom-center {
Expand Down
12 changes: 0 additions & 12 deletions mkdocs_print_site_plugin/css/print-site.css
Original file line number Diff line number Diff line change
Expand Up @@ -379,15 +379,3 @@ For now, we added them for use only in the table of contents */

}


/* @page { */

/*
Note this CSS file is added to all MkDocs pages
So this @page logic will affect print of all pages
*/

/* Prevent image page overflow */
/* img { max-width:500px !important; } */

/* } */

0 comments on commit cb68737

Please sign in to comment.