From bab39c98005783d4e403a51d0cc026aacac8abc2 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Thu, 18 Nov 2010 03:33:57 +0000 Subject: [PATCH] Add a "wide" css for notmyidea.org theme --- README.rst | 1 + pelican/settings.py | 1 + pelican/themes/notmyidea/css/wide.css | 23 ++++++++++++++++++++ pelican/themes/notmyidea/templates/base.html | 4 ++-- 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 pelican/themes/notmyidea/css/wide.css diff --git a/README.rst b/README.rst index c632e3b1..f0b6492d 100644 --- a/README.rst +++ b/README.rst @@ -102,6 +102,7 @@ templates as well. * `STATIC_PATHS`: The static paths you want to copy under "static" * `FEED`: url to output the feed., * `CATEGORY_FEED`: Where to put the categories feeds. default is `feeds/%s.atom.xml` +* `CSS_FILE`: To specify the CSS file you want to load. Themes ------ diff --git a/pelican/settings.py b/pelican/settings.py index c53e79d0..dfd5c48d 100644 --- a/pelican/settings.py +++ b/pelican/settings.py @@ -14,6 +14,7 @@ _DEFAULT_CONFIG = {'PATH': None, 'PDF_PROCESSOR': False, 'DEFAULT_CATEGORY': 'misc', 'FALLBACK_ON_FS_DATE': True, + 'CSS_FILE': 'main.css', } def read_settings(filename): diff --git a/pelican/themes/notmyidea/css/wide.css b/pelican/themes/notmyidea/css/wide.css new file mode 100644 index 00000000..aa99f03c --- /dev/null +++ b/pelican/themes/notmyidea/css/wide.css @@ -0,0 +1,23 @@ +@import url("main.css"); + +body { + font:1.3em/1.3 "Hoefler Text","Georgia",Georgia,serif,sans-serif; +} + +.body, #banner nav, #banner nav ul, #about, #featured, #content{ + width: inherit; +} + +#banner nav { + -moz-border-radius: 0px; + margin-bottom: 0px; +} + +#featured, #extras { + padding: 50px; +} + +#extras { + padding-top: 0px; + padding-bottom: 0px; +} diff --git a/pelican/themes/notmyidea/templates/base.html b/pelican/themes/notmyidea/templates/base.html index 0df8a138..fdce847d 100644 --- a/pelican/themes/notmyidea/templates/base.html +++ b/pelican/themes/notmyidea/templates/base.html @@ -3,7 +3,7 @@ {% block title %}{{ SITENAME }}{%endblock%} - + @@ -76,4 +76,4 @@ {% include 'analytics.html' %} - \ No newline at end of file +