word edit: form stylesheet for aligned input fields
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 24 May 2020 01:58:41 +0000 (03:58 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 6 Jun 2020 01:49:20 +0000 (03:49 +0200)
writer.plp

index 73ae3acf3c1bbd51259c6a49eba2e0c847f64be4..b8e5f2d6fa0e245ea47752f3e3c068260031a899 100644 (file)
@@ -4,6 +4,25 @@ Html({
        title => 'words cheat sheet admin',
        version => '1.0',
        nocache => 1,
+       raw => <<'EOT',
+<style>
+dd > input {
+       width: 32em;
+       max-width: 100%;
+       padding: 1ex;
+       font-family: monospace;
+}
+dl > dt, dl > dd {
+       float: none;
+       display: inline-block;
+       box-sizing: border-box;
+       width: 50%;
+       margin: 0;
+       line-height: 4ex;
+       vertical-align: text-top;
+}
+</style>
+EOT
 });
 
 use List::Util qw( pairs pairkeys );