Przeglądaj źródła

Add a new chocolate / dark brown theme color

Markus Ochel 12 lat temu
rodzic
commit
d45315ecd0

+ 6 - 2
HISTORY.md

@@ -1,10 +1,14 @@
 History of Changes
 ==================
 
+## v0.5.3 / 2012-06-21
+
+- Added a new chocolate color to the list of theme colors
+
 ## v0.5.2 / 2012-06-21
 
-- Darken the content text color for better readability
-- Enhance navigation contrast colors
+- Darkened the content text color for better readability
+- Enhanced navigation contrast colors
 
 ## v0.5.1 / 2012-04-29
 

+ 2 - 2
admin/kanso.json

@@ -1,6 +1,6 @@
 {
   "name": "admin",
-  "version": "0.5.2",
+  "version": "0.5.3",
   "description": "Kleks admin application that allows management of sites and content.",
   "load": "server/setup",
   "modules": ["server","controllers","models","lib"],
@@ -39,7 +39,7 @@
   "app": {
     "dev_host": "kleks.example.local",
     "prod_host": "kleks.example.com",
-    "themes": ["default","blue","green","brown","teal","aqua","purple","red"],
+    "themes": ["default","blue","green","brown","chocolate","teal","aqua","purple","red"],
     "content_types": ["essay","scene","video","profile"]
   }
 }

+ 2 - 2
admin/server/shows.coffee

@@ -10,6 +10,6 @@ exports.not_found = (doc, req) ->
 
 exports.color_samples = (doc, req) ->
   title: "Color Samples"
-  content: templates.render("colors_samples.html", req, {
-    colors: ['#BAD0EF', '#9EDFB5', '#DFA57C', '#E6BC7E', '#D5D298', '#98D5A7', '#98D5BA', '#91D6DF', '#8FB1DD', '#A8B5E7', '#AF9EDA', '#DA9EC7', '#DA9EAF', '#DA9EA1', '#DAA39E', '#DAAF9E', '#DABB9E', '#DAC79E', '#A5DA9E', '#9EDAB1', '#9EC4DA', '#B6B4EB', '#DD9DAC', '#BAA8E6', '#B5E6A8', '#E6D4A8', '#E6CBA8', '#E6B7A8', '#97BEAD']
+  content: templates.render("color_samples.html", req, {
+    colors: ['#9BDD89','#BB906F','#BAD0EF', '#9EDFB5', '#DFA57C', '#E6BC7E', '#D5D298', '#98D5A7', '#98D5BA', '#91D6DF', '#8FB1DD', '#A8B5E7', '#AF9EDA', '#DA9EC7', '#DA9EAF', '#DA9EA1', '#DAA39E', '#DAAF9E', '#DABB9E', '#DAC79E', '#A5DA9E', '#9EDAB1', '#9EC4DA', '#B6B4EB', '#DD9DAC', '#BAA8E6', '#B5E6A8', '#E6D4A8', '#E6CBA8', '#E6B7A8', '#97BEAD']
   })

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

@@ -6,6 +6,7 @@ $tealColor      = #97BEAD
 $purpleColor    = #B6B4EB
 $brownColor     = #DABB9E
 $redColor       = #DD9DAC
+$chocolateColor = #BB906F
 
 // Sample colors
 $color1         = #9EDFB5

+ 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, 'theme-red' $redColor
+$availableThemeColors = 'theme-default' $defaultColor, 'theme-blue' $blueColor, 'theme-green' $greenColor, 'theme-brown' $brownColor, 'theme-chocolate' $chocolateColor, 'theme-teal' $tealColor, 'theme-aqua' $aquaColor, 'theme-purple' $purpleColor, 'theme-red' $redColor
 
 $navbarWidth  = 180px
 

+ 1 - 1
site/kanso.json

@@ -1,6 +1,6 @@
 {
   "name": "site",
-  "version": "0.5.2",
+  "version": "0.5.3",
   "description": "Kleks site application that renders each site.",
   "load": "server/setup",
   "modules": ["server","lib"],

+ 3 - 0
site/static/css/themes/chocolate.styl

@@ -0,0 +1,3 @@
+@import '../setup-theme'
+
+setupTheme($chocolateColor)