| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- /**
- * Stylesheet
- *
- * @namespace Lungo
- * @class Layout
- *
- * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
- */
- @import "__init.styl"
- body, html
- height: 100%
- width: 100%
- margin: 0
- padding: 0
- overflow: hidden
- body
- /* ========================================================================= */
- /* ============================= ASIDE/SECTION ============================= */
- /* ========================================================================= */
- & > aside, & > section
- display-box()
- box-orient(vertical)
- height: inherit
- // The "Go Faster" hack
- webkit-transform: translate3d(0,0,0)
- & > header, > footer
- box-flex(0)
- z-index: 3
- position: relative
- & > header
- ordinal-group(1)
- & > article
- box-flex(1)
- ordinal-group(2)
- z-index: -1
- & > footer
- ordinal-group(3)
- /* ============================= HEADER/FOOTER ============================= */
- & > header, > footer
- height: HEADER_HEIGHT
- line-height: HEADER_HEIGHT
- & > nav
- box-flex(0)
- & > .title
- z-index: -1
- margin: 0 4px
- float: left
- font-size: FONT_SIZE_LARGE
- box-flex(1)
- &.centered
- position: absolute
- left: 32px
- right: 32px
- text-align: center
- display: inline-block
- & > img.title
- PAD = 18px
- height: (HEADER_HEIGHT - PAD)
- margin: (PAD / 2) auto
- /* ================================ ARTICLE ================================ */
- & > article
- visibility: hidden
- display: none
- &.show > article.active, &.hide > article.active, &.hiding > article.active
- visibility: visible
- display: block
- z-index: 1
- height: inherit
- &.pull
- transition-property transform
- transition-duration TRANSITION_TIME
- & [data-article].hide
- display: none
- /* ========================================================================= */
- /* ================================ SECTION ================================ */
- /* ========================================================================= */
- & > section
- z-index: 2
- width: inherit
- &:not(.show)
- z-index: 1
- /* ========================================================================= */
- /* ================================= ASIDE ================================= */
- /* ========================================================================= */
- & > aside
- min-width: ASIDE_WIDTH
- display: none
- z-index: -1
- &.active
- display-box()
- &.show
- z-index: 0
- display-box()
- &.right
- right: 0px
|