Repository navigation
Expand file tree
/
Copy pathprint.css
More file actions
158 lines (139 loc) · 2.66 KB
/
Copy pathprint.css
File metadata and controls
158 lines (139 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/*
* Print stylesheet injected into every doc page before PDF capture.
* Hides chrome (navbar, sidebar, footer, edit links, pagination) and
* lets the article content flow at the full page width.
*/
html,
body {
background: #fff !important;
}
/* Hide site chrome */
.navbar,
nav.navbar,
.theme-doc-sidebar-container,
.theme-doc-sidebar-menu,
.theme-doc-toc-mobile,
.theme-doc-toc-desktop,
.table-of-contents,
.theme-doc-breadcrumbs,
.theme-doc-version-banner,
.theme-doc-version-badge,
.theme-edit-this-page,
.theme-last-updated,
.pagination-nav,
.docusaurus-mt-lg + nav,
.footer,
footer.footer,
.announcementBar_node_modules-\@docusaurus-theme-classic-lib-theme-AnnouncementBar-styles-module,
[class*='announcementBar'],
[class*='backToTopButton'],
[class*='collapseSidebarButton'],
[class*='tocCollapsible'] {
display: none !important;
}
/* Make the main column take the full page */
.main-wrapper,
main,
.container,
.row,
.col,
[class*='docMainContainer'],
[class*='docItemContainer'],
[class*='docItemCol'],
[class*='docPage'] {
max-width: 100% !important;
width: 100% !important;
flex: 0 0 100% !important;
margin: 0 !important;
padding: 0 !important;
}
article {
max-width: 100% !important;
padding: 0 !important;
margin: 0 !important;
}
/* Typography tuned for print */
body {
font-size: 10.5pt;
line-height: 1.45;
color: #111 !important;
}
h1 {
font-size: 22pt;
page-break-before: always;
page-break-after: avoid;
margin-top: 0;
}
/* First h1 of the document shouldn't force a page break before it */
article > :first-child h1,
article h1:first-of-type {
page-break-before: auto;
}
h2 {
font-size: 16pt;
page-break-after: avoid;
}
h3 {
font-size: 13pt;
page-break-after: avoid;
}
h4,
h5,
h6 {
page-break-after: avoid;
}
p,
li,
td {
orphans: 3;
widows: 3;
}
/* Keep tables, code blocks and figures from splitting awkwardly */
pre,
table,
figure,
.admonition,
[class*='admonition'],
.docusaurus-mermaid-container,
.mermaid {
page-break-inside: avoid;
break-inside: avoid;
}
pre,
code {
font-size: 9pt;
}
pre {
white-space: pre-wrap;
word-wrap: break-word;
border: 1px solid #ddd;
padding: 8px;
background: #f8f8f8 !important;
}
img,
svg {
max-width: 100% !important;
height: auto !important;
}
a {
color: #0a58ca;
text-decoration: none;
}
table {
border-collapse: collapse;
width: 100%;
font-size: 9.5pt;
}
table th,
table td {
border: 1px solid #ccc;
padding: 4px 6px;
}
/* Admonitions keep their box look but in muted grey for print */
.admonition,
[class*='admonition_'] {
border: 1px solid #bbb !important;
background: #f4f4f4 !important;
padding: 8px 12px !important;
margin: 10px 0 !important;
}