浏览代码

Add new theme color red

Markus Ochel 12 年之前
父节点
当前提交
7693525b6b
共有 5 个文件被更改,包括 9 次插入4 次删除
  1. 1 1
      admin/kanso.json
  2. 1 1
      admin/static/css/common.styl
  3. 2 1
      admin/static/css/mixin.styl
  4. 1 1
      admin/static/css/theme.styl
  5. 4 0
      site/static/css/themes/red.styl

+ 1 - 1
admin/kanso.json

@@ -39,7 +39,7 @@
   "app": {
     "dev_host": "admin.kleks.local",
     "prod_host": "kleks.markuso.com",
-    "themes": ["default","blue","green","brown","teal","aqua","purple"],
+    "themes": ["default","blue","green","brown","teal","aqua","purple","red"],
     "content_types": ["essay","scene","video","profile"]
   }
 }

+ 1 - 1
admin/static/css/common.styl

@@ -176,7 +176,7 @@ button, .button
 ::-webkit-input-placeholder
   color: #e3e3e3
 
-.clear:
+.clear
   clear: both
 
 .clearfix

+ 2 - 1
admin/static/css/mixin.styl

@@ -5,6 +5,7 @@ $greenColor     = #B5E6A8
 $tealColor      = #97BEAD
 $purpleColor    = #B6B4EB
 $brownColor     = #DABB9E
+$redColor       = #DD9DAC
 
 // Sample colors
 $color1         = #9EDFB5
@@ -186,4 +187,4 @@ clearfix()
     display: table
     content: ""
   &:after
-    clear: both
+    clear: both

+ 1 - 1
admin/static/css/theme.styl

@@ -1,6 +1,6 @@
 /* Admin theme.styl CSS */
 
-$availableThemeColors = 'theme-default' $defaultColor, 'theme-blue' $blueColor, 'theme-green' $greenColor, 'theme-brown' $brownColor, 'theme-teal' $tealColor, 'theme-aqua' $aquaColor,, 'theme-purple' $purpleColor
+$availableThemeColors = 'theme-default' $defaultColor, 'theme-blue' $blueColor, 'theme-green' $greenColor, 'theme-brown' $brownColor, 'theme-teal' $tealColor, 'theme-aqua' $aquaColor, 'theme-purple' $purpleColor, 'theme-red' $redColor
 
 $navbarWidth  = 180px
 

+ 4 - 0
site/static/css/themes/red.styl

@@ -0,0 +1,4 @@
+@import '../setup-theme'
+
+// setupTheme($redColor, $lightGrey, darken($blueColor, 10%))
+setupTheme($redColor)