Lungo.layout.article.less 1004 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.less";
  10. article {
  11. position: absolute;
  12. width: inherit;
  13. height: auto;
  14. // width: 100%;
  15. // eight: 100%;
  16. top: 0;
  17. bottom: 0;
  18. display: none;
  19. visibility: hidden;
  20. z-index: 0;
  21. &.current, &:first-child {
  22. visibility: visible;
  23. display: block;
  24. z-index: 1;
  25. }
  26. &.pull {
  27. .transition(all 300ms @defaultTrasition);
  28. }
  29. & .text {
  30. margin: 4px 0 8px;
  31. display: block;
  32. font-size: 0.9em;
  33. font-weight: normal;
  34. line-height: 1.4em;
  35. }
  36. }
  37. header:not(.extended) ~ article { top: @header-footer-height; }
  38. header.extended ~ article { top: @article_with_header_extended; }
  39. footer ~ article { bottom: @header-footer-height; }
  40. @media handheld, only screen and (min-width: 768px) {
  41. article.aside { .transform(translate3d(0px, 0, 0)); }
  42. }