theme.layout.nav.styl 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. &:not(.on-right)
  12. & a, button
  13. color: WHITE
  14. &.on-right
  15. & a, button
  16. color: lighten(THEME, 50%)
  17. & a, button
  18. text-shadow: 0 1px darken(THEME, 10%)
  19. aside header > &
  20. & a, button
  21. color: lighten(ASIDE, 25%)
  22. text-shadow: 0 1px darken(ASIDE, 10%)
  23. header > &
  24. & a, button
  25. text-shadow: 0 1px darken(THEME, 10%)
  26. transition text-shadow TRANSITION_time TRANSITION_easing
  27. &:active, &.active
  28. color: WHITE
  29. text-shadow: 0 0 0.5em WHITE
  30. section > footer > & > a, &[data-control=groupbar] > a
  31. color: NAV_LINK
  32. transition box-shadow TRANSITION_time TRANSITION_easing
  33. & .icon
  34. transition color TRANSITION_time TRANSITION_easing
  35. &.active
  36. color: NAV_LINK_ACTIVE
  37. section > &[data-control=groupbar] > a.active
  38. box-shadow inset 0 -3px 0 THEME
  39. section > footer > & > a.active
  40. box-shadow inset 0 3px THEME
  41. &[data-control=menu]
  42. background-color: rgba(0,0,0,0.8)
  43. box-shadow 0 2px 0 SHADOW
  44. &.icons
  45. & > a
  46. color: lighten(COLOR, 40%)
  47. &:active > .icon
  48. text-shadow: 0 0 2em #fff
  49. & > .icon
  50. color: #fff
  51. &:not(.icons)
  52. & > a
  53. color: #fff
  54. & > .icon
  55. color: lighten(COLOR, 40%)
  56. &:active, &:hover
  57. background-color: rgba(255,255,255,0.2)