summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardColors.styl
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-08-28 02:21:42 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-08-28 02:25:26 +0200
commitb5dabfe88695a8f8211b29fea0dc16131c9a1829 (patch)
treeb257eddd507f0980a32e7c2c5932b866401a9b15 /client/components/boards/boardColors.styl
parent29e93162c2eb5b86b1afb3328748eb3b32b47b94 (diff)
downloadwekan-b5dabfe88695a8f8211b29fea0dc16131c9a1829.tar.gz
wekan-b5dabfe88695a8f8211b29fea0dc16131c9a1829.tar.bz2
wekan-b5dabfe88695a8f8211b29fea0dc16131c9a1829.zip
More explicit file names
Diffstat (limited to 'client/components/boards/boardColors.styl')
-rw-r--r--client/components/boards/boardColors.styl66
1 files changed, 66 insertions, 0 deletions
diff --git a/client/components/boards/boardColors.styl b/client/components/boards/boardColors.styl
new file mode 100644
index 00000000..d131701c
--- /dev/null
+++ b/client/components/boards/boardColors.styl
@@ -0,0 +1,66 @@
+// We define a set of six board colors that we took from the FlatUI palette.
+// http://flatuicolors.com
+//
+// XXX Centralizing all these properties in a single file just because their
+// value is derived from the same color, doesn't make any sense. We should
+// create a mixin/macro that would generate 6 versions of a given property and
+// dispatch this list in the other stylus files.
+setBoardColor(color)
+ &#header,
+ &.sk-spinner div,
+ .board-backgrounds-list &.background-box,
+ .board-list & a
+ background-color: color
+
+ .is-selected .minicard
+ border-left: 3px solid color
+
+ button[type=submit].primary, input[type=submit].primary
+ background-color: darken(color, 20%)
+
+ &.pop-over .pop-over-list li a:hover,
+ .sidebar .sidebar-content .sidebar-btn:hover,
+ .sidebar-list li a:hover
+ background-color: lighten(color, 10%)
+
+ &#header #header-quick-access ul li.current
+ border-bottom: 2px solid lighten(color, 10%)
+
+ &#header #header-main-bar .board-header-btn.emphasis
+ background: complement(color)
+
+ &:hover,
+ .board-header-btn-close
+ background: darken(complement(color), 10%)
+
+ &:hover .board-header-btn-close
+ background: darken(complement(color), 20%)
+
+ .materialCheckBox.is-checked
+ border-bottom: 2px solid color
+ border-right: 2px solid color
+
+ .is-multiselection-active .multi-selection-checkbox
+ &.is-checked + .minicard
+ background: lighten(color, 90%)
+
+ &:not(.is-checked) + .minicard:hover:not(.minicard-composer)
+ background: lighten(color, 97%)
+
+.board-color-nephritis
+ setBoardColor(#27AE60)
+
+.board-color-pomegranate
+ setBoardColor(#C0392B)
+
+.board-color-belize
+ setBoardColor(#2980B9)
+
+.board-color-wisteria
+ setBoardColor(#8E44AD)
+
+.board-color-midnight
+ setBoardColor(#2C3E50)
+
+.board-color-pumpkin
+ setBoardColor(#E67E22)