122 lines
1.7 KiB
SCSS
122 lines
1.7 KiB
SCSS
// Print styles
|
|
@media print {
|
|
body {
|
|
font-size: 12pt;
|
|
line-height: 1.4;
|
|
color: #000;
|
|
background: white;
|
|
}
|
|
|
|
// Hide navigation and unnecessary elements
|
|
nav,
|
|
.navigation,
|
|
.sidebar,
|
|
.header,
|
|
.footer,
|
|
.no-print,
|
|
button,
|
|
.btn {
|
|
display: none !important;
|
|
}
|
|
|
|
// Ensure content uses full width
|
|
.content,
|
|
.container {
|
|
max-width: 100% !important;
|
|
width: 100% !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
// Typography adjustments
|
|
h1, h2, h3, h4, h5, h6 {
|
|
page-break-after: avoid;
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 24pt;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 20pt;
|
|
border-bottom: 1pt solid #ccc;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 16pt;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 14pt;
|
|
}
|
|
|
|
p, ul, ol, blockquote {
|
|
orphans: 3;
|
|
widows: 3;
|
|
}
|
|
|
|
ul, ol {
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
// Links
|
|
a {
|
|
color: #000;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
a[href^="http"]:after {
|
|
content: " (" attr(href) ")";
|
|
font-size: 10pt;
|
|
color: #666;
|
|
}
|
|
|
|
a[href^="#"]:after,
|
|
a[href^="javascript:"]:after {
|
|
content: "";
|
|
}
|
|
|
|
// Tables
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
}
|
|
|
|
th, td {
|
|
border: 1pt solid #ccc;
|
|
padding: 4pt;
|
|
}
|
|
|
|
th {
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
// Code blocks
|
|
pre, code {
|
|
font-family: monospace;
|
|
font-size: 10pt;
|
|
background-color: #f5f5f5;
|
|
border: 1pt solid #ddd;
|
|
}
|
|
|
|
pre {
|
|
padding: 8pt;
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
// Images
|
|
img {
|
|
max-width: 100% !important;
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
// Page breaks
|
|
.page-break {
|
|
page-break-before: always;
|
|
}
|
|
|
|
.no-page-break {
|
|
page-break-inside: avoid;
|
|
}
|
|
} |