From d0ce205b18e9d5b0d478d2c76eeea7dcdce24733 Mon Sep 17 00:00:00 2001 From: karim hamidou Date: Wed, 30 Apr 2014 09:24:18 +0200 Subject: [PATCH] basic layout --- .gitignore | 1 + _config.yml | 2 +- _layouts/default.html | 33 +++++++------ _layouts/post.html | 7 ++- css/gridiculous.css | 108 ++++++++++++++++++++++++++++++++++++++++++ css/main.css | 34 +++++++++---- index.html | 13 +++-- 7 files changed, 170 insertions(+), 28 deletions(-) create mode 100644 .gitignore create mode 100644 css/gridiculous.css diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c08f9ad --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +_site \ No newline at end of file diff --git a/_config.yml b/_config.yml index 86502ae..9742483 100644 --- a/_config.yml +++ b/_config.yml @@ -1,3 +1,3 @@ -name: Of Bugs And Fixes +name: Debuggers markdown: redcarpet pygments: true diff --git a/_layouts/default.html b/_layouts/default.html index 2c1d755..9c6ee5e 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -7,6 +7,7 @@ + @@ -14,21 +15,25 @@ +
+
+
-
- - - {{ content }} - - diff --git a/_layouts/post.html b/_layouts/post.html index 04e3586..e7c5792 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,9 +1,12 @@ --- layout: default --- -

{{ page.title }}

-

{{ page.date | date_to_string }}

+

{{ page.title }}

+ +

{{ page.date | date_to_string }}

