Lungo.layout.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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 .toolbar */
  124. .toolbar {
  125. height: 48px;
  126. line-height: 44px;
  127. display: block;
  128. }
  129. .toolbar a {
  130. float: left;
  131. padding: 0;
  132. font-size: 2.0em;
  133. }
  134. /* @end */