Lungo.layout.article.css 947 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Layout
  5. * @class Article
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. article {
  10. position: absolute;
  11. top: 0;
  12. bottom: 0;
  13. width: inherit;
  14. height: auto;
  15. display: none;
  16. visibility: hidden;
  17. z-index: 0;
  18. }
  19. article.active,
  20. article:first-child {
  21. visibility: visible;
  22. display: block;
  23. z-index: 1;
  24. }
  25. article.pull {
  26. -webkit-transition-property: transform;
  27. -moz-transition-property: transform;
  28. transition-property: transform;
  29. -webkit-transition-duration: 300ms;
  30. -moz-transition-duration: 300ms;
  31. transition-duration: 300ms;
  32. }
  33. header:not(.extended) ~ article {
  34. top: 44px;
  35. }
  36. header.extended ~ article {
  37. top: 74px;
  38. }
  39. footer ~ article {
  40. bottom: 44px;
  41. }
  42. @media handheld, only screen and (min-width: 768px) {
  43. article.aside {
  44. -webkit-transform: translate3d(0px, 0, 0);
  45. -moz-transform: translate3d(0px, 0, 0);
  46. transform: translate3d(0px, 0, 0);
  47. }
  48. }