colors.styl 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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:hover,
  19. .sidebar-list li a:hover
  20. background-color: lighten(color, 10%)
  21. &#header #header-quick-access ul li.current
  22. border-bottom: 2px solid lighten(color, 10%)
  23. &#header #header-main-bar .board-header-btn.emphasis
  24. background: complement(color)
  25. &:hover,
  26. .board-header-btn-close
  27. background: darken(complement(color), 10%)
  28. &:hover .board-header-btn-close
  29. background: darken(complement(color), 20%)
  30. .materialCheckBox.is-checked
  31. border-bottom: 2px solid color
  32. border-right: 2px solid color
  33. .is-multiselection-active .multi-selection-checkbox
  34. &.is-checked + .minicard
  35. background: lighten(color, 90%)
  36. &:not(.is-checked) + .minicard:hover:not(.minicard-composer)
  37. background: lighten(color, 97%)
  38. .board-color-nephritis
  39. setBoardColor(#27AE60)
  40. .board-color-pomegranate
  41. setBoardColor(#C0392B)
  42. .board-color-belize
  43. setBoardColor(#2980B9)
  44. .board-color-wisteria
  45. setBoardColor(#8E44AD)
  46. .board-color-midnight
  47. setBoardColor(#2C3E50)
  48. .board-color-pumpkin
  49. setBoardColor(#E67E22)