# HG changeset patch # User Goffi # Date 1488752702 -3600 # Node ID b13a26d55c6496063d6875fcee67d6de9c6eb202 # Parent 9a31d2c02f4706a86cba58137814890e6520b052 base: updated CSS handling to follow changes in backend, moved CSS file to /static with splitted files diff -r 9a31d2c02f47 -r b13a26d55c64 default/base/base.html --- a/default/base/base.html Tue Feb 21 20:31:01 2017 +0100 +++ b/default/base/base.html Sun Mar 05 23:25:02 2017 +0100 @@ -3,12 +3,14 @@ {% block title %}{{C.APP_NAME}}{% endblock %} - {% if css_inline %} + {% if css_content is defined %} {% else %} - + {% for css_file in css_files %} + + {% endfor %} {% endif %} diff -r 9a31d2c02f47 -r b13a26d55c64 default/blog/static/style.css --- a/default/blog/static/style.css Tue Feb 21 20:31:01 2017 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -html { - font-family: sans-serif; -} - -header { - font-weight: bold; - text-align: center; -} - -article { - margin: 2% auto; - width: 80%; - border-style: solid; - border-width: 1px; - border-radius: 3px; - padding: 1%; - background: lightgray; -} - -article div.content { - text-align: justify; - font-size: 0.9em; -} - -article img { - max-width: 100%; -} - -footer { - width: 100%; - text-align: center; - font-size: 0.7em; - font-weight: bold; - position: fixed; - bottom: 5px; -} diff -r 9a31d2c02f47 -r b13a26d55c64 default/static/blog.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/default/static/blog.css Sun Mar 05 23:25:02 2017 +0100 @@ -0,0 +1,18 @@ +article { + margin: 2% auto; + width: 80%; + border-style: solid; + border-width: 1px; + border-radius: 3px; + padding: 1%; + background: lightgray; +} + +article div.content { + text-align: justify; + font-size: 0.9em; +} + +article img { + max-width: 100%; +} diff -r 9a31d2c02f47 -r b13a26d55c64 default/static/styles.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/default/static/styles.css Sun Mar 05 23:25:02 2017 +0100 @@ -0,0 +1,17 @@ +html { + font-family: sans-serif; +} + +header { + font-weight: bold; + text-align: center; +} + +footer { + width: 100%; + text-align: center; + font-size: 0.7em; + font-weight: bold; + position: fixed; + bottom: 5px; +}