Permalink
Browse files

Unsuccessfully experimenting with radically different themes at diffe…

…rent times of day.
  • Loading branch information...
1 parent d9dbbac commit 2a17c244db26aba266ac88c580bae79160a7d03c @Aethaeryn committed May 6, 2012
Showing with 40 additions and 6 deletions.
  1. +3 −3 avenue/templates/main.css
  2. +37 −3 avenue/web.py
@@ -85,12 +85,12 @@ a:hover { text-decoration: none;
.title-heading { font-size: 28pt;
}
-.title-heading:link { color: #ff7f24;
+.title-heading:link { color: {{ text.heading }};
font-weight: normal;
}
-.title-heading:visited { color: #ff7f24;
+.title-heading:visited { color: {{ text.heading }};
}
-.title-heading:hover { color: #df4f14;
+.title-heading:hover { color: {{ text.head_hover }};
}
View
@@ -30,7 +30,7 @@ def index():
page_title = heading
return render_template('tiles.html',
- style='night',
+ style='sunset',
main_title=heading,
title=page_title,
tiles=navtile)
@@ -61,7 +61,7 @@ def about():
'to?</p>'
return render_template('article.html',
- style='night',
+ style='sunset',
main_title=heading,
post=words,
sidebar=navbar,
@@ -70,11 +70,45 @@ def about():
@app.route('/night.css')
def night():
text = {'plain' : '#ffffff',
- 'hover' : '#aaaaaa'}
+ 'hover' : '#aaaaaa',
+ 'heading' : '#ff7f24',
+ 'head_hover' : '#df4f14'}
+
+
background = {'plain' : '#000000',
'post' : '#00041f',
'box1' : '#1a1123'}
response = make_response(render_template('main.css', text=text, background=background))
response.mimetype = 'text/css'
return response
+
+@app.route('/day.css')
+def night():
+ text = {'plain' : '#000000',
+ 'hover' : '#444444',
+ 'heading' : '#ff7f24',
+ 'head_hover' : '#df4f14'}
+
+ background = {'plain' : '#f8fffe',
+ 'post' : '#e1e7e6',
+ 'box1' : '#b1977d'}
+
+ response = make_response(render_template('main.css', text=text, background=background))
+ response.mimetype = 'text/css'
+ return response
+
+@app.route('/sunset.css')
+def night():
+ text = {'plain' : '#000000',
+ 'hover' : '#444444',
+ 'heading' : '#ff7f24',
+ 'head_hover' : '#df4f14'}
+
+ background = {'plain' : '#f4cf71',
+ 'post' : '#fba063',
+ 'box1' : '#ff9363'}
+
+ response = make_response(render_template('main.css', text=text, background=background))
+ response.mimetype = 'text/css'
+ return response

0 comments on commit 2a17c24

Please sign in to comment.