lungo.layout.styl 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo
  5. * @class Layout
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "constants.styl"
  10. body, html
  11. height: 100%
  12. width: 100%
  13. margin: 0
  14. padding: 0
  15. overflow: hidden
  16. body
  17. /* ========================================================================= */
  18. /* ============================= ASIDE/SECTION ============================= */
  19. /* ========================================================================= */
  20. & > aside, & > section
  21. display-box()
  22. box-orient(vertical)
  23. height: inherit
  24. & > header, > footer
  25. box-flex(0)
  26. z-index: 3
  27. position: relative
  28. & > header
  29. ordinal-group(1)
  30. & > article
  31. box-flex(1)
  32. ordinal-group(2)
  33. z-index: -1
  34. & > footer
  35. ordinal-group(3)
  36. /* ============================= HEADER/FOOTER ============================= */
  37. & > header, > footer
  38. height: HEADER_HEIGHT
  39. line-height: HEADER_HEIGHT
  40. & > nav
  41. box-flex(0)
  42. & > .title
  43. z-index: -1
  44. margin: 0 4px
  45. float: left
  46. font-size: FONT_SIZE_LARGE
  47. box-flex(1)
  48. &.centered
  49. position: absolute
  50. left: 32px
  51. right: 32px
  52. text-align: center
  53. display: inline-block
  54. & > img.title
  55. PAD = 18px
  56. height: (HEADER_HEIGHT - PAD)
  57. margin: (PAD / 2) auto
  58. /* ================================ ARTICLE ================================ */
  59. & > article
  60. visibility: hidden
  61. display: none
  62. &.show > article.active, &.hide > article.active, &.hiding > article.active
  63. visibility: visible
  64. display: block
  65. z-index: 1
  66. height: inherit
  67. &.pull
  68. transition-property transform
  69. transition-duration TRANSITION_TIME
  70. & [data-article].hide
  71. display: none
  72. /* ========================================================================= */
  73. /* ================================ SECTION ================================ */
  74. /* ========================================================================= */
  75. & > section
  76. z-index: 2
  77. width: inherit
  78. &:not(.show)
  79. z-index: 1
  80. /* ========================================================================= */
  81. /* ================================= ASIDE ================================= */
  82. /* ========================================================================= */
  83. & > aside
  84. min-width: ASIDE_WIDTH
  85. display: none
  86. z-index: -1
  87. &.active
  88. display-box()
  89. &.show
  90. z-index: 0
  91. display-box()
  92. &.right
  93. right: 0px