search)
if [ "$LANGUAGE_DEFAULT" ]; then
printf '<form class="search" method="GET" action="./:%s/[search]">
- <input class="search" placeholder="%s" name="q" value=""><button type="submit" class="search">%s</button>
+ <input type="search" placeholder="%s" name="q" value=""><button type="submit" class="search">%s</button>
</form>' "$LANGUAGE" "$(_ Search)" "$(_ Search)"
else
printf '<form class="search" method="GET" action="./[search]">
- <input class="search" placeholder="%s" name="q" value=""><button type="submit" class="search">%s</button>
+ <input type="search" placeholder="%s" name="q" value=""><button type="submit" class="search">%s</button>
</form>' "$(_ Search)" "$(_ Search)"
fi
;;
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);
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);
}
<article>
<h1>$([ "$words" ] && _ "Search results" || _ "Search" )</h1>
<form class="search" method="GET">
- <input class="search" name="q" value="$(HTML $words)"><button class="search" type="submit">$(_ Search)</button>
+ <input type="search" name="q" value="$(HTML $words)"><button class="search" type="submit">$(_ Search)</button>
</form>
<ol class="searchresults">
$( while read p; do