]> git.plutz.net Git - webtxt/commitdiff
styling
authorPaul Hänsch <paul@plutz.net>
Fri, 19 Mar 2021 12:48:32 +0000 (13:48 +0100)
committerPaul Hänsch <paul@plutz.net>
Fri, 19 Mar 2021 12:48:32 +0000 (13:48 +0100)
index.cgi
webnote.css [new file with mode: 0644]

index 04128e433dedce49468dd00d2a63fac5b3d8ad5f..da1814251b310825d1db2205c400ac63ccc63de6 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -100,7 +100,5 @@ yield_page <<-EOF
           [input type=hidden name=session_key value="$SESSION_KEY"]
          [button type=submit name=action value=edit Edit]
        ]
-       [div .text
-       $(HTML <"$doc")
-       ]
+       [div .text . $(HTML <"$doc")]
        EOF
diff --git a/webnote.css b/webnote.css
new file mode 100644 (file)
index 0000000..e87795e
--- /dev/null
@@ -0,0 +1,31 @@
+body {
+  margin: .5em 1em;
+}
+button {
+  margin-bottom: 1em;
+}
+textarea {
+  display: block;
+  width: 100%;
+  height: 90vh;
+  height: calc(100vh - 4.5em);
+}
+
+div.text {
+  white-space: pre;
+}
+
+form.new {
+  text-align: center;
+  margin-top: 1em;
+}
+
+.new button {
+  display: block;
+  margin: auto;
+}
+
+.recent {
+  display: inline-block;
+  text-align: left;
+}