lungo.layout.styl 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. aside, section
  17. display-box()
  18. box-orient(vertical)
  19. height: inherit
  20. & > header, > footer
  21. box-flex(0)
  22. z-index: 3
  23. position: relative
  24. & > header
  25. ordinal-group(1)
  26. & > article
  27. box-flex(1)
  28. ordinal-group(2)
  29. z-index: -1
  30. & > footer
  31. ordinal-group(3)
  32. /* ========================================================================= */
  33. /* ================================ SECTION ================================ */
  34. /* ========================================================================= */
  35. section
  36. z-index: 2
  37. width: inherit
  38. &:not(.show)
  39. z-index: 1
  40. /* ========================================================================= */
  41. /* ================================= ASIDE ================================= */
  42. /* ========================================================================= */
  43. aside
  44. min-width: ASIDE_WIDTH
  45. display: none
  46. z-index: -1
  47. &.active
  48. display-box()
  49. &.show
  50. z-index: 0
  51. display-box()
  52. &.right
  53. right: 0px
  54. /* ========================================================================= */
  55. /* ============================= HEADER/FOOTER ============================= */
  56. /* ========================================================================= */
  57. header, footer
  58. height: HEADER_HEIGHT
  59. line-height: HEADER_HEIGHT
  60. & > nav
  61. box-flex(0)
  62. & > .title
  63. z-index: -1
  64. margin: 0 4px
  65. float: left
  66. font-size: (FONT_SIZE_BIG * 1.2)
  67. box-flex(1)
  68. &.centered
  69. position: absolute
  70. left: 32px
  71. right: 32px
  72. text-align: center
  73. display: inline-block
  74. & > img.title
  75. PAD = 18px
  76. height: (HEADER_HEIGHT - PAD)
  77. margin: (PAD / 2) auto
  78. /* ========================================================================= */
  79. /* ================================ ARTICLE ================================ */
  80. /* ========================================================================= */
  81. article
  82. visibility: hidden
  83. display: none
  84. .show > &.active, .hide > &.active, .hiding > &.active
  85. visibility: visible
  86. display: block
  87. z-index: 1
  88. &.pull
  89. transition-property transform
  90. transition-duration TRANSITION_TIME