main.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772
  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 {
  29. font-size: 2.5em;
  30. text-transform: uppercase;
  31. padding-top:90px;
  32. margin-bottom: .8em; /* 22px */
  33. }
  34. h2:first-child {margin-top:0;} /* 22px */
  35. h3 {font-size: 2em; color: #999; margin-top: 40px} /* 20px */
  36. h4 {font-size: 1.7em; margin-top: 30px;font-weight: 300;} /* 18px */
  37. h5 {font-size: 1.143em} /* 16px */
  38. h6 {font-size: 1em} /* 14px */
  39. h1, h2, h3, h4, h5, h6 {
  40. font-weight: 300;
  41. line-height: 1.1;
  42. font-family: 'Oswald', arial, serif;
  43. }
  44. hr { border: 2px solid #EEEEEE; }
  45. /* Anchors */
  46. a {outline: 0;}
  47. a img {border: 0px; text-decoration: none;}
  48. a:link, a:visited {
  49. color: #e0470b ;
  50. padding: 0 1px;
  51. text-decoration: underline;
  52. }
  53. a:hover, a:active {
  54. color: #F00;
  55. text-decoration: none;
  56. }
  57. h1 a:hover {
  58. background-color: inherit
  59. }
  60. /* Paragraphs */
  61. div.line-block,
  62. p { margin-top: 1em;
  63. margin-bottom: 1em;}
  64. strong, b {font-weight: bolder;}
  65. em, i {font-style: italic;}
  66. /* Lists */
  67. ul {
  68. list-style: outside disc;
  69. list-style-image: url(../images/puce.png);
  70. margin: 0em 0 0 1.5em;
  71. }
  72. ol {
  73. list-style: outside decimal;
  74. margin: 0em 0 0 1.5em;
  75. }
  76. li { margin-top: 0.5em;
  77. margin-bottom: 1em; }
  78. .post-info {
  79. float:right;
  80. margin:10px;
  81. padding:5px;
  82. }
  83. .post-info p{
  84. margin-top: 1px;
  85. margin-bottom: 1px;
  86. }
  87. .readmore { float: right }
  88. dl {margin: 0 0 1.5em 0;}
  89. dt {font-weight: bold;}
  90. dd {margin-left: 1.5em;}
  91. /* Quotes */
  92. blockquote {
  93. margin: 20px;
  94. font-style: italic;
  95. }
  96. cite {}
  97. q {}
  98. div.note {
  99. float: right;
  100. margin: 5px;
  101. font-size: 85%;
  102. max-width: 300px;
  103. }
  104. /* Tables */
  105. table {margin: .5em auto 1.5em auto; width: 98%;}
  106. /* Thead */
  107. thead th {padding: .5em .4em; text-align: left;}
  108. thead td {}
  109. /* Tbody */
  110. tbody td {padding: .5em .4em;}
  111. tbody th {}
  112. tbody .alt td {}
  113. tbody .alt th {}
  114. /* Tfoot */
  115. tfoot th {}
  116. tfoot td {}
  117. /* HTML5 tags */
  118. header, section, footer,
  119. aside, nav, article, figure {
  120. display: block;
  121. }
  122. /***** Layout *****/
  123. .body {
  124. clear: both;
  125. margin: 0 auto;
  126. width: 100%;
  127. }
  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. Global
  132. *****************/
  133. a.bouton {
  134. display: inline-block;
  135. padding: 20px;
  136. border: 3px solid #dc4807;
  137. text-decoration: none;
  138. font-size: 20px;
  139. margin-top: 60px;
  140. }
  141. /*
  142. Header
  143. *****************/
  144. #banner {
  145. border-bottom: 10px solid #e0470b;
  146. background: #000;
  147. }
  148. #headerContainer {
  149. width: 60%;
  150. margin: 0 auto 2em;
  151. padding: 30px 0;
  152. position: relative;
  153. height: 50px;
  154. font-size: 14px;
  155. }
  156. #banner #logo {
  157. display: inline-block;
  158. margin-right: 20px;
  159. position: absolute;
  160. }
  161. #banner #logo img {
  162. width: 230px;
  163. }
  164. /* Main Nav */
  165. #banner nav {
  166. display: inline-block;
  167. background: #000305;
  168. font-size: 1.2em;
  169. height: 40px;
  170. line-height: 30px;
  171. margin: 0 ;
  172. padding: 0;
  173. text-align: center;
  174. width: 750px;
  175. position: absolute;
  176. right: 0;
  177. top: 50%;
  178. }
  179. #banner nav ul {list-style: none; margin: 0 auto; width: 840px;}
  180. #banner nav li {float: left; display: inline; margin: 0 5px;}
  181. #banner nav a:link, #banner nav a:visited {
  182. color: #fff;
  183. display: inline-block;
  184. height: 30px;
  185. padding: 5px 1em;
  186. font-family: Lato;
  187. text-decoration: none;
  188. text-transform: lowercase;
  189. font-variant: small-caps;
  190. }
  191. /* #banner nav a:active, */
  192. #banner nav .active a:link, #banner nav .active a:visited {
  193. border: 1px solid #FFF;
  194. color: #fff;
  195. text-shadow: none !important;
  196. }
  197. #banner nav li a.icon {
  198. display: inline-block;
  199. background-repeat: no-repeat;
  200. background-position: center;
  201. background-size: 18px 18px;
  202. }
  203. #banner nav li a#search {
  204. background-image: url(../images/search.png);
  205. }
  206. #banner nav li a#twitter {
  207. background-image: url(../images/twitter.png);
  208. }
  209. #banner nav li a#rss {
  210. background-image: url(../images/rss.png);
  211. }
  212. /*
  213. Side navigation
  214. *****************/
  215. nav#side-nav {
  216. display: inline-block;
  217. width: 25%;
  218. vertical-align: top;
  219. text-align: right;
  220. padding-right: 60px;
  221. }
  222. nav#side-nav ul {
  223. position: relative;
  224. list-style: none;
  225. padding-right: 40px;
  226. }
  227. nav#side-nav ul:before {
  228. content: '';
  229. margin: 25px 0;
  230. position: absolute;
  231. z-index: -1;
  232. right: -1px;
  233. bottom: -1px;
  234. top: -1px;
  235. border: 1px solid #ccc;
  236. border-left-width: 0;
  237. }
  238. nav#side-nav ul li a {
  239. padding-right: 40px;
  240. margin-right: -47px;
  241. background-image: url(../images/puce-sideNav.png);
  242. background-repeat: no-repeat;
  243. background-position: right;
  244. height: 40px;
  245. display: inline-block;
  246. line-height: 40px;
  247. }
  248. nav#side-nav ul li a.active {
  249. background-image: url(../images/puce-sideNav-active.png);
  250. margin-right: -60px;
  251. padding-right: 55px;
  252. color: #333;
  253. font-weight: bolder;
  254. }
  255. nav#side-nav ul li a {
  256. font-size: 16px;
  257. color: #999;
  258. text-decoration: none;
  259. }
  260. /*
  261. Content
  262. *****************/
  263. div#content {
  264. display: inline-block;
  265. width: 60%;
  266. }
  267. /*
  268. Featured
  269. *****************/
  270. #featured {
  271. background: #fff;
  272. margin-bottom: 2em;
  273. overflow: hidden;
  274. padding: 20px;
  275. width: 760px;
  276. border-radius: 10px;
  277. -moz-border-radius: 10px;
  278. -webkit-border-radius: 10px;
  279. }
  280. #featured figure {
  281. border: 2px solid #eee;
  282. float: right;
  283. margin: 0.786em 2em 0 5em;
  284. width: 248px;
  285. }
  286. #featured figure img {display: block; float: right;}
  287. #featured h2 {color: #C74451; font-size: 1.714em; margin-bottom: 0.333em;}
  288. #featured h3 {font-size: 1.429em; margin-bottom: .5em;}
  289. #featured h3 a:link, #featured h3 a:visited {color: #000305; text-decoration: none;}
  290. #featured h3 a:hover, #featured h3 a:active {color: #fff;}
  291. /*
  292. Body
  293. *****************/
  294. .container {
  295. margin-bottom: 2em;
  296. overflow: hidden;
  297. padding: 20px 20px;
  298. width: 70%;
  299. border-radius: 10px;
  300. -moz-border-radius: 10px;
  301. -webkit-border-radius: 10px;
  302. }
  303. #content p, #content li, #content a {
  304. font-size: 20px;
  305. font-weight: 300;
  306. }
  307. /*
  308. Home page
  309. *****************/
  310. #content-home section.titre {
  311. background-image: url(../images/pessin2.png);
  312. background-repeat: no-repeat;
  313. background-position: right top;
  314. background-size: 50%;
  315. padding-bottom: 200px;
  316. margin-bottom: -40px;
  317. }
  318. #content-home h1 {
  319. font-size: 56px;
  320. font-family: 'Oswald', arial, serif;
  321. font-weight: lighter;
  322. text-transform: uppercase;
  323. letter-spacing: 7px;
  324. margin-left: 20px;
  325. text-align: left;
  326. }
  327. #content-home h2 {
  328. font-size: 32px;
  329. font-family: 'Lato', arial, serif;
  330. font-weight: normal;
  331. text-transform: none;
  332. margin-top: 0;
  333. text-align: left;
  334. padding-top: 20px;
  335. line-height: 1.25;
  336. margin-left: 20px;
  337. }
  338. #content-home section {
  339. padding: 80px 0;
  340. text-align: center;
  341. }
  342. #content-home .separateur {
  343. width: 100%;
  344. height: 10px;
  345. background-color: #EEE;
  346. position: absolute;
  347. left: 0;
  348. right: 0;
  349. z-index: -1;
  350. }
  351. #content-home blockquote {
  352. background-color: #dc4807;
  353. display: inline-block;
  354. padding: 40px 20px;
  355. color: #FFF;
  356. font-size: 28px;
  357. margin: 0;
  358. -moz-box-shadow: 1px 1px 5px 0px #c0c0c0;
  359. -webkit-box-shadow: 1px 1px 5px 0px #c0c0c0;
  360. -o-box-shadow: 1px 1px 5px 0px #c0c0c0;
  361. box-shadow: 1px 1px 5px 0px #c0c0c0;
  362. filter:progid:DXImageTransform.Microsoft.Shadow(color=#c0c0c0, Direction=134, Strength=5);
  363. }
  364. #content-home blockquote + .separateur {
  365. margin-top: -70px;
  366. }
  367. #content-home blockquote p {
  368. width: 80%;
  369. text-align: center;
  370. margin: auto;
  371. }
  372. #content-home .presentation {
  373. background-image: url(../images/deco-titre.png);
  374. background-repeat: no-repeat;
  375. padding: 40px 80px;
  376. font-size: 24px;
  377. width: 70%;
  378. margin-top: 120px;
  379. margin-bottom: 120px;
  380. margin-left: 30%;
  381. }
  382. #content-home h3:nth-child(even) {
  383. text-align: right;
  384. padding-right: 50px;
  385. }
  386. #content-home h3:nth-child(odd) {
  387. text-align: left;
  388. padding-left: 50px;
  389. }
  390. #content-home h3 + .separateur {
  391. margin-top: -40px;
  392. }
  393. #content-home h3 span {
  394. background-color: #EEE;
  395. display: inline-block;
  396. padding: 20px 40px;
  397. text-transform: uppercase;
  398. color: #000;
  399. font-size: 32px;
  400. font-weight: lighter;
  401. }
  402. #content-home .valeurs {
  403. width: 30%;
  404. display: inline-block;
  405. }
  406. #content-home .valeurs img {
  407. width: 70%;
  408. text-align: center;
  409. }
  410. #content-home .valeurs.nonprofit img {
  411. width: 50%;
  412. }
  413. #content-home .valeurs h4 {
  414. font-size: 22px;
  415. font-weight: bold;
  416. font-family: Lato, Arial, sans-serif;
  417. }
  418. #content-home .valeurs p {
  419. font-size: 18px;
  420. padding: 0 40px;
  421. }
  422. #content-home .services li {
  423. list-style: none;
  424. display: inline-block;
  425. width: 49%;
  426. vertical-align: top;
  427. }
  428. #content-home .services li span {
  429. font-family: Oswald, Arial, serif;
  430. font-size: 100px;
  431. color: #EEE;
  432. }
  433. #content-home .services li h4 {
  434. font-family: Lato, Arial, sans-serif;
  435. font-size: 24px;
  436. font-weight: bold;
  437. margin-top: 0;
  438. }
  439. #content-home .services li p {
  440. font-size: 18px;
  441. padding: 0 30px;
  442. }
  443. /*
  444. Extras
  445. *****************/
  446. #extras {margin: 0 auto 3em auto; overflow: hidden;}
  447. #extras ul {list-style: none; margin: 0;}
  448. #extras li {border-bottom: 1px solid #fff;}
  449. #extras h2 {
  450. color: #C74350;
  451. font-size: 1.429em;
  452. margin-bottom: .25em;
  453. padding: 0 3px;
  454. }
  455. #extras a:link, #extras a:visited {
  456. color: #444;
  457. display: block;
  458. border-bottom: 1px solid #F4E3E3;
  459. text-decoration: none;
  460. padding: .3em .25em;
  461. }
  462. #extras a:hover, #extras a:active {color: #fff;}
  463. /* Blogroll */
  464. #extras .blogroll {
  465. float: left;
  466. width: 615px;
  467. }
  468. #extras .blogroll li {float: left; margin: 0 20px 0 0; width: 185px;}
  469. /* Social */
  470. #extras .social {
  471. float: right;
  472. width: 175px;
  473. }
  474. #extras div[class='social'] a {
  475. background-repeat: no-repeat;
  476. background-position: 3px 6px;
  477. padding-left: 25px;
  478. }
  479. /* Icons */
  480. .social a[href*='about.me'] {background-image: url('../images/icons/aboutme.png');}
  481. .social a[href*='bitbucket.org'] {background-image: url('../images/icons/bitbucket.png');}
  482. .social a[href*='delicious.com'] {background-image: url('../images/icons/delicious.png');}
  483. .social a[href*='digg.com'] {background-image: url('../images/icons/digg.png');}
  484. .social a[href*='facebook.com'] {background-image: url('../images/icons/facebook.png');}
  485. .social a[href*='gitorious.org'] {background-image: url('../images/icons/gitorious.png');}
  486. .social a[href*='github.com'],
  487. .social a[href*='git.io'] {
  488. background-image: url('../images/icons/github.png');
  489. background-size: 16px 16px;
  490. }
  491. .social a[href*='gittip.com'] {background-image: url('../images/icons/gittip.png');}
  492. .social a[href*='plus.google.com'] {background-image: url('../images/icons/google-plus.png');}
  493. .social a[href*='groups.google.com'] {background-image: url('../images/icons/google-groups.png');}
  494. .social a[href*='news.ycombinator.com'],
  495. .social a[href*='hackernewsers.com'] {background-image: url('../images/icons/hackernews.png');}
  496. .social a[href*='last.fm'], .social a[href*='lastfm.'] {background-image: url('../images/icons/lastfm.png');}
  497. .social a[href*='linkedin.com'] {background-image: url('../images/icons/linkedin.png');}
  498. .social a[href*='reddit.com'] {background-image: url('../images/icons/reddit.png');}
  499. .social a[type$='atom+xml'], .social a[type$='rss+xml'] {background-image: url('../images/icons/rss.png');}
  500. .social a[href*='slideshare.net'] {background-image: url('../images/icons/slideshare.png');}
  501. .social a[href*='speakerdeck.com'] {background-image: url('../images/icons/speakerdeck.png');}
  502. .social a[href*='stackoverflow.com'] {background-image: url('../images/icons/stackoverflow.png');}
  503. .social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');}
  504. .social a[href*='vimeo.com'] {background-image: url('../images/icons/vimeo.png');}
  505. .social a[href*='youtube.com'] {background-image: url('../images/icons/youtube.png');}
  506. /*
  507. About
  508. *****************/
  509. #about {
  510. background: #fff;
  511. font-style: normal;
  512. margin-bottom: 2em;
  513. overflow: hidden;
  514. padding: 20px;
  515. text-align: left;
  516. width: 760px;
  517. border-radius: 10px;
  518. -moz-border-radius: 10px;
  519. -webkit-border-radius: 10px;
  520. }
  521. #about .primary {float: left; width: 165px;}
  522. #about .primary strong {color: #C64350; display: block; font-size: 1.286em;}
  523. #about .photo {float: left; margin: 5px 20px;}
  524. #about .url:link, #about .url:visited {text-decoration: none;}
  525. #about .bio {float: right; width: 500px;}
  526. /*
  527. Footer
  528. *****************/
  529. #contentinfo {
  530. background-color: #000;
  531. text-align: center;
  532. padding: 50px 0 30px;
  533. }
  534. #contentinfo a {
  535. color: #999;
  536. text-decoration: none;
  537. }
  538. /***** Sections *****/
  539. /* Blog */
  540. .hentry {
  541. display: block;
  542. clear: both;
  543. border-bottom: 1px solid #eee;
  544. padding: 1.5em 0;
  545. }
  546. li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
  547. #content > .hentry {padding: 1em 0;}
  548. .hentry img{display : none ;}
  549. .entry-title {
  550. font-size: 3em;
  551. font-family: Lato;
  552. font-weight: 300;
  553. margin-bottom: 60px;
  554. margin-top: 30px;
  555. text-align: center;
  556. }
  557. .entry-title span {
  558. display: inline-block;
  559. padding: 0 80px;
  560. height: 100px;
  561. background-image: url(../images/deco-titre.png);
  562. background-repeat: no-repeat;
  563. background-position: right 10px;
  564. }
  565. .entry-title a:link, .entry-title a:visited {text-decoration: none; color: #333;}
  566. .entry-title a:visited {background-color: #fff;}
  567. .hentry .post-info * {font-style: normal;}
  568. /* Content */
  569. .hentry footer {margin-bottom: 2em;}
  570. .hentry footer address {display: inline;}
  571. #posts-list footer address {display: block;}
  572. /* Blog Index */
  573. #posts-list {list-style: none; margin: 0;}
  574. #posts-list .hentry {padding-left: 10px; position: relative;}
  575. #posts-list footer {
  576. left: 10px;
  577. position: relative;
  578. float: left;
  579. top: 0.5em;
  580. width: 190px;
  581. }
  582. /* About the Author */
  583. #about-author {
  584. background: #f9f9f9;
  585. clear: both;
  586. font-style: normal;
  587. margin: 2em 0;
  588. padding: 10px 20px 15px 20px;
  589. border-radius: 5px;
  590. -moz-border-radius: 5px;
  591. -webkit-border-radius: 5px;
  592. }
  593. #about-author strong {
  594. color: #C64350;
  595. clear: both;
  596. display: block;
  597. font-size: 1.429em;
  598. }
  599. #about-author .photo {border: 1px solid #ddd; float: left; margin: 5px 1em 0 0;}
  600. /* Comments */
  601. #comments-list {list-style: none; margin: 0 1em;}
  602. #comments-list blockquote {
  603. background: #f8f8f8;
  604. clear: both;
  605. font-style: normal;
  606. margin: 0;
  607. padding: 15px 20px;
  608. border-radius: 5px;
  609. -moz-border-radius: 5px;
  610. -webkit-border-radius: 5px;
  611. }
  612. #comments-list footer {color: #888; padding: .5em 1em 0 0; text-align: right;}
  613. #comments-list li:nth-child(2n) blockquote {background: #F5f5f5;}
  614. /* Add a Comment */
  615. #add-comment label {clear: left; float: left; text-align: left; width: 150px;}
  616. #add-comment input[type='text'],
  617. #add-comment input[type='email'],
  618. #add-comment input[type='url'] {float: left; width: 200px;}
  619. #add-comment textarea {float: left; height: 150px; width: 495px;}
  620. #add-comment p.req {clear: both; margin: 0 .5em 1em 0; text-align: right;}
  621. #add-comment input[type='submit'] {float: right; margin: 0 .5em;}
  622. #add-comment * {margin-bottom: .5em;}
  623. /* Valeurs */
  624. #content .valeurs {
  625. width: 33%;
  626. text-align: center;
  627. display: inline-block;
  628. font-weight: 600;
  629. margin-bottom: 30px
  630. }
  631. #content .valeurs.nonprofit img{
  632. width: 70%;
  633. }
  634. #content .valeurs.entraide img{
  635. width: 80%;
  636. }
  637. #content .valeurs.partage img{
  638. width: 90%;
  639. }
  640. #content .valeurs img {
  641. width: 100%;
  642. display: block;
  643. margin: auto;
  644. margin-bottom: 20px;
  645. }