]> khamidou — GitHub mirrors - debuggers.git/commitdiff
better CSS
authorkarim hamidou <khamidou@gmail.com>
Sun, 25 May 2014 14:01:31 +0000 (16:01 +0200)
committerkarim hamidou <khamidou@gmail.com>
Sun, 25 May 2014 14:01:31 +0000 (16:01 +0200)
_layouts/default.html
_layouts/post.html
css/main.css
index.html

index 5c91eb619c9a5f7499ff08f231253d5b7411f3cb..36421391b76bf67018570c56cd23c44c00bb6048 100644 (file)
                       Updates on Tuesdays.
                   </p>
                   <ul>
-                      <li><a href="/home.html">Home</a></li>
+                      <li><a href="/">Home</a></li>
+                      {% comment %}
                       <li><a href="/archives.html">Archives</a></li>
+                      {% endcomment %}
                       <li><a href="/atom.xml">Atom</a> | <a href="http://twitter.com/debuggersco">Twitter</a></li>
                   </ul>
                   <p>Edited by <a href="http://khamidou.com">Karim Hamidou</a>.</p>
index c9361e202486dcc059c96a2076ac25cf7bdf7882..8e7496224f8e160fca0666159ec707d0f16f8851 100644 (file)
@@ -1,15 +1,14 @@
 ---
 layout: default
 ---
-<a href="{{page.url}}"><h1>{{ page.title }}</h1></a>
-
 <div class="post">
-<img src="{{ page.image }}"></img>
-<span class="meta">Posted: {{ page.date | date_to_string }}. 
+<img class="authorPic" src="{{ page.image }}"></img>
+<h1 class="title"><a href="{{page.url}}">{{ page.title }}</a></h1>
+<div class="meta">Posted: {{ page.date | date_to_string }}. 
     Filed under: {% for cat in page.categories %}
     <span class="cat">{{ cat }}</span>
     {% endfor %}
-</span>
+</div>
 {% if content contains '<!-- more -->' %}
     {{ content | split :'<!-- more -->' | last }}
 {% endif %}
index ea755a62b9421da5f374176932f4925ea7745c94..df6200389e0201e280ce8c9409895e2e3a9fda68 100755 (executable)
@@ -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;
 }
index 58cd1d9f1746a665431796b65da48b91863c4f92..ecfaa4801a6795eac11d9007bce2f095a9164029 100644 (file)
@@ -7,8 +7,8 @@ title: Debuggers
   <ul class="posts">
     {% for post in site.posts %}
     <div class="post">
-        <img src="{{ post.image }}"></img>
-        <a href="{{ post.url }}"><h1>{{ post.title}}</h1></a>
+        <img class="authorPic" src="{{ post.image }}"></img>
+        <h1 class="title"><a href="{{ post.url }}">{{ post.title}}</a></h1>
         {% if post.content contains '<!-- more -->' %}
             {{ post.content | split :'<!-- more -->' | first }}
         {% endif %}