From 2c4e7a1cea0e692b39055eec7a8ebf142839f120 Mon Sep 17 00:00:00 2001 From: tcit Date: Sun, 23 Mar 2014 23:52:05 +0100 Subject: Fixes to search engine Changed the search parameter from POST to GET. Also, adapted the Baggy theme. --- themes/baggy/_menu.twig | 3 +++ themes/baggy/_search-form.twig | 21 ++++++++++++++++++ themes/baggy/css/main.css | 50 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 themes/baggy/_search-form.twig (limited to 'themes/baggy') 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 @@ -6,6 +6,9 @@
  • {% trans "tags" %}
  • {% trans "save a link" %} {% include '_pocheit-form.twig' %} +
  • +
  • {% trans "search" %} + {% include '_search-form.twig' %}
  • {% trans "config" %}
  • {% trans "logout" %}
  • 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 @@ +
    +
    + + : + +
    +
    + \ 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 @@ -612,6 +612,56 @@ a#bagit-form-close:hover { margin-top: 10px; } +/* ========================================================================== + 2.2 = "search for articles" popup div related styles + ========================================================================== */ +#search-form { + background: rgba(0,0,0,0.5); + position: absolute; + top: 0; + left: 10em; + z-index: 20; + height: 100%; + width: 100%; + margin: 0; + margin-top: -30%; + padding: 2em; + display: none; + border-left: 1px #EEE solid; +} + +#search-form form { + background: #FFF; + position: absolute; + top: 0; + left: 0; + z-index: 20; + border: 10px solid #000; + width: 400px; + height: 200px; + /* margin: -150px 0 0 -300px; */ + padding: 2em; +} + +a#search-form-close { + background: #000; + color: #FFF; + padding: 0.2em 0.5em; + text-decoration: none; + display: inline-block; + float: right; + font-size: 1.2em; +} +a#search-form-close:hover { + background: #999; + color: #000; +} + +#submit-search{ +margin-left: 4em; +margin-top:1em; +} + /* ========================================================================== 3 = Pictos ========================================================================== */ -- cgit v1.2.3