Commit 7134fc6d authored by julientaq's avatar julientaq

fixed css mixup

parent 65ea0ff6
......@@ -3,7 +3,7 @@
/* Change the look of the preview here*/
:root {
--color-background: whitesmoke;
--color-background: var(--color-background, transparent);
--color-pageBox: #666;
--color-paper: white;
--color-marginBox: transparent;
......
/* paged.js style example*/
@media print {
@media print {
/* h1 will be used to define running head */
h1 {
string-set: title content(text);
}
@page {
size: A4;
margin-top: 15mm;
margin-left: 20mm;
margin-right: 15mm;
margin-bottom: 25mm;
@bottom-center {
content: element(footer);
/* h1 will be used to define running head */
h1 {
string-set: title content(text);
}
@top-right {
content: counter(page);
font-size: 0.7em;
}
@top-left {
content: string(title);
font-size: 0.7em;
@page {
size: A4;
margin-top: 15mm;
margin-left: 20mm;
margin-right: 15mm;
margin-bottom: 25mm;
@bottom-center {
content: element(footer);
}
@top-right {
content: counter(page);
font-size: 0.7em;
}
@top-left {
content: string(title);
font-size: 0.7em;
}
}
}
}
\ No newline at end of file
{{ $pagedjsStyle := resources.Get "css/pagedjs/pagedjs.css" | minify | resources.Fingerprint "md5" }}
<link rel="stylesheet" href="{{ $pagedjsStyle.Permalink }}" integrity="{{ $pagedjsStyle.Data.Integrity }}">
{{ $print := resources.Get "css/pagedjs/print.css" | minify | resources.Fingerprint "md5" }}
<link rel="stylesheet" href="{{ $print.Permalink }}" integrity="{{ $print.Data.Integrity }}">
{{ $interface := resources.Get "css/pagedjs/interface.css" | minify | resources.Fingerprint "md5" }}
<link rel="stylesheet" href="{{ $interface.Permalink }}" integrity="{{ $interface.Data.Integrity }}">
<!-- {{/* set up paged.js polyfill to preview the print version */}} -->
{{ $pagedjs := resources.Get "js/paged.polyfill.js" | resources.Fingerprint "md5" }}
<script src="{{ $pagedjs.Permalink }}" type="module" type="application/javascript"></script>
<script>
window.PagedConfig = {
auto: false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment