mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
search and navigation fixes
This commit is contained in:
parent
ea31a9f81f
commit
cc8da26f92
@ -23,7 +23,7 @@
|
|||||||
<a class="search-btn icon icon-search" href="#"></a>
|
<a class="search-btn icon icon-search" href="#"></a>
|
||||||
<div class="search-area">
|
<div class="search-area">
|
||||||
<input type="search" class="form-control input-search search-field" placeholder="Search everything">
|
<input type="search" class="form-control input-search search-field" placeholder="Search everything">
|
||||||
<a class="search-close close" href="#">x</a>
|
<a class="search-close close" href="#">×</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ var siteNavigation = {
|
|||||||
$searchfield.jekyllSearch({
|
$searchfield.jekyllSearch({
|
||||||
searchResults : $searchresults,
|
searchResults : $searchresults,
|
||||||
searchResultsTitle : '',
|
searchResultsTitle : '',
|
||||||
template : '<a class="nav-link" href="{url}" title="{title}">{title}</a>',
|
template : '<a class="search-link" href="{url}" title="{title}">{title}</a>',
|
||||||
fuzzy : true
|
fuzzy : true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
font-size: $font-size-small
|
font-size: $font-size-small
|
||||||
border: 1px solid transparent
|
border: 1px solid transparent
|
||||||
|
|
||||||
// alignment and spacing of inner content
|
|
||||||
> p,
|
> p,
|
||||||
> ul
|
> ul
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
@ -21,15 +20,15 @@
|
|||||||
.alert-success
|
.alert-success
|
||||||
color: #468847
|
color: #468847
|
||||||
background: #dff0d8
|
background: #dff0d8
|
||||||
border-color: #b5c6a8
|
border-color: darken(#dff0d8, 5%)
|
||||||
|
|
||||||
.alert-danger,
|
.alert-danger,
|
||||||
.alert-error
|
.alert-error
|
||||||
color: #b94a48
|
color: #b94a48
|
||||||
background: #f2dede
|
background: #f2dede
|
||||||
border-color: #dcc5ca
|
border-color: darken(#f2dede, 5%)
|
||||||
|
|
||||||
.alert-info
|
.alert-info
|
||||||
color: #3a87ad
|
color: #3a87ad
|
||||||
background: #d9edf7
|
background: #d9edf7
|
||||||
border-color: #a6ced8
|
border-color: darken(#d9edf7, 5%)
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
font-weight: normal
|
font-weight: normal
|
||||||
vertical-align: middle
|
vertical-align: middle
|
||||||
|
touch-action: manipulation
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
background-image: none // Reset unusual Firefox-on-Android default style
|
background-image: none // Reset unusual Firefox-on-Android default style
|
||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
@ -133,7 +134,6 @@
|
|||||||
// Close button
|
// Close button
|
||||||
/////////////////////////////////////
|
/////////////////////////////////////
|
||||||
|
|
||||||
a.close,
|
|
||||||
.close
|
.close
|
||||||
@extend .textcenter
|
@extend .textcenter
|
||||||
width: 16px
|
width: 16px
|
||||||
@ -148,3 +148,4 @@ a.close,
|
|||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
background: $link-color-hover
|
background: $link-color-hover
|
||||||
|
color: #fff
|
@ -7,6 +7,7 @@
|
|||||||
.menu-btn,
|
.menu-btn,
|
||||||
.search-btn
|
.search-btn
|
||||||
@extend .textcenter
|
@extend .textcenter
|
||||||
|
text-shadow: 0 1px 0 rgba(#fff, .5)
|
||||||
line-height: 1em
|
line-height: 1em
|
||||||
vertical-align: middle
|
vertical-align: middle
|
||||||
display: inline-block
|
display: inline-block
|
||||||
@ -15,12 +16,8 @@
|
|||||||
right: 0
|
right: 0
|
||||||
top: 0
|
top: 0
|
||||||
|
|
||||||
// icons
|
|
||||||
&:before
|
|
||||||
color: $link-color
|
|
||||||
|
|
||||||
&:hover:before
|
&:hover:before
|
||||||
color: $link-color-hover
|
color: $link-color
|
||||||
|
|
||||||
&:active:before
|
&:active:before
|
||||||
transition: none
|
transition: none
|
||||||
@ -28,6 +25,7 @@
|
|||||||
|
|
||||||
.search-btn
|
.search-btn
|
||||||
right: 50px
|
right: 50px
|
||||||
|
padding: .65em .85em
|
||||||
|
|
||||||
|
|
||||||
// Main Navigation
|
// Main Navigation
|
||||||
@ -53,13 +51,12 @@
|
|||||||
|
|
||||||
.nav-link
|
.nav-link
|
||||||
@extend .h6, .alignleft, .textcenter
|
@extend .h6, .alignleft, .textcenter
|
||||||
|
text-shadow: 0 1px 0 rgba(#fff, .5)
|
||||||
padding: .5em 1em
|
padding: .5em 1em
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
width: 50%
|
width: 50%
|
||||||
color: $text-color-dimmed
|
color: $text-color-dimmed
|
||||||
line-height: $line-height-computed
|
|
||||||
text-transform: uppercase
|
text-transform: uppercase
|
||||||
font-size: $font-size-small
|
|
||||||
|
|
||||||
@media $breakpoint2
|
@media $breakpoint2
|
||||||
width: 33.3%
|
width: 33.3%
|
||||||
@ -68,6 +65,7 @@
|
|||||||
&:before
|
&:before
|
||||||
@extend .textcenter, .transition
|
@extend .textcenter, .transition
|
||||||
display: block
|
display: block
|
||||||
|
margin-bottom: 5px
|
||||||
width: 100%
|
width: 100%
|
||||||
font-size: 32px
|
font-size: 32px
|
||||||
height: 32px
|
height: 32px
|
||||||
@ -84,6 +82,7 @@
|
|||||||
&:active
|
&:active
|
||||||
background: $link-color
|
background: $link-color
|
||||||
top: 0
|
top: 0
|
||||||
|
color: #fff
|
||||||
|
|
||||||
&:active:before
|
&:active:before
|
||||||
color: #fff
|
color: #fff
|
||||||
|
@ -16,6 +16,18 @@ body
|
|||||||
background: $body-bg
|
background: $body-bg
|
||||||
|
|
||||||
|
|
||||||
|
// Reset fonts for relevant elements
|
||||||
|
/////////////////////////////////////
|
||||||
|
|
||||||
|
input,
|
||||||
|
button,
|
||||||
|
select,
|
||||||
|
textarea
|
||||||
|
font-family: inherit
|
||||||
|
font-size: inherit
|
||||||
|
line-height: inherit
|
||||||
|
|
||||||
|
|
||||||
// topbar and footer as fixed
|
// topbar and footer as fixed
|
||||||
// site background
|
// site background
|
||||||
/////////////////////////////////////
|
/////////////////////////////////////
|
||||||
|
@ -11,16 +11,14 @@
|
|||||||
left: 0
|
left: 0
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
.search-btn
|
|
||||||
padding: .65em .85em
|
|
||||||
|
|
||||||
.search-close
|
.search-close
|
||||||
position: absolute
|
position: absolute
|
||||||
right: 1em
|
right: 32px
|
||||||
|
|
||||||
&,
|
&,
|
||||||
&:active
|
&:active
|
||||||
top: 1em
|
top: 50%
|
||||||
|
margin-top: -8px
|
||||||
|
|
||||||
.search-area
|
.search-area
|
||||||
@extend .transition
|
@extend .transition
|
||||||
@ -39,11 +37,25 @@
|
|||||||
.search-results
|
.search-results
|
||||||
@extend .clearfix
|
@extend .clearfix
|
||||||
|
|
||||||
.nav-link
|
p
|
||||||
|
margin-bottom: 0
|
||||||
|
|
||||||
|
.search-link
|
||||||
|
@extend .h6
|
||||||
|
padding: .5em 1em
|
||||||
|
display: block
|
||||||
|
margin-top: 0
|
||||||
|
margin-bottom: ($line-height-computed/2)
|
||||||
|
|
||||||
|
&:active
|
||||||
|
color: #fff
|
||||||
|
|
||||||
@media $breakpoint2
|
@media $breakpoint2
|
||||||
width: 50%
|
width: 50%
|
||||||
float: left
|
float: left
|
||||||
font-size: $font-size-small
|
|
||||||
|
&:nth-child(odd)
|
||||||
|
clear: both
|
||||||
|
|
||||||
.popover
|
.popover
|
||||||
position: absolute
|
position: absolute
|
||||||
|
Loading…
x
Reference in New Issue
Block a user