main.css 12 KB

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