Lungo.layout.article.less 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. @defaultTrasition : @easeOutSine;
  12. @header_footer_height: 40px;
  13. @header_extended_height: 75px;
  14. @footer_toolbar_height: 48px;
  15. /* @group <article> */
  16. article {
  17. position: absolute;
  18. width: 100% !important;
  19. height: auto;
  20. top: 0px;
  21. bottom: 0px;
  22. display: none;
  23. visibility: hidden;
  24. z-index: 0;
  25. &.current {
  26. visibility: visible;
  27. display: block;
  28. z-index: 1;
  29. }
  30. & .title {
  31. font-size: 1.1em;
  32. margin: 0px 0 4px;
  33. & .icon { margin-right: 4px; }
  34. }
  35. & .text {
  36. margin: 4px 0 8px;
  37. display: block;
  38. font-size: 0.9em;
  39. font-weight: normal;
  40. line-height: 1.4em;
  41. }
  42. }
  43. header:not(.extended) ~ article { top: @header-height; }
  44. header.extended ~ article { top: @header_extended_height; }
  45. footer:not(.with-labels) ~ article { bottom: @article-bottom; }
  46. footer.with-labels ~ article { bottom: @article-bottom-with-labels; }
  47. @media handheld, only screen and (min-width: 768px) {
  48. article.aside { .transform(translate3d(0px, 0, 0)); }
  49. }
  50. /* @end */