Skip to content

Commit bd227e6

Browse files
committed
Update quick nav for new theme
1 parent f579edc commit bd227e6

5 files changed

Lines changed: 8 additions & 60 deletions

File tree

_includes/head.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
<a data-href="href"><h4 data-content="title"></h4></a>
4040
<span data-content="breadcrumbs" class="search-result-breadcrumbs"></span>
4141
<span data-content="author" class="search-result-author"></span><br/>
42-
<span data-content="date" class="search-result-date"></span>
4342
</div>
4443
</script>
4544

_includes/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
</li>
4444
</ul>
4545
<!-- items below float right, so appear in reverse order -->
46-
<div>
46+
<div id="search-container">
4747
<form class="navbar-form navbar-right dropdown">
48-
<input type="text" id="search-input" class="form-control" onfocus="searchFocus()" onkeyup="searchTextChanged()" placeholder="Quick nav" onkeypress="this.onkeyup();" onpaste="this.onkeyup();" oninput="this.onkeyup();" />
48+
<input type="text" id="search-input" class="form-control" onfocus="searchFocus()" onkeyup="searchTextChanged()" placeholder="Quick nav" onkeypress="this.onkeyup();" onpaste="this.onkeyup();" oninput="this.onkeyup();" autocomplete="off" />
4949
<div class="dropdown-menu" id="search-dropdown">
5050
<div class="search-results-container" id="search-results-docs">
5151
<h2>In docs</h2>

javascripts/search.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $(document).ready(function () {
2525
//Close the search results if the input and results lose focus
2626
$('body').click(function(event) {
2727
//Check if the click registered on a non search-related element
28-
if(!($(event.target).parents('#search-li').length)) {
28+
if(!($(event.target).parents('#search-container').length)) {
2929
hideSearchDropdown();
3030
}
3131
});
@@ -175,7 +175,7 @@ function doSearch(query) {
175175
if(i < results.length - 1)
176176
itemLoadTimer = setTimeout(function() {
177177
loadItem(i + 1)
178-
}, 100);
178+
}, 25);
179179
}
180180

181181
if(results.length > 0)

stylesheets/bootswatch-extensions.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
cursor: pointer;
77
}
88

9-
.dropdown:hover .dropdown-menu {
9+
.navbar-nav .dropdown:hover .dropdown-menu {
1010
display: block;
1111
margin-top: 0;
1212
}
@@ -74,7 +74,7 @@ body.no-jumbotron {
7474
}
7575
@media (max-width: 979px) {
7676
body.no-jumbotron {
77-
padding-top: 0px;
77+
padding-top: 0;
7878
}
7979
}
8080

stylesheets/infrastructure-utils.css

Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,13 @@
1-
#search-issues, #search-input {
2-
width: 116px;
3-
padding: 8px 12px 13px 12px;
4-
margin-top: 7px;
5-
height: 14px;
6-
font-family: "OpenSansLight", "Helvetica Neue", Helvetica, Arial, sans-serif;
7-
font-size: 14px;
8-
font-style: normal;
9-
font-weight: 400;
10-
color: #efefef;
11-
background: #191919;
12-
-moz-border-radius: 2px;
13-
-webkit-border-radius: 2px;
14-
-o-border-radius: 2px;
15-
-ms-border-radius: 2px;
16-
-khtml-border-radius: 2px;
17-
border-radius: 2px;
18-
border: 1px solid #121212;
19-
-moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
20-
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
21-
-o-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
22-
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
23-
}
24-
25-
#search-issues {
26-
width: 80%;
27-
margin-right: 12px;
1+
#search-input {
2+
width: 130px;
283
}
294

305
#search-dropdown {
31-
position: relative;
32-
left: -180px;
33-
top: 8px;
346
width: 320px;
357
max-height: 500px;
368
height: 500px;
379
overflow-y: scroll;
3810
display: none;
39-
line-height: 100%;
40-
background-color: #191919;
41-
-moz-border-radius: 2px;
42-
-webkit-border-radius: 2px;
43-
-o-border-radius: 2px;
44-
-ms-border-radius: 2px;
45-
-khtml-border-radius: 2px;
46-
border-radius: 2px;
47-
border: 1px solid #121212;
48-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
49-
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
50-
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
51-
-o-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
5211
}
5312

5413
#search-dropdown h2 {
@@ -62,10 +21,6 @@
6221
margin-left: 20px;
6322
}
6423

65-
#search-li {
66-
width: 140px;
67-
}
68-
6924
.search-result {
7025
display: none;
7126
}
@@ -75,7 +30,6 @@
7530
}
7631

7732
.search-result h4 {
78-
color: #fe8a18;
7933
font-size: large;
8034
margin-bottom: 0;
8135
}
@@ -92,11 +46,6 @@
9246
display: block;
9347
}
9448

95-
.edit-on-github {
96-
float: right;
97-
margin-top: -30px;
98-
}
99-
10049
.user-card {
10150
position: relative;
10251
min-height: 40px;

0 commit comments

Comments
 (0)