diff options
| author | John MacFarlane <[email protected]> | 2022-10-17 16:59:56 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-10-17 16:59:56 -0700 |
| commit | 1a61eec29325978c3bcbfa10e06e0f921b916efb (patch) | |
| tree | 43c3f9b253626ff7565f07fc0451007b9ee06e55 | |
| parent | 5ca064b40187df5658fd3bece0b95e619494add4 (diff) | |
Adjust tests for CSS change; add CSS comments to mark...
highlighting CSS and citations CSS in the source.
| -rw-r--r-- | data/templates/default.epub2 | 1 | ||||
| -rw-r--r-- | data/templates/default.epub3 | 1 | ||||
| -rw-r--r-- | data/templates/styles.citations.html | 1 | ||||
| -rw-r--r-- | data/templates/styles.html | 1 | ||||
| -rw-r--r-- | test/lhs-test.html | 3 | ||||
| -rw-r--r-- | test/lhs-test.html+lhs | 3 |
6 files changed, 8 insertions, 2 deletions
diff --git a/data/templates/default.epub2 b/data/templates/default.epub2 index dbc3905be..b10705119 100644 --- a/data/templates/default.epub2 +++ b/data/templates/default.epub2 @@ -11,6 +11,7 @@ $if(csl-css)$ $styles.citations.html()$ $endif$ $if(highlighting-css)$ + /* CSS for syntax highlighting */ $highlighting-css$ $endif$ </style> diff --git a/data/templates/default.epub3 b/data/templates/default.epub3 index 3aa98b939..0fac2e11a 100644 --- a/data/templates/default.epub3 +++ b/data/templates/default.epub3 @@ -10,6 +10,7 @@ $if(csl-css)$ $styles.citations.html()$ $endif$ $if(highlighting-css)$ + /* CSS for syntax highlighting */ $highlighting-css$ $endif$ </style> diff --git a/data/templates/styles.citations.html b/data/templates/styles.citations.html index 2f7c1023a..029755f31 100644 --- a/data/templates/styles.citations.html +++ b/data/templates/styles.citations.html @@ -1,3 +1,4 @@ +/* CSS for citations */ div.csl-bib-body { } div.csl-entry { clear: both; diff --git a/data/templates/styles.html b/data/templates/styles.html index f00bb25ac..11d2e0486 100644 --- a/data/templates/styles.html +++ b/data/templates/styles.html @@ -179,6 +179,7 @@ $if(displaymath-css)$ .display.math{display: block; text-align: center; margin: 0.5rem auto;} $endif$ $if(highlighting-css)$ +/* CSS for syntax highlighting */ $highlighting-css$ $endif$ $if(csl-css)$ diff --git a/test/lhs-test.html b/test/lhs-test.html index 76492a50c..c5637d7da 100644 --- a/test/lhs-test.html +++ b/test/lhs-test.html @@ -157,6 +157,8 @@ margin: 0 0.8em 0.2em -1.6em; vertical-align: middle; } + .display.math{display: block; text-align: center; margin: 0.5rem auto;} + /* CSS for syntax highlighting */ pre > code.sourceCode { white-space: pre; position: relative; } pre > code.sourceCode > span { display: inline-block; line-height: 1.25; } pre > code.sourceCode > span:empty { height: 1.2em; } @@ -220,7 +222,6 @@ code span.va { color: #19177c; } /* Variable */ code span.vs { color: #4070a0; } /* VerbatimString */ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */ - .display.math{display: block; text-align: center; margin: 0.5rem auto;} </style> <!--[if lt IE 9]> <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> diff --git a/test/lhs-test.html+lhs b/test/lhs-test.html+lhs index 04e33fcae..f51f8d5bd 100644 --- a/test/lhs-test.html+lhs +++ b/test/lhs-test.html+lhs @@ -157,6 +157,8 @@ margin: 0 0.8em 0.2em -1.6em; vertical-align: middle; } + .display.math{display: block; text-align: center; margin: 0.5rem auto;} + /* CSS for syntax highlighting */ pre > code.sourceCode { white-space: pre; position: relative; } pre > code.sourceCode > span { display: inline-block; line-height: 1.25; } pre > code.sourceCode > span:empty { height: 1.2em; } @@ -220,7 +222,6 @@ code span.va { color: #19177c; } /* Variable */ code span.vs { color: #4070a0; } /* VerbatimString */ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */ - .display.math{display: block; text-align: center; margin: 0.5rem auto;} </style> <!--[if lt IE 9]> <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> |
