main.css 12 KB

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