HTML: use CSS flex boxes for columns.

This allows to render an arbitrary number of columns, while the previous
approach assumed exactly two columns.
This commit is contained in:
Albert Krewinkel
2022-07-29 23:44:13 +02:00
committed by John MacFarlane
parent 7a4afce60c
commit 0e8f424d9e
8 changed files with 16 additions and 8 deletions
+2 -1
View File
@@ -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;}