+ {{ content }} +
diff --git a/css/gridiculous.css b/css/gridiculous.css new file mode 100644 index 0000000..126563e --- /dev/null +++ b/css/gridiculous.css @@ -0,0 +1,108 @@ +/* + * Gridiculous + * + * A responsive grid boilerplate that takes you all the way from 1200px on down to 320px. + * + * created by c.bavota + * released under GPL v2 + * + * March 4th, 2013 + */ + +/* =Normalize.css v2.1.0 by Nicolas Gallagher - http://necolas.github.com/normalize.css/ +-------------------------------------------------------------- */ +article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block} +audio,canvas,video{display:inline-block} +audio:not([controls]){display:none;height:0} +[hidden]{display:none} +html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%} +body{margin:0} +a:focus{outline:thin dotted} +a:active,a:hover{outline:0} +h1{font-size:2em;margin:0.67em 0} +abbr[title]{border-bottom:1px dotted} +b,strong{font-weight:bold} +dfn{font-style:italic} +hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0} +mark{background:#ff0;color:#000} +code,kbd,pre,samp{font-family:monospace, serif;font-size:1em} +q{quotes:"\201C" "\201D" "\2018" "\2019"} +small{font-size:80%} +sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline} +sup{top:-0.5em} +sub{bottom:-0.25em} +img{border:0} +svg:not(:root){overflow:hidden} +figure{margin:0} +fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em} +legend{border:0;padding:0} +button,input,select,textarea{font-family:inherit;font-size:100%;margin:0} +button,input{line-height:normal} +button,select{text-transform:none} +button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer} +button[disabled],html input[disabled]{cursor:default} +input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0} +input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box} +input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none} +button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0} +textarea{overflow:auto;vertical-align:top} +table{border-collapse:collapse;border-spacing:0} + +/* =Clearfix by Nicolas Gallagher +-------------------------------------------------------------- */ +.row:before,.row:after,.clearfix:before,.clearfix:after{content:'';display:table} +.row:after,.clearfix:after{clear:both} +.row,.clearfix{zoom:1} + +/* =Gridiculous +-------------------------------------------------------------- */ +*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box} +body{font-size:100%;line-height:1.6875} +.grid{margin:0 auto;max-width:1200px;width:100%} +img{max-width:100%;height:auto;display:block;margin-left:auto;margin-right:auto} +.wfull{width:100%;max-width:100%} +.w320{max-width:320px} +.w640{max-width:640px} +.w960{max-width:960px} +.row{width:100%;margin-bottom:20px} +.row .row{width:auto;margin:0 -20px} +.c1{width:8.33%} +.c2{width:16.66%} +.c3{width:25%} +.c4{width:33.33%} +.c5{width:41.66%} +.c6{width:50%} +.c7{width:58.33%} +.c8{width:66.66%} +.c9{width:75%} +.c10{width:83.33%} +.c11{width:91.66%} +.c12{width:100%} +.c1,.c2,.c3,.c4,.c5,.c6,.c7,.c8,.c9,.c10,.c11,.c12{min-height:1px;float:left;padding-left:20px;padding-right:20px;position:relative} +.s1{margin-left:8.33%} +.s2{margin-left:16.66%} +.s3{margin-left:25%} +.s4{margin-left:33.33%} +.s5{margin-left:41.66%} +.s6{margin-left:50%} +.s7{margin-left:58.33%} +.s8{margin-left:66.66%} +.s9{margin-left:75%} +.s10{margin-left:83.33%} +.s11{margin-left:91.66%} +.end{float:right!important} + +/* =Media query for 960 Screens - sets nested grids to 100% +-------------------------------------------------------------- */ +@media only screen and (max-width:960px){ +.row .row .c1,.row .row .c2,.row .row .c3,.row .row .c4,.row .row .c5,.row .row .c6,.row .row .c7,.row .row .c8,.row .row .c9,.row .row .c10,.row .row .c11,.row .row .c12{width:100%;margin-bottom:20px} +.row .row > div:last-child{margin-bottom:0 !important} +} + +/* =Media query for iPad and tablets +-------------------------------------------------------------- */ +@media handheld, only screen and (max-width: 768px), only screen and (max-device-width: 768px) and (orientation:portrait){ +body{font-size:90%} +.row{margin-bottom:0!important} +.c1,.c2,.c3,.c4,.c5,.c6,.c7,.c8,.c9,.c10,.c11,.c12{width:100%;margin-right:0;margin-left:0;margin-bottom:20px} +} diff --git a/css/main.css b/css/main.css index 1a2c013..52d4c55 100755 --- a/css/main.css +++ b/css/main.css @@ -10,13 +10,13 @@ padding: 0; } -html, body { height: 100%; } +html, body { min-height: 100%; } body { - background-color: #FFF; - font: 13.34px Helvetica, Arial, sans-serif; - font-size: small; - text-align: center; + font-family: Helvetica, Arial, sans-serif; + background: #F4F3DD; /* Old browsers */ + color: #292929; + /* IE9 SVG, needs conditional override of 'filter' to 'none' */ } h1, h2, h3, h4, h5, h6 { @@ -25,9 +25,9 @@ h1, h2, h3, h4, h5, h6 { h1 { margin-bottom: 1em; } p { margin: 1em 0; } -a { color: #00a; } -a:hover { color: #000; } -a:visited { color: #a0a; } +a { color: #292929; } +a:hover { color: #999999; } +a:visited { color: #707070; } /*****************************************************************************/ /* @@ -49,6 +49,12 @@ a:visited { color: #a0a; } font-size: 80%; } +.posts img, .post img { + margin-left: 0px; + border: 1px solid #292929; + margin-bottom: 10px; +} + /*****************************************************************************/ /* /* Site @@ -158,3 +164,15 @@ a:visited { color: #a0a; } .post pre.terminal code { background-color: #333; } + +.rightCol { + background-color: #fff; +} + +.leftCol h2 { + font-size: 2.1em; +} + +.leftCol ul { + list-style-type: none; +} diff --git a/index.html b/index.html index af124be..81783d1 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,20 @@ --- layout: default -title: Of Bugs And Fixes +title: Debuggers ---
-

Blog Posts

    {% for post in site.posts %} -
  • {{ post.date | date_to_string }} » {{ post.title }}
  • +
    +

    {{ post.title}}

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