Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New CSS for readthedocs #102

Merged
merged 1 commit into from
May 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}
Loading