Merged in [9525] from lars@netapp.com:

Make the menu bar search field appear on slightly smaller screen widths.
 - Legacy-Id: 9540
Note: SVN reference [9525] has been migrated to Git commit 651477699b
This commit is contained in:
Henrik Levkowetz 2015-04-21 21:02:43 +00:00
commit c1b86d9ae2
6 changed files with 16 additions and 16 deletions

View file

@ -3934,7 +3934,7 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
.nav > li > a {
position: relative;
display: block;
padding: 10px 15px;
padding: 10px 11px;
}
.nav > li > a:hover,
.nav > li > a:focus {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -452,7 +452,7 @@
//##
//=== Shared nav styles
@nav-link-padding: 10px 15px;
@nav-link-padding: 10px 11px;
@nav-link-hover-bg: @gray-lighter;
@nav-disabled-link-color: @gray-light;

View file

@ -38,6 +38,7 @@
</head>
<body {% block bodyAttrs %}{%endblock%} data-group-menu-data-url="{% url "group_menu_data" %}">
{% with server_mode="production" %}
<nav class="navbar {% if server_mode and server_mode == "production" %}navbar-inverse{% else %}navbar-default{% endif %} navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
@ -50,13 +51,11 @@
<a class="navbar-brand" href="/">
<img alt="IETF Logo" src="/images/ietflogo-small-transparent.png">
{% if not user.is_authenticated %}
<div style="display: inline; vertical-align: top; padding-left: 1em;">
{% if server_mode and server_mode == "production" %}
Datatracker
{% else %}
<b><i>Development mode</i></b>
{% endif %}
</div>
{% endif %}
</a>
</div>
@ -70,9 +69,9 @@
{% include "base/menu.html" with flavor="top" %}
</ul>
<form class="navbar-form navbar-right hidden-sm hidden-xs" action="/doc/search/" role="search">
<form class="navbar-form navbar-right hidden-xs" action="/doc/search/" role="search">
<div class="form-group">
<input class="form-control" type="text" name="name" placeholder="Document search">
<input class="form-control input-sm" type="text" name="name" placeholder="Document search">
<input type="hidden" name="activedrafts" value="on">
<input type="hidden" name="rfcs" value="on">
</div>
@ -80,7 +79,7 @@
</div>
</div>
</nav>
{% endwith %}
<div class="container-fluid">
{% if messages %}
<div class="row">

View file

@ -84,7 +84,12 @@ body { padding-top: 70px; }
.navbar-brand > img {
display: inline;
margin-top: -7px;
padding-right: 1em;
margin-top: -5px;
}
.navbar-brand {
margin-top: -2px;
}
/* Hack to make anchor-targets take up a bit more space vertically
@ -98,10 +103,6 @@ body { padding-top: 70px; }
margin-top: -65px;
}
/* Style navbar buttons */
/* .navbar-btn { color:#777; } */
/* .navbar-btn:hover { color: #333; } */
/* Make the panel title font normally large */
.panel-title { font-size: 14px }
@ -353,9 +354,9 @@ footer {
}
/* This applies to the top navbar submenu popouts*/
/*
/*
.nav.navbar-nav .dropdown-submenu ul {
}
*/
/* This applies to the side menubar submenu popouts */