From: John Benediktsson Date: Thu, 20 Jan 2022 17:58:54 +0000 (-0800) Subject: webapps.search: adding a header to the search page X-Git-Tag: 0.99~1735 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=56721df5eb1163ebec784fd9060e3e15fe8d9488 webapps.search: adding a header to the search page --- diff --git a/extra/webapps/help/help.factor b/extra/webapps/help/help.factor index c0ab8abdcd..177386fd14 100644 --- a/extra/webapps/help/help.factor +++ b/extra/webapps/help/help.factor @@ -20,6 +20,7 @@ TUPLE: help-webapp < dispatcher ; { help-webapp "search" } >>template [ "search" param [ unicode:blank? ] trim [ + dup "search" set-value f swap help-dir [ [ article-apropos ?links "articles" set-value ] [ word-apropos ?links "words" set-value ] diff --git a/extra/webapps/help/search.css b/extra/webapps/help/search.css index e35bb0513e..8857a1b70a 100644 --- a/extra/webapps/help/search.css +++ b/extra/webapps/help/search.css @@ -19,18 +19,15 @@ color: #7f7f7f; text-align: center; border: 1px solid #ccc; - border-bottom: none; } .label:hover { background: #d8d8d8; border: 1px solid #ccc; - border-bottom: none; } .radiotab:checked + .label { border: 1px solid #ccc; - border-bottom: none; background: #f0f0f0; color: black; } @@ -38,7 +35,6 @@ .panel { display: none; width: 100%; - border-top: 1px solid #ccc; } .radiotab:checked + .label + .panel { @@ -49,6 +45,7 @@ .panel { order: 99; + border-top: 1px solid #ccc; } .label { @@ -56,4 +53,12 @@ border: 1px solid white; border-bottom: none; } + + .label:hover { + border-bottom: none; + } + + .radiotab:checked + .label { + border-bottom: none; + } } diff --git a/extra/webapps/help/search.xml b/extra/webapps/help/search.xml index 858bfbba63..31de1f5d45 100644 --- a/extra/webapps/help/search.xml +++ b/extra/webapps/help/search.xml @@ -9,6 +9,8 @@
+

Search results for ''

+