lungo.layout.aside.styl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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.styl"
  10. section.aside
  11. &:not(.small)
  12. transform translateX(ASIDE_WIDTH)
  13. &.small
  14. transform translateX(ASIDE_WIDTH_SMALL)
  15. &.right
  16. transform translateX(-(ASIDE_WIDTH))
  17. &.small
  18. transform translateX(-(ASIDE_WIDTH_SMALL))
  19. aside
  20. position: absolute
  21. top: 0
  22. bottom: 0
  23. height: inherit
  24. width: ASIDE_WIDTH
  25. visibility: hidden
  26. z-index: -1
  27. &.show
  28. z-index: 0
  29. visibility: visible
  30. &.right
  31. right: 0px
  32. & header, footer
  33. position: relative
  34. left: none
  35. height: HEADER_FOOTER_HEIGHT
  36. & footer
  37. position: absolute
  38. bottom: 0
  39. &.small
  40. width: ASIDE_WIDTH_SMALL
  41. & nav
  42. width: ASIDE_WIDTH_SMALL
  43. text-align: center
  44. & a
  45. display: block
  46. padding: 0px
  47. width: ASIDE_WIDTH_SMALL
  48. height: ASIDE_WIDTH_SMALL
  49. & .icon
  50. position: absolute
  51. width: inherit
  52. font-size: ASIDE_SMALL_ICON
  53. line-height: (ASIDE_WIDTH_SMALL - 8)
  54. & .tag
  55. position: relative
  56. top: -(ASIDE_WIDTH_SMALL)
  57. right: -(ASIDE_WIDTH_SMALL / 3.4)
  58. &:first-child
  59. margin-top: 8px