Commit 45086d05af34f281efb0d7c1085f8f4677795933
1 parent
8805ad42
Exists in
master
and in
39 other branches
Fixing search bar for xs and sm screens
Showing
2 changed files
with
6 additions
and
6 deletions
Show diff stats
src/colab/deprecated/templates/base.html
@@ -55,7 +55,7 @@ | @@ -55,7 +55,7 @@ | ||
55 | <span class="icon-bar"></span> | 55 | <span class="icon-bar"></span> |
56 | <span class="icon-bar"></span> | 56 | <span class="icon-bar"></span> |
57 | </button> | 57 | </button> |
58 | - <a class="navbar-brand" href="/"><img alt="Colab" src="/static/img/logo_nav.png"</a> | 58 | + <a class="navbar-brand" href="/"><img alt="Colab" src="/static/img/logo_nav.png"></a> |
59 | </div> | 59 | </div> |
60 | 60 | ||
61 | <div class="collapse navbar-collapse navbar-main"> | 61 | <div class="collapse navbar-collapse navbar-main"> |
@@ -98,21 +98,21 @@ | @@ -98,21 +98,21 @@ | ||
98 | <a class="btn btn-info pull-left" href="{% url 'user_profile' user.username %}">{% trans "My Profile" %}</a> | 98 | <a class="btn btn-info pull-left" href="{% url 'user_profile' user.username %}">{% trans "My Profile" %}</a> |
99 | {% browserid_logout text='Logout' link_class='btn btn-default pull-right' %} | 99 | {% browserid_logout text='Logout' link_class='btn btn-default pull-right' %} |
100 | </div> | 100 | </div> |
101 | - <div> | 101 | + </div> |
102 | </li> | 102 | </li> |
103 | </ul> | 103 | </ul> |
104 | </li> | 104 | </li> |
105 | {% endif %} | 105 | {% endif %} |
106 | </ul> | 106 | </ul> |
107 | 107 | ||
108 | - <form action="/search/" method="GET" id="search-form" class="navbar-form navbar-right" role="search"> | 108 | + <form action="/search/" method="GET" id="search-form" class="navbar-form navbar-right hidden-xs hidden-sm" role="search"> |
109 | <div class="form-group"> | 109 | <div class="form-group"> |
110 | <label class="sr-only" for="header-searchbox">{% trans 'Search here...' %}</label> | 110 | <label class="sr-only" for="header-searchbox">{% trans 'Search here...' %}</label> |
111 | <input name="q" id="header-searchbox" | 111 | <input name="q" id="header-searchbox" |
112 | class="form-control" value="{{ request.GET.q }}" | 112 | class="form-control" value="{{ request.GET.q }}" |
113 | type="search" placeholder="{% trans 'Search here...' %}" /> | 113 | type="search" placeholder="{% trans 'Search here...' %}" /> |
114 | </div> | 114 | </div> |
115 | - <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span> {% trans 'Search' %}</button> | 115 | + <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button> |
116 | </form> | 116 | </form> |
117 | </div> | 117 | </div> |
118 | </nav> | 118 | </nav> |
src/colab/static/css/screen.css
@@ -8,7 +8,7 @@ body { | @@ -8,7 +8,7 @@ body { | ||
8 | 8 | ||
9 | 9 | ||
10 | #header-searchbox { | 10 | #header-searchbox { |
11 | - width: 200px; | 11 | + width: 140px; |
12 | } | 12 | } |
13 | 13 | ||
14 | #header-hr { | 14 | #header-hr { |
@@ -124,7 +124,7 @@ body { | @@ -124,7 +124,7 @@ body { | ||
124 | 124 | ||
125 | .container { | 125 | .container { |
126 | /* Overwritting max-width for better web responsive */ | 126 | /* Overwritting max-width for better web responsive */ |
127 | - max-width: 95% !important; | 127 | + /* max-width: 95% !important; */ |
128 | } | 128 | } |
129 | 129 | ||
130 | /* Forms */ | 130 | /* Forms */ |