You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.css 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  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(https://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. margin-bottom: 1em; }
  76. .post-info {
  77. float:right;
  78. margin:10px;
  79. padding:5px;
  80. }
  81. .post-info p{
  82. margin-top: 1px;
  83. margin-bottom: 1px;
  84. }
  85. .readmore { float: right }
  86. dl {margin: 0 0 1.5em 0;}
  87. dt {font-weight: bold;}
  88. dd {margin-left: 1.5em;}
  89. pre{background-color: rgb(238, 238, 238); padding: 10px; margin: 10px; overflow: auto;}
  90. /* Quotes */
  91. blockquote {
  92. margin: 20px;
  93. font-style: italic;
  94. }
  95. cite {}
  96. q {}
  97. div.note {
  98. float: right;
  99. margin: 5px;
  100. font-size: 85%;
  101. max-width: 300px;
  102. }
  103. /* Tables */
  104. table {margin: .5em auto 1.5em auto; width: 98%;}
  105. /* Thead */
  106. thead th {padding: .5em .4em; text-align: left;}
  107. thead td {}
  108. /* Tbody */
  109. tbody td {padding: .5em .4em;}
  110. tbody th {}
  111. tbody .alt td {}
  112. tbody .alt th {}
  113. /* Tfoot */
  114. tfoot th {}
  115. tfoot td {}
  116. /* HTML5 tags */
  117. header, section, footer,
  118. aside, nav, article, figure {
  119. display: block;
  120. }
  121. /***** Layout *****/
  122. .body {clear: both; margin: 0 auto; width: 800px;}
  123. img.right, figure.right {float: right; margin: 0 0 2em 2em;}
  124. img.left, figure.left {float: left; margin: 0 2em 2em 0;}
  125. /*
  126. Header
  127. *****************/
  128. #banner {
  129. margin: 0 auto;
  130. padding: 2.5em 0 0 0;
  131. }
  132. /* Banner */
  133. #banner h1 {font-size: 3.571em; line-height: 0;}
  134. #banner h1 a:link, #banner h1 a:visited {
  135. color: #000305;
  136. display: block;
  137. font-weight: bold;
  138. margin: 0 0 .6em .2em;
  139. text-decoration: none;
  140. }
  141. #banner h1 a:hover, #banner h1 a:active {
  142. background: none;
  143. color: #C74350;
  144. text-shadow: none;
  145. }
  146. #banner h1 strong {font-size: 0.36em; font-weight: normal;}
  147. /* Main Nav */
  148. #banner nav {
  149. background: #000305;
  150. font-size: 1.143em;
  151. height: 40px;
  152. line-height: 30px;
  153. margin: 0 auto 2em auto;
  154. padding: 0;
  155. text-align: center;
  156. width: 800px;
  157. border-radius: 5px;
  158. -moz-border-radius: 5px;
  159. -webkit-border-radius: 5px;
  160. }
  161. #banner nav ul {list-style: none; margin: 0 auto; width: 800px;}
  162. #banner nav li {float: left; display: inline; margin: 0;}
  163. #banner nav a:link, #banner nav a:visited {
  164. color: #fff;
  165. display: inline-block;
  166. height: 30px;
  167. padding: 5px 1.5em;
  168. text-decoration: none;
  169. }
  170. #banner nav a:hover, #banner nav a:active,
  171. #banner nav .active a:link, #banner nav .active a:visited {
  172. background: #C74451;
  173. color: #fff;
  174. text-shadow: none !important;
  175. }
  176. #banner nav li:first-child a {
  177. border-top-left-radius: 5px;
  178. -moz-border-radius-topleft: 5px;
  179. -webkit-border-top-left-radius: 5px;
  180. border-bottom-left-radius: 5px;
  181. -moz-border-radius-bottomleft: 5px;
  182. -webkit-border-bottom-left-radius: 5px;
  183. }
  184. /*
  185. Featured
  186. *****************/
  187. #featured {
  188. background: #fff;
  189. margin-bottom: 2em;
  190. overflow: hidden;
  191. padding: 20px;
  192. width: 760px;
  193. border-radius: 10px;
  194. -moz-border-radius: 10px;
  195. -webkit-border-radius: 10px;
  196. }
  197. #featured figure {
  198. border: 2px solid #eee;
  199. float: right;
  200. margin: 0.786em 2em 0 5em;
  201. width: 248px;
  202. }
  203. #featured figure img {display: block; float: right;}
  204. #featured h2 {color: #C74451; font-size: 1.714em; margin-bottom: 0.333em;}
  205. #featured h3 {font-size: 1.429em; margin-bottom: .5em;}
  206. #featured h3 a:link, #featured h3 a:visited {color: #000305; text-decoration: none;}
  207. #featured h3 a:hover, #featured h3 a:active {color: #fff;}
  208. /*
  209. Body
  210. *****************/
  211. #content {
  212. background: #fff;
  213. margin-bottom: 2em;
  214. overflow: hidden;
  215. padding: 20px 20px;
  216. width: 760px;
  217. border-radius: 10px;
  218. -moz-border-radius: 10px;
  219. -webkit-border-radius: 10px;
  220. }
  221. /*
  222. Extras
  223. *****************/
  224. #extras {margin: 0 auto 3em auto; overflow: hidden;}
  225. #extras ul {list-style: none; margin: 0;}
  226. #extras li {border-bottom: 1px solid #fff;}
  227. #extras h2 {
  228. color: #C74350;
  229. font-size: 1.429em;
  230. margin-bottom: .25em;
  231. padding: 0 3px;
  232. }
  233. #extras a:link, #extras a:visited {
  234. color: #444;
  235. display: block;
  236. border-bottom: 1px solid #F4E3E3;
  237. text-decoration: none;
  238. padding: .3em .25em;
  239. }
  240. #extras a:hover, #extras a:active {color: #fff;}
  241. /* Blogroll */
  242. #extras .blogroll {
  243. float: left;
  244. width: 615px;
  245. }
  246. #extras .blogroll li {float: left; margin: 0 20px 0 0; width: 185px;}
  247. /* Social */
  248. #extras .social {
  249. float: right;
  250. width: 175px;
  251. }
  252. #extras div[class='social'] a {
  253. background-repeat: no-repeat;
  254. background-position: 3px 6px;
  255. padding-left: 25px;
  256. }
  257. /* Icons */
  258. .social a[href*='about.me'] {background-image: url('../images/icons/aboutme.png');}
  259. .social a[href*='bitbucket.org'] {background-image: url('../images/icons/bitbucket.png');}
  260. .social a[href*='delicious.com'] {background-image: url('../images/icons/delicious.png');}
  261. .social a[href*='digg.com'] {background-image: url('../images/icons/digg.png');}
  262. .social a[href*='facebook.com'] {background-image: url('../images/icons/facebook.png');}
  263. .social a[href*='gitorious.org'] {background-image: url('../images/icons/gitorious.png');}
  264. .social a[href*='github.com'],
  265. .social a[href*='git.io'] {
  266. background-image: url('../images/icons/github.png');
  267. background-size: 16px 16px;
  268. }
  269. .social a[href*='gittip.com'] {background-image: url('../images/icons/gittip.png');}
  270. .social a[href*='plus.google.com'] {background-image: url('../images/icons/google-plus.png');}
  271. .social a[href*='groups.google.com'] {background-image: url('../images/icons/google-groups.png');}
  272. .social a[href*='news.ycombinator.com'],
  273. .social a[href*='hackernewsers.com'] {background-image: url('../images/icons/hackernews.png');}
  274. .social a[href*='last.fm'], .social a[href*='lastfm.'] {background-image: url('../images/icons/lastfm.png');}
  275. .social a[href*='linkedin.com'] {background-image: url('../images/icons/linkedin.png');}
  276. .social a[href*='reddit.com'] {background-image: url('../images/icons/reddit.png');}
  277. .social a[type$='atom+xml'], .social a[type$='rss+xml'] {background-image: url('../images/icons/rss.png');}
  278. .social a[href*='slideshare.net'] {background-image: url('../images/icons/slideshare.png');}
  279. .social a[href*='speakerdeck.com'] {background-image: url('../images/icons/speakerdeck.png');}
  280. .social a[href*='stackoverflow.com'] {background-image: url('../images/icons/stackoverflow.png');}
  281. .social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');}
  282. .social a[href*='vimeo.com'] {background-image: url('../images/icons/vimeo.png');}
  283. .social a[href*='youtube.com'] {background-image: url('../images/icons/youtube.png');}
  284. /*
  285. About
  286. *****************/
  287. #about {
  288. background: #fff;
  289. font-style: normal;
  290. margin-bottom: 2em;
  291. overflow: hidden;
  292. padding: 20px;
  293. text-align: left;
  294. width: 760px;
  295. border-radius: 10px;
  296. -moz-border-radius: 10px;
  297. -webkit-border-radius: 10px;
  298. }
  299. #about .primary {float: left; width: 165px;}
  300. #about .primary strong {color: #C64350; display: block; font-size: 1.286em;}
  301. #about .photo {float: left; margin: 5px 20px;}
  302. #about .url:link, #about .url:visited {text-decoration: none;}
  303. #about .bio {float: right; width: 500px;}
  304. /*
  305. Footer
  306. *****************/
  307. #contentinfo {padding-bottom: 2em; text-align: right;}
  308. /***** Sections *****/
  309. /* Blog */
  310. .hentry {
  311. display: block;
  312. clear: both;
  313. border-bottom: 1px solid #eee;
  314. padding: 1.5em 0;
  315. }
  316. li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
  317. #content > .hentry {padding: 1em 0;}
  318. .hentry img{display : none ;}
  319. .entry-title {font-size: 3em; margin-bottom: 10px; margin-top: 0;}
  320. .entry-title a:link, .entry-title a:visited {text-decoration: none; color: #333;}
  321. .entry-title a:visited {background-color: #fff;}
  322. .hentry .post-info * {font-style: normal;}
  323. /* Content */
  324. .hentry footer {margin-bottom: 2em;}
  325. .hentry footer address {display: inline;}
  326. #posts-list footer address {display: block;}
  327. /* Blog Index */
  328. #posts-list {list-style: none; margin: 0;}
  329. #posts-list .hentry {padding-left: 10px; position: relative;}
  330. #posts-list footer {
  331. left: 10px;
  332. position: relative;
  333. float: left;
  334. top: 0.5em;
  335. width: 190px;
  336. }
  337. /* About the Author */
  338. #about-author {
  339. background: #f9f9f9;
  340. clear: both;
  341. font-style: normal;
  342. margin: 2em 0;
  343. padding: 10px 20px 15px 20px;
  344. border-radius: 5px;
  345. -moz-border-radius: 5px;
  346. -webkit-border-radius: 5px;
  347. }
  348. #about-author strong {
  349. color: #C64350;
  350. clear: both;
  351. display: block;
  352. font-size: 1.429em;
  353. }
  354. #about-author .photo {border: 1px solid #ddd; float: left; margin: 5px 1em 0 0;}
  355. /* Comments */
  356. #comments-list {list-style: none; margin: 0 1em;}
  357. #comments-list blockquote {
  358. background: #f8f8f8;
  359. clear: both;
  360. font-style: normal;
  361. margin: 0;
  362. padding: 15px 20px;
  363. border-radius: 5px;
  364. -moz-border-radius: 5px;
  365. -webkit-border-radius: 5px;
  366. }
  367. #comments-list footer {color: #888; padding: .5em 1em 0 0; text-align: right;}
  368. #comments-list li:nth-child(2n) blockquote {background: #F5f5f5;}
  369. /* Add a Comment */
  370. #add-comment label {clear: left; float: left; text-align: left; width: 150px;}
  371. #add-comment input[type='text'],
  372. #add-comment input[type='email'],
  373. #add-comment input[type='url'] {float: left; width: 200px;}
  374. #add-comment textarea {float: left; height: 150px; width: 495px;}
  375. #add-comment p.req {clear: both; margin: 0 .5em 1em 0; text-align: right;}
  376. #add-comment input[type='submit'] {float: right; margin: 0 .5em;}
  377. #add-comment * {margin-bottom: .5em;}