Skip to content

Commit

Permalink
Modify the style of search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Dec 30, 2015
1 parent a3961d9 commit 7b037e4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
9 changes: 6 additions & 3 deletions themes/navy/layout/partial/header.swig
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
<nav id="main-nav">
{{ header_menu('main-nav') }}
<a href="https://github.com/{{ config.github }}" class="main-nav-link"><i class="fa fa-github-alt"></i></a>
<div id="search-input-wrap">
<div id="search-input-icon">
<i class="fa fa-search"></i>
</div>
<input type="search" id="search-input" placeholder="Search...">
</div>
</nav>
<div id="search-input-wrap">
<input type="search" id="search-input" placeholder="Search...">
</div>
<div id="lang-select-wrap">
<label id="lang-select-label"><i class="fa fa-globe"></i><span>{{ lang_name(page.lang) }}</span></label>
<select id="lang-select" data-canonical="{{ canonical_path_for_nav() }}">
Expand Down
22 changes: 11 additions & 11 deletions themes/navy/source/css/_partial/header.styl
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,30 @@ logo-size = 50px
opacity: 0.7
transition: 0.2s
font-family: font-title
text-transform: uppercase
display: inline-block
padding: 0 20px
padding: 0 15px
&:hover
opacity: 1
color: color-link-hover

#search-input-wrap
display: none
margin-right: 15px
@media mq-normal
display: block
display: inline-block
padding-left: 6px
padding-bottom: 8px
border-bottom: 1px solid color-gray

#search-input-icon
color: #fff
padding-right: 0.5em
display: inline-block
opacity: 0.7

#search-input
background: none
border-bottom: 1px solid color-gray
font-size: inherit
font-family: font-title
padding: 0.5em 0
color: #fff
outline: none
transition: border-color 0.2s
&:focus
border-bottom-color: color-link-hover

#lang-select-wrap
display: none
Expand Down
2 changes: 1 addition & 1 deletion themes/navy/source/css/_variables.styl
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ mobile-nav-width = 260px
// Media queries
mq-mobile = "screen and (max-width: 768px)"
mq-normal = "screen and (min-width: 769px)"
mq-tablet = "screen and (min-width: 480px)"
mq-tablet = "screen and (min-width: 480px)"

0 comments on commit 7b037e4

Please sign in to comment.