fix namespacing with CSS
This commit is contained in:
@@ -13,15 +13,17 @@
|
||||
@media print {
|
||||
html, body { width: auto !important; height: auto !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; background: white !important; }
|
||||
}
|
||||
/* Each #page is a fixed-size sheet */
|
||||
#page { width: var(--page-w, 5.5in); height: var(--page-h, 8.5in); background: white; box-shadow: none !important; overflow: hidden; }
|
||||
#page { page-break-after: always; break-after: page; }
|
||||
#page:last-child { page-break-after: auto; break-after: auto; }
|
||||
/* Each .page-container is a fixed-size sheet */
|
||||
.page-container { width: var(--page-w, 5.5in); height: var(--page-h, 8.5in); background: white; box-shadow: none !important; overflow: hidden; }
|
||||
.page-container { page-break-after: always; break-after: page; }
|
||||
.page-container:last-child { page-break-after: auto; break-after: auto; }
|
||||
|
||||
PLACEHOLDER_FOR_SCOPED_CSS
|
||||
</style>
|
||||
</head>
|
||||
<body {{ .PageSizeAttr }}>
|
||||
{{ range .Pages }}
|
||||
<div id="page">{{ .Content }}</div>
|
||||
<div class="page-container" id="{{ .PageID }}">{{ .Content }}</div>
|
||||
{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user