From 08d39ef2f8a78266719a8173de395627a334a6e0 Mon Sep 17 00:00:00 2001 From: luccioman Date: Fri, 16 Sep 2016 11:47:21 +0200 Subject: [PATCH] Refactored navigation bar for better mobile devices support Moved the search input to the nav bar. Removed hacky absolute positionnings. Cleaned hacky custom css on elements. --- css/bootstrap-base.css | 5 ++++ index.html | 17 +++++++------ yacysearch/index.html | 54 ++++++++++++++++++++++++------------------ 3 files changed, 46 insertions(+), 30 deletions(-) diff --git a/css/bootstrap-base.css b/css/bootstrap-base.css index 71ce8552..80a8cf36 100644 --- a/css/bootstrap-base.css +++ b/css/bootstrap-base.css @@ -97,6 +97,11 @@ ul.nav li.dropdown:hover ul.dropdown-menu{ * twitter-typeahead, tt-dropdown-menu, tt-dataset-%CLASS%, tt-suggestions, tt-suggestion * tt-hint, tt-input, tt-cursor */ + + /* Control width of the span added around search input by typehead.js */ + .input-group .twitter-typeahead { + width:100% + } .tt-dropdown-menu { width: 396px; diff --git a/index.html b/index.html index 36c42178..9014dd73 100644 --- a/index.html +++ b/index.html @@ -90,19 +90,22 @@