summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardColors.styl
diff options
context:
space:
mode:
authorLiming Xie <liming.xie@gmail.com>2015-12-17 14:23:35 +0800
committerLiming Xie <liming.xie@gmail.com>2015-12-17 14:23:35 +0800
commit354eff9f7bf550f83d55ef2e96b10aab1a70162d (patch)
tree34cba5531d56d4ca51ed5346a5f26e480c4a33c7 /client/components/boards/boardColors.styl
parent0954cff5b470712210275a9c0699d85d6579ab54 (diff)
downloadwekan-354eff9f7bf550f83d55ef2e96b10aab1a70162d.tar.gz
wekan-354eff9f7bf550f83d55ef2e96b10aab1a70162d.tar.bz2
wekan-354eff9f7bf550f83d55ef2e96b10aab1a70162d.zip
add: support compact mode for mobile web, auto adapt to small screen/window
Diffstat (limited to 'client/components/boards/boardColors.styl')
-rw-r--r--client/components/boards/boardColors.styl11
1 files changed, 10 insertions, 1 deletions
diff --git a/client/components/boards/boardColors.styl b/client/components/boards/boardColors.styl
index b1ddfe6d..8e28fcfa 100644
--- a/client/components/boards/boardColors.styl
+++ b/client/components/boards/boardColors.styl
@@ -23,9 +23,13 @@ setBoardColor(color)
.sidebar-list li a:hover
background-color: lighten(color, 10%)
- &#header #header-quick-access ul li.current
+ &#header ul li.current, &#header-quick-access ul li.current
border-bottom: 2px solid lighten(color, 10%)
+ &#header-quick-access
+ background: darken(color, 10%)
+ color: white
+
&#header #header-main-bar .board-header-btn.emphasis
background: complement(color)
@@ -47,6 +51,11 @@ setBoardColor(color)
&:not(.is-checked) + .minicard:hover:not(.minicard-composer)
background: lighten(color, 97%)
+ @media screen and (max-width: 800px)
+ &.pop-over .header
+ background: color
+ color: white
+
.board-color-nephritis
setBoardColor(#27AE60)