aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2022-07-29 23:44:13 +0200
committerJohn MacFarlane <[email protected]>2022-08-01 10:12:13 -0700
commit0e8f424d9ef29175a12e8efb40e91a63aa939da1 (patch)
treee0614a0171456386b82a53dcc566868766665ad1 /test
parent7a4afce60c932add21b9ea4914d8eb61e3de732e (diff)
HTML: use CSS flex boxes for columns.
This allows to render an arbitrary number of columns, while the previous approach assumed exactly two columns.
Diffstat (limited to 'test')
-rw-r--r--test/lhs-test.html3
-rw-r--r--test/lhs-test.html+lhs3
-rw-r--r--test/s5-basic.html3
-rw-r--r--test/s5-fancy.html3
-rw-r--r--test/s5-inserts.html3
-rw-r--r--test/writer.html43
-rw-r--r--test/writer.html53
7 files changed, 14 insertions, 7 deletions
diff --git a/test/lhs-test.html b/test/lhs-test.html
index d507aa19d..03894af2b 100644
--- a/test/lhs-test.html
+++ b/test/lhs-test.html
@@ -148,7 +148,8 @@
}
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
- div.column{display: inline-block; vertical-align: top; width: 50%;}
+ div.columns{display: flex; gap: min(4vw, 1.5em);}
+ div.column{flex: 1;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
pre > code.sourceCode { white-space: pre; position: relative; }
diff --git a/test/lhs-test.html+lhs b/test/lhs-test.html+lhs
index a7f3e3a64..3a821f24c 100644
--- a/test/lhs-test.html+lhs
+++ b/test/lhs-test.html+lhs
@@ -148,7 +148,8 @@
}
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
- div.column{display: inline-block; vertical-align: top; width: 50%;}
+ div.columns{display: flex; gap: min(4vw, 1.5em);}
+ div.column{flex: 1;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
pre > code.sourceCode { white-space: pre; position: relative; }
diff --git a/test/s5-basic.html b/test/s5-basic.html
index 5cf900d5c..4b6668c96 100644
--- a/test/s5-basic.html
+++ b/test/s5-basic.html
@@ -13,7 +13,8 @@
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
- div.column{display: inline-block; vertical-align: top; width: 50%;}
+ div.columns{display: flex; gap: min(4vw, 1.5em);}
+ div.column{flex: 1;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
diff --git a/test/s5-fancy.html b/test/s5-fancy.html
index 6da71525b..8f110ffac 100644
--- a/test/s5-fancy.html
+++ b/test/s5-fancy.html
@@ -13,7 +13,8 @@
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
- div.column{display: inline-block; vertical-align: top; width: 50%;}
+ div.columns{display: flex; gap: min(4vw, 1.5em);}
+ div.column{flex: 1;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
</style>
diff --git a/test/s5-inserts.html b/test/s5-inserts.html
index 5e84aa44f..8aef36a42 100644
--- a/test/s5-inserts.html
+++ b/test/s5-inserts.html
@@ -11,7 +11,8 @@
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
- div.column{display: inline-block; vertical-align: top; width: 50%;}
+ div.columns{display: flex; gap: min(4vw, 1.5em);}
+ div.column{flex: 1;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
diff --git a/test/writer.html4 b/test/writer.html4
index 453277e9b..9126916c3 100644
--- a/test/writer.html4
+++ b/test/writer.html4
@@ -151,7 +151,8 @@
}
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
- div.column{display: inline-block; vertical-align: top; width: 50%;}
+ div.columns{display: flex; gap: min(4vw, 1.5em);}
+ div.column{flex: 1;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
diff --git a/test/writer.html5 b/test/writer.html5
index b4e5e953f..119e4a32a 100644
--- a/test/writer.html5
+++ b/test/writer.html5
@@ -151,7 +151,8 @@
}
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
- div.column{display: inline-block; vertical-align: top; width: 50%;}
+ div.columns{display: flex; gap: min(4vw, 1.5em);}
+ div.column{flex: 1;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}