From 4ea26d3edb85c25e349f538cd797fceca4839232 Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 14 Jul 2022 14:10:33 -0500 Subject: [PATCH] fix for #94 use browser default of inline-block for input fields, set labels to block. Users will need to remove linebreaks (
) between labels/inputs --- simple.css | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/simple.css b/simple.css index d0a1c17..38ad95a 100644 --- a/simple.css +++ b/simple.css @@ -40,7 +40,7 @@ } } -/* Reset box-sizing and margins */ +/* Reset box-sizing */ *, *::before, *::after { box-sizing: border-box; } @@ -384,10 +384,17 @@ input { border: 1px solid var(--border); border-radius: 5px; box-shadow: none; - width: 100%; + max-width: 100%; -moz-appearance: none; -webkit-appearance: none; appearance: none; + display: inline-block; +} +label { + display: block; +} +textarea:not([cols]) { + width: 100%; } /* Add arrow to drop-down */ @@ -579,8 +586,4 @@ progress::-webkit-progress-value { } progress::-moz-progress-bar { border-radius: 5px; -} - -label { - display: inline-block; -} +} \ No newline at end of file