Lungo.layout.article.less 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. position: fixed;
  14. // width: 100% !important;
  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. & > .loading {
  35. //margin-top: 10%;
  36. }
  37. }
  38. header:not(.extended) ~ article { top: @header-height; }
  39. header.extended ~ article { top: @article_with_header_extended; }
  40. footer:not(.with-labels) ~ article { bottom: @article-bottom; }
  41. footer.with-labels ~ article { bottom: @article-bottom-with-labels; }
  42. @media handheld, only screen and (min-width: 768px) {
  43. article.aside { .transform(translate3d(0px, 0, 0)); }
  44. }