Navigation Menu

Skip to content

Commit

Permalink
Put large searchbox on the top
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Aug 15, 2012
1 parent ae883db commit c6ee26b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
9 changes: 9 additions & 0 deletions public/css/norema.css
@@ -1,3 +1,12 @@
body {
margin-top: 60px;
}

.search-on-top {
text-align: center;
}

.search-on-top input#query {
width: 90%;
padding: 10px 10px;
}
4 changes: 4 additions & 0 deletions views/error.jade
@@ -1,5 +1,9 @@
extends layout

block navbar
form(action="search").navbar-search.pull-right
input(type="text", value=query, name="query", placeholder="search")#query

block content
.alert.alert-error
strong Error!
Expand Down
4 changes: 4 additions & 0 deletions views/index.jade
Expand Up @@ -4,3 +4,7 @@ block content
.hero-unit
h1 Node Reference Manual Search.
p Search node.js documents.
.search-on-top
form(action='search').form-search
input(type='text', name="query").search-query#query
input(type='submit', value="Search").btn
3 changes: 1 addition & 2 deletions views/layout.jade
Expand Up @@ -12,8 +12,7 @@ html
.navbar-inner
.container
a.brand(href="/") norema
form(action="search").navbar-search.pull-right
input(type="text", value=query, name="query", placeholder="search")#query
block navbar
.container
block content

Expand Down
4 changes: 4 additions & 0 deletions views/search.jade
@@ -1,5 +1,9 @@
extends layout

block navbar
form(action="search").navbar-search.pull-right
input(type="text", value=query, name="query", placeholder="search")#query

block content
.row
.span12
Expand Down

0 comments on commit c6ee26b

Please sign in to comment.