From db59bf52aa9f7d2f5cbfb357e13f07e504e03aec Mon Sep 17 00:00:00 2001 From: m-r-r Date: Tue, 24 Apr 2012 19:34:04 +0200 Subject: New layout --- dev-random/screenshot.png | Bin 61791 -> 61326 bytes dev-random/static/css/main.css | 66 +++------------------------- dev-random/static/css/skeleton.css | 68 +++++++++++++++++++++++++++++ dev-random/templates/archives.html | 2 +- dev-random/templates/article.html | 2 +- dev-random/templates/base.html | 59 ++++++++----------------- dev-random/templates/categories.html | 2 +- dev-random/templates/includes/sidebar.html | 46 +++++++++++++++++++ dev-random/templates/index.html | 2 +- dev-random/templates/page.html | 2 +- dev-random/templates/tags.html | 2 +- 11 files changed, 145 insertions(+), 106 deletions(-) create mode 100644 dev-random/static/css/skeleton.css create mode 100644 dev-random/templates/includes/sidebar.html (limited to 'dev-random') diff --git a/dev-random/screenshot.png b/dev-random/screenshot.png index 5ce64c4..a1e468b 100644 Binary files a/dev-random/screenshot.png and b/dev-random/screenshot.png differ diff --git a/dev-random/static/css/main.css b/dev-random/static/css/main.css index 29818cb..7978af3 100644 --- a/dev-random/static/css/main.css +++ b/dev-random/static/css/main.css @@ -84,73 +84,21 @@ pre { } -/******************************************************************************/ -/* Page Structure */ -/******************************************************************************/ - -#page-header { - width: 60%; - margin: 1em auto 1em auto; - - text-align: center; -} - - -#page-menu { - width: 100%; - margin: 0 0 2em 0; - padding: .2em 0em; - - border-bottom: thin dashed gray; - - text-align: center; -} - - -#page-content { - display: block; - width: 75%; - margin-left: auto; - margin-right: auto; -} - - -#page-footer { - width: 100%; - margin-top: 2em; - - border-top: thin dashed gray; - - font-size: .7em; - font-weight: lighter; -} - /******************************************************************************/ /* Specific Styles */ /******************************************************************************/ -#page-header h1 { - margin: .2em auto .2em auto; +.page .head h1 { + margin: .7em auto; font-family: Georgia, "Times New Roman", Times, serif; font-size: 2.8em; + text-align: center; } -#page-menu ul { - display: inline; - margin: 0; - padding: 0; - - list-style-type: none; -} - -#page-menu ul li { - display: inline; -} - -#page-menu ul li a { +.widget ul li { margin: .1em .4em; font-size: 0.8em; @@ -159,12 +107,12 @@ pre { font-variant: small-caps; } -#page-content #page-title { +.content #page-title { font-size: .9em; } -.post { +.content .post { clear: both; margin: 1em 0 3em 0; } @@ -237,7 +185,7 @@ pre { } -#page-footer p { +.page .foot p { display: block; width: 60%; diff --git a/dev-random/static/css/skeleton.css b/dev-random/static/css/skeleton.css new file mode 100644 index 0000000..02010f7 --- /dev/null +++ b/dev-random/static/css/skeleton.css @@ -0,0 +1,68 @@ + +.page { + display: block; + margin-top: 5%; +} + +.page .head, +.page .main, +.page .foot { + display: block; + width: 100%; + clear: both; +} + +.page .main { + display: table; + border-collapse: separate; + border-spacing: .5%; + width: 75%; + margin: .5em auto; + clear: both; +} + +.page .main .sidebar { + display: table-cell; + width: 25%; +} + +.page .main .content { + display: table-cell; + width: 74%; +} + +@media screen and (max-width: 800px) { + .page .main { + width: 100%; + clear: both; + } +} + +@media screen and (max-width: 700px) { + .page .main { + display: block; + } + + .page .main .sidebar, + .page .main .content { + display: block; + margin: 0 .5em; + width: 100%; + clear: both; + } + + .widget { + display: block; + } + + .widget ul, + .widget li { + display: inline; + } + + .widget h3 { display: none; } +} + +@media print { + .sidebar { display: none; } +} diff --git a/dev-random/templates/archives.html b/dev-random/templates/archives.html index 520d5ed..1ba36dd 100644 --- a/dev-random/templates/archives.html +++ b/dev-random/templates/archives.html @@ -3,7 +3,7 @@ {% block content_title %}{{ SITENAME }} — Archives{% endblock %} {%- block content %} -
+

Archives

{% for article in articles %} diff --git a/dev-random/templates/article.html b/dev-random/templates/article.html index d85c7c5..ab5679c 100644 --- a/dev-random/templates/article.html +++ b/dev-random/templates/article.html @@ -9,7 +9,7 @@ {% block title %}{{ article.title }} — {{ super() }}{% endblock %} {%- block content %} -
+