theme.layout.nav.styl 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. section > header > &
  11. & a:not(.button)
  12. color: darken(THEME, 35%)
  13. text-shadow 0 1px 0 lighten(THEME, 25%)
  14. &:active
  15. color: darken(THEME, 50%)
  16. section > footer > & > a, &[data-control=groupbar] > a
  17. color: NAV_LINK
  18. &.active
  19. color: NAV_LINK_ACTIVE
  20. section > &[data-control=groupbar] > a.active
  21. transition box-shadow TRANSITION_time TRANSITION_easing
  22. box-shadow inset 0 -4px 0 THEME
  23. section > footer > & > a
  24. box-shadow inset 0 1px 0 #000, inset 0 2px 0 lighten(COLOR, 20%)
  25. &.active
  26. box-shadow inset 0 0 16px darken(COLOR, 75%)
  27. background-color: darken(COLOR, 10%)
  28. aside & a
  29. color: lighten(COLOR, 20%)
  30. &:active
  31. color: lighten(COLOR, 50%)
  32. &[data-control=menu]
  33. background: COLOR
  34. box-shadow 0 2px 0 rgba(0,0,0,0.15)
  35. &.icons
  36. background: rgba(0,0,0,0.8)
  37. & > a
  38. color: lighten(COLOR, 35%)
  39. &:active > .icon
  40. text-shadow: 0 0 32px #fff
  41. & > .icon
  42. color: #fff
  43. &:not(.icons)
  44. & > a
  45. color: #fff
  46. // text-shadow 0 1px 0 #111
  47. border-bottom: 1px solid darken(COLOR, 20%)
  48. border-top: 1px solid lighten(COLOR, 5%)
  49. &:active
  50. background: darken(COLOR, 15%)
  51. border-color: transparent
  52. & > .icon
  53. color: lighten(COLOR, 25%)
  54. & > a
  55. font-weight: 600