From 13b38463ab46a8535d95b1ca41acf94c999d7d0b Mon Sep 17 00:00:00 2001 From: str4d Date: Fri, 29 May 2015 16:05:36 +0000 Subject: [PATCH 01/32] First pass at redesigning content layout --- i2p2www/pages/global/layout.html | 23 ++++++--- i2p2www/static/styles/duck/default.css | 70 +++++++++++++++++--------- i2p2www/static/styles/duck/desktop.css | 28 +++++------ i2p2www/static/styles/duck/mobile.css | 6 ++- 4 files changed, 79 insertions(+), 48 deletions(-) diff --git a/i2p2www/pages/global/layout.html b/i2p2www/pages/global/layout.html index afda10c3..0239bd0e 100644 --- a/i2p2www/pages/global/layout.html +++ b/i2p2www/pages/global/layout.html @@ -49,7 +49,18 @@
{% block content_outer %} -
+
+

{{ self.title() }}

+
+ +
+
-
+
+
{% if self.content_nav() or self.sidebar() or self.lastupdated() or self.accuratefor() -%} {%- endif %} -
+
{% block content %}{% endblock %}
+
{% endblock %}
diff --git a/i2p2www/static/styles/duck/default.css b/i2p2www/static/styles/duck/default.css index 23112796..7c69bfc0 100644 --- a/i2p2www/static/styles/duck/default.css +++ b/i2p2www/static/styles/duck/default.css @@ -156,12 +156,11 @@ div#content .feed-icon { div#content .inner { background: rgba(0, 0, 0, 0.05); - width: auto; - padding: 0 5% 0.1em; - position: relative; border-top: 2px solid #abcc71; color: black; line-height: 1.5em; + position: relative; + width: auto; } div#content .inner:before { @@ -174,11 +173,15 @@ div#content .inner:before { width: 100%; } +div#content .inner .fluid { + background: white; + border-left: 2px solid #abcc71; + border-right: 2px solid #abcc71; +} + div#content .sidebar { background: rgba(171, 204, 113, 0.6); border-bottom: 2px solid #abcc71; - border-left: 2px solid #abcc71; - border-right: 2px solid #abcc71; font-size: 0.875rem; } @@ -208,9 +211,6 @@ div#content .lastupdated { } div#content .content-inner { - background: white; - border-left: 2px solid #abcc71; - border-right: 2px solid #abcc71; padding: 1em 2em; } diff --git a/i2p2www/static/styles/duck/desktop.css b/i2p2www/static/styles/duck/desktop.css index 7901b5ae..cee68eaa 100644 --- a/i2p2www/static/styles/duck/desktop.css +++ b/i2p2www/static/styles/duck/desktop.css @@ -239,26 +239,23 @@ div#content .aside:first-child { * The .inner class is for the content wrapper on inner pages (as opposed to the home page) */ -div#content .inner { - padding: 0 20%; -} - -div#content .inner.two-col { - padding: 0 15% 0 10%; +div#content .inner .fluid { + margin: 0 30% 0 0.625rem; } div#content .inner .sidebar { - border-radius: 0 0 0 10px; + border-radius: 0 0 10px 0; + border-right: 2px solid #abcc71; float: left; width: 250px; } div#content .lastupdated { - border-radius: 0 0 0 10px; + border-radius: 0 0 10px 0; text-align: right; } -div#content .content-inner.two-col { +div#content .content-inner { margin-left: 252px; } From dfdb1aa7ccb3c292dc60128978a91917f7f104bb Mon Sep 17 00:00:00 2001 From: str4d Date: Sun, 31 May 2015 01:24:23 +0000 Subject: [PATCH 20/32] Create meta class for showing metadata in right margin --- i2p2www/pages/blog/post.html | 9 ++++----- i2p2www/pages/global/layout.html | 10 +++++----- i2p2www/static/styles/duck/default.css | 9 +++++++-- i2p2www/static/styles/duck/desktop.css | 10 +++++++--- 4 files changed, 23 insertions(+), 15 deletions(-) diff --git a/i2p2www/pages/blog/post.html b/i2p2www/pages/blog/post.html index ce6d9f52..484127a3 100644 --- a/i2p2www/pages/blog/post.html +++ b/i2p2www/pages/blog/post.html @@ -1,15 +1,14 @@ {% extends "global/layout.html" %} {%- from "global/macros" import render_categories with context -%} {% block title %}{{ title }} - {{ _('Blog') }}{% endblock %} -{% block sidebar %} -