main.css 16 KB

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