main.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. /*
  2. Name: Smashing HTML5
  3. Date: July 2009
  4. Description: Sample layout for HTML5 and CSS3 goodness.
  5. Version: 1.0
  6. Author: Enrique Ramírez
  7. Autor URI: http://enrique-ramirez.com
  8. */
  9. /* Imports */
  10. @import url("reset.css");
  11. @import url("pygment.css");
  12. @import url("typogrify.css");
  13. @import url(//fonts.googleapis.com/css?family=Yanone+Kaffeesatz&subset=latin);
  14. /***** Global *****/
  15. /* Body */
  16. body {
  17. background: #F5F4EF;
  18. color: #000305;
  19. font-size: 87.5%; /* Base font size: 14px */
  20. font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  21. line-height: 1.429;
  22. margin: 0;
  23. padding: 0;
  24. text-align: left;
  25. }
  26. /* Headings */
  27. h1 {font-size: 2em }
  28. h2 {font-size: 1.571em} /* 22px */
  29. h3 {font-size: 1.429em} /* 20px */
  30. h4 {font-size: 1.286em} /* 18px */
  31. h5 {font-size: 1.143em} /* 16px */
  32. h6 {font-size: 1em} /* 14px */
  33. h1, h2, h3, h4, h5, h6 {
  34. font-weight: 400;
  35. line-height: 1.1;
  36. margin-bottom: .8em;
  37. font-family: 'Yanone Kaffeesatz', arial, serif;
  38. }
  39. h3, h4, h5, h6 { margin-top: .8em; }
  40. hr { border: 2px solid #EEEEEE; }
  41. /* Anchors */
  42. a {outline: 0;}
  43. a img {border: 0px; text-decoration: none;}
  44. a:link, a:visited {
  45. color: #C74350;
  46. padding: 0 1px;
  47. text-decoration: underline;
  48. }
  49. a:hover, a:active {
  50. background-color: #C74350;
  51. color: #fff;
  52. text-decoration: none;
  53. text-shadow: 1px 1px 1px #333;
  54. }
  55. h1 a:hover {
  56. background-color: inherit
  57. }
  58. /* Paragraphs */
  59. div.line-block,
  60. p { margin-top: 1em;
  61. margin-bottom: 1em;}
  62. strong, b {font-weight: bold;}
  63. em, i {font-style: italic;}
  64. /* Lists */
  65. ul {
  66. list-style: outside disc;
  67. margin: 0em 0 0 1.5em;
  68. }
  69. ol {
  70. list-style: outside decimal;
  71. margin: 0em 0 0 1.5em;
  72. }
  73. li { margin-top: 0.5em;}
  74. .post-info {
  75. float:right;
  76. margin:10px;
  77. padding:5px;
  78. }
  79. .post-info p{
  80. margin-top: 1px;
  81. margin-bottom: 1px;
  82. }
  83. .readmore { float: right }
  84. dl {margin: 0 0 1.5em 0;}
  85. dt {font-weight: bold;}
  86. dd {margin-left: 1.5em;}
  87. pre{background-color: rgb(238, 238, 238); padding: 10px; margin: 10px; overflow: auto;}
  88. /* Quotes */
  89. blockquote {
  90. margin: 20px;
  91. font-style: italic;
  92. }
  93. cite {}
  94. q {}
  95. div.note {
  96. float: right;
  97. margin: 5px;
  98. font-size: 85%;
  99. max-width: 300px;
  100. }
  101. /* Tables */
  102. table {margin: .5em auto 1.5em auto; width: 98%;}
  103. /* Thead */
  104. thead th {padding: .5em .4em; text-align: left;}
  105. thead td {}
  106. /* Tbody */
  107. tbody td {padding: .5em .4em;}
  108. tbody th {}
  109. tbody .alt td {}
  110. tbody .alt th {}
  111. /* Tfoot */
  112. tfoot th {}
  113. tfoot td {}
  114. /* HTML5 tags */
  115. header, section, footer,
  116. aside, nav, article, figure {
  117. display: block;
  118. }
  119. /***** Layout *****/
  120. .body {clear: both; margin: 0 auto; width: 800px;}
  121. img.right, figure.right {float: right; margin: 0 0 2em 2em;}
  122. img.left, figure.left {float: left; margin: 0 2em 2em 0;}
  123. /*
  124. Header
  125. *****************/
  126. #banner {
  127. margin: 0 auto;
  128. padding: 2.5em 0 0 0;
  129. }
  130. /* Banner */
  131. #banner h1 {font-size: 3.571em; line-height: 0;}
  132. #banner h1 a:link, #banner h1 a:visited {
  133. color: #000305;
  134. display: block;
  135. font-weight: bold;
  136. margin: 0 0 .6em .2em;
  137. text-decoration: none;
  138. }
  139. #banner h1 a:hover, #banner h1 a:active {
  140. background: none;
  141. color: #C74350;
  142. text-shadow: none;
  143. }
  144. #banner h1 strong {font-size: 0.36em; font-weight: normal;}
  145. /* Main Nav */
  146. #banner nav {
  147. background: #000305;
  148. font-size: 1.143em;
  149. height: 40px;
  150. line-height: 30px;
  151. margin: 0 auto 2em auto;
  152. padding: 0;
  153. text-align: center;
  154. width: 800px;
  155. border-radius: 5px;
  156. -moz-border-radius: 5px;
  157. -webkit-border-radius: 5px;
  158. }
  159. #banner nav ul {list-style: none; margin: 0 auto; width: 800px;}
  160. #banner nav li {float: left; display: inline; margin: 0;}
  161. #banner nav a:link, #banner nav a:visited {
  162. color: #fff;
  163. display: inline-block;
  164. height: 30px;
  165. padding: 5px 1.5em;
  166. text-decoration: none;
  167. }
  168. #banner nav a:hover, #banner nav a:active,
  169. #banner nav .active a:link, #banner nav .active a:visited {
  170. background: #C74451;
  171. color: #fff;
  172. text-shadow: none !important;
  173. }
  174. #banner nav li:first-child a {
  175. border-top-left-radius: 5px;
  176. -moz-border-radius-topleft: 5px;
  177. -webkit-border-top-left-radius: 5px;
  178. border-bottom-left-radius: 5px;
  179. -moz-border-radius-bottomleft: 5px;
  180. -webkit-border-bottom-left-radius: 5px;
  181. }
  182. /*
  183. Featured
  184. *****************/
  185. #featured {
  186. background: #fff;
  187. margin-bottom: 2em;
  188. overflow: hidden;
  189. padding: 20px;
  190. width: 760px;
  191. border-radius: 10px;
  192. -moz-border-radius: 10px;
  193. -webkit-border-radius: 10px;
  194. }
  195. #featured figure {
  196. border: 2px solid #eee;
  197. float: right;
  198. margin: 0.786em 2em 0 5em;
  199. width: 248px;
  200. }
  201. #featured figure img {display: block; float: right;}
  202. #featured h2 {color: #C74451; font-size: 1.714em; margin-bottom: 0.333em;}
  203. #featured h3 {font-size: 1.429em; margin-bottom: .5em;}
  204. #featured h3 a:link, #featured h3 a:visited {color: #000305; text-decoration: none;}
  205. #featured h3 a:hover, #featured h3 a:active {color: #fff;}
  206. /*
  207. Body
  208. *****************/
  209. #content {
  210. background: #fff;
  211. margin-bottom: 2em;
  212. overflow: hidden;
  213. padding: 20px 20px;
  214. width: 760px;
  215. border-radius: 10px;
  216. -moz-border-radius: 10px;
  217. -webkit-border-radius: 10px;
  218. }
  219. /*
  220. Extras
  221. *****************/
  222. #extras {margin: 0 auto 3em auto; overflow: hidden;}
  223. #extras ul {list-style: none; margin: 0;}
  224. #extras li {border-bottom: 1px solid #fff;}
  225. #extras h2 {
  226. color: #C74350;
  227. font-size: 1.429em;
  228. margin-bottom: .25em;
  229. padding: 0 3px;
  230. }
  231. #extras a:link, #extras a:visited {
  232. color: #444;
  233. display: block;
  234. border-bottom: 1px solid #F4E3E3;
  235. text-decoration: none;
  236. padding: .3em .25em;
  237. }
  238. #extras a:hover, #extras a:active {color: #fff;}
  239. /* Blogroll */
  240. #extras .blogroll {
  241. float: left;
  242. width: 615px;
  243. }
  244. #extras .blogroll li {float: left; margin: 0 20px 0 0; width: 185px;}
  245. /* Social */
  246. #extras .social {
  247. float: right;
  248. width: 175px;
  249. }
  250. #extras div[class='social'] a {
  251. background-repeat: no-repeat;
  252. background-position: 3px 6px;
  253. padding-left: 25px;
  254. }
  255. /* Icons */
  256. .social a[href*='about.me'] {background-image: url('../images/icons/aboutme.png');}
  257. .social a[href*='bitbucket.org'] {background-image: url('../images/icons/bitbucket.png');}
  258. .social a[href*='delicious.com'] {background-image: url('../images/icons/delicious.png');}
  259. .social a[href*='digg.com'] {background-image: url('../images/icons/digg.png');}
  260. .social a[href*='facebook.com'] {background-image: url('../images/icons/facebook.png');}
  261. .social a[href*='gitorious.org'] {background-image: url('../images/icons/gitorious.png');}
  262. .social a[href*='github.com'],
  263. .social a[href*='git.io'] {background-image: url('../images/icons/github.png');}
  264. .social a[href*='gittip.com'] {background-image: url('../images/icons/gittip.png');}
  265. .social a[href*='plus.google.com'] {background-image: url('../images/icons/google-plus.png');}
  266. .social a[href*='groups.google.com'] {background-image: url('../images/icons/google-groups.png');}
  267. .social a[href*='news.ycombinator.com'],
  268. .social a[href*='hackernewsers.com'] {background-image: url('../images/icons/hackernews.png');}
  269. .social a[href*='last.fm'], .social a[href*='lastfm.'] {background-image: url('../images/icons/lastfm.png');}
  270. .social a[href*='linkedin.com'] {background-image: url('../images/icons/linkedin.png');}
  271. .social a[href*='reddit.com'] {background-image: url('../images/icons/reddit.png');}
  272. .social a[type$='atom+xml'], .social a[type$='rss+xml'] {background-image: url('../images/icons/rss.png');}
  273. .social a[href*='slideshare.net'] {background-image: url('../images/icons/slideshare.png');}
  274. .social a[href*='speakerdeck.com'] {background-image: url('../images/icons/speakerdeck.png');}
  275. .social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');}
  276. .social a[href*='vimeo.com'] {background-image: url('../images/icons/vimeo.png');}
  277. .social a[href*='youtube.com'] {background-image: url('../images/icons/youtube.png');}
  278. /*
  279. About
  280. *****************/
  281. #about {
  282. background: #fff;
  283. font-style: normal;
  284. margin-bottom: 2em;
  285. overflow: hidden;
  286. padding: 20px;
  287. text-align: left;
  288. width: 760px;
  289. border-radius: 10px;
  290. -moz-border-radius: 10px;
  291. -webkit-border-radius: 10px;
  292. }
  293. #about .primary {float: left; width: 165px;}
  294. #about .primary strong {color: #C64350; display: block; font-size: 1.286em;}
  295. #about .photo {float: left; margin: 5px 20px;}
  296. #about .url:link, #about .url:visited {text-decoration: none;}
  297. #about .bio {float: right; width: 500px;}
  298. /*
  299. Footer
  300. *****************/
  301. #contentinfo {padding-bottom: 2em; text-align: right;}
  302. /***** Sections *****/
  303. /* Blog */
  304. .hentry {
  305. display: block;
  306. clear: both;
  307. border-bottom: 1px solid #eee;
  308. padding: 1.5em 0;
  309. }
  310. li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
  311. #content > .hentry {padding: 1em 0;}
  312. .hentry img{display : none ;}
  313. .entry-title {font-size: 3em; margin-bottom: 10px; margin-top: 0;}
  314. .entry-title a:link, .entry-title a:visited {text-decoration: none; color: #333;}
  315. .entry-title a:visited {background-color: #fff;}
  316. .hentry .post-info * {font-style: normal;}
  317. /* Content */
  318. .hentry footer {margin-bottom: 2em;}
  319. .hentry footer address {display: inline;}
  320. #posts-list footer address {display: block;}
  321. /* Blog Index */
  322. #posts-list {list-style: none; margin: 0;}
  323. #posts-list .hentry {padding-left: 10px; position: relative;}
  324. #posts-list footer {
  325. left: 10px;
  326. position: relative;
  327. float: left;
  328. top: 0.5em;
  329. width: 190px;
  330. }
  331. /* About the Author */
  332. #about-author {
  333. background: #f9f9f9;
  334. clear: both;
  335. font-style: normal;
  336. margin: 2em 0;
  337. padding: 10px 20px 15px 20px;
  338. border-radius: 5px;
  339. -moz-border-radius: 5px;
  340. -webkit-border-radius: 5px;
  341. }
  342. #about-author strong {
  343. color: #C64350;
  344. clear: both;
  345. display: block;
  346. font-size: 1.429em;
  347. }
  348. #about-author .photo {border: 1px solid #ddd; float: left; margin: 5px 1em 0 0;}
  349. /* Comments */
  350. #comments-list {list-style: none; margin: 0 1em;}
  351. #comments-list blockquote {
  352. background: #f8f8f8;
  353. clear: both;
  354. font-style: normal;
  355. margin: 0;
  356. padding: 15px 20px;
  357. border-radius: 5px;
  358. -moz-border-radius: 5px;
  359. -webkit-border-radius: 5px;
  360. }
  361. #comments-list footer {color: #888; padding: .5em 1em 0 0; text-align: right;}
  362. #comments-list li:nth-child(2n) blockquote {background: #F5f5f5;}
  363. /* Add a Comment */
  364. #add-comment label {clear: left; float: left; text-align: left; width: 150px;}
  365. #add-comment input[type='text'],
  366. #add-comment input[type='email'],
  367. #add-comment input[type='url'] {float: left; width: 200px;}
  368. #add-comment textarea {float: left; height: 150px; width: 495px;}
  369. #add-comment p.req {clear: both; margin: 0 .5em 1em 0; text-align: right;}
  370. #add-comment input[type='submit'] {float: right; margin: 0 .5em;}
  371. #add-comment * {margin-bottom: .5em;}