summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-10-26 16:13:24 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-10-26 16:13:24 +0200
commitf802be507dd60e8b173d78548ca7b0b255682773 (patch)
tree76eef5c1335d2d0eff186376e0fad20485423798
parentMade code configurable. (diff)
downloadvimwiki-scripts-f802be507dd60e8b173d78548ca7b0b255682773.tar.gz
vimwiki-scripts-f802be507dd60e8b173d78548ca7b0b255682773.tar.xz
Style tables.
-rw-r--r--hs/style2.css25
1 files changed, 24 insertions, 1 deletions
diff --git a/hs/style2.css b/hs/style2.css
index 42bfb02..9d25b56 100644
--- a/hs/style2.css
+++ b/hs/style2.css
@@ -1,7 +1,7 @@
body {
display: grid;
/* grid-template-columns: auto 1fr */
- grid-template-columns: 1fr 15em;
+ grid-template-columns: auto 15em;
}
img {
@@ -44,6 +44,29 @@ header {
main {
grid-column: 1;
grid-row: 2;
+ max-width: 60ch;
+}
+
+main table {
+ overflow-x: auto;
+ /* max-width: 100%; */
+}
+
+table {
+ border-collapse: collapse;
+}
+
+thead, tfoot {
+ background: lightgray;
+}
+
+tr:nth-child(2n) {
+ background: lightgray;
+}
+
+td, th {
+ padding-left: 1ch;
+ padding-right: 1ch;
}
footer {