From 81d216bea30f87c783d9ed427a1bd3150b41708f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 11 Oct 2023 18:22:57 +0200 Subject: [PATCH] make search fields type=search --- macros/wikiform | 4 ++-- themes/default.css | 6 +++--- themes/default.sh | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/macros/wikiform b/macros/wikiform index be6e4be..257a22e 100755 --- a/macros/wikiform +++ b/macros/wikiform @@ -38,11 +38,11 @@ case $action in search) if [ "$LANGUAGE_DEFAULT" ]; then printf '' "$LANGUAGE" "$(_ Search)" "$(_ Search)" else printf '' "$(_ Search)" "$(_ Search)" fi ;; diff --git a/themes/default.css b/themes/default.css index ae1cdf9..e7d5091 100644 --- a/themes/default.css +++ b/themes/default.css @@ -168,7 +168,7 @@ form.newpage, form.search { margin-bottom: 1em; } form.search { text-align: center; } -input.search { +input.search, input[type="search"] { min-width: 50%; max-width: 80%; max-width: calc(100% - 2.5em); @@ -224,8 +224,8 @@ table { width: 100%; } - .left input.search, - .right input.search { + .left input.search, .left input[type="search"], + .right input.search, .right input[type="search"] { width: 80%; width: calc(100% - 2.5em); } diff --git a/themes/default.sh b/themes/default.sh index 23b03f2..5979f20 100755 --- a/themes/default.sh +++ b/themes/default.sh @@ -143,7 +143,7 @@ theme_search(){

$([ "$words" ] && _ "Search results" || _ "Search" )

    $( while read p; do -- 2.39.2