From 7639e6188eac91a13d4188692304b9867cdfc2f0 Mon Sep 17 00:00:00 2001 From: dan Date: Wed, 8 Mar 2023 19:15:26 -0500 Subject: fix: uploading blank post should not return 500; restyle image upload button --- style.css | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'style.css') diff --git a/style.css b/style.css index 890b398..d09e1ab 100644 --- a/style.css +++ b/style.css @@ -163,18 +163,35 @@ textarea { height: 2em; } -#image::file-selector-button { +.image-upload { + float: right; border: 0; line-height: 2.5; - padding: 0 20px; + padding-bottom: 0.2em; + text-indent: 0.5em; font-size: 1rem; text-align: center; color: #fff; text-shadow: 1px 1px 1px #000; border-radius: 10px; - background-color: rgba(0, 0, 240, 0.6); + background-color: rgba(100, 100, 100, 0.6); background-image: linear-gradient(to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0)); box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.6), inset -2px -2px 3px rgba(0, 0, 0, 0.6); - margin-top:2px; + margin-top: 0.1em; + cursor: pointer; +} + +.image-upload * { cursor: pointer; } + +@media only screen and (max-width: 450px) { + .image-upload { + float: unset; + width: 100%; + } + + #submit { + width: 100%; + } +} -- cgit v1.2.3