Lungo.layout.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace LUNGO
  5. * @class Layout
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "mixins.less";
  10. /* @group <section> */
  11. section {
  12. position: absolute;
  13. position: fixed;
  14. width: 100%;
  15. height: 100%;
  16. overflow: hidden;
  17. z-index: 0;
  18. -webkit-backface-visibility: hidden;
  19. .transform(translate3d(100%, 0, 0));
  20. }
  21. section:first-child {
  22. z-index: 1;
  23. .transform(translate3d(0%, 0, 0));
  24. }
  25. section.hide {
  26. z-index: 0;
  27. .transform(translate3d(-100%, 0, 0));
  28. }
  29. section.show {
  30. z-index: 1;
  31. .transform(translate3d(0%, 0, 0));
  32. }
  33. section.static.hide {
  34. .transform(translate3d(0%, 0, 0));
  35. }
  36. section.popup {
  37. .transform(translate3d(0, 100%, 0));
  38. }
  39. section.popup.show {
  40. .transform(translate3d(0, 0%, 0));
  41. }
  42. section.popup.hide {
  43. .transform(translate3d(0, -100%, 0));
  44. }
  45. /* @end */
  46. /* @group <header> & <footer> */
  47. header, footer {
  48. position: absolute;
  49. left: 0px;
  50. width: 100%;
  51. height: 40px;
  52. display: block;
  53. z-index: 2;
  54. line-height: 40px;
  55. }
  56. header {
  57. top: 0px
  58. }
  59. footer {
  60. bottom:0px;
  61. }
  62. header .title, footer .title {
  63. float: left;
  64. margin: 0 8px;
  65. font-size: 1.1em;
  66. }
  67. section header a.button, section footer a.button {
  68. margin: 2px 2px auto;
  69. }
  70. section header a.button.icon, section footer a.button.icon {
  71. width: 17px;
  72. font-size: 1.5em;
  73. font-weight: normal;
  74. }
  75. /* @end */
  76. /* @group <nav> */
  77. nav {
  78. height: inherit;
  79. text-align: center;
  80. font-weight: normal;
  81. }
  82. nav a {
  83. display: inline-block;
  84. padding: 0 9px 0 10px;
  85. height: inherit;
  86. min-width: 22px;
  87. float: left;
  88. font-size: 2.0em;
  89. }
  90. nav a abbr {
  91. position: relative;
  92. bottom: 3px;
  93. margin-left: 4px;
  94. display: none;
  95. font-size: 0.5em;
  96. font-weight: bold;
  97. }
  98. nav a.current abbr {
  99. display: inline;
  100. }
  101. nav a.current {
  102. .transition(all 0.3s ease-in-out);
  103. }
  104. /* @end */
  105. /* @group <article> */
  106. article {
  107. position: absolute;
  108. width: 100%;
  109. height: auto;
  110. top: 0px;
  111. bottom: 0px;
  112. display: block;
  113. z-index: 0;
  114. opacity: 0;
  115. }
  116. article.current {
  117. z-index: 1;
  118. opacity: 1;
  119. }
  120. /* @end */
  121. /* @group .toolbar */
  122. .toolbar {
  123. height: 48px;
  124. line-height: 44px;
  125. display: block;
  126. }
  127. .toolbar a {
  128. float: left;
  129. padding: 0;
  130. font-size: 2.0em;
  131. }
  132. /* @end */