Lungo.layout.less 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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. -webkit-transition: -webkit-transform 0.3s ease-in-out;
  23. }
  24. section:first-child {
  25. z-index: 1;
  26. .transform(translate3d(0%, 0, 0));
  27. }
  28. section.hide {
  29. z-index: 0;
  30. .transform(translate3d(-100%, 0, 0));
  31. }
  32. section.show {
  33. z-index: 1;
  34. .transform(translate3d(0%, 0, 0));
  35. }
  36. section.static.hide {
  37. .transform(translate3d(0%, 0, 0));
  38. }
  39. section.popup {
  40. .transform(translate3d(0, 100%, 0));
  41. }
  42. section.popup.show {
  43. .transform(translate3d(0, 0%, 0));
  44. }
  45. section.popup.hide {
  46. .transform(translate3d(0, -100%, 0));
  47. }
  48. /* @end */
  49. /* @group <header> & <footer> */
  50. header, footer {
  51. position: absolute;
  52. left: 0px;
  53. width: 100%;
  54. height: 40px;
  55. display: block;
  56. z-index: 2;
  57. line-height: 40px;
  58. }
  59. header {
  60. top: 0px
  61. }
  62. footer {
  63. bottom:0px;
  64. }
  65. header .title, footer .title {
  66. float: left;
  67. margin: 0 8px;
  68. font-size: 1.3em;
  69. }
  70. header .title {
  71. position: absolute;
  72. left: 0px;
  73. width: 100%;
  74. margin:0px auto;
  75. text-align: center;
  76. z-index: -1;
  77. }
  78. section header a.button, section footer a.button {
  79. margin: 4px 3px auto;
  80. }
  81. section header a.button.icon, section footer a.button.icon {
  82. width: 17px;
  83. font-size: 1.5em;
  84. font-weight: normal;
  85. }
  86. /* @end */
  87. /* @group <nav> */
  88. nav {
  89. height: inherit;
  90. text-align: center;
  91. font-weight: normal;
  92. }
  93. nav a {
  94. display: inline-block;
  95. padding: 0 6px;
  96. height: inherit;
  97. float: left;
  98. font-size: 2.0em;
  99. }
  100. nav a abbr {
  101. position: relative;
  102. bottom: 3px;
  103. margin-left: 2px;
  104. display: none;
  105. font-size: 0.5em;
  106. font-weight: bold;
  107. }
  108. nav a.current abbr {
  109. display: inline;
  110. }
  111. nav a.current {
  112. .transition(all 0.3s ease-in-out);
  113. }
  114. /* @end */
  115. /* @group <aside> */
  116. aside {
  117. position: absolute;
  118. top: 0px;
  119. bottom: 0px;
  120. height: auto;
  121. width: 0px;
  122. }
  123. aside.show {
  124. width: 256px;
  125. }
  126. header ~ aside {
  127. padding-top: 40px;
  128. }
  129. footer ~ aside {
  130. padding-bottom: 40px;
  131. }
  132. aside ~ article{
  133. -webkit-transition: left 0.3s ease-in-out;
  134. left: 0px;
  135. }
  136. aside a{
  137. display: block;
  138. width: 244px;
  139. height: 40px;
  140. padding: 0 6px;
  141. font-size: 1.1em;
  142. font-weight: bold;
  143. line-height: 40px;
  144. }
  145. aside a .icon {
  146. width: 28px;
  147. height: 28px;
  148. float: left;
  149. margin: 8px 6px 0 0;
  150. font-size: 1.9em;
  151. line-height: 1.0em;
  152. text-align: center;
  153. }
  154. @media handheld, only screen and (min-width: 768px) {
  155. [data-target="aside"] {
  156. display: none !important;
  157. }
  158. aside {
  159. width: 256px;
  160. }
  161. aside ~ article{
  162. left: 256px;
  163. }
  164. }
  165. /* @end */
  166. /* @group <article> */
  167. article {
  168. position: absolute;
  169. width: 100%;
  170. height: auto;
  171. top: 0px;
  172. bottom: 0px;
  173. display: block;
  174. z-index: 0;
  175. opacity: 0;
  176. }
  177. header ~ article {
  178. top: 40px;
  179. }
  180. footer ~ article {
  181. bottom: 40px;
  182. }
  183. article.current {
  184. z-index: 1;
  185. opacity: 1;
  186. }
  187. article.aside {
  188. left: 256px !important;
  189. }
  190. article.indented {
  191. background-color: #e2e2e2;
  192. }
  193. .indented ul, .indented form {
  194. margin: 10px;
  195. .border-radius(4px);
  196. border: 1px solid #c5c5c5;
  197. box-shadow: 0px 0px 8px #ccc;
  198. }
  199. .indented li:first-child {
  200. border-top-left-radius: 4px;
  201. border-top-right-radius: 4px;
  202. }
  203. .indented li:last-child {
  204. border-bottom-left-radius: 4px;
  205. border-bottom-right-radius: 4px;
  206. }
  207. .list .contrasted {
  208. background-color: #f4f4f4 !important;
  209. box-shadow: inset 0px 1px 0px #fff;
  210. }
  211. .list .toolbar a {
  212. box-shadow: 1px 0px 0px #d9d9d9 ;
  213. }
  214. .list .toolbar a:last-child {
  215. box-shadow: none;
  216. }
  217. .list .toolbar a.current {
  218. color: #419ad9;
  219. }
  220. /* @end */
  221. .toolbar{
  222. height:48px;
  223. line-height:44px;
  224. display:block;
  225. }
  226. .toolbar a{
  227. float:left;
  228. padding:0;
  229. font-size:2.0em;
  230. }