Browse Source

changes in the make and print.css

master
manetta 4 years ago
parent
commit
ef03e8e3f6
  1. 2
      Makefile
  2. 62
      themes/basic/static/css/print.css

2
Makefile

@ -57,7 +57,7 @@ md2html=$(md:%.md=%.html)
md2pdf=$(md:%.md=%.pdf) md2pdf=$(md:%.md=%.pdf)
%.html: %.md %.html: %.md
pandoc --from markdown --to html -c themes/basic/static/css/print.css $< -o $@ pandoc --from markdown --to html -c ../themes/basic/static/css/print.css -s $< -o $@
%.pdf: %.md themes/basic/static/css/print.css %.pdf: %.md themes/basic/static/css/print.css
pandoc --pdf-engine=weasyprint -c themes/basic/static/css/print.css $< -o $@ pandoc --pdf-engine=weasyprint -c themes/basic/static/css/print.css $< -o $@

62
themes/basic/static/css/print.css

@ -56,33 +56,31 @@
} }
@page :left { @page :left {
margin-left: 0.5in; margin-left: 0.5in;
margin-right: 0.5in; margin-right: 0.5in;
@top-left {
@top-left { content: element(pageheader-issue, first-except);
content: element(pageheader-issue, first-except); font-size: 8px;
font-size: 8px; }
}
@top-right { @top-right {
content: element(pageheader-theme, first-except); content: element(pageheader-theme, first-except);
font-size: 8px; font-size: 8px;
}
}
} }
@page :right { @page :right {
margin-left: 0.5in; margin-left: 0.5in;
margin-right: 0.5in; margin-right: 0.5in;
@top-right { @top-right {
content: element(pageheader-issue, first-except); content: element(pageheader-issue, first-except);
font-size: 8px; font-size: 8px;
} }
@top-left { @top-left {
content: element(pageheader-theme, first-except); content: element(pageheader-theme, first-except);
font-size: 8px; font-size: 8px;
} }
} }
@ -164,6 +162,8 @@
.subheading { .subheading {
font-family: 'White Rabbit'; font-family: 'White Rabbit';
font-size: 14px; font-size: 14px;
line-height: 22px;
margin:1em 0;
page-break-after: avoid; page-break-after: avoid;
} }
@ -243,9 +243,10 @@
.essay_content { .essay_content {
font-family: 'Unifont'; font-family: 'Unifont';
font-size: 14px; font-size: 14px;
line-height: 1.6; line-height: 22px;
page-break-before: always; page-break-before: always;
hyphens: auto; hyphens: auto;
columns: 2 auto;
} }
.essay_content_zug { .essay_content_zug {
@ -254,23 +255,20 @@
line-height: 1.5; line-height: 1.5;
page-break-before: always; page-break-before: always;
hyphens: auto; hyphens: auto;
} }
.about_content { .about_content {
font-family: 'Unifont'; font-family: 'Unifont';
font-size: 14px; font-size: 14px;
line-height: 1.6; line-height: 21px;
}
#first_par {
margin-top: 80px;
} }
#first_letter { #first_letter {
float:left; display: inline-block;
margin-bottom: 20px; vertical-align: text-bottom;
margin-bottom: 0px !important;
margin-right: 10px; margin-right: 10px;
margin-left: 0px !important;
} }
#first_letter_mel { #first_letter_mel {
@ -286,7 +284,7 @@
} }
.essay_content p:first-of-type { .essay_content p:first-of-type {
margin-top: 80px; margin-top: -20px;
} }
@ -376,11 +374,14 @@ q {
margin-right: 30px; margin-right: 30px;
} }
p { p {
margin: 0.5em; margin: 11px 0.5em 11px 0.5em;
font-size: 14px;
line-height: 22px;
} }
sup { sup {
text-decoration: none; text-decoration: none;
color: black; color: black;
line-height: 0;
} }
.ref-position { .ref-position {
position: relative; position: relative;
@ -393,6 +394,7 @@ sup {
page-break-before: avoid; page-break-before: avoid;
line-height: 0.9; line-height: 0.9;
position: inherit; position: inherit;
columns: 3 auto;
} }
[role=doc-endnotes] { [role=doc-endnotes] {

Loading…
Cancel
Save