From 04c21f0e105f3fbb4217ebcf5d8a4694d4a5b916 Mon Sep 17 00:00:00 2001 From: Conrad Zelck <git@simpel.cc> Date: Sun, 8 Oct 2023 00:49:15 +0200 Subject: [PATCH] style: set colors for input-file-button for iOS Signed-off-by: Conrad Zelck <git@simpel.cc> --- style.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/style.css b/style.css index 9f204b8..510114e 100644 --- a/style.css +++ b/style.css @@ -206,6 +206,14 @@ input[type="file"] { background-color: inherit; } +input::file-selector-button { + color: black; +} + +input:disabled::file-selector-button { + color: #AAAAAA; +} + button:disabled, input:disabled, textarea:disabled, div.disabled, p.disabled, label.disabled, #input.disabled, #output.disabled, @@ -249,6 +257,12 @@ input[type="file"] { border: 0; } +/* iOS */ +input::file-selector-button { + -webkit-border-radius: 3px; + border-radius: 3px; +} + #input, #output { border: 1px solid white; outline: 1px solid white; -- GitLab