Lungo.layout.less 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace LUNGO
  5. * @class Layout
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "constants.less";
  10. @import "mixins.less";
  11. /* @group <section> */
  12. section {
  13. position: absolute; /* position: fixed on iOS5 & Android 4 */
  14. left: 0px;
  15. top: 0px;
  16. width: 100%;
  17. height: 100%;
  18. z-index: 0;
  19. display: block;
  20. visibility: hidden;
  21. -webkit-backface-visibility: hidden;
  22. &:first-child, &.show {
  23. z-index: 1;
  24. //display: block;
  25. visibility: visible;
  26. }
  27. &.hide {
  28. z-index: 0;
  29. //display: none;
  30. visibility: hidden;
  31. }
  32. &.slide {
  33. .transform(translate(100%, 0));
  34. //display: block;
  35. visibility: visible !important;
  36. -webkit-transition: -webkit-transform 250ms @defaultTrasition;
  37. /*
  38. -moz-transition: @keyframe @defaultTrasition;
  39. -o-transition: @keyframe @defaultTrasition;
  40. transition: @keyframe @defaultTrasition;
  41. */
  42. &:first-child, &.show { .transform(translate(0%, 0)); }
  43. &.hide { .transform(translate(-100%, 0)); }
  44. }
  45. &.pop {
  46. opacity: 0;
  47. -webkit-transition: all 250ms @defaultTrasition;
  48. .transform(scale(1.15));
  49. &:first-child, &.show {
  50. .transform(scale(1));
  51. opacity: 1;
  52. }
  53. &.hide {
  54. .transform(scale(0.9));
  55. opacity: 0;
  56. }
  57. }
  58. }
  59. /* @end */
  60. /* @group <header> & <footer> */
  61. header, footer {
  62. position: absolute;
  63. left: 0px;
  64. width: 100%;
  65. height: @header-height;
  66. display: block;
  67. z-index: 2;
  68. line-height: @header-height;
  69. overflow: hidden;
  70. }
  71. header {
  72. top: 0px;
  73. /*& .onleft { margin-left: 4px !important;}
  74. & .onright {margin-right: 4px !important;}*/
  75. }
  76. footer { bottom: 0px; }
  77. header .title, footer .title {
  78. //margin: 0 4px;
  79. z-index: -1;
  80. font-size: 15px;
  81. font-weight: bold;
  82. display:block;
  83. &.centered {
  84. position: absolute;
  85. left: 0px;
  86. right: 0px;
  87. text-align: center;
  88. display: inline-block;
  89. }
  90. &.with-subtitle {
  91. line-height: 20px;
  92. padding-top: 4px;
  93. }
  94. }
  95. .subtitle {
  96. display:block;
  97. font-size: 11px;
  98. line-height: 11px;
  99. }
  100. /* @end */