Lungo.layout.less 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. }
  45. footer {
  46. bottom:0px;
  47. }
  48. header .title, footer .title {
  49. margin: 0 4px;
  50. float: left;
  51. z-index: -1;
  52. font-size: 15px;
  53. font-weight: bold;
  54. }
  55. header .title {
  56. position: absolute;
  57. left: 0px;
  58. right: 0px;
  59. text-align: center;
  60. display: inline-block;
  61. }
  62. section header a.button, section footer a.button {
  63. margin: 3px 0 0 1px;
  64. &:first-of-type { margin-left: 4px; }
  65. &:last-child { margin-right: 4px; }
  66. }
  67. /* @end */