From c12e31d0c1cbc93c6aba014a9edacce26060b115 Mon Sep 17 00:00:00 2001 From: karim hamidou Date: Sun, 25 May 2014 16:01:31 +0200 Subject: [PATCH] better CSS --- _layouts/default.html | 4 +- _layouts/post.html | 9 ++-- css/main.css | 107 +++++++++++++++++------------------------- index.html | 4 +- 4 files changed, 52 insertions(+), 72 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 5c91eb6..3642139 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -29,8 +29,10 @@ Updates on Tuesdays.

Edited by Karim Hamidou.

diff --git a/_layouts/post.html b/_layouts/post.html index c9361e2..8e74962 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,15 +1,14 @@ --- layout: default --- -

{{ page.title }}

-
- -Posted: {{ page.date | date_to_string }}. + +

{{ page.title }}

+
Posted: {{ page.date | date_to_string }}. Filed under: {% for cat in page.categories %} {{ cat }} {% endfor %} - +
{% if content contains '' %} {{ content | split :'' | last }} {% endif %} diff --git a/css/main.css b/css/main.css index ea755a6..df62003 100755 --- a/css/main.css +++ b/css/main.css @@ -15,6 +15,7 @@ html, body { min-height: 100%; } body { font-family: Helvetica, Arial, sans-serif; color: #292929; + background-color: #e0e0e0; /* IE9 SVG, needs conditional override of 'filter' to 'none' */ } @@ -46,13 +47,17 @@ h2 a:visited { color: #292929; } } .meta { - color: #aaa; - font-size: 80%; + color: #999; + font-size: 90%; +} + +.authorPic { + border: 1px solid #777; + border-radius: 3px; } .posts img, .post img { margin-left: 0px; - border: 1px solid #292929; margin-top: 10px; margin-bottom: 10px; } @@ -63,75 +68,40 @@ h2 a:visited { color: #292929; } /* /*****************************************************************************/ -.site { - font-size: 115%; - text-align: justify; - width: 42em; - margin: 3em auto 2em; - line-height: 1.5em; -} - -.header a { - font-weight: bold; - text-decoration: none; -} - -.title { - display: inline-block; - margin-bottom: 2em; -} - -.title a { - color: #a00; -} - -.title a:hover { - color: #000; -} - -.header a.extra { - color: #aaa; - margin-left: 1em; -} - -.header a.extra:hover { - color: #000; -} +/*****************************************************************************/ +/* +/* Posts +/* +/*****************************************************************************/ -.footer { - font-size: 80%; - color: #666; - border-top: 4px solid #eee; - margin-top: 2em; - overflow: hidden; +/* standard */ +.post { + background-color: #fff; + padding: 10px; + box-shadow: 0px 1px #ccc; + border: 1px solid #ccc; + border-radius: 5px; } -.footer .contact { - float: left; - margin-right: 3em; +.post .title { + margin-top: 0px; + margin-bottom: 0px; } -.footer .contact a { - color: #8085C1; +.post .title a { + font-size: 1.2em; + text-decoration: none; + color: #292929; } -.footer .rss { - margin-top: 1.1em; - margin-right: -.2em; - float: right; +.post .title a:visited { + color: #292929; } -.footer .rss img { - border: 0; +.post .meta { + margin-bottom: 10px; } -/*****************************************************************************/ -/* -/* Posts -/* -/*****************************************************************************/ - -/* standard */ .post pre { border: 1px solid #ddd; background-color: #eef; @@ -163,8 +133,12 @@ h2 a:visited { color: #292929; } background-color: #333; } -.rightCol { - background-color: #fff; +.leftCol { + background-color: #fff; + padding: 10px; + box-shadow: 0px 1px #ccc; + border: 1px solid #ccc; + border-radius: 5px; } .leftCol h2 { @@ -175,9 +149,14 @@ h2 a:visited { color: #292929; } list-style-type: none; } -span .cat { +.rightCol { +} + + +.cat { border: 1px solid #ccc; border-radius: 3px; padding-left: 3px; padding-right: 3px; + box-shadow: 0px 0.5px #ccc; } diff --git a/index.html b/index.html index 58cd1d9..ecfaa48 100644 --- a/index.html +++ b/index.html @@ -7,8 +7,8 @@ title: Debuggers
    {% for post in site.posts %}
    - -

    {{ post.title}}

    + +

    {{ post.title}}

    {% if post.content contains '' %} {{ post.content | split :'' | first }} {% endif %} -- 2.43.0