Lungo.layout.aside.less 1.8 KB

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