improved print styles

This commit is contained in:
Heydon Pickering 2017-07-30 10:10:10 +01:00
parent 074c01a0ee
commit a855c1bd67
5 changed files with 30 additions and 12 deletions

View File

@ -887,10 +887,9 @@ h1 svg {
font-size: 1.25rem; font-size: 1.25rem;
} }
.pattern-section + .pattern-section { .pattern-section:not(:last-child) {
padding-top: 5rem; padding-bottom: 2.25rem;
margin-top: 5rem; border-bottom: 2px solid;
border-top: 2px solid;
} }
.pattern-section h1 { .pattern-section h1 {
@ -995,6 +994,10 @@ h1 svg {
word-break: break-word; word-break: break-word;
} }
main nav a::after {
content: '';
}
.cmd { .cmd {
background: #fff; background: #fff;
color: #111; color: #111;
@ -1029,8 +1032,13 @@ h1 svg {
display: none; display: none;
} }
main * { main *:not(.with-desc) {
page-break-inside: avoid; page-break-inside: avoid;
} }
.note.warning {
border-left: 0.5rem solid;
background: none;
}
} }

File diff suppressed because one or more lines are too long

1
node/toPDF.js Normal file
View File

@ -0,0 +1 @@
console.log('toPDF')

View File

@ -7,7 +7,8 @@
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"serve": "hugo server --baseURL http://localhost:1313", "serve": "hugo server --baseURL http://localhost:1313",
"clean": "rm -rf content && mkdir content && mkdir content/patterns && hugo new patterns/pattern.md && hugo new _index.md && hugo new print-version.md --kind print-version", "clean": "rm -rf content && mkdir content && mkdir content/patterns && hugo new patterns/pattern.md && hugo new _index.md && hugo new print-version.md --kind print-version",
"build": "rm -rfv docs/* && hugo && sw-precache --root=docs && git add -A" "build": "rm -rfv docs/* && hugo && sw-precache --root=docs && git add -A",
"pdf": "node ./node/toPDF.js"
}, },
"pre-commit": [ "pre-commit": [
"build" "build"

View File

@ -887,10 +887,9 @@ h1 svg {
font-size: 1.25rem; font-size: 1.25rem;
} }
.pattern-section + .pattern-section { .pattern-section:not(:last-child) {
padding-top: 5rem; padding-bottom: 2.25rem;
margin-top: 5rem; border-bottom: 2px solid;
border-top: 2px solid;
} }
.pattern-section h1 { .pattern-section h1 {
@ -995,6 +994,10 @@ h1 svg {
word-break: break-word; word-break: break-word;
} }
main nav a::after {
content: '';
}
.cmd { .cmd {
background: #fff; background: #fff;
color: #111; color: #111;
@ -1029,8 +1032,13 @@ h1 svg {
display: none; display: none;
} }
main * { main *:not(.with-desc) {
page-break-inside: avoid; page-break-inside: avoid;
} }
.note.warning {
border-left: 0.5rem solid;
background: none;
}
} }