1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-12 08:05:18 +01:00
blog/_src/assets/styl/search.styl

78 lines
1.2 KiB
Stylus
Raw Normal View History

2014-07-12 21:22:47 +02:00
//
// kremalicious3
// --------------
// Search
//
2014-07-13 01:58:31 +02:00
.search-btn
right: 50px
padding: .65em .85em
2014-07-12 21:22:47 +02:00
.site-search
margin-right: 4%
.nav-popover
left: 0
width: 100%
.search-close
position: absolute
2014-07-13 00:42:57 +02:00
right: 32px
2014-07-12 21:22:47 +02:00
&,
&:active
2014-07-13 00:42:57 +02:00
top: 50%
margin-top: -8px
2014-07-12 21:22:47 +02:00
.search-area
@extend .transition
position: absolute
width: 100%
left: 0
top: -3px
z-index: 3
// hidden by default
2014-07-13 22:21:56 +02:00
display: none
2014-07-12 21:22:47 +02:00
&.ready
2014-07-13 22:21:56 +02:00
display: block
2014-07-12 21:22:47 +02:00
.search-results
@extend .clearfix
2014-07-13 00:42:57 +02:00
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
width: 50%
float: left
&:nth-child(odd)
clear: both
2014-07-12 21:22:47 +02:00
.popover
position: absolute
left: 0
top: 71px
z-index: 6
background: lighten($page-bg, 3%)
border-bottom: 1px solid rgba(255,255,255,.7)
box-shadow: 0 1px 4px rgba($brand-dark, .1)
@media $breakpoint2
top: 0
.row
margin-top: $line-height-computed
margin-bottom: $line-height-computed