boardColors.styl 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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)
  67. .board-color-moderatepink
  68. setBoardColor(#CD5A91)
  69. .board-color-strongcyan
  70. setBoardColor(#00AECC)
  71. .board-color-limegreen
  72. setBoardColor(#4BBF6B)
  73. .board-color-dark
  74. setBoardColor(#2C3E51)
  75. /* Not hidden in dark mode.
  76. card fields: received, start, due, end, members, requested, assigned
  77. .card-details-item.card-details-item-received,
  78. .card-details-item.card-details-item-start,
  79. .card-details-item.card-details-item-due,
  80. .card-details-item.card-details-item-end,
  81. .card-details-item.card-details-item-members,
  82. .card-details-item.card-details-item-name { display:none; }
  83. .card-details-items:empty { display:none; }
  84. */
  85. // DARK MODE, when dark background mode selected.
  86. // Modified version from https://github.com/wekan/wekan/wiki/Custom-CSS-themes#dark-theme
  87. // In progress, please send pull requests to fix remaining visibility issues.
  88. .ui-sortable,
  89. .swimlane,
  90. .swimlane >.swimlane-header-wrap,
  91. .swimlane >.list.js-list,
  92. .swimlane >.list-composer.js-list-composer,
  93. .list-body,
  94. .list,
  95. .list-composer,
  96. .sidebar-content,
  97. .card-details
  98. background-color:#2C3E50
  99. .card-details h3,
  100. .card-details-items,
  101. .card-checklist-items .ui-sortable,
  102. .card-subtasks-items,
  103. .activities,
  104. .material-toggle-switch
  105. color:#bbbbbb
  106. .list-header
  107. background-color: #888888
  108. .board-widget,
  109. .board-widget-labels,
  110. .board-widget-members
  111. color: #aaaaaa
  112. /* popup menu titles (boards, swimlanes, lists, cards, labels) */
  113. .pop-over >.header
  114. display:none;
  115. /* HIDE UNTIL HOVER -------------------------------------------------- */
  116. /* header "+" button */
  117. #header-quick-access .fa-plus
  118. display:none
  119. #header-quick-access:hover .fa-plus
  120. display:inherit
  121. /* "add card" links (use visibility rather than display so items don't jump) */
  122. .open-minicard-composer
  123. visibility:hidden
  124. .list.js-list:hover .open-minicard-composer
  125. visibility:visible
  126. .list-header-menu
  127. visibility:hidden
  128. .list.js-list:hover .list-header-menu
  129. visibility:visible
  130. /* "add list/swimlane" links (use visibility rather than display so items don't jump) */
  131. .list.js-list-composer >.list-header
  132. visibility:hidden
  133. .list.js-list-composer:hover >.list-header
  134. visibility:visible
  135. /* headers */
  136. #header-quick-access, #header
  137. background-color:rgba(0,0,0,.75) !important
  138. #header .board-header-btn:hover
  139. background-color:rgba(255,255,255,0.3) !important
  140. /* foregrounds: swimlanes, lists */
  141. .list >.list-header, .swimlane-header
  142. color:rgba(255,255,255,.7)
  143. /* minicards */
  144. .minicard
  145. background-color:rgba(255,255,255,.4)
  146. .minicard-wrapper.is-selected .minicard,
  147. .minicard:hover,
  148. .minicard-composer.js-composer,
  149. .open-minicard-composer:hover
  150. background-color:rgba(255,255,255,.8) !important
  151. color:#000
  152. .minicard, .minicard .badge
  153. color:#fff
  154. .minicard:hover .badge, .minicard-wrapper.is-selected .badge
  155. color:#000
  156. /* cards */
  157. .card-details .card-details-header
  158. background-color:#ccc
  159. /* sidebar */
  160. .sidebar-tongue, .sidebar-shadow
  161. background-color:#666 !important
  162. .sidebar-content h3, .sidebar-content h2, .sidebar-content
  163. color:rgba(255,255,255,.7) !important
  164. .board-color-relax
  165. setBoardColor(#27AE61)
  166. // RELAX MODE: light green background, with green background color,
  167. // to help this theme users to relax.
  168. // Colors and emphasis are specific to this Wekan theme contributor's company.
  169. .ui-sortable
  170. background-color:#a7e366
  171. .list-header
  172. background-color:#a7e366
  173. border-bottom: 6px solid #a7e366
  174. .list-body
  175. background-color:#a7e366
  176. .list
  177. border-left: 1px dotted #000000
  178. // Card details text emphasis: black border and white background
  179. // to make it details text field easier to find for RELAX MODE users,
  180. // and focus attention.
  181. .card-details .card-details-items
  182. & ~ .js-open-inlined-form
  183. .viewer
  184. background-color #ffffff !important
  185. padding 15px !important
  186. border 1px solid #000000 !important
  187. word-wrap: break-word
  188. // When card has comment, emphasis on minicard:
  189. // bigger red comment icon and number of comments,
  190. // to make it easier notice card comments and focus attention.
  191. .minicard .badges .badge
  192. .badge-icon,
  193. .badge-text
  194. &.badge-comment
  195. display: block
  196. border-radius: 4px
  197. padding: 1px 3px
  198. margin-bottom: 0.3rem
  199. color: #ff0000
  200. background-color: #ffffff
  201. font-weight: bold
  202. font-size: 11pt
  203. .board-color-corteza
  204. setBoardColor(#568BA2)
  205. /*
  206. Wekan for Corteza https://cortezaproject.org
  207. Theme to match Corteza colors from:
  208. https://github.com/cortezaproject/corteza-webapp-messaging/blob/master/src/assets/sass/variables.scss
  209. // Paths
  210. $fonts_dir : './assets/fonts/';
  211. $icomoon-font-path: $fonts_dir + 'icomoon' !default;
  212. $icomoon-font-family: "icomoon" !default;
  213. // Typography
  214. $regular: 'nunito_sansregular';
  215. $bold: 'nunito_sansbold';
  216. $semibold: 'nunito_sanssemibold';
  217. // Color system
  218. $white: #fff !default;
  219. $black: #000 !default;
  220. $primary: #568ba2;
  221. $secondary: #90A3B1;
  222. $success: #719430;
  223. $warning: #F5D380;
  224. $danger: #E85568;
  225. $light: #F3F3F5;
  226. $dark: #1e2224;
  227. $currentmymessagebgcolor : #a7d0e3;
  228. */
  229. //.header-quick-access
  230. // backgroud-color: #568ba2