Lungo.layout.aside.less 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace LUNGO.Layout
  5. * @class Aside
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "constants.less";
  10. @import "mixins.less";
  11. section.aside {
  12. &:not(.small) { .transform(translate(@aside-width, 0)); }
  13. &.small { .transform(translate(@aside-width-small, 0)); }
  14. &.onright {
  15. .transform(translate(-@aside-width, 0));
  16. &.small { .transform(translate(-@aside-width-small, 0)); }
  17. }
  18. }
  19. aside {
  20. position: fixed;
  21. height: auto;
  22. top: 0;
  23. bottom: 0;
  24. visibility: hidden;
  25. z-index: 0;
  26. width: @aside-width;
  27. &.onright { right: 0px; }
  28. &.current { visibility: visible;}
  29. & header, & footer {
  30. position: relative;
  31. left: none;
  32. }
  33. &.small {
  34. width: @aside-width-small;
  35. & nav {
  36. margin-top: @header-height;
  37. & a {
  38. padding: 0px;
  39. width: @aside-width-small;
  40. height: @aside-width-small;
  41. }
  42. & .icon {
  43. font-size: 64px;
  44. text-align: center;
  45. }
  46. & .bubble {
  47. left: -24px;
  48. }
  49. }
  50. }
  51. }
  52. @media handheld, only screen and (min-width: 768px) {
  53. .autohide[data-target="aside"] { display: none !important; }
  54. section.aside {
  55. width: auto !important;
  56. left: @aside-width;
  57. right: 0px !important;
  58. .transform(translate3d(0px, 0, 0));
  59. -webkit-transition: none;
  60. &.small{ left: @aside-width-small; }
  61. }
  62. }