theme.layout.nav.styl 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Theme
  5. * @class Layout
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. nav
  10. header > &
  11. & a:not(.button)
  12. color: THEME
  13. & .button, button
  14. color: lighten(COLOR, 20%)
  15. & a, button
  16. &:active
  17. color: WHITE
  18. text-shadow: 0 0 1em WHITE
  19. section > footer > & > a, &[data-control=groupbar] > a
  20. color: NAV_LINK
  21. & .icon
  22. text-shadow: 0 1px darken(COLOR, 25%)
  23. & abbr
  24. font-weight: 600
  25. &.active
  26. transition box-shadow TRANSITION_time TRANSITION_easing
  27. color: NAV_LINK_ACTIVE
  28. background-color: lighten(COLOR, 5%)
  29. section > &[data-control=groupbar] > a.active
  30. box-shadow inset 0 -2px 0 THEME
  31. section > footer > & > a.active
  32. box-shadow inset 0 2px THEME
  33. &[data-control=menu]
  34. background-color: rgba(0,0,0,0.8)
  35. box-shadow 0 2px 0 SHADOW
  36. &.icons
  37. & > a
  38. color: lighten(COLOR, 40%)
  39. &:active > .icon
  40. text-shadow: 0 0 2em #fff
  41. & > .icon
  42. color: #fff
  43. &:not(.icons)
  44. & > a
  45. color: #fff
  46. & > .icon
  47. color: lighten(COLOR, 40%)
  48. &:active, &:hover
  49. background-color: rgba(255,255,255,0.2)