From f65e7733a59efe8bfd8cfe33e699c1e750deb274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 14 May 2024 22:19:27 +0200 Subject: searphp nokia 6020 friendly (button->inputsubmit) --- prog/sear.php/css.css | 10 +++++----- prog/sear.php/index.php | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'prog/sear.php') 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 = " - - - + => + 1. + [^] "; if ($imgfirst) { $buttons = " - - - + [^] + => + 1. "; } return " -- cgit v1.2.3