Lungo.layout.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo
  5. * @class Layout
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. /* DIMENSIONS */
  10. /* COLORS */
  11. section {
  12. position: fixed;
  13. left: 0;
  14. top: 0;
  15. width: 100%;
  16. height: 100%;
  17. z-index: -1;
  18. display: none;
  19. visibility: hidden;
  20. -webkit-transition: all 250ms cubic-bezier(0.39, 0.575, 0.565, 1);
  21. -moz-transition: all 250ms cubic-bezier(0.39, 0.575, 0.565, 1);
  22. -ms-transition: all 250ms cubic-bezier(0.39, 0.575, 0.565, 1);
  23. -o-transition: all 250ms cubic-bezier(0.39, 0.575, 0.565, 1);
  24. transition: all 250ms cubic-bezier(0.39, 0.575, 0.565, 1);
  25. -webkit-transition: all 250ms cubic-bezier(0.39, 0.575, 0.565, 1);
  26. -moz-transition: all 250ms cubic-bezier(0.39, 0.575, 0.565, 1);
  27. -ms-transition: all 250ms cubic-bezier(0.39, 0.575, 0.565, 1);
  28. -o-transition: all 250ms cubic-bezier(0.39, 0.575, 0.565, 1);
  29. transition: all 250ms cubic-bezier(0.39, 0.575, 0.565, 1);
  30. -webkit-backface-visibility: hidden;
  31. }
  32. section:first-child,
  33. section.show {
  34. z-index: 1;
  35. display: block;
  36. visibility: visible;
  37. }
  38. section.hide {
  39. z-index: -1;
  40. display: none;
  41. visibility: hidden;
  42. }
  43. section[data-transition] {
  44. display: block !important;
  45. }
  46. section[data-transition="pop"] {
  47. opacity: 0;
  48. -webkit-transform: scale(1.15);
  49. -moz-transform: scale(1.15);
  50. -ms-transform: scale(1.15);
  51. -o-transform: scale(1.15);
  52. transform: scale(1.15);
  53. -webkit-transform: scale(1.15);
  54. -moz-transform: scale(1.15);
  55. -ms-transform: scale(1.15);
  56. -o-transform: scale(1.15);
  57. transform: scale(1.15);
  58. }
  59. section[data-transition="pop"]:first-child,
  60. section[data-transition="pop"].show {
  61. -webkit-transform: scale(1);
  62. -moz-transform: scale(1);
  63. -ms-transform: scale(1);
  64. -o-transform: scale(1);
  65. transform: scale(1);
  66. -webkit-transform: scale(1);
  67. -moz-transform: scale(1);
  68. -ms-transform: scale(1);
  69. -o-transform: scale(1);
  70. transform: scale(1);
  71. opacity: 1;
  72. }
  73. section[data-transition="pop"].hide {
  74. -webkit-transform: scale(0.9);
  75. -moz-transform: scale(0.9);
  76. -ms-transform: scale(0.9);
  77. -o-transform: scale(0.9);
  78. transform: scale(0.9);
  79. -webkit-transform: scale(0.9);
  80. -moz-transform: scale(0.9);
  81. -ms-transform: scale(0.9);
  82. -o-transform: scale(0.9);
  83. transform: scale(0.9);
  84. opacity: 0;
  85. }
  86. section[data-transition="slide"] {
  87. -webkit-transform: translate(100%, 0);
  88. -moz-transform: translate(100%, 0);
  89. -ms-transform: translate(100%, 0);
  90. -o-transform: translate(100%, 0);
  91. transform: translate(100%, 0);
  92. -webkit-transform: translate(100%, 0);
  93. -moz-transform: translate(100%, 0);
  94. -ms-transform: translate(100%, 0);
  95. -o-transform: translate(100%, 0);
  96. transform: translate(100%, 0);
  97. visibility: visible !important;
  98. }
  99. section[data-transition="slide"]:first-child,
  100. section[data-transition="slide"].show {
  101. -webkit-transform: translate(0%, 0);
  102. -moz-transform: translate(0%, 0);
  103. -ms-transform: translate(0%, 0);
  104. -o-transform: translate(0%, 0);
  105. transform: translate(0%, 0);
  106. -webkit-transform: translate(0%, 0);
  107. -moz-transform: translate(0%, 0);
  108. -ms-transform: translate(0%, 0);
  109. -o-transform: translate(0%, 0);
  110. transform: translate(0%, 0);
  111. }
  112. section[data-transition="slide"].hide {
  113. -webkit-transform: translate(-100%, 0);
  114. -moz-transform: translate(-100%, 0);
  115. -ms-transform: translate(-100%, 0);
  116. -o-transform: translate(-100%, 0);
  117. transform: translate(-100%, 0);
  118. -webkit-transform: translate(-100%, 0);
  119. -moz-transform: translate(-100%, 0);
  120. -ms-transform: translate(-100%, 0);
  121. -o-transform: translate(-100%, 0);
  122. transform: translate(-100%, 0);
  123. }
  124. header,
  125. footer {
  126. position: absolute;
  127. left: 0;
  128. width: 100%;
  129. display: block;
  130. z-index: 1;
  131. overflow: hidden;
  132. }
  133. header {
  134. top: 0;
  135. height: 44px;
  136. line-height: 44px;
  137. }
  138. header .title {
  139. margin-left: 4px;
  140. float: left;
  141. z-index: -1;
  142. font-size: 1.2em;
  143. font-weight: bold;
  144. }
  145. header .title.with-subtitle {
  146. line-height: 34px;
  147. }
  148. header .title.with-subtitle .subtitle {
  149. position: relative;
  150. top: -4px;
  151. display: block;
  152. font-size: 0.7em;
  153. line-height: 0.7em;
  154. }
  155. header .title img {
  156. height: 24px;
  157. }
  158. header .title.centered {
  159. position: absolute;
  160. left: 0px;
  161. right: 0px;
  162. text-align: center;
  163. display: inline-block;
  164. }
  165. footer {
  166. bottom: 0;
  167. height: 44px;
  168. }