From dc214056449119b29ad7b19b8d47e81b343ff453 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 28 Apr 2013 19:54:45 +0200 Subject: Updated theme and templates Updated to pelican 3.2 --- theme/static/css/main.css | 31 +++++------------ theme/static/css/styles.css | 81 ++++++++++++++++++++++++++++++++++--------- theme/templates/archives.html | 2 +- theme/templates/article.html | 52 ++++++++++++++------------- theme/templates/category.html | 3 +- theme/templates/index.html | 3 +- theme/templates/menu.html | 6 ++-- theme/templates/meta.html | 17 ++++++--- theme/templates/page.html | 2 +- theme/templates/tag.html | 3 +- 10 files changed, 123 insertions(+), 77 deletions(-) (limited to 'theme') diff --git a/theme/static/css/main.css b/theme/static/css/main.css index c8c0a01..e8b773b 100755 --- a/theme/static/css/main.css +++ b/theme/static/css/main.css @@ -87,6 +87,10 @@ table.docutils { border: none; } +table.footnote td { + border: none; +} + td, th { margin: 0; padding: 2px 5px; @@ -269,28 +273,6 @@ div#page { font-weight: bolder; } -// aside#sidebar { -// float: right; -// width: 24%; -// } -// #sidebar .widget { -// margin-bottom: 10px; -// } -// #sidebar .widget ul { -// list-style-type: none; -// margin: auto auto auto 15px; -// } -// #sidebar .widget ul li:before { -// content: '» '; -// } -// -// #sidebar .widget ul a.more { -// display: inline-block; -// padding-top: 5px; -// text-decoration: none; -// } - - footer#footer { clear:both; border-top: 1px solid grey; @@ -301,3 +283,8 @@ div#page { direction:rtl; unicode-bidi:bidi-override; } + +.floatleft { float: left; margin: 0px 5px 5px 0px; } +.floatright { float: right; margin: 0px 0px 5px 5px; } + +.clear { clear:both; } diff --git a/theme/static/css/styles.css b/theme/static/css/styles.css index ec426de..3ebca0b 100755 --- a/theme/static/css/styles.css +++ b/theme/static/css/styles.css @@ -1,25 +1,72 @@ #cssmenu ul, #cssmenu hr { margin: 0px; } #cssmenu hr { margin: auto; } -#cssmenu{ height:39px; display:block; padding:0; margin: 0; margin-left:10px; margin-right:10px; } +#cssmenu { + height:39px; + display:block; + padding:0; + margin: 0; margin-left:10px; margin-right:10px; + border-color:#000; +} #cssmenu > ul {list-style:inside none; padding:0; margin:0;} #cssmenu > ul > li {list-style:inside none; padding:0; margin:0; float:left; display:block; position:relative;} -#cssmenu > ul > li > a{ outline:none; display:block; position:relative; padding:12px 20px; font: 13px/100% Arial, Helvetica, sans-serif; text-align:center; text-decoration:none; text-shadow:1px 1px 0 rgba(0,0,0, 0.4); } -#cssmenu > ul > li:first-child > a{border-radius:5px 0 0 5px;} -#cssmenu > ul > li > a:after{ content:''; position:absolute; border-right:1px solid; top:-1px; bottom:-1px; right:-2px; z-index:99; } -#cssmenu ul li.has-sub:hover > a:after{top:0; bottom:0;} -#cssmenu > ul > li.has-sub > a:before{ content:''; position:absolute; top:18px; right:6px; border:5px solid transparent; border-top:5px solid #fff; } -#cssmenu > ul > li.has-sub:hover > a:before{top:19px;} -#cssmenu ul li.has-sub:hover > a{ background:#3f3f3f; border-color:#3f3f3f; padding-bottom:13px; padding-top:13px; top:-1px; z-index:999; } + +#cssmenu > ul > li > span { + outline:none; + display:block; + position:relative; + padding:13px 20px; + font: 13px/100% Arial, Helvetica, sans-serif; text-align:center; + text-shadow:1px 1px 0 rgba(0,0,0, 0.4); + height: 13px; + border-right:1px solid #000; + color:#fff; +} + +#cssmenu a { + color: #fff; +} +#cssmenu > ul > li > span > a { + text-decoration:underline; +} + +#cssmenu > ul > li > span:after { + content:''; + position:absolute; + border-right:1px solid; + top:1px; bottom:0px; + right:-2px; + z-index:99; + border-color: #444; +} + +#cssmenu ul li.has-sub:hover > span:after {top:0; bottom:0;} +#cssmenu > ul > li.has-sub > span:before { + content:''; + position:absolute; + top:19px; right:6px; + border:5px solid transparent; + border-top:5px solid #fff; +} + +#cssmenu > ul > li.has-sub:hover > span:before {top:19px;} +#cssmenu ul li.has-sub:hover > span { background:#3f3f3f; padding-bottom:13px; padding-top:13px; top:0px; z-index:999; } #cssmenu ul li.has-sub:hover > ul, #cssmenu ul li.has-sub:hover > div{display:block;} -#cssmenu ul li.has-sub > a:hover{background:#3f3f3f; border-color:#3f3f3f;} -#cssmenu ul li > ul, #cssmenu ul li > div{ display:none; width:auto; position:absolute; top:38px; padding:10px 0; background:#3f3f3f; border-radius:0 0 5px 5px; z-index:999; } +#cssmenu ul li.has-sub > a:hover {background:#3f3f3f; border-color:#3f3f3f;} + +#cssmenu ul li > ul, #cssmenu ul li > div { + display:none; width:auto; position:absolute; + top:39px; padding:10px 0; background:#3f3f3f; + border-radius:0 0 5px 5px; + z-index:999; +} + #cssmenu ul li > ul{width:200px;} #cssmenu ul li > ul li{display:block; list-style:inside none; padding:0; margin:0; position:relative;} -#cssmenu ul li > ul li a{ outline:none; display:block; position:relative; margin:0; padding:8px 20px; font:10pt Arial, Helvetica, sans-serif; color:#fff; text-decoration:none; text-shadow:1px 1px 0 rgba(0,0,0, 0.5); } - +#cssmenu ul li > ul li a{ + outline:none; display:block; position:relative; margin:0; + padding:8px 20px; font:10pt Arial, Helvetica, sans-serif; + text-shadow:1px 1px 0 rgba(0,0,0, 0.5); + text-decoration:none; +} -#cssmenu, #cssmenu > ul > li > ul > li a:hover{ background-color:#323232; } -#cssmenu{border-color:#000;} -#cssmenu > ul > li > a{border-right:1px solid #000; color:#fff;} -#cssmenu > ul > li > a:after{border-color:#444;} -#cssmenu > ul > li > a:hover{background:#111;} +#cssmenu, #cssmenu > ul > li > ul > li a:hover { background-color:#323232; } diff --git a/theme/templates/archives.html b/theme/templates/archives.html index f3c2990..f0441d9 100755 --- a/theme/templates/archives.html +++ b/theme/templates/archives.html @@ -3,7 +3,7 @@ {%block title %}{{ SITENAME }} - Archives{%endblock%} {% block content %} -

Archives

+

Archives

{% for article in dates %} diff --git a/theme/templates/article.html b/theme/templates/article.html index 1328834..044c386 100755 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -3,38 +3,40 @@ {% block title %}{{ SITENAME }} - {{ article.title |striptags }}{% endblock %} {% block content %} -
-

{{ article.title }}

- {%include 'meta.html'%} + -
- {{ article.content }} -
+ {% if DISQUS_SITENAME %} +
+

Commentaires :

+
+ +
+ {% endif %} -
+ {% if article.related_posts and article.related_posts %} - {% if DISQUS_SITENAME %} -
-

Commentaires :

-
- -
- {% endif %} +

À lire aussi :

-{# - {% if article.related_posts %} {% endif %} -#} + {% endblock %} diff --git a/theme/templates/category.html b/theme/templates/category.html index f476d93..b323285 100755 --- a/theme/templates/category.html +++ b/theme/templates/category.html @@ -2,7 +2,7 @@ {% block title %}{{ SITENAME }} - {{ category}}{% endblock %} {% block content %} -

Articles dans la catégorie «{{ category }}»

+

Articles dans la catégorie « {{ category }} »

{% if articles %} {% for article in (articles_page.object_list if articles_page else articles) %}
@@ -11,6 +11,7 @@
{{ article.summary }} +
{% if not loop.last %}
{% endif %} diff --git a/theme/templates/index.html b/theme/templates/index.html index 245c708..d045910 100755 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -5,11 +5,12 @@ {% if articles %} {% for article in (articles_page.object_list if articles_page else articles) %}
-

{{ article.title }}

+

{{ article.title }}

{{ article.summary }} +
{% if not loop.last %}
{% endif %} diff --git a/theme/templates/menu.html b/theme/templates/menu.html index 037d85a..bab98fa 100755 --- a/theme/templates/menu.html +++ b/theme/templates/menu.html @@ -1,6 +1,6 @@ {% macro submenu(elements, link, name) -%} {% if elements %} -
  • {{name}} +
  • {{name}}