boardColors.styl 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // We define a set of six board colors that we took from the FlatUI palette.
  2. // http://flatuicolors.com
  3. //
  4. // XXX Centralizing all these properties in a single file just because their
  5. // value is derived from the same color, doesn't make any sense. We should
  6. // create a mixin/macro that would generate 6 versions of a given property and
  7. // dispatch this list in the other stylus files.
  8. setBoardColor(color)
  9. &#header,
  10. &.sk-spinner div,
  11. .board-backgrounds-list &.background-box,
  12. .board-list & a
  13. background-color: color
  14. .is-selected .minicard
  15. border-left: 3px solid color
  16. button[type=submit].primary, input[type=submit].primary
  17. background-color: darken(color, 20%)
  18. &.pop-over .pop-over-list li a:not(.disabled):hover,
  19. .sidebar .sidebar-content .sidebar-btn:hover,
  20. .sidebar-list li a:hover
  21. background-color: lighten(color, 10%)
  22. &#header ul li.current, &#header-quick-access ul li.current
  23. border-bottom: 2px solid lighten(color, 10%)
  24. &#header-quick-access
  25. background: darken(color, 10%)
  26. color: white
  27. &#header #header-main-bar .board-header-btn.emphasis
  28. background: complement(color)
  29. &:hover,
  30. .board-header-btn-close
  31. background: darken(complement(color), 10%)
  32. &:hover .board-header-btn-close
  33. background: darken(complement(color), 20%)
  34. .materialCheckBox.is-checked
  35. border-bottom: 2px solid color
  36. border-right: 2px solid color
  37. .is-multiselection-active .multi-selection-checkbox
  38. &.is-checked + .minicard
  39. background: lighten(color, 90%)
  40. &:not(.is-checked) + .minicard:hover:not(.minicard-composer)
  41. background: lighten(color, 97%)
  42. @media screen and (max-width: 800px)
  43. &.pop-over .header
  44. background: color
  45. color: white
  46. .board-color-nephritis
  47. setBoardColor(#27AE60)
  48. .board-color-pomegranate
  49. setBoardColor(#C0392B)
  50. .board-color-belize
  51. setBoardColor(#2980B9)
  52. .board-color-wisteria
  53. setBoardColor(#8E44AD)
  54. .board-color-midnight
  55. setBoardColor(#2C3E50)
  56. .board-color-pumpkin
  57. setBoardColor(#E67E22)