Lungo.layout.aside.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. &.right {
  15. .transform(translate(-@aside-width, 0));
  16. &.small { .transform(translate(-@aside-width-small, 0)); }
  17. }
  18. }
  19. aside {
  20. position: absolute;
  21. height: auto;
  22. top: 0;
  23. bottom: 0;
  24. display: none;
  25. z-index: 0;
  26. width: @aside-width;
  27. &.right { right: 0px; }
  28. &.current {
  29. display: block;
  30. }
  31. & header, & footer {
  32. position: relative;
  33. left: none;
  34. height: @header-height;
  35. }
  36. & footer {
  37. position: absolute;
  38. bottom: 0;
  39. }
  40. &.small {
  41. width: @aside-width-small;
  42. & nav {
  43. width: @aside-width-small;
  44. & a {
  45. padding: 0px;
  46. width: @aside-width-small;
  47. height: @aside-width-small;
  48. }
  49. & .icon {
  50. font-size: 48px;
  51. text-align: center;
  52. }
  53. & .bubble {
  54. top: -36px;
  55. left: -16px;
  56. }
  57. }
  58. }
  59. }
  60. @media handheld, only screen and (min-width: 768px) {
  61. .autohide[data-target="aside"] { display: none !important; }
  62. section.aside {
  63. width: auto !important;
  64. left: @aside-width;
  65. right: 0px !important;
  66. .transform(translate3d(0px, 0, 0));
  67. -webkit-transition: none;
  68. &.small{ left: @aside-width-small; }
  69. }
  70. }