Lungo.layout.less 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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.3em;
  68. }
  69. header .title {
  70. position: absolute;
  71. left: 0px;
  72. width: 100%;
  73. margin:0px auto;
  74. text-align: center;
  75. z-index: -1;
  76. }
  77. section header a.button, section footer a.button {
  78. margin: 2px 2px auto;
  79. }
  80. section header a.button.icon, section footer a.button.icon {
  81. width: 17px;
  82. font-size: 1.5em;
  83. font-weight: normal;
  84. }
  85. /* @end */
  86. /* @group <nav> */
  87. nav {
  88. height: inherit;
  89. text-align: center;
  90. font-weight: normal;
  91. }
  92. nav a {
  93. display: inline-block;
  94. padding: 0 6px;
  95. height: inherit;
  96. float: left;
  97. font-size: 2.0em;
  98. }
  99. nav a abbr {
  100. position: relative;
  101. bottom: 3px;
  102. margin-left: 2px;
  103. display: none;
  104. font-size: 0.5em;
  105. font-weight: bold;
  106. }
  107. nav a.current abbr {
  108. display: inline;
  109. }
  110. nav a.current {
  111. .transition(all 0.3s ease-in-out);
  112. }
  113. /* @end */
  114. /* @group <article> */
  115. article {
  116. position: absolute;
  117. width: 100%;
  118. height: auto;
  119. top: 0px;
  120. bottom: 0px;
  121. display: block;
  122. z-index: 0;
  123. opacity: 0;
  124. }
  125. article.current {
  126. z-index: 1;
  127. opacity: 1;
  128. }
  129. .toolbar{
  130. height:48px;
  131. line-height:44px;
  132. display:block;
  133. }
  134. .toolbar a{
  135. float:left;
  136. padding:0;
  137. font-size:2.0em;
  138. }
  139. article.aside {
  140. left: 256px !important;
  141. }
  142. /* @end */
  143. /* @group <aside> */
  144. aside {
  145. position: absolute;
  146. top: 0px;
  147. bottom: 0px;
  148. width: 256px;
  149. height: auto;
  150. /* @ToDo */
  151. padding-top: 40px;
  152. }
  153. aside a{
  154. display: block;
  155. width: 242px;
  156. height: 40px;
  157. padding: 0 6px;
  158. font-size: 1.1em;
  159. font-weight: bold;
  160. line-height: 40px;
  161. }
  162. aside a .icon {
  163. width: 28px;
  164. height: 28px;
  165. float: left;
  166. margin: 8px 6px 0 0;
  167. font-size: 1.9em;
  168. line-height: 1.0em;
  169. text-align: center;
  170. }
  171. @media handheld, only screen and (max-width: 768px) {
  172. article {
  173. -webkit-transition: left 0.3s ease-in-out;
  174. }
  175. aside {
  176. width: 0px;
  177. }
  178. aside.show {
  179. width: 256px;
  180. }
  181. }
  182. /* @end */