main.css 12 KB

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