lungo.layout.elements.styl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Layout
  5. * @class Article
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "constants.styl"
  10. /* ========================================================================= */
  11. /* ============================= HEADER/FOOTER ============================= */
  12. /* ========================================================================= */
  13. header, footer
  14. height: HEADER_FOOTER_HEIGHT
  15. line-height: HEADER_FOOTER_HEIGHT
  16. // display-box()
  17. // box-pack(justify)
  18. // box-orient(horizontal)
  19. // overflow: hidden
  20. & > nav
  21. box-flex(0)
  22. & > .title
  23. margin: 0 4px
  24. float: left
  25. z-index: -1
  26. font-size: (FONT_SIZE_BIG * 1.2)
  27. z-index: 0
  28. box-flex(1)
  29. &.centered
  30. position: absolute
  31. left: 32px
  32. right: 32px
  33. text-align: center
  34. display: inline-block
  35. & img.title
  36. PAD = 18px
  37. height: (HEADER_FOOTER_HEIGHT - PAD)
  38. margin: (PAD / 2) auto
  39. /* ========================================================================= */
  40. /* ================================ ARTICLE ================================ */
  41. /* ========================================================================= */
  42. article
  43. visibility: hidden
  44. display: none
  45. .show > &.active, .hide > &.active, .hiding > &.active
  46. visibility: visible
  47. display: block
  48. z-index: 1
  49. &.pull
  50. transition-property(transform)
  51. transition-duration(TRANSITION_TIME)
  52. header
  53. &:not(.extended) ~ article
  54. top: HEADER_FOOTER_HEIGHT
  55. &.extended ~ article
  56. top: ARTICLE_WITH_HEADER_EXTENDED
  57. footer ~ article
  58. bottom: HEADER_FOOTER_HEIGHT
  59. @media handheld, only screen and (min-width: 768px)
  60. article.aside
  61. transform(translate3d(0px, 0, 0))