Lungo.layout.aside.styl 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Layout
  5. * @class Aside
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "import/constants.styl"
  10. @import "import/vendor.styl"
  11. section.aside
  12. &:not(.small)
  13. transform( translateX(ASIDE_WIDTH) )
  14. &.small
  15. transform( translateX(ASIDE_WIDTH_SMALL) )
  16. &.right
  17. transform( translateX(-ASIDE_WIDTH) )
  18. &.small
  19. transform( translateX(-ASIDE_WIDTH_SMALL) )
  20. aside
  21. position: absolute
  22. top: 0
  23. bottom: 0
  24. height: inherit
  25. width: ASIDE_WIDTH
  26. display: none
  27. z-index: -1
  28. &.right
  29. right: 0px
  30. &.show
  31. z-index: 0
  32. display: block
  33. & header, footer
  34. position: relative
  35. left: none
  36. height: HEADER_FOOTER_HEIGHT
  37. & footer
  38. position: absolute
  39. bottom: 0
  40. & .bubble
  41. float: right
  42. &.small
  43. width: ASIDE_WIDTH_SMALL
  44. & nav
  45. width: ASIDE_WIDTH_SMALL
  46. text-align: center
  47. & a
  48. display: block
  49. padding: 0px
  50. width: ASIDE_WIDTH_SMALL
  51. height: ASIDE_WIDTH_SMALL
  52. & .icon
  53. position: absolute
  54. width: inherit
  55. line-height: ASIDE_WIDTH_SMALL
  56. & .bubble
  57. position: relative
  58. top: -54px
  59. right: 6px
  60. &:first-child
  61. margin-top: 8px