Lungo.layout.article.less 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. position: fixed;
  19. width: 100% !important;
  20. height: auto;
  21. top: 0;
  22. bottom: 0;
  23. display: none;
  24. visibility: hidden;
  25. z-index: 0;
  26. &.current, &:first-child {
  27. visibility: visible;
  28. display: block;
  29. z-index: 1;
  30. }
  31. & .title {
  32. font-size: 1.1em;
  33. margin: 0px 0 4px;
  34. & .icon { margin-right: 4px; }
  35. }
  36. & .text {
  37. margin: 4px 0 8px;
  38. display: block;
  39. font-size: 0.9em;
  40. font-weight: normal;
  41. line-height: 1.4em;
  42. }
  43. & .box {
  44. &.quarter {
  45. height: 25%;
  46. }
  47. &.third {
  48. height: 33.3%;
  49. }
  50. &.middle {
  51. height: 50%;
  52. }
  53. &.two-thirds {
  54. height: 66.7%;
  55. }
  56. }
  57. }
  58. .prueba li {
  59. list-style: none;
  60. float: left;
  61. width: 48px;
  62. height: 48px;
  63. background: #ccc;
  64. margin: 1px;
  65. }
  66. header:not(.extended) ~ article { top: @header-height; }
  67. header.extended ~ article { top: @header_extended_height; }
  68. footer:not(.with-labels) ~ article { bottom: @article-bottom; }
  69. footer.with-labels ~ article { bottom: @article-bottom-with-labels; }
  70. @media handheld, only screen and (min-width: 768px) {
  71. article.aside { .transform(translate3d(0px, 0, 0)); }
  72. }
  73. /* @end */