Lungo.layout.aside.less 1.8 KB

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