Lungo.layout.article.less 1.0 KB

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. // @todo: section position absolute or FIXED
  13. // position: absolute;
  14. position: fixed;
  15. width: inherit;
  16. height: auto;
  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-height; }
  36. header.extended ~ article { top: @article_with_header_extended; }
  37. footer:not(.with-labels) ~ article { bottom: @article-bottom; }
  38. footer.with-labels ~ article { bottom: @article-bottom-with-labels; }
  39. @media handheld, only screen and (min-width: 768px) {
  40. article.aside { .transform(translate3d(0px, 0, 0)); }
  41. }