From fdec747a0a33a96aefb3cc8d2e8717f13bea6c20 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 7 Jul 2022 13:09:29 +0300 Subject: Rework styling for form elements --- qc_app/static/css/styles.css | 7 ++++--- qc_app/templates/index.html | 24 ++++++++++++++++-------- qc_app/templates/select_dataset.html | 20 +++++++++++--------- 3 files changed, 31 insertions(+), 20 deletions(-) (limited to 'qc_app') diff --git a/qc_app/static/css/styles.css b/qc_app/static/css/styles.css index 922924c..d27952a 100644 --- a/qc_app/static/css/styles.css +++ b/qc_app/static/css/styles.css @@ -60,6 +60,7 @@ fieldset { } table { + margin-left: 1em; border-collapse: collapse; border: 1px solid; border-color: #336699; @@ -106,15 +107,15 @@ table th,td { fieldset { border-style: none; display: grid; - grid-template-columns: 5em 1fr; + grid-template-columns: 1fr 9fr; column-gap: 5px; } -label { +.form-col-1 { grid-column: 1 / 2; } -fieldset input,select,button { +.form-col-2 { grid-column: 2 / 3; width: 20%; } diff --git a/qc_app/templates/index.html b/qc_app/templates/index.html index 18eb784..312a876 100644 --- a/qc_app/templates/index.html +++ b/qc_app/templates/index.html @@ -21,19 +21,27 @@ file type - + required="required" class="form-col-1" /> + - + id="filetype_standard_error" required="required" + class="form-col-1" /> + - - +
+ + +
- +
+ +