• accueil
  • cv
  • multimédia
  • colophon

colophon

Mon code CSS est le résultat de différentes influences, parmi lesquelles les plus importantes sont :

  • les thèmes gaia disponibles pour GNU/Linux;
  • le style pour LATEXs’intitulant Classic Thesis, de André Miede.
J'ai reçu également d'autres influences, quoique mineures, provenant de thèmes pour KDE, tels qu'Oxygen transparent, et bien d'autres.

Ci-dessous se trouve le code CSS significatif utilisé pour ce site, que je ferai suivre d’un bref commentaire lorsque j'en aurai le temps. Il est à noter que ce code ne serait rien sans toute les informations que j’ai pu trouver sur internet :

  1. @font-face
  2. {
  3. font-family: "Bauhaus Std";
  4. src: url(../fonts/Bauhaus_Std/BauhausStd-Medium.otf);
  5. }
  6. @font-face
  7. {
  8. font-family: "Corbel";
  9. src: url(../fonts/Corbel/corbel.ttf);
  10. }
  11. @font-face
  12. {
  13. font-family: "Friz Quadrata Std";
  14. src: url(../fonts/Friz_Quadrata_Std/FrizQuadrataStd.otf);
  15. }
  16. @font-face
  17. {
  18. font-family: "Gill Sans Std";
  19. src: url(../fonts/Gill_Sans_Std/GillSansStd.otf);
  20. }
  21. @font-face
  22. {
  23. font-family: "Heisei Maru Gothic Std";
  24. src: url(../fonts/Heisei_Maru_Gothic_Std/HeiseiMaruGoStd-W4.otf);
  25. }
  26. @font-face
  27. {
  28. font-family: "Oregon LDO Vanishing";
  29. src: url(../fonts/Oregon_LDO_Vanishing/OregonLDOVanishing.ttf);
  30. }
  31. @font-face
  32. {
  33. font-family:"Sony Sketch EF";
  34. src: url(../fonts/Sony_Sketch/Sony_Sketch_EF.ttf);
  35. }
  36. body
  37. {
  38. background:transparent;
  39. color:black;
  40. background-attachment: fixed;
  41. background-image:url(../images/Minimal.jpg) ;
  42. -webkit-background-size: cover;
  43. -moz-background-size: cover;
  44. -o-background-size: cover;
  45. background-size: cover;
  46. margin-top: 5%;
  47. margin-bottom: 5%;
  48. margin-right:15%;
  49. margin-left:15%;
  50. height:30%;
  51. width: 950px;
  52. counter-reset:chapitre section table;
  53. font-family: "Corbel";
  54. font-variant-ligatures:historical-ligatures;
  55. font-variant-numeric:oldstyle-nums;
  56. hyphenate-limit-last:none;
  57. -webkit-transition: all 0.7s ease-in-out;
  58. -moz-transition: all 1s ease-in-out;
  59. -o-transition: all 1s ease-in-out;
  60. transition: all 1s ease-in-out;
  61. }

  62. header
  63. {
  64. margin-right:-12em;
  65. }

  66. p
  67. {
  68. text-align:justify;
  69. width:95%;
  70. }

  71. #code
  72. {
  73. background:rgba(190,190,190,0.4) 0 repeat-y;
  74. overflow:auto;
  75. width:28em;
  76. font-family:"Nimbus Sans",inconsolata, terminus, monospace;
  77. list-style: decimal;
  78. list-style-color: yellow;
  79. }

  80. #code:hover
  81. {
  82. width:35em;
  83. background-color:rgba(190,190,190,0.8);
  84. transition-property:width;
  85. -moz-transition-duration: 0.5s;
  86. -webkit-transition-duration: 0.5s;
  87. -moz-transition-property: width; /* Firefox 4 */
  88. -webkit-transition-property:width; /* Safari and Chrome */
  89. -o-transition-property:width;
  90. }

  91. section
  92. {
  93. padding-right:11em;
  94. padding-left:12em;
  95. padding-bottom:2em;
  96. }

  97. ul
  98. {
  99. text-align:justify;
  100. width:75%;
  101. }

  102. ul li
  103. {
  104. list-style-type:none;
  105. text-align:justify;
  106. }

  107. section ul li a:hover
  108. {
  109. background:transparent;
  110. transition:background 0s;
  111. color:brown;
  112. }

  113. section ul li:before
  114. {
  115. content: "\2013 ";
  116. }

  117. section aside
  118. {
  119. background-color: #e6e6e6;
  120. margin-left: 20em;
  121. width: 4.5cm;
  122. float: right;
  123. clear: right;
  124. text-align: left;
  125. font-size: 0.9em;
  126. }

  127. div#border_transparent
  128. {
  129. background:rgba(208,207,209,0.6);
  130. border:5%;
  131. /*-webkit-border-radius: 1em 4em 1em 4em;*/
  132. /*-moz-border-radius: 1em 4em 1em 4em;*/
  133. /*border-radius: 1em 4em 1em 4em;*/
  134. padding:3%;
  135. }

  136. header ul#navigation
  137. {
  138. font-family: "Bauhaus Std";
  139. font-size:x-large;
  140. font-variant:small-caps;
  141. letter-spacing:0.3em;
  142. text-align:center;
  143. padding:1.5em;
  144. }

  145. ul#navigation li
  146. {
  147. padding: 1em;
  148. display:inline;
  149. list-style: none;
  150. margin:0.5em;
  151. }

  152. header a
  153. {
  154. color: brown;
  155. text-decoration: none;
  156. border:none;
  157. text-shadow:0 1px 0 #fff;
  158. -webkit-transition: color 0.2s ease;
  159. -moz-transition: color 0.2s ease;
  160. -o-transition: color 0.2s ease;

  161. }

  162. header a:hover
  163. {
  164. opacity: 0.5;
  165. color: rgba(255,255,255,0.3);
  166. text-shadow: 2px 2px 0px rgba(177,51,51,0.8);
  167. }

  168. footer
  169. {
  170. font-family:"Bauhaus Std";
  171. padding:1em;
  172. text-shadow:0 1px 0 #fff;
  173. font-variant: small-caps;
  174. letter-spacing: 0.1em;
  175. font-size: small;
  176. }

  177. footer p
  178. {
  179. text-align:left;
  180. padding-right:11em;
  181. padding-left:12em;

  182. }

  183. ol#code li:before
  184. {
  185. content : "|";
  186. }

  187. ol#table_of_content li
  188. {
  189. text-indent: 1em;
  190. color :rgb(100,100,100);
  191. text-shadow:0 1px 0 #fff;
  192. }

  193. li #h2
  194. {
  195. font-variant:small-caps;
  196. letter-spacing:0.1;
  197. }

  198. ul#table_of_content li:before
  199. {
  200. content:"";
  201. }

  202. ul#table_of_content li
  203. {
  204. list-style:lower-latin;
  205. }

  206. #h3
  207. {
  208. list-style-position:outside;
  209. text-indent:1em;
  210. }

  211. #h2
  212. {
  213. text-indent:2em;
  214. }

  215. a
  216. {
  217. color: rgb(8,83,26);
  218. text-decoration: none;
  219. }

  220. a:hover
  221. {
  222. color:brown;
  223. }

  224. h1
  225. {
  226. font-family: "Bauhaus Std";
  227. font-variant: small-caps;
  228. letter-spacing:0.4em;
  229. font-size: 300%;
  230. color:brown;
  231. text-align:center;
  232. text-shadow:0 1px 0 #fff;
  233. }

  234. h2
  235. {
  236. color: grey;
  237. font-family: "Friz Quadrata Std";
  238. font-variant:small-caps;
  239. letter-spacing: 0.1em;
  240. text-shadow:0 1px 0 #fff;
  241. padding-top:1.5em;
  242. margin-bottom:-0.5em;
  243. }
  244. h3
  245. {
  246. font-family:"Friz Quadrata Std";
  247. font-style: italic;
  248. font-weight:normal;
  249. text-shadow:0 1px 0 #fff;
  250. }
  251. h4
  252. {
  253. font-style: italic;
  254. text-shadow:0 1px 0 #fff;
  255. }

  256. table span
  257. {
  258. text-transform: uppercase;
  259. }

  260. table
  261. {
  262. border-collapse:collapse;
  263. text-align: left;
  264. }

  265. td.title_entry
  266. {
  267. font-family:"Gill Sans Std";
  268. padding:1em;
  269. margin:0.5em;
  270. width:7em;
  271. color :rgb(90,90,90);
  272. letter-spacing:0.1em;
  273. vertical-align:top;
  274. text-shadow:0 1px 0 #fff;
  275. font-variant:small-caps;
  276. }

  277. .japanese
  278. {
  279. font-family: "Heisei Maru Gothic Std";
  280. font-size:small;
  281. }

  282. video
  283. {
  284. -moz-box-shadow: -20px -20px 20px white, 20px -20px 20px white, -20px 20px 20px white, 20px 20px 20px white;
  285. -webkit-box-shadow: -20px -20px 20px white, 20px -20px 20px white, -20px 20px 20px white, 20px 20px 20px white;
  286. box-shadow: -20px -20px 20px white, 20px -20px 20px white, -20px 20px 20px white, 20px 20px 20px white;
  287. }

  288. figure
  289. {
  290. /*margin-bottom:5em;*/
  291. }

  292. figcaption.light
  293. {
  294. font-family: "Oregon LDO Vanishing";
  295. color:white;
  296. background-image: -moz-linear-gradient(100% 100% 90deg, #e1e1e1, rgba(255, 255, 255, 0) );
  297. background-image: -webkit-gradient(linear, 0% 0%, 0% 120%, from(rgba(255, 255, 255, 0)), to(#e1e1e1));
  298. bottom:1.9em;
  299. position:relative;
  300. -moz-box-shadow: -20px 50px 50px white, 20px 50px 50px white;
  301. -webkit-box-shadow: -20px 50px 50px white, 20px 50px 50px white;
  302. box-shadow: -20px 50px 50px white, 20px 50px 50px white;
  303. padding-bottom:1em;
  304. }
  305. figcaption.light a
  306. {
  307. text-shadow:text-shadow:5px 10px 10px #fff;
  308. color:white;
  309. }

  310. figcaption.future
  311. {
  312. font-family:"Sony Sketch EF";
  313. text-align:center;
  314. }

  315. figure.rotation
  316. {
  317. background: rgba(255,255,255,1);
  318. border: 10px solid #fff;
  319. -webkit-border-radius: 8px;
  320. -moz-border-radius: 8px;
  321. border-radius: 8px;
  322. -webkit-box-shadow: 0 3px 10px #ccc;
  323. -moz-box-shadow: 0 3px 10px #ccc;
  324. box-shadow: 0 3px 10px #ccc;
  325. }

  326. figure.rotation img {
  327. width: 100%;
  328. -webkit-transition: all 0.7s ease-in-out;
  329. -moz-transition: all 1s ease-in-out;
  330. -o-transition: all 1s ease-in-out;
  331. transition: all 1s ease-in-out;
  332. }

  333. figure.rotation img:hover
  334. {
  335. border: 10px solid #fff;
  336. -webkit-border-radius: 8px;
  337. -moz-border-radius: 8px;
  338. border-radius: 8px;
  339. -webkit-box-shadow: 0 3px 10px #ccc;
  340. -moz-box-shadow: 0 3px 10px #ccc;
  341. box-shadow: 0 3px 10px #ccc;
  342. -moz-transform: scale(2) rotate(360deg);
  343. -webkit-transform: scale(2) rotate(360deg);
  344. -o-transform: scale(2) rotate(360deg);
  345. transform: scale(2) rotate(360deg);
  346. }

  347. .img{
  348. -moz-transition-duration: 0.5s;
  349. -webkit-transition-duration: 0.5s;
  350. -moz-box-shadow: -20px -20px 20px black, 20px -20px 20px black, -20px 20px 20px black, 20px 20px 20px black;
  351. -webkit-box-shadow: -20px -20px 20px black, 20px -20px 20px black, -20px 20px 20px black, 20px 20px 20px black;
  352. box-shadow: -20px -20px 10px black, 20px -20px 10px black, -20px 20px 10px black, 20px 20px 10px black;
  353. }

  354. .img:hover
  355. {
  356. -moz-transform:scale(1.5);
  357. -webkit-transform:scale(1.5);
  358. -moz-box-shadow:0px 0px 30px #ccc;
  359. -webkit-box-shadow:0px 0px 30px #ccc;

  360. }

  361. .img .mask{
  362. width: 34%;
  363. background-color: rgb(0, 0, 0);
  364. position: absolute;
  365. height: 47%;
  366. opacity:0.6;
  367. cursor:pointer;
  368. -moz-transition-duration:3s;
  369. -webkit-transition-duration: 3s;
  370. }
  371. #img:hover .mask{
  372. height:0%;
  373. width:0%;
  374. }

  375. figcaption.trans_future
  376. {
  377. font-family:"Sony Sketch EF";
  378. text-align:center;
  379. background-color:rgba(255,255,255,0);
  380. color:white;
  381. }

© alexandre krispin 2011, tous droits réservés

xhtml   css   cc