1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-16 01:55:18 +01:00
blog/_src/_assets/styl/_kremalicious/header.styl

75 lines
1.3 KiB
Stylus
Raw Normal View History

2014-07-12 21:22:47 +02:00
//
// kremalicious3
// --------------
// Header
//
2015-08-18 20:55:30 +02:00
.site__header
2014-07-12 21:22:47 +02:00
background: $body-bg
margin-top: ($spacer/2)
margin-bottom: ($spacer/2)
2014-07-12 21:22:47 +02:00
2016-06-09 19:25:01 +02:00
@media $screen-sm
margin-top: $spacer
margin-bottom: $spacer
2015-08-09 21:50:06 +02:00
.grid
2016-06-09 19:25:01 +02:00
@extend .breakoutviewport
padding-left: $spacer
padding-right: $spacer
2014-07-12 21:22:47 +02:00
position: relative
2016-06-09 19:25:01 +02:00
@media $screen-md
padding-left: 0
padding-right: 0
2015-08-09 21:50:06 +02:00
> .banner,
> .nav-main
padding-top: 0
2014-07-12 21:22:47 +02:00
2016-06-09 19:25:01 +02:00
2014-07-12 21:22:47 +02:00
// Logo
/////////////////////////////////////
.logo
display: block
background-image: url('../img/logo.png')
background-repeat: no-repeat
background-position: left top
width: 47px
height: 31px
2016-06-09 19:25:01 +02:00
@media $screen-sm
2014-07-12 21:22:47 +02:00
width: 183px
@media $highDPI
background-image: url('../img/logo@2x.png')
background-size: 183px 62px
@media $highDPI_3x
background-image: url('../img/logo@3x.png')
background-size: 183px 62px
2015-08-10 00:48:31 +02:00
.header__title
margin: 0
// display toned down logo
// by default
@extend .logo
.header__logo
@extend .ir
// repeat logo
// but display hover version
@extend .logo
background-position: left bottom
// hide by default
opacity: 0
// show smooooothly on hover
&:hover
opacity: 1
&:active
top: 0