theme.layout.nav.styl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Theme
  5. * @class Layout
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "__init.styl"
  10. nav
  11. section > header > &
  12. & a:not(.button)
  13. color: darken(THEME, 35%)
  14. text-shadow 0 1px 0 lighten(THEME, 25%)
  15. &:active
  16. color: darken(THEME, 50%)
  17. section > footer > & > a, &[data-control=groupbar] > a
  18. color: NAV_LINK
  19. &.active
  20. color: NAV_LINK_ACTIVE
  21. section > &[data-control=groupbar] > a.active
  22. transition box-shadow TRANSITION_time TRANSITION_easing
  23. box-shadow inset 0 -4px 0 THEME
  24. section > footer > & > a
  25. box-shadow inset 0 1px 0 #000, inset 0 2px 0 lighten(COLOR, 20%)
  26. &.active
  27. box-shadow inset 0 0 16px darken(COLOR, 75%)
  28. background-color: darken(COLOR, 10%)
  29. aside & a
  30. color: lighten(COLOR, 20%)
  31. &:active
  32. color: lighten(COLOR, 50%)
  33. &[data-control=menu]
  34. background: COLOR
  35. box-shadow 0 2px 0 rgba(0,0,0,0.15)
  36. &.icons
  37. background: rgba(0,0,0,0.8)
  38. & > a
  39. color: lighten(COLOR, 35%)
  40. &:active > .icon
  41. text-shadow: 0 0 32px #fff
  42. & > .icon
  43. color: #fff
  44. &:not(.icons)
  45. & > a
  46. color: #fff
  47. // text-shadow 0 1px 0 #111
  48. border-bottom: 1px solid darken(COLOR, 20%)
  49. border-top: 1px solid lighten(COLOR, 5%)
  50. &:active
  51. background: darken(COLOR, 15%)
  52. border-color: transparent
  53. & > .icon
  54. color: lighten(COLOR, 25%)
  55. & > a
  56. font-weight: 600