s.lungo.layout.article.styl 823 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Layout
  5. * @class Article
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "import/constants.styl"
  10. @import "import/vendor.styl"
  11. article
  12. position: absolute
  13. top: 0
  14. bottom: 0
  15. width: inherit
  16. height: auto
  17. visibility: hidden
  18. display: none
  19. z-index: 0
  20. .show > &.active, .hide > &.active, .hiding > &.active
  21. visibility: visible
  22. display: block
  23. z-index: 1
  24. &.pull
  25. transition-property(transform)
  26. transition-duration(TRANSITION_TIME)
  27. header
  28. &:not(.extended) ~ article
  29. top: HEADER_FOOTER_HEIGHT
  30. &.extended ~ article
  31. top: ARTICLE_WITH_HEADER_EXTENDED
  32. footer ~ article
  33. bottom: HEADER_FOOTER_HEIGHT
  34. @media handheld, only screen and (min-width: 768px)
  35. article.aside
  36. transform(translate3d(0px, 0, 0))