Lungo.layout.less 1.7 KB

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