Lungo.layout.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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. body {
  12. height: 100%;
  13. }
  14. section{
  15. position: absolute;
  16. position: fixed;
  17. width: 100%;
  18. height: inherit;
  19. z-index: 0;
  20. -webkit-backface-visibility: hidden;
  21. .transform(translate3d(100%, 0, 0));
  22. }
  23. section:first-child {
  24. z-index: 1;
  25. .transform(translate3d(0%, 0, 0));
  26. }
  27. section.hide {
  28. z-index: 0;
  29. .transform(translate3d(-100%, 0, 0));
  30. }
  31. section.show {
  32. z-index: 1;
  33. .transform(translate3d(0%, 0, 0));
  34. }
  35. section.static.hide {
  36. .transform(translate3d(0%, 0, 0));
  37. }
  38. section.popup {
  39. .transform(translate3d(0, 100%, 0));
  40. }
  41. section.popup.show {
  42. .transform(translate3d(0, 0%, 0));
  43. }
  44. section.popup.hide {
  45. .transform(translate3d(0, -100%, 0));
  46. }
  47. /* @end */
  48. /* @group <header> & <footer> */
  49. header, footer {
  50. position: absolute;
  51. left: 0px;
  52. width: 100%;
  53. height: 40px;
  54. display: block;
  55. z-index: 2;
  56. line-height: 40px;
  57. }
  58. header {
  59. top: 0px
  60. }
  61. footer {
  62. bottom:0px;
  63. }
  64. header .title, footer .title {
  65. float: left;
  66. margin: 0 8px;
  67. font-size: 1.1em;
  68. }
  69. section header a.button, section footer a.button {
  70. margin: 2px 2px auto;
  71. }
  72. section header a.button.icon, section footer a.button.icon {
  73. width: 17px;
  74. font-size: 1.5em;
  75. font-weight: normal;
  76. }
  77. /* @end */
  78. /* @group <nav> */
  79. nav {
  80. height: inherit;
  81. text-align: center;
  82. font-weight: normal;
  83. }
  84. nav a {
  85. display: inline-block;
  86. padding: 0 9px 0 10px;
  87. height: inherit;
  88. min-width: 22px;
  89. float: left;
  90. font-size: 2.0em;
  91. }
  92. nav a abbr {
  93. position: relative;
  94. bottom: 3px;
  95. margin-left: 4px;
  96. display: none;
  97. font-size: 0.5em;
  98. font-weight: bold;
  99. }
  100. nav a.current abbr {
  101. display: inline;
  102. }
  103. nav a.current {
  104. .transition(all 0.3s ease-in-out);
  105. }
  106. /* @end */
  107. /* @group <article> */
  108. article {
  109. position: absolute;
  110. width: 100%;
  111. height: auto;
  112. top: 0px;
  113. bottom: 0px;
  114. display: block;
  115. z-index: 0;
  116. opacity: 0;
  117. }
  118. article.current {
  119. z-index: 1;
  120. opacity: 1;
  121. }
  122. /* @end */
  123. /* @group <article> */
  124. article {
  125. position: absolute;
  126. width: 100%;
  127. height: auto;
  128. top: 0px;
  129. bottom: 0px;
  130. z-index: 0;
  131. opacity: 0;
  132. }
  133. article.current {
  134. z-index: 1;
  135. opacity: 1;
  136. }
  137. article.aside {
  138. left: 256px !important;
  139. }
  140. /* @end */
  141. /* @group <aside> */
  142. aside {
  143. position: absolute;
  144. top: 0px;
  145. bottom: 0px;
  146. width: 256px;
  147. height: auto;
  148. /* @ToDo */
  149. padding-top: 40px;
  150. }
  151. aside a{
  152. display: block;
  153. width: 100%;
  154. height: 48px;
  155. padding: 0 8px;
  156. font-size: 1.1em;
  157. font-weight: bold;
  158. line-height: 48px;
  159. }
  160. aside a .icon {
  161. width: 32px;
  162. float: left;
  163. margin: 8px 4px 0 0;
  164. opacity: 0.5;
  165. font-size: 2.2em;
  166. text-align: center;
  167. }
  168. @media handheld, only screen and (max-width: 768px) {
  169. article {
  170. -webkit-transition: left 0.3s ease-in-out;
  171. }
  172. aside {
  173. width: 0px;
  174. }
  175. aside.show {
  176. width: 256px;
  177. }
  178. }
  179. /* @end */