- Added linkedin support

This commit is contained in:
Jerome 2010-11-15 16:33:47 +01:00
commit 8de5e7b3a8
2 changed files with 428 additions and 427 deletions

View file

@ -1,427 +1,428 @@
/* /*
Name: Smashing HTML5 Name: Smashing HTML5
Date: July 2009 Date: July 2009
Description: Sample layout for HTML5 and CSS3 goodness. Description: Sample layout for HTML5 and CSS3 goodness.
Version: 1.0 Version: 1.0
Author: Enrique Ramírez Author: Enrique Ramírez
Autor URI: http://enrique-ramirez.com Autor URI: http://enrique-ramirez.com
*/ */
/* Imports */ /* Imports */
@import url("reset.css"); @import url("reset.css");
@import url("pygment.css"); @import url("pygment.css");
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz&subset=latin); @import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz&subset=latin);
/***** Global *****/ /***** Global *****/
/* Body */ /* Body */
body { body {
background: #F5F4EF url('../images/bg.png'); background: #F5F4EF url('../images/bg.png');
color: #000305; color: #000305;
font-size: 87.5%; /* Base font size: 14px */ font-size: 87.5%; /* Base font size: 14px */
font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
line-height: 1.429; line-height: 1.429;
margin: 0; margin: 0;
padding: 0; padding: 0;
text-align: left; text-align: left;
} }
article img{ article img{
float: right; float: right;
} }
/* Headings */ /* Headings */
h1 {font-size: 2em } h1 {font-size: 2em }
h2 {font-size: 1.571em} /* 22px */ h2 {font-size: 1.571em} /* 22px */
h3 {font-size: 1.429em} /* 20px */ h3 {font-size: 1.429em} /* 20px */
h4 {font-size: 1.286em} /* 18px */ h4 {font-size: 1.286em} /* 18px */
h5 {font-size: 1.143em} /* 16px */ h5 {font-size: 1.143em} /* 16px */
h6 {font-size: 1em} /* 14px */ h6 {font-size: 1em} /* 14px */
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-weight: 400; font-weight: 400;
line-height: 1.1; line-height: 1.1;
margin-bottom: .8em; margin-bottom: .8em;
font-family: 'Yanone Kaffeesatz', arial, serif; font-family: 'Yanone Kaffeesatz', arial, serif;
} }
h3, h4, h5, h6 { margin-top: .8em; } h3, h4, h5, h6 { margin-top: .8em; }
hr { border: 2px solid #EEEEEE; } hr { border: 2px solid #EEEEEE; }
/* Anchors */ /* Anchors */
a {outline: 0;} a {outline: 0;}
a img {border: 0px; text-decoration: none;} a img {border: 0px; text-decoration: none;}
a:link, a:visited { a:link, a:visited {
color: #C74350; color: #C74350;
padding: 0 1px; padding: 0 1px;
text-decoration: underline; text-decoration: underline;
} }
a:hover, a:active { a:hover, a:active {
background-color: #C74350; background-color: #C74350;
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
text-shadow: 1px 1px 1px #333; text-shadow: 1px 1px 1px #333;
} }
/* Paragraphs */ /* Paragraphs */
p {margin-bottom: 1.143em;} p {margin-bottom: 1.143em;}
strong, b {font-weight: bold;} strong, b {font-weight: bold;}
em, i {font-style: italic;} em, i {font-style: italic;}
::-moz-selection {background: #F6CF74; color: #fff;} ::-moz-selection {background: #F6CF74; color: #fff;}
::selection {background: #F6CF74; color: #fff;} ::selection {background: #F6CF74; color: #fff;}
/* Lists */ /* Lists */
ul { ul {
list-style: outside disc; list-style: outside disc;
margin: 1em 0 1.5em 1.5em; margin: 1em 0 1.5em 1.5em;
} }
ol { ol {
list-style: outside decimal; list-style: outside decimal;
margin: 1em 0 1.5em 1.5em; margin: 1em 0 1.5em 1.5em;
} }
.post-info { .post-info {
float:right; float:right;
margin:10px; margin:10px;
padding:5px; padding:5px;
} }
.post-info p{ .post-info p{
margin-bottom: 1px; margin-bottom: 1px;
} }
.readmore { float: right } .readmore { float: right }
dl {margin: 0 0 1.5em 0;} dl {margin: 0 0 1.5em 0;}
dt {font-weight: bold;} dt {font-weight: bold;}
dd {margin-left: 1.5em;} dd {margin-left: 1.5em;}
pre{background-color: #000; padding: 10px; color: #fff; margin: 10px; overflow: auto;} pre{background-color: #000; padding: 10px; color: #fff; margin: 10px; overflow: auto;}
/* Quotes */ /* Quotes */
blockquote { blockquote {
margin: 20px; margin: 20px;
font-style: italic; font-style: italic;
} }
cite {} cite {}
q {} q {}
/* Tables */ /* Tables */
table {margin: .5em auto 1.5em auto; width: 98%;} table {margin: .5em auto 1.5em auto; width: 98%;}
/* Thead */ /* Thead */
thead th {padding: .5em .4em; text-align: left;} thead th {padding: .5em .4em; text-align: left;}
thead td {} thead td {}
/* Tbody */ /* Tbody */
tbody td {padding: .5em .4em;} tbody td {padding: .5em .4em;}
tbody th {} tbody th {}
tbody .alt td {} tbody .alt td {}
tbody .alt th {} tbody .alt th {}
/* Tfoot */ /* Tfoot */
tfoot th {} tfoot th {}
tfoot td {} tfoot td {}
/* HTML5 tags */ /* HTML5 tags */
header, section, footer, header, section, footer,
aside, nav, article, figure { aside, nav, article, figure {
display: block; display: block;
} }
/***** Layout *****/ /***** Layout *****/
.body {clear: both; margin: 0 auto; width: 800px;} .body {clear: both; margin: 0 auto; width: 800px;}
img.right figure.right {float: right; margin: 0 0 2em 2em;} img.right figure.right {float: right; margin: 0 0 2em 2em;}
img.left, figure.left {float: right; margin: 0 0 2em 2em;} img.left, figure.left {float: right; margin: 0 0 2em 2em;}
/* /*
Header Header
*****************/ *****************/
#banner { #banner {
margin: 0 auto; margin: 0 auto;
padding: 2.5em 0 0 0; padding: 2.5em 0 0 0;
} }
/* Banner */ /* Banner */
#banner h1 {font-size: 3.571em; line-height: 0;} #banner h1 {font-size: 3.571em; line-height: 0;}
#banner h1 a:link, #banner h1 a:visited { #banner h1 a:link, #banner h1 a:visited {
color: #000305; color: #000305;
display: block; display: block;
font-weight: bold; font-weight: bold;
margin: 0 0 .6em .2em; margin: 0 0 .6em .2em;
text-decoration: none; text-decoration: none;
width: 427px; width: 427px;
} }
#banner h1 a:hover, #banner h1 a:active { #banner h1 a:hover, #banner h1 a:active {
background: none; background: none;
color: #C74350; color: #C74350;
text-shadow: none; text-shadow: none;
} }
#banner h1 strong {font-size: 0.36em; font-weight: normal;} #banner h1 strong {font-size: 0.36em; font-weight: normal;}
/* Main Nav */ /* Main Nav */
#banner nav { #banner nav {
background: #000305; background: #000305;
font-size: 1.143em; font-size: 1.143em;
height: 40px; height: 40px;
line-height: 30px; line-height: 30px;
margin: 0 auto 2em auto; margin: 0 auto 2em auto;
padding: 0; padding: 0;
text-align: center; text-align: center;
width: 800px; width: 800px;
border-radius: 5px; border-radius: 5px;
-moz-border-radius: 5px; -moz-border-radius: 5px;
-webkit-border-radius: 5px; -webkit-border-radius: 5px;
} }
#banner nav ul {list-style: none; margin: 0 auto; width: 800px;} #banner nav ul {list-style: none; margin: 0 auto; width: 800px;}
#banner nav li {float: left; display: inline; margin: 0;} #banner nav li {float: left; display: inline; margin: 0;}
#banner nav a:link, #banner nav a:visited { #banner nav a:link, #banner nav a:visited {
color: #fff; color: #fff;
display: inline-block; display: inline-block;
height: 30px; height: 30px;
padding: 5px 1.5em; padding: 5px 1.5em;
text-decoration: none; text-decoration: none;
} }
#banner nav a:hover, #banner nav a:active, #banner nav a:hover, #banner nav a:active,
#banner nav .active a:link, #banner nav .active a:visited { #banner nav .active a:link, #banner nav .active a:visited {
background: #C74451; background: #C74451;
color: #fff; color: #fff;
text-shadow: none !important; text-shadow: none !important;
} }
#banner nav li:first-child a { #banner nav li:first-child a {
border-top-left-radius: 5px; border-top-left-radius: 5px;
-moz-border-radius-topleft: 5px; -moz-border-radius-topleft: 5px;
-webkit-border-top-left-radius: 5px; -webkit-border-top-left-radius: 5px;
border-bottom-left-radius: 5px; border-bottom-left-radius: 5px;
-moz-border-radius-bottomleft: 5px; -moz-border-radius-bottomleft: 5px;
-webkit-border-bottom-left-radius: 5px; -webkit-border-bottom-left-radius: 5px;
} }
/* /*
Featured Featured
*****************/ *****************/
#featured { #featured {
background: #fff; background: #fff;
margin-bottom: 2em; margin-bottom: 2em;
overflow: hidden; overflow: hidden;
padding: 20px; padding: 20px;
width: 760px; width: 760px;
border-radius: 10px; border-radius: 10px;
-moz-border-radius: 10px; -moz-border-radius: 10px;
-webkit-border-radius: 10px; -webkit-border-radius: 10px;
} }
#featured figure { #featured figure {
border: 2px solid #eee; border: 2px solid #eee;
float: right; float: right;
margin: 0.786em 2em 0 5em; margin: 0.786em 2em 0 5em;
width: 248px; width: 248px;
} }
#featured figure img {display: block; float: right;} #featured figure img {display: block; float: right;}
#featured h2 {color: #C74451; font-size: 1.714em; margin-bottom: 0.333em;} #featured h2 {color: #C74451; font-size: 1.714em; margin-bottom: 0.333em;}
#featured h3 {font-size: 1.429em; margin-bottom: .5em;} #featured h3 {font-size: 1.429em; margin-bottom: .5em;}
#featured h3 a:link, #featured h3 a:visited {color: #000305; text-decoration: none;} #featured h3 a:link, #featured h3 a:visited {color: #000305; text-decoration: none;}
#featured h3 a:hover, #featured h3 a:active {color: #fff;} #featured h3 a:hover, #featured h3 a:active {color: #fff;}
/* /*
Body Body
*****************/ *****************/
#content { #content {
background: #fff; background: #fff;
margin-bottom: 2em; margin-bottom: 2em;
overflow: hidden; overflow: hidden;
padding: 20px 20px; padding: 20px 20px;
width: 760px; width: 760px;
border-radius: 10px; border-radius: 10px;
-moz-border-radius: 10px; -moz-border-radius: 10px;
-webkit-border-radius: 10px; -webkit-border-radius: 10px;
} }
/* /*
Extras Extras
*****************/ *****************/
#extras {margin: 0 auto 3em auto; overflow: hidden;} #extras {margin: 0 auto 3em auto; overflow: hidden;}
#extras ul {list-style: none; margin: 0;} #extras ul {list-style: none; margin: 0;}
#extras li {border-bottom: 1px solid #fff;} #extras li {border-bottom: 1px solid #fff;}
#extras h2 { #extras h2 {
color: #C74350; color: #C74350;
font-size: 1.429em; font-size: 1.429em;
margin-bottom: .25em; margin-bottom: .25em;
padding: 0 3px; padding: 0 3px;
} }
#extras a:link, #extras a:visited { #extras a:link, #extras a:visited {
color: #444; color: #444;
display: block; display: block;
border-bottom: 1px solid #F4E3E3; border-bottom: 1px solid #F4E3E3;
text-decoration: none; text-decoration: none;
padding: .3em .25em; padding: .3em .25em;
} }
#extras li:last-child, #extras li:last-child,
#extras li:last-child a {border: 0} #extras li:last-child a {border: 0}
#extras .blogroll li:nth-last-child(2), #extras .blogroll li:nth-last-child(2),
#extras .blogroll li:nth-last-child(3), #extras .blogroll li:nth-last-child(3),
#extras .blogroll li:nth-last-child(2) a, #extras .blogroll li:nth-last-child(2) a,
#extras .blogroll li:nth-last-child(3) a {border: 0;} #extras .blogroll li:nth-last-child(3) a {border: 0;}
#extras a:hover, #extras a:active {color: #fff;} #extras a:hover, #extras a:active {color: #fff;}
/* Blogroll */ /* Blogroll */
#extras .blogroll { #extras .blogroll {
float: left; float: left;
width: 615px; width: 615px;
} }
#extras .blogroll li {float: left; margin: 0 20px 0 0; width: 185px;} #extras .blogroll li {float: left; margin: 0 20px 0 0; width: 185px;}
/* Social */ /* Social */
#extras .social { #extras .social {
float: right; float: right;
width: 175px; width: 175px;
} }
#extras div[class='social'] a { #extras div[class='social'] a {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 3px 6px; background-position: 3px 6px;
padding-left: 25px; padding-left: 25px;
} }
/* Icons */ /* Icons */
.social a[href*='delicious.com'] {background-image: url('../images/icons/delicious.png');} .social a[href*='delicious.com'] {background-image: url('../images/icons/delicious.png');}
.social a[href*='digg.com'] {background-image: url('../images/icons/digg.png');} .social a[href*='digg.com'] {background-image: url('../images/icons/digg.png');}
.social a[href*='facebook.com'] {background-image: url('../images/icons/facebook.png');} .social a[href*='facebook.com'] {background-image: url('../images/icons/facebook.png');}
.social a[href*='last.fm'], .social a[href*='lastfm.'] {background-image: url('../images/icons/lastfm.png');} .social a[href*='last.fm'], .social a[href*='lastfm.'] {background-image: url('../images/icons/lastfm.png');}
.social a[href*='atom.xml'] {background-image: url('../images/icons/rss.png');} .social a[href*='atom.xml'] {background-image: url('../images/icons/rss.png');}
.social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');} .social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');}
.social a[href*='linkedin.com'] {background-image: url('../images/icons/linkedin.png');}
/*
About /*
*****************/ About
#about { *****************/
background: #fff; #about {
font-style: normal; background: #fff;
margin-bottom: 2em; font-style: normal;
overflow: hidden; margin-bottom: 2em;
padding: 20px; overflow: hidden;
text-align: left; padding: 20px;
width: 760px; text-align: left;
width: 760px;
border-radius: 10px;
-moz-border-radius: 10px; border-radius: 10px;
-webkit-border-radius: 10px; -moz-border-radius: 10px;
} -webkit-border-radius: 10px;
}
#about .primary {float: left; width: 165px;}
#about .primary strong {color: #C64350; display: block; font-size: 1.286em;} #about .primary {float: left; width: 165px;}
#about .photo {float: left; margin: 5px 20px;} #about .primary strong {color: #C64350; display: block; font-size: 1.286em;}
#about .photo {float: left; margin: 5px 20px;}
#about .url:link, #about .url:visited {text-decoration: none;}
#about .url:link, #about .url:visited {text-decoration: none;}
#about .bio {float: right; width: 500px;}
#about .bio {float: right; width: 500px;}
/*
Footer /*
*****************/ Footer
#contentinfo {padding-bottom: 2em; text-align: right;} *****************/
#contentinfo {padding-bottom: 2em; text-align: right;}
/***** Sections *****/
/* Blog */ /***** Sections *****/
.hentry { /* Blog */
border-bottom: 1px solid #eee; .hentry {
padding: 1.5em 0; border-bottom: 1px solid #eee;
} padding: 1.5em 0;
li:last-child .hentry, #content > .hentry {border: 0; margin: 0;} }
#content > .hentry {padding: 1em 0;} li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
#content > .hentry {padding: 1em 0;}
.entry-title {font-size: 3em; margin-bottom: 10px; margin-top: 0;}
.entry-title a:link, .entry-title a:visited {text-decoration: none; color: #333;} .entry-title {font-size: 3em; margin-bottom: 10px; margin-top: 0;}
.entry-title a:visited {background-color: #fff;} .entry-title a:link, .entry-title a:visited {text-decoration: none; color: #333;}
.entry-title a:visited {background-color: #fff;}
.hentry .post-info * {font-style: normal;}
.hentry .post-info * {font-style: normal;}
/* Content */
.hentry footer {margin-bottom: 2em;} /* Content */
.hentry footer address {display: inline;} .hentry footer {margin-bottom: 2em;}
#posts-list footer address {display: block;} .hentry footer address {display: inline;}
#posts-list footer address {display: block;}
/* Blog Index */
#posts-list {list-style: none; margin: 0;} /* Blog Index */
#posts-list .hentry {padding-left: 10px; position: relative;} #posts-list {list-style: none; margin: 0;}
#posts-list .hentry {padding-left: 10px; position: relative;}
#posts-list footer {
left: 10px; #posts-list footer {
position: relative; left: 10px;
float: left; position: relative;
top: 0.5em; float: left;
width: 190px; top: 0.5em;
} width: 190px;
}
/* About the Author */
#about-author { /* About the Author */
background: #f9f9f9; #about-author {
clear: both; background: #f9f9f9;
font-style: normal; clear: both;
margin: 2em 0; font-style: normal;
padding: 10px 20px 15px 20px; margin: 2em 0;
padding: 10px 20px 15px 20px;
border-radius: 5px;
-moz-border-radius: 5px; border-radius: 5px;
-webkit-border-radius: 5px; -moz-border-radius: 5px;
} -webkit-border-radius: 5px;
}
#about-author strong {
color: #C64350; #about-author strong {
clear: both; color: #C64350;
display: block; clear: both;
font-size: 1.429em; display: block;
} font-size: 1.429em;
}
#about-author .photo {border: 1px solid #ddd; float: left; margin: 5px 1em 0 0;}
#about-author .photo {border: 1px solid #ddd; float: left; margin: 5px 1em 0 0;}
/* Comments */
#comments-list {list-style: none; margin: 0 1em;} /* Comments */
#comments-list blockquote { #comments-list {list-style: none; margin: 0 1em;}
background: #f8f8f8; #comments-list blockquote {
clear: both; background: #f8f8f8;
font-style: normal; clear: both;
margin: 0; font-style: normal;
padding: 15px 20px; margin: 0;
padding: 15px 20px;
border-radius: 5px;
-moz-border-radius: 5px; border-radius: 5px;
-webkit-border-radius: 5px; -moz-border-radius: 5px;
} -webkit-border-radius: 5px;
#comments-list footer {color: #888; padding: .5em 1em 0 0; text-align: right;} }
#comments-list footer {color: #888; padding: .5em 1em 0 0; text-align: right;}
#comments-list li:nth-child(2n) blockquote {background: #F5f5f5;}
#comments-list li:nth-child(2n) blockquote {background: #F5f5f5;}
/* Add a Comment */
#add-comment label {clear: left; float: left; text-align: left; width: 150px;} /* Add a Comment */
#add-comment input[type='text'], #add-comment label {clear: left; float: left; text-align: left; width: 150px;}
#add-comment input[type='email'], #add-comment input[type='text'],
#add-comment input[type='url'] {float: left; width: 200px;} #add-comment input[type='email'],
#add-comment input[type='url'] {float: left; width: 200px;}
#add-comment textarea {float: left; height: 150px; width: 495px;}
#add-comment textarea {float: left; height: 150px; width: 495px;}
#add-comment p.req {clear: both; margin: 0 .5em 1em 0; text-align: right;}
#add-comment p.req {clear: both; margin: 0 .5em 1em 0; text-align: right;}
#add-comment input[type='submit'] {float: right; margin: 0 .5em;}
#add-comment * {margin-bottom: .5em;} #add-comment input[type='submit'] {float: right; margin: 0 .5em;}
#add-comment * {margin-bottom: .5em;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 B