pub / serci

Search the web with !keywords
git clone https://https://src.jayvii.de/pub/serci.git
Home | Log | Files | Exports | Refs | README | RSS

commit 9fcd9197800edf068019708465bdb59002e54b8e
parent bbd51cb5a7f4c56c30c0717e701474f42eedb30f
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat,  6 Jul 2024 16:35:39 +0200

feat: move custom css to external file

Diffstat:
Aassets/css/custom.css | 14++++++++++++++
Mconfig/config.php | 5-----
Mindex.php | 22+---------------------
3 files changed, 15 insertions(+), 26 deletions(-)

diff --git a/assets/css/custom.css b/assets/css/custom.css @@ -0,0 +1,14 @@ +#searchform { + width: 100%; + display: flex; + flex-direction: row; +} +@media only screen and (width <= 720px) { + #searchform { + flex-direction: column; + } +} +#searchbar { + width: 100%; + margin-right: 5px; +} diff --git a/config/config.php b/config/config.php @@ -1,8 +1,3 @@ -<!-- -SPDX-License-Identifier: AGPL-3.0-or-later -SPDX-FileCopyrightText: 2024 JayVii <jayvii[AT]posteo[DOT]de> ---> - <?php /* Define Search Engines diff --git a/index.php b/index.php @@ -1,8 +1,3 @@ -<!-- -SPDX-License-Identifier: AGPL-3.0-or-later -SPDX-FileCopyrightText: 2024 JayVii <jayvii[AT]posteo[DOT]de> ---> - <!doctype html> <html> @@ -64,24 +59,9 @@ if (strlen($query) > 0) { <link rel=icon href=/assets/img/favicon.png type=image/png> <link rel=icon href=/assets/img/favicon.ico type=x-image/ico> <link rel=stylesheet href=/assets/css/simple.min.css media=all> + <link rel=stylesheet href=/assets/css/custom.css> <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="traserĉi - search with !bangs"> <title>traserĉi - search with !bangs</title> - <style> - #searchform { - width: 100%; - display: flex; - flex-direction: row; - } - @media only screen and (width <= 720px) { - #searchform { - flex-direction: column; - } - } - #searchbar { - width: 100%; - margin-right: 5px; - } - </style> </head> <!-- Body -->