# HG changeset patch # User Ludovic Chabant # Date 1484241561 28800 # Node ID c93ac92aef5b93de465320ab72f8933a999ad178 # Parent 7981f2140c14bf3654ffdcf7dea198232a97d4e7 web: Move Jouvence CSS to a file. diff -r 7981f2140c14 -r c93ac92aef5b Gruntfile.js --- a/Gruntfile.js Thu Jan 12 08:54:09 2017 -0800 +++ b/Gruntfile.js Thu Jan 12 09:19:21 2017 -0800 @@ -10,7 +10,8 @@ paths: ["wikked/assets"] }, files: { - "wikked/static/css/wikked.min.css": "wikked/assets/css/wikked.less" + "wikked/static/css/wikked.min.css": "wikked/assets/css/wikked.less", + "wikked/static/css/jouvence.min.css": "wikked/assets/css/jouvence.less" } }, production: { @@ -19,7 +20,8 @@ compress: true }, files: { - "wikked/static/css/wikked.min.css": "wikked/assets/css/wikked.less" + "wikked/static/css/wikked.min.css": "wikked/assets/css/wikked.less", + "wikked/static/css/jouvence.min.css": "wikked/assets/css/jouvence.less" } } }, diff -r 7981f2140c14 -r c93ac92aef5b wikked/assets/css/jouvence.less --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wikked/assets/css/jouvence.less Thu Jan 12 09:19:21 2017 -0800 @@ -0,0 +1,10 @@ +body { + background-color: #ccc; +} +footer { + border-top: none; +} +.jouvence-doc { + box-shadow: #111 0px 0.5em 2em; + margin-bottom: 2em; +} diff -r 7981f2140c14 -r c93ac92aef5b wikked/wiki.py --- a/wikked/wiki.py Thu Jan 12 08:54:09 2017 -0800 +++ b/wikked/wiki.py Thu Jan 12 09:19:21 2017 -0800 @@ -122,15 +122,8 @@ self.formatters[_jouvence_to_html] = ['fountain'] - head_css = """ -""" + head_css = ('\n') head_css += '' % get_css() self.custom_heads = {'fountain': head_css}