Lungo.layout.less 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 {
  26. .transform(translate3d(0%, 0, 0)); }
  27. &.hide {
  28. .transform(translate3d(-100%, 0, 0)); }
  29. }
  30. /* @end */
  31. /* @group <header> & <footer> */
  32. header, footer {
  33. position: absolute;
  34. left: 0px;
  35. width: 100%;
  36. height: 38px;
  37. display: block;
  38. z-index: 2;
  39. line-height: 39px;
  40. }
  41. header {
  42. top: 0px;
  43. //&.extended { height: 72px; }
  44. & .onleft { margin-left: 4px !important;}
  45. & .onright {margin-right: 4px !important;}
  46. }
  47. footer {
  48. bottom:0px;
  49. }
  50. header .title, footer .title {
  51. margin: 0 4px;
  52. float: left;
  53. z-index: -1;
  54. font-size: 15px;
  55. font-weight: bold;
  56. }
  57. header .title {
  58. position: absolute;
  59. left: 0px;
  60. right: 0px;
  61. text-align: center;
  62. display: inline-block;
  63. }
  64. section header a.button, section footer a.button {
  65. margin: 3px 1px 0px;
  66. /*
  67. &:first-of-type { margin-left: 4px; }
  68. &:last-child { margin-right: 4px; }
  69. */
  70. }
  71. /* @end */