main.css 11 KB

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