summaryrefslogtreecommitdiffstats
path: root/prog
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-05-14 22:19:27 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-05-14 22:19:27 +0200
commitf65e7733a59efe8bfd8cfe33e699c1e750deb274 (patch)
treeae8918ee0766f26f3c74b1d97a5edbbb550d5646 /prog
parentdn08 (diff)
downloadr-f65e7733a59efe8bfd8cfe33e699c1e750deb274.tar
r-f65e7733a59efe8bfd8cfe33e699c1e750deb274.tar.gz
r-f65e7733a59efe8bfd8cfe33e699c1e750deb274.tar.bz2
r-f65e7733a59efe8bfd8cfe33e699c1e750deb274.tar.lz
r-f65e7733a59efe8bfd8cfe33e699c1e750deb274.tar.xz
r-f65e7733a59efe8bfd8cfe33e699c1e750deb274.tar.zst
r-f65e7733a59efe8bfd8cfe33e699c1e750deb274.zip
Diffstat (limited to 'prog')
-rw-r--r--prog/sear.php/css.css10
-rw-r--r--prog/sear.php/index.php12
2 files changed, 11 insertions, 11 deletions
diff --git a/prog/sear.php/css.css b/prog/sear.php/css.css
index dc78c9f..8b3bf6d 100644
--- a/prog/sear.php/css.css
+++ b/prog/sear.php/css.css
@@ -38,7 +38,7 @@
}
}
-input, textarea, button {
+input, textarea {
background: var(--bgc2);
color: var(--fgc1);
}
@@ -79,7 +79,7 @@ code {
color: var(--fgcodec);
background-color: var(--bgcodec);
}
-input[type=text], button {
+input[type=text], input[type=submit] {
height: 1cm;
font-size: large;
}
@@ -97,7 +97,7 @@ input[name=q] {
flex-grow: 4;
width: 100%;
}
-button {
+input[type=submit] {
flex-basis: 12.5%;
}
.SC_LOG_ERROR {
@@ -128,9 +128,9 @@ button {
.result img {
height: 10em;
}
-button::after {
+input[type=submit]::after {
content: attr(value);
}
-button span { /* rationale: links browser does not support CSS and emojis, therefore it'll show */
+input[type=submit] span { /* rationale: links browser does not support CSS and emojis, therefore it'll show */
display: none; /* basic default text instead of emojis. */
} /* if browser does not support ::after, content or attr, but supports other CSS, button is blank */
diff --git a/prog/sear.php/index.php b/prog/sear.php/index.php
index 2e695c5..9b9cbd4 100644
--- a/prog/sear.php/index.php
+++ b/prog/sear.php/index.php
@@ -122,15 +122,15 @@ function template ($title, $queryinfo, $body, $query = "", $additionalform = "",
$query = htmlspecialchars($query);
$title = htmlspecialchars($title);
$buttons = "
- <button type=submit value=🔍 ><span>=&gt;</span></button>
- <button accesskey=f type=submit name=f value=Ʊ ><span>1.</span></button>
- <button accesskey=i type=submit name=i value=🖼><span>[^]</span></button>
+ <input type=submit value=🔍 ><span>=&gt;</span></button>
+ <input type=submit accesskey=f type=submit name=f value=Ʊ ><span>1.</span></button>
+ <input type=submit accesskey=i type=submit name=i value=🖼><span>[^]</span></button>
";
if ($imgfirst) {
$buttons = "
- <button type=submit name=i value=🖼><span>[^]</span></button>
- <button accesskey=i type=submit value=🔍 ><span>=&gt;</span></button>
- <button accesskey=f type=submit name=f value=Ʊ ><span>1.</span></button>
+ <input type=submit name=i value=🖼><span>[^]</span></button>
+ <input type=submit accesskey=i type=submit value=🔍 ><span>=&gt;</span></button>
+ <input type=submit accesskey=f type=submit name=f value=Ʊ ><span>1.</span></button>
";
}
return "