Skip to content

Commit

Permalink
Merge pull request #102 from simonpl/master
Browse files Browse the repository at this point in the history
New CSS for readthedocs
  • Loading branch information
timvink authored May 8, 2024
2 parents 7b1054f + 95cc96d commit 404721e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions mkdocs_print_site_plugin/css/print-site-readthedocs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/* Print styles for readthedocs theme */

#print-site-banner {
padding-top: 1em;
}


/* Table of contents, proper padding */
.print-page-toc-title {
padding-bottom: 0em;
margin-bottom: 1em;
}
/* Table of contents, compatible with dark theme */
#print-site-page ul.toc-section-line-border {
border-left: 5px solid rgb(225, 225, 225);
}

@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 15mm 10mm;
counter-increment: page;

@bottom-center {
content: string(chapter);
}
@bottom-right {
content: 'Page ' counter(page);
}
}

0 comments on commit 404721e

Please sign in to comment.