Skip to content

Commit

Permalink
Meta: add PDF printing CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 1, 2019
1 parent 7a9a9b6 commit a09fc23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build-es2019": "git remote remove origin && git remote add origin \"git@github.com:$TRAVIS_REPO_SLUG.git\" && git fetch --quiet origin && git checkout --quiet es2019 && mkdir \"out/2019\" && cp -R img \"out/2019\" && ecmarkup --verbose spec.html out/2019/index.html --css out/2019/ecmarkup.css --js out/2019/ecmarkup.js && git checkout --quiet test-travis",
"build-master": "mkdir out && cp -R img out && ecmarkup --verbose spec.html out/index.html --css out/ecmarkup.css --js out/ecmarkup.js",
"build": "npm run clean && npm run build-master",
"build-for-pdf": "npm run build -- -- -- --old-toc",
"build-travis": "npm run clean && npm run build-master && npm run build-es2019",
"clean": "rm -rf out",
"test": "exit 0",
Expand Down
11 changes: 10 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
<script src="ecmarkup.js"></script>
<style>
/* custom styles */
@media print {
/* for the PDF */
body.oldtoc {
font-size: 80%;
}
.oldtoc var {
color: #197124;
}
}
#metadata-block {
margin: 4em 0;
padding: 10px;
Expand Down Expand Up @@ -22508,7 +22517,7 @@ <h1>InitializeEnvironment ( ) Concrete Method</h1>
1. Return NormalCompletion(~empty~).
</emu-alg>
</emu-clause>

<emu-clause id="sec-source-text-module-record-execute-module" aoid="ExecuteModule">
<h1>ExecuteModule ( ) Concrete Method</h1>

Expand Down

0 comments on commit a09fc23

Please sign in to comment.