main.css 12 KB

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