boardColors.styl 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. .toggle-label
  43. &:after
  44. background-color: darken(color, 20%)
  45. .toggle-switch:checked ~ .toggle-label
  46. background-color: lighten(color, 20%)
  47. &:after
  48. background-color: darken(color, 20%)
  49. @media screen and (max-width: 800px)
  50. &.pop-over .header
  51. background: color
  52. color: white
  53. &#header ul li.current, &#header-quick-access ul li.current
  54. border-bottom: 4px solid lighten(color, 20%)
  55. .board-color-nephritis
  56. setBoardColor(#27AE60)
  57. .board-color-pomegranate
  58. setBoardColor(#C0392B)
  59. .board-color-belize
  60. setBoardColor(#2980B9)
  61. .board-color-wisteria
  62. setBoardColor(#8E44AD)
  63. .board-color-midnight
  64. setBoardColor(#2C3E50)
  65. .board-color-pumpkin
  66. setBoardColor(#E67E22)