diff options
author | tcit <tcit@tcit.fr> | 2014-03-23 23:52:05 +0100 |
---|---|---|
committer | tcit <tcit@tcit.fr> | 2014-03-23 23:52:05 +0100 |
commit | 2c4e7a1cea0e692b39055eec7a8ebf142839f120 (patch) | |
tree | 0e3a04e3a07c523c256dcd569fa99a5dd174b725 /themes/baggy | |
parent | a33a3d2afb6a861e194599973e31e5e448617296 (diff) | |
download | wallabag-2c4e7a1cea0e692b39055eec7a8ebf142839f120.tar.gz wallabag-2c4e7a1cea0e692b39055eec7a8ebf142839f120.tar.zst wallabag-2c4e7a1cea0e692b39055eec7a8ebf142839f120.zip |
Fixes to search engine
Changed the search parameter from POST to GET.
Also, adapted the Baggy theme.
Diffstat (limited to 'themes/baggy')
-rw-r--r-- | themes/baggy/_menu.twig | 3 | ||||
-rw-r--r-- | themes/baggy/_search-form.twig | 21 | ||||
-rwxr-xr-x | themes/baggy/css/main.css | 50 |
3 files changed, 74 insertions, 0 deletions
diff --git a/themes/baggy/_menu.twig b/themes/baggy/_menu.twig index 5226728b..f1b75cd5 100644 --- a/themes/baggy/_menu.twig +++ b/themes/baggy/_menu.twig | |||
@@ -7,6 +7,9 @@ | |||
7 | <li style="position: relative;"><a href="javascript: void(null);" id="bagit">{% trans "save a link" %}</a> | 7 | <li style="position: relative;"><a href="javascript: void(null);" id="bagit">{% trans "save a link" %}</a> |
8 | {% include '_pocheit-form.twig' %} | 8 | {% include '_pocheit-form.twig' %} |
9 | </li> | 9 | </li> |
10 | <li style="position: relative;"><a href="javascript: void(null);" id="search">{% trans "search" %}</a> | ||
11 | {% include '_search-form.twig' %} | ||
12 | </li> | ||
10 | <li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li> | 13 | <li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li> |
11 | <li><a class="icon icon-power" href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> | 14 | <li><a class="icon icon-power" href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> |
12 | </ul> | 15 | </ul> |
diff --git a/themes/baggy/_search-form.twig b/themes/baggy/_search-form.twig new file mode 100644 index 00000000..1fd4154e --- /dev/null +++ b/themes/baggy/_search-form.twig | |||
@@ -0,0 +1,21 @@ | |||
1 | <div id="search-form" class="messages info"> | ||
2 | <form method="get" action="index.php"> | ||
3 | <input type="hidden" name="view" value="search"></input> | ||
4 | <label><a href="javascript: void(null);" id="search-form-close">X</a>{% trans "Search" %}</label> : <input type="text" name="search" /> | ||
5 | <input id="submit-search" type="submit" value="{% trans "Search" %} !"></input> | ||
6 | </form> | ||
7 | </div> | ||
8 | <script type="text/javascript"> | ||
9 | $(document).ready(function() { | ||
10 | |||
11 | $("#search-form").hide(); | ||
12 | |||
13 | $("#search").click(function(){ | ||
14 | $("#search-form").toggle(); | ||
15 | $("#search").toggleClass("current"); | ||
16 | $("#search-arrow").toggleClass("arrow-down"); | ||
17 | }); | ||
18 | |||
19 | |||
20 | }); | ||
21 | </script> \ No newline at end of file | ||
diff --git a/themes/baggy/css/main.css b/themes/baggy/css/main.css index 61e0b47e..6e328ba1 100755 --- a/themes/baggy/css/main.css +++ b/themes/baggy/css/main.css | |||
@@ -613,6 +613,56 @@ a#bagit-form-close:hover { | |||
613 | } | 613 | } |
614 | 614 | ||
615 | /* ========================================================================== | 615 | /* ========================================================================== |
616 | 2.2 = "search for articles" popup div related styles | ||
617 | ========================================================================== */ | ||
618 | #search-form { | ||
619 | background: rgba(0,0,0,0.5); | ||
620 | position: absolute; | ||
621 | top: 0; | ||
622 | left: 10em; | ||
623 | z-index: 20; | ||
624 | height: 100%; | ||
625 | width: 100%; | ||
626 | margin: 0; | ||
627 | margin-top: -30%; | ||
628 | padding: 2em; | ||
629 | display: none; | ||
630 | border-left: 1px #EEE solid; | ||
631 | } | ||
632 | |||
633 | #search-form form { | ||
634 | background: #FFF; | ||
635 | position: absolute; | ||
636 | top: 0; | ||
637 | left: 0; | ||
638 | z-index: 20; | ||
639 | border: 10px solid #000; | ||
640 | width: 400px; | ||
641 | height: 200px; | ||
642 | /* margin: -150px 0 0 -300px; */ | ||
643 | padding: 2em; | ||
644 | } | ||
645 | |||
646 | a#search-form-close { | ||
647 | background: #000; | ||
648 | color: #FFF; | ||
649 | padding: 0.2em 0.5em; | ||
650 | text-decoration: none; | ||
651 | display: inline-block; | ||
652 | float: right; | ||
653 | font-size: 1.2em; | ||
654 | } | ||
655 | a#search-form-close:hover { | ||
656 | background: #999; | ||
657 | color: #000; | ||
658 | } | ||
659 | |||
660 | #submit-search{ | ||
661 | margin-left: 4em; | ||
662 | margin-top:1em; | ||
663 | } | ||
664 | |||
665 | /* ========================================================================== | ||
616 | 3 = Pictos | 666 | 3 = Pictos |
617 | ========================================================================== */ | 667 | ========================================================================== */ |
618 | 668 | ||