main.css 11 KB

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