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