[gimp-web/gimp-web-static] Further hacking at page styles.



commit 20113560215990f04c48f073f41e3c4d68534c4d
Author: Pat David <pat patdavid net>
Date:   Fri Jul 31 22:39:31 2015 -0500

    Further hacking at page styles.

 ...d 2.8.14 installer for microsoft windows.md.swp |  Bin 12288 -> 0 bytes
 themes/newgimp/static/css/.article.css.swp         |  Bin 12288 -> 0 bytes
 themes/newgimp/static/css/page.css                 |   25 ++++++++++++++++++++
 themes/newgimp/templates/page.html                 |    9 +++++++
 4 files changed, 34 insertions(+), 0 deletions(-)
---
diff --git a/themes/newgimp/static/css/page.css b/themes/newgimp/static/css/page.css
new file mode 100644
index 0000000..7ac1642
--- /dev/null
+++ b/themes/newgimp/static/css/page.css
@@ -0,0 +1,25 @@
+.page_content {
+    text-align: left;
+}
+
+.page_content h1,
+.page_content h2,
+.page_content h3,
+.page_content h4,
+.page_content h5,
+.page_content h6 {
+    max-width: 35rem;
+    margin: 0 auto;
+}
+
+.page_content ul {
+    max-width: 33rem;
+    margin: 0 auto;
+    display: block;
+}
+
+.page_content p {
+    max-width: 34rem;
+    margin-bottom: 1rem;
+}
+
diff --git a/themes/newgimp/templates/page.html b/themes/newgimp/templates/page.html
index 216ce59..4550056 100644
--- a/themes/newgimp/templates/page.html
+++ b/themes/newgimp/templates/page.html
@@ -1,6 +1,15 @@
 {% extends "base.html" %}
+
 {% block title %}{{ page.title }}{%endblock%}
+
+{% block head %}
+{{ super() }}
+<link rel='stylesheet' type='text/css' href="{{ SITEURL }}/theme/css/page.css" />
+
+{% endblock head %}
+
 {% block content %}
+
     <h1>{{ page.title }}</h1>
     {% import 'translations.html' as translations with context %}
     {{ translations.translations_for(page) }}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]