1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-09-24 18:18:49 +02:00
blog/_src/_assets/styl/scaffolding.styl

80 lines
1.4 KiB
Stylus
Raw Normal View History

2014-07-12 02:00:18 +02:00
//
// kremalicious3
// --------------
// Scaffolding
//
// Body reset
/////////////////////////////////////
html
font-size: 62.5%
2014-07-12 21:22:47 +02:00
-webkit-tap-highlight-color: rgba($link-color, .2)
2014-07-12 02:00:18 +02:00
body
background: $body-bg
2014-07-13 00:42:57 +02:00
// Reset fonts for relevant elements
/////////////////////////////////////
input,
button,
select,
textarea
font-family: inherit
font-size: inherit
line-height: inherit
2014-07-12 21:22:47 +02:00
// topbar and footer as fixed
2014-07-12 02:00:18 +02:00
// site background
/////////////////////////////////////
.topbar
height: 71px
2014-07-12 21:22:47 +02:00
2014-07-12 02:00:18 +02:00
.menu-open &
height: auto
.document
background-color: $page-bg
@media only screen and (min-width: 40.625em) and (min-height: 650px)
body
position: relative
2014-07-12 21:22:47 +02:00
2014-07-12 02:00:18 +02:00
.document
2014-07-12 21:22:47 +02:00
transition()
position: relative
2014-07-12 02:00:18 +02:00
z-index: 2
margin-top: 71px
2014-07-21 21:07:43 +02:00
margin-bottom: 580px
2014-07-12 02:00:18 +02:00
border-top: 1px solid rgba(255,255,255,.7)
border-bottom: 1px solid rgba(255,255,255,.7)
2014-07-12 21:22:47 +02:00
box-shadow: 0 1px 4px rgba($brand-dark, .1), 0 -1px 4px rgba($brand-dark, .1)
.menu-open &
margin-top: 300px
2014-07-12 02:00:18 +02:00
.topbar,
.footer
position: fixed
border: none
.topbar
z-index: 1
top: 0
2014-07-12 21:22:47 +02:00
box-shadow: inset 0 1px 4px rgba($brand-dark, .1)
2014-07-12 02:00:18 +02:00
border: none
2014-07-12 21:22:47 +02:00
2014-07-12 02:00:18 +02:00
.footer
z-index: 0
height: 580px
bottom: 0
box-shadow: none
2014-07-12 21:22:47 +02:00
2014-07-12 02:00:18 +02:00
.menu-open &
2014-07-12 21:22:47 +02:00
hide()