1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-09-24 10:08:50 +02:00
blog/_src/_assets/styl/search.styl

80 lines
1.3 KiB
Stylus
Raw Normal View History

2014-07-12 21:22:47 +02:00
//
// kremalicious3
// --------------
// Search
//
2015-08-09 18:15:40 +02:00
&.search-open-blur
@extend .transition
filter: blur(10px)
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%
.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
2015-08-09 21:50:06 +02:00
top: 0
2014-07-12 21:22:47 +02:00
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
2015-08-09 18:15:40 +02:00
@extend .list-unstyled, .textcenter
2015-08-09 21:50:06 +02:00
display: flex
2015-08-09 18:15:40 +02:00
@media $breakpoint2
margin-top: ($line-height-computed/2)
margin-bottom: ($line-height-computed/2)
> li
padding: 0
margin: 0
2014-07-13 00:42:57 +02:00
.search-link
@extend .h6
2015-08-09 18:15:40 +02:00
margin: 0
padding: 15px
2014-07-13 00:42:57 +02:00
display: block
2015-08-09 18:15:40 +02:00
width: 100%
2014-07-13 00:42:57 +02:00
2015-08-09 18:15:40 +02:00
.search-results > li:nth-child(9) &,
.search-results > li:last-child &
border: none
&:before
display: none
2014-07-12 21:22:47 +02:00
2015-08-09 18:15:40 +02:00
.search-popover
2014-07-12 21:22:47 +02:00
position: absolute
left: 0
top: 71px
z-index: 6
2015-08-09 18:15:40 +02:00
width: 100%
padding-top: ($line-height-computed/2)
2014-07-12 21:22:47 +02:00
background: lighten($page-bg, 3%)
border-bottom: 1px solid rgba(255,255,255,.7)
2015-08-09 18:15:40 +02:00
box-shadow: 0 1px 4px alpha($brand-dark, .1)
2014-07-12 21:22:47 +02:00
@media $breakpoint2
top: 0