Improve list style on welcome page for small screens
authorBenjamin Auder <benjamin.auder@somewhere>
Sat, 8 Dec 2018 20:55:55 +0000 (21:55 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sat, 8 Dec 2018 20:55:55 +0000 (21:55 +0100)
public/stylesheets/index.sass
views/index.pug

index 4176bf8..e4f846e 100644 (file)
 
 #welcome ul > li
   font-family: monospace
+
+table.list-table
+  width: 300px
+  margin: 0 auto
+  border: 0
+  tbody
+    border: 0
+    tr
+      border: 0
+      margin: 0
+      padding: 0
+      td
+        padding: 0
+        text-align: left
+        border: 0
index 99a5b56..4be9cf9 100644 (file)
@@ -47,12 +47,18 @@ block content
                                                                (otherwise it's no longer a variant but a whole new game!).
                                                        p(style="font-style:italic;color:purple") However...
                                                        p Each variant has its own new rules, which can involve
-                                                       ul
-                                                               li * different pieces movements
-                                                               li * different chessboard(s)&nbsp;&nbsp;&nbsp;
-                                                               li * new pieces&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                                                               li * moves side effects&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                                                               li ...and so on&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                                                       table.list-table
+                                                               tbody
+                                                                       tr
+                                                                               td * different pieces movements
+                                                                       tr
+                                                                               td * different chessboard(s)
+                                                                       tr
+                                                                               td * new pieces
+                                                                       tr
+                                                                               td * moves side effects
+                                                                       tr
+                                                                               td ...and so on
                                                .section
                                                        p.
                                                                Example: imagine that a capture is an atomic explosion, wiping all adjacent squares