Skip to content

Commit 6514776

Browse files
committed
Make the menu bar search field appear on slightly smaller screen widths.
- Legacy-Id: 9525
1 parent 6f2e9f7 commit 6514776

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

ietf/templates/base.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,11 @@
5050
<a class="navbar-brand" href="/">
5151
<img alt="IETF Logo" src="/images/ietflogo-small-transparent.png">
5252
{% if not user.is_authenticated %}
53-
<div style="display: inline; vertical-align: top; padding-left: 1em;">
5453
{% if server_mode and server_mode == "production" %}
5554
Datatracker
5655
{% else %}
5756
<b><i>Development mode</i></b>
5857
{% endif %}
59-
</div>
6058
{% endif %}
6159
</a>
6260
</div>
@@ -70,9 +68,9 @@
7068
{% include "base/menu.html" with flavor="top" %}
7169
</ul>
7270

73-
<form class="navbar-form navbar-right hidden-sm hidden-xs" action="/doc/search/" role="search">
71+
<form class="navbar-form navbar-right hidden-xs" action="/doc/search/" role="search">
7472
<div class="form-group">
75-
<input class="form-control" type="text" name="name" placeholder="Document search">
73+
<input class="form-control input-sm" type="text" name="name" placeholder="Document search">
7674
<input type="hidden" name="activedrafts" value="on">
7775
<input type="hidden" name="rfcs" value="on">
7876
</div>

static/css/ietf.css

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ body { padding-top: 70px; }
8484

8585
.navbar-brand > img {
8686
display: inline;
87-
margin-top: -7px;
87+
padding-right: 1em;
88+
}
89+
90+
.navbar-brand {
91+
font-size: 15px !important;
92+
margin-top: -5px;
8893
}
8994

9095
/* Hack to make anchor-targets take up a bit more space vertically
@@ -98,10 +103,6 @@ body { padding-top: 70px; }
98103
margin-top: -65px;
99104
}
100105

101-
/* Style navbar buttons */
102-
/* .navbar-btn { color:#777; } */
103-
/* .navbar-btn:hover { color: #333; } */
104-
105106
/* Make the panel title font normally large */
106107
.panel-title { font-size: 14px }
107108

@@ -353,9 +354,9 @@ footer {
353354
}
354355

355356
/* This applies to the top navbar submenu popouts*/
356-
/*
357+
/*
357358
.nav.navbar-nav .dropdown-submenu ul {
358-
359+
359360
}
360361
*/
361362
/* This applies to the side menubar submenu popouts */

0 commit comments

Comments
 (0)