Lungo.layout.less 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. @defaultTrasition : @easeOutSine;
  11. @header_footer_height: 40px;
  12. @header_extended_height: 74px;
  13. @footer_toolbar_height: 48px;
  14. /* @group <section> */
  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: 1;
  22. .transform(translate3d(100%, 0, 0));
  23. -webkit-backface-visibility: hidden;
  24. -webkit-transition: -webkit-transform 250ms @defaultTrasition;
  25. &:first-child, &.show { .transform(translate3d(0%, 0, 0)); }
  26. &.hide { .transform(translate3d(-100%, 0, 0)); }
  27. &.pop {
  28. .transform(scale(0.5));
  29. opacity: 0;
  30. -webkit-transition: all 250ms @defaultTrasition;
  31. &:first-child, &.show {
  32. .transform(scale(1));
  33. opacity: 1;
  34. }
  35. &.hide {
  36. .transform(scale(1.2));
  37. opacity: 0;
  38. }
  39. }
  40. }
  41. /* @end */
  42. /* @group <header> & <footer> */
  43. header, footer {
  44. position: absolute;
  45. left: 0px;
  46. width: 100%;
  47. height: 38px;
  48. display: block;
  49. z-index: 2;
  50. line-height: 39px;
  51. }
  52. header {
  53. top: 0px;
  54. //&.extended { height: 72px; }
  55. & .onleft { margin-left: 4px !important;}
  56. & .onright {margin-right: 4px !important;}
  57. }
  58. footer {
  59. bottom:0px;
  60. }
  61. header .title, footer .title {
  62. margin: 0 4px;
  63. float: left;
  64. z-index: -1;
  65. font-size: 15px;
  66. font-weight: bold;
  67. }
  68. header .title {
  69. position: absolute;
  70. left: 0px;
  71. right: 0px;
  72. text-align: center;
  73. display: inline-block;
  74. }
  75. section header a.button, section footer a.button {
  76. margin: 3px 1px 0px;
  77. /*
  78. &:first-of-type { margin-left: 4px; }
  79. &:last-child { margin-right: 4px; }
  80. */
  81. }
  82. /* @end */