From 9849b618794d9114704fecf274b5de219bd686e8 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 19 Jan 2018 18:17:28 +0100 Subject: A bit more styling and some markup fixes in forms. --- public/assets/application.css | 33 +++++++++++++++++++++++++++++++++ templates/new_post.html | 18 +++++++++--------- 2 files changed, 42 insertions(+), 9 deletions(-) diff --git a/public/assets/application.css b/public/assets/application.css index e25b890..299be36 100644 --- a/public/assets/application.css +++ b/public/assets/application.css @@ -3,3 +3,36 @@ color: #dddd84; padding: 1mm; } + +form { + width: 40em; +} + +.field, .actions { + padding: 2mm; +} + +.field label { + display: block; + color: #64f; + font-weight: bold; +} + +.field textarea { + width: 100%; + height: 15em; + padding: 2mm; +} + +.field input[type=text] { + width: 100%; + padding: 1.2mm 0; +} + +.checkbox label { + display: inline; +} + +.actions { + display: block; +} diff --git a/templates/new_post.html b/templates/new_post.html index a3a1a0f..7ef49dd 100644 --- a/templates/new_post.html +++ b/templates/new_post.html @@ -1,18 +1,18 @@

Create a new post

-
- - +
+ +
-
- - +
+ +
-
- - +
+ +
-- cgit v1.2.3