Skip to content

Commit e954ad7

Browse files
committed
tweaking display of form
1 parent 3e5ba61 commit e954ad7

File tree

2 files changed

+29
-15
lines changed

2 files changed

+29
-15
lines changed

lib/resources/styles.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ nav .container {
4444
white-space: nowrap;
4545
}
4646

47+
@media screen and (min-width: 500px) and (max-width: 768px) {
48+
.navbar-right {
49+
float: right!important;
50+
}
51+
}
52+
4753
header {
4854
background-color: #2196F3;
4955
color: white;
@@ -62,12 +68,12 @@ header .masthead {
6268
padding-top: 64px;
6369
}
6470

65-
header .masthead .contents {
71+
header .contents {
6672
padding: 0;
6773
}
6874

6975
@media screen and (max-width:768px) {
70-
header .masthead .contents {
76+
header .contents {
7177
padding-left: 15px;
7278
padding-right: 15px;
7379
}
@@ -640,6 +646,12 @@ form.search {
640646
display: inline;
641647
}
642648

649+
@media screen and (max-width: 500px) {
650+
form.search {
651+
display: none;
652+
}
653+
}
654+
643655
.typeahead,
644656
.tt-query,
645657
.tt-hint {

lib/templates/_head.html

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,21 @@
2828
<nav class="navbar navbar-fixed-top">
2929
<div class="container">
3030
<div class="row">
31-
{{^navLinks.isEmpty}}
32-
<button id="sidenav-left-toggle" type="button">&nbsp;</button>
33-
{{/navLinks.isEmpty}}
34-
<ol class="breadcrumbs gt-separated hidden-xs">
35-
{{#navLinks}}
36-
<li><a href="{{href}}">{{name}}</a></li>
37-
{{/navLinks}}
38-
<li class="self-crumb">{{self.name}}</li>
39-
</ol>
40-
<div class="self-name">{{self.name}}</div>
41-
<form class="search navbar-right" role="search">
42-
<input type="text" id="search-box" disabled class="form-control typeahead" placeholder="Search">
43-
</form>
31+
<div class="col-sm-12 contents">
32+
{{^navLinks.isEmpty}}
33+
<button id="sidenav-left-toggle" type="button">&nbsp;</button>
34+
{{/navLinks.isEmpty}}
35+
<ol class="breadcrumbs gt-separated hidden-xs">
36+
{{#navLinks}}
37+
<li><a href="{{href}}">{{name}}</a></li>
38+
{{/navLinks}}
39+
<li class="self-crumb">{{self.name}}</li>
40+
</ol>
41+
<div class="self-name">{{self.name}}</div>
42+
<form class="search navbar-right" role="search">
43+
<input type="text" id="search-box" disabled class="form-control typeahead" placeholder="Search">
44+
</form>
45+
</div> <!-- /col -->
4446
</div> <!-- /row -->
4547
</div> <!-- /container -->
4648
</nav>

0 commit comments

Comments
 (0)