# HG changeset patch # User Tero Marttila # Date 1412427213 -10800 # Node ID cf7a46725ce5343627b60c5b32745097aaf694ab # Parent 2c62e4d70619f6360ca443e0c9aca31807886602 qmsk.pages: separate pages.css and .page styles diff -r 2c62e4d70619 -r cf7a46725ce5 qmsk/pages/templates/qmsk.pages/error.html --- a/qmsk/pages/templates/qmsk.pages/error.html Sat Oct 04 15:14:22 2014 +0300 +++ b/qmsk/pages/templates/qmsk.pages/error.html Sat Oct 04 15:53:33 2014 +0300 @@ -1,7 +1,12 @@ {% extends "site.html" %} +{% load staticfiles %} {% block title %}{{ site_name }} :: {{ error_title }}{%endblock %} +{% block head %} + +{% endblock %} + {% block header %}

{{ site_name }} @@ -29,13 +34,15 @@ {% endblock %} {% block content %} -

{{ error_title }}

- +
+

{{ error_title }}

+ +
{% endblock %} diff -r 2c62e4d70619 -r cf7a46725ce5 qmsk/pages/templates/qmsk.pages/page.html --- a/qmsk/pages/templates/qmsk.pages/page.html Sat Oct 04 15:14:22 2014 +0300 +++ b/qmsk/pages/templates/qmsk.pages/page.html Sat Oct 04 15:53:33 2014 +0300 @@ -1,7 +1,12 @@ {% extends "site.html" %} +{% load staticfiles %} {% block title %}{{ site_name }} :: {{ page_title }}{% endblock %} +{% block head %} + +{% endblock %} + {% block header %}

{{ site_name }} @@ -37,9 +42,11 @@ {% endblock %} {% block content %} -

{{ page_title }}

- - {{ page_html|safe }} +
+

{{ page_title }}

+ + {{ page_html|safe }} +
{% endblock %} {% block footer %} diff -r 2c62e4d70619 -r cf7a46725ce5 static/style.css --- a/static/style.css Sat Oct 04 15:14:22 2014 +0300 +++ b/static/style.css Sat Oct 04 15:53:33 2014 +0300 @@ -22,6 +22,7 @@ div#header h1 { font-size: 48pt; font-weight: bold; + text-align: center; } div#header a:hover { @@ -106,13 +107,14 @@ text-decoration: underline; } -h1 { +/* Page styles */ +#page h1 { font-size: xx-large; text-align: center; } -h2 { +#page h2 { font-size: large; margin-left: 0px; @@ -124,37 +126,35 @@ border: 1px dashed #c5c5c5; } -h3 { +#page h3 { font-size: medium; font-style: italic; } -#content p { +#page p { margin-left: 0.5em; } -#content li { +#page li { padding: 2px; } -#content a { +#page a { padding-right: 13px; background: transparent url(/static/link.png) no-repeat center right; } -dt { +#page dt { font-size: large; } -dd { +#page dd { margin: 1em auto 1em 5em; } -/* Inline code */ - /* Code block */ -pre { +#page pre { display: block; margin: 8px; padding: 8px; diff -r 2c62e4d70619 -r cf7a46725ce5 templates/site.html --- a/templates/site.html Sat Oct 04 15:14:22 2014 +0300 +++ b/templates/site.html Sat Oct 04 15:53:33 2014 +0300 @@ -11,7 +11,6 @@ - {% block head %}