From d9ed57df55a058730b5b0684e2ded9ebbe197b7c Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Wed, 3 Jan 2024 12:59:05 +0100 Subject: [PATCH] style: Apply input padding spacing tweaks This adds some padding to inputs, giving them a bit of a sense of space. --- datafiles/static/hackage.css | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/datafiles/static/hackage.css b/datafiles/static/hackage.css index ce0e8810..c808ba67 100644 --- a/datafiles/static/hackage.css +++ b/datafiles/static/hackage.css @@ -117,10 +117,28 @@ h4 { font-size: 100%; /* 13px */ } h5 { font-size: 100%; /* 13px */ } h6 { font-size: 100%; /* 13px */ } -select, input, button, textarea { +select, input, button, textarea, input::file-selector-button { font-size: 1rem; margin: 0.5em; - padding: 0.1em; + padding: 0.5em 0.8em; + border: 1px solid #444; + border-radius: 3px; + background: #eee; +} + +select:hover, input:hover, button:hover, textarea:hover, input::file-selector-button:hover { + background: #dcdcdc; +} + +input[type=file] { + background: none; + border: 0; +} + +@media (prefers-color-scheme: dark) { + select, input, button, textarea, input::file-selector-button { + border: 0; + } } table {