Skip to content

Commit

Permalink
Print styles
Browse files Browse the repository at this point in the history
  • Loading branch information
fadado committed Oct 1, 2016
1 parent 5cfc257 commit bbe6d9a
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 30 deletions.
6 changes: 6 additions & 0 deletions docs/blocks/footer/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@
border-top: &HorizontalRule;
}

@media print {
&BEM{#footer} {
display: none;
}
}

// vim:ts=2:sw=2:ai:et:fileencoding=utf-8:syntax=css
6 changes: 6 additions & 0 deletions docs/blocks/header/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@
margin-bottom: 1.5rem;
}

@media print {
&BEM{#header} {
display: none;
}
}

// vim:ts=2:sw=2:ai:et:fileencoding=utf-8:syntax=css
2 changes: 1 addition & 1 deletion docs/blocks/toc/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
////////////////////////////////////////////////////////////////////////

&BEM{toc} {
width: 16em;
max-width: 20em;
padding: 0 1em;
text-align: center;
font-size: 80%;
Expand Down
42 changes: 28 additions & 14 deletions docs/content/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,21 +193,35 @@ Pandoc long options can be specified in
the command line and will be forwarded untouched to `pandoc`:

```
--base-header-level=NUMBER --latexmathml[=URL]
--bibliography=FILE --mathjax[=URL]
--citation-abbreviations=FILE --mathml[=URL]
--columns=NUMBER --mimetex[=URL]
--csl=FILE --no-highlight
--email-obfuscation=none|javascript|references --normalize
--file-scope --number-offset=NUMBER[,NUMBER,...]
--gladtex --number-sections
--highlight-style=STYLE --preserve-tabs
--html-q-tags --section-divs
--id-prefix=STRING --tab-stop=NUMBER
--indented-code-classes=CLASSES --toc-depth=NUMBER
--jsmath[=URL] --webtex[=URL]
--katex[=URL] --wrap=[auto|none|preserve]
--base-header-level=NUMBER
--bibliography=FILE
--citation-abbreviations=FILE
--columns=NUMBER
--csl=FILE
--email-obfuscation=none|javascript|references
--file-scope
--gladtex
--highlight-style=STYLE
--html-q-tags
--id-prefix=STRING
--indented-code-classes=CLASSES
--jsmath[=URL]
--katex[=URL]
--katex-stylesheet
--latexmathml[=URL]
--mathjax[=URL]
--mathml[=URL]
--mimetex[=URL]
--no-highlight
--normalize
--number-offset=NUMBER[,NUMBER,...]
--number-sections
--preserve-tabs
--section-divs
--tab-stop=NUMBER
--toc-depth=NUMBER
--webtex[=URL]
--wrap=[auto|none|preserve]
```

<#
Expand Down
12 changes: 3 additions & 9 deletions docs/layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,15 @@
# Meta elements
#>
<meta charset="utf-8" />
<#
# Document title and related metadata
#>
<# Document title and related metadata #>
<title>jqt · {{.page.title}}</title>
<meta name='description' content='{{.page.description//empty}}' />
<meta name='keywords' content='{{.page.keywords//empty}}' />
<meta name='author' content='{{[(.page.author//.site.author)[].name] | sort[]}}' />
<#
# More metadata
#>
<# More metadata #>
<meta name="generator" content="jqt v<%include ../VERSION>" />
<meta name='dcterms.date' content='{{.page.updated//empty}}' />
<#
# Presentation
#>
<# Presentation #>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" type="text/css" href="styles.css"/>
{{.page._highlight}}
Expand Down
19 changes: 13 additions & 6 deletions docs/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
&include{blocks/license/style.css}
&include{blocks/repository/style.css}

html {
background-color: &ColorInitial;
}

body&BEM{#container} {
max-width: 800px;
@media screen {
html {
background-color: &ColorInitial;
}
body&BEM{#container} {
max-width: 800px;
}
}

// Hacks
Expand All @@ -42,4 +43,10 @@ figure > pre {
font-size: 1.4rem;
}

@media print {
figure > pre {
font-size: 1.2rem;
}
}

// vim:ts=2:sw=2:ai:et:fileencoding=utf-8:syntax=css

0 comments on commit bbe6d9a

Please sign in to comment.