pandoc.css 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  1. /*
  2. * I add this to html files generated with pandoc.
  3. */
  4. html {
  5. font-size: 100%;
  6. overflow-y: scroll;
  7. -webkit-text-size-adjust: 100%;
  8. -ms-text-size-adjust: 100%;
  9. }
  10. body {
  11. color: #444;
  12. font-family: Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman', serif;
  13. font-size: 12px;
  14. line-height: 1.7;
  15. padding: 1em;
  16. margin: auto;
  17. max-width: 42em;
  18. background: #fefefe;
  19. }
  20. a {
  21. color: #0645ad;
  22. text-decoration: none;
  23. }
  24. a:visited {
  25. color: #0b0080;
  26. }
  27. a:hover {
  28. color: #06e;
  29. }
  30. a:active {
  31. color: #faa700;
  32. }
  33. a:focus {
  34. outline: thin dotted;
  35. }
  36. *::-moz-selection {
  37. background: rgba(255, 255, 0, 0.3);
  38. color: #000;
  39. }
  40. *::selection {
  41. background: rgba(255, 255, 0, 0.3);
  42. color: #000;
  43. }
  44. a::-moz-selection {
  45. background: rgba(255, 255, 0, 0.3);
  46. color: #0645ad;
  47. }
  48. a::selection {
  49. background: rgba(255, 255, 0, 0.3);
  50. color: #0645ad;
  51. }
  52. p {
  53. margin: 1em 0;
  54. }
  55. img {
  56. max-width: 100%;
  57. }
  58. .doctitle {
  59. color: #111;
  60. line-height: 125%;
  61. margin-top: 2em;
  62. margin-bottom: 2em;
  63. font-weight: normal;
  64. font-size: 3em;
  65. }
  66. h1, h2, h3, h4, h5, h6 {
  67. color: #111;
  68. line-height: 125%;
  69. margin-top: 2em;
  70. font-weight: normal;
  71. }
  72. h4, h5, h6 {
  73. font-weight: bold;
  74. }
  75. h1 {
  76. font-size: 2.2em;
  77. }
  78. h2 {
  79. font-size: 2em;
  80. }
  81. h3 {
  82. font-size: 1.5em;
  83. }
  84. h4 {
  85. font-size: 1.2em;
  86. }
  87. h5 {
  88. font-size: 1em;
  89. }
  90. h6 {
  91. font-size: 0.9em;
  92. }
  93. blockquote {
  94. color: #666666;
  95. margin: 0;
  96. padding-left: 3em;
  97. border-left: 0.5em #EEE solid;
  98. }
  99. hr {
  100. display: block;
  101. height: 2px;
  102. border: 0;
  103. border-top: 1px solid #aaa;
  104. border-bottom: 1px solid #eee;
  105. margin: 1em 0;
  106. padding: 0;
  107. }
  108. pre, code, kbd, samp {
  109. color: #000;
  110. font-family: monospace, monospace;
  111. _font-family: 'courier new', monospace;
  112. font-size: 0.98em;
  113. }
  114. code {
  115. background-color: #eee;
  116. }
  117. pre {
  118. white-space: pre;
  119. white-space: pre-wrap;
  120. word-wrap: break-word;
  121. background-color: #eee;
  122. padding: 0.5em; /* Since we have a background color */
  123. border-radius: 5px; /* Softens it */
  124. /* Give it a some definition */
  125. border: 1px solid #aaa;
  126. /* Set it off left and right, seems to look a bit nicer when we have a background */
  127. margin-left: 0.5em;
  128. margin-right: 0.5em;
  129. }
  130. /* Source: https://stackoverflow.com/questions/40842277/create-line-numbers-on-pre-with-css-only */
  131. pre{
  132. counter-reset: line;
  133. }
  134. pre .sourceLine {
  135. /*display: block;*/
  136. line-height: 1.5rem;
  137. }
  138. code.sourceCode{
  139. position: static;
  140. }
  141. pre .sourceLine:before {
  142. counter-increment: line;
  143. content: counter(line);
  144. display: inline-block;
  145. border-right: 1px solid #ddd;
  146. padding: 0 .5em;
  147. margin-right: .5em;
  148. width: 1.2em;
  149. text-align: right;
  150. /*
  151. background-color: #fff;
  152. border-top: 1px solid #fff;
  153. border-bottom: 1px solid #fff;
  154. */
  155. color: #aaa;
  156. }
  157. .sourceLine:before{
  158. -webkit-user-select: none;
  159. }
  160. a.sourceLine::before {
  161. text-decoration: none;
  162. }
  163. /*ENd of line numbering in code*/
  164. b, strong {
  165. font-weight: bold;
  166. }
  167. dfn {
  168. font-style: italic;
  169. }
  170. ins {
  171. background: #ff9;
  172. color: #000;
  173. text-decoration: none;
  174. }
  175. mark {
  176. background: #ff0;
  177. color: #000;
  178. font-style: italic;
  179. font-weight: bold;
  180. }
  181. sub, sup {
  182. font-size: 75%;
  183. line-height: 0;
  184. position: relative;
  185. vertical-align: baseline;
  186. }
  187. sup {
  188. top: -0.5em;
  189. }
  190. sub {
  191. bottom: -0.25em;
  192. }
  193. ul, ol {
  194. margin: 1em 0;
  195. padding: 0 0 0 2em;
  196. }
  197. li p:last-child {
  198. margin-bottom: 0;
  199. }
  200. ul ul, ol ol {
  201. margin: .3em 0;
  202. }
  203. dl {
  204. margin-bottom: 1em;
  205. }
  206. dt {
  207. font-weight: bold;
  208. margin-bottom: .8em;
  209. }
  210. dd {
  211. margin: 0 0 .8em 2em;
  212. }
  213. dd:last-child {
  214. margin-bottom: 0;
  215. }
  216. img {
  217. border: 0;
  218. -ms-interpolation-mode: bicubic;
  219. vertical-align: middle;
  220. }
  221. figure {
  222. display: block;
  223. text-align: center;
  224. margin: 1em 0;
  225. }
  226. figure img {
  227. border: none;
  228. margin: 0 auto;
  229. }
  230. figcaption {
  231. font-size: 0.8em;
  232. font-style: italic;
  233. margin: 0 0 .8em;
  234. }
  235. table {
  236. margin-bottom: 2em;
  237. border-bottom: 1px solid #ddd;
  238. border-right: 1px solid #ddd;
  239. border-spacing: 0;
  240. border-collapse: collapse;
  241. }
  242. table th {
  243. padding: .2em 1em;
  244. background-color: #eee;
  245. border-top: 1px solid #ddd;
  246. border-left: 1px solid #ddd;
  247. text-align: left;
  248. }
  249. table td {
  250. padding: .2em 1em;
  251. border-top: 1px solid #ddd;
  252. border-left: 1px solid #ddd;
  253. vertical-align: top;
  254. }
  255. .author {
  256. font-size: 1.2em;
  257. text-align: center;
  258. }
  259. @media only screen and (min-width: 480px) {
  260. body {
  261. font-size: 14px;
  262. }
  263. }
  264. @media only screen and (min-width: 768px) {
  265. body {
  266. font-size: 16px;
  267. }
  268. }
  269. @media print {
  270. * {
  271. background: transparent !important;
  272. color: black !important;
  273. filter: none !important;
  274. -ms-filter: none !important;
  275. }
  276. body {
  277. font-size: 12pt;
  278. max-width: 100%;
  279. }
  280. a, a:visited {
  281. text-decoration: underline;
  282. }
  283. hr {
  284. height: 1px;
  285. border: 0;
  286. border-bottom: 1px solid black;
  287. }
  288. a[href]:after {
  289. content: " (" attr(href) ")";
  290. }
  291. abbr[title]:after {
  292. content: " (" attr(title) ")";
  293. }
  294. .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after {
  295. content: "";
  296. }
  297. pre, blockquote {
  298. border: 1px solid #999;
  299. padding-right: 1em;
  300. page-break-inside: avoid;
  301. }
  302. tr, img {
  303. page-break-inside: avoid;
  304. }
  305. img {
  306. max-width: 100% !important;
  307. }
  308. @page :left {
  309. margin: 15mm 20mm 15mm 10mm;
  310. }
  311. @page :right {
  312. margin: 15mm 10mm 15mm 20mm;
  313. }
  314. p, h2, h3 {
  315. orphans: 3;
  316. widows: 3;
  317. }
  318. h2, h3 {
  319. page-break-after: avoid;
  320. }
  321. }
  322. div.important {
  323. background-image:url('images/important.svg');
  324. background-repeat: no-repeat;
  325. background-size: 48px 48px;
  326. /*margin:0; /* If you want no margin */
  327. /*padding:0; /*if your want to padding */
  328. background-color: #FFEDED;
  329. padding: 0.5em; /* Since we have a background color */
  330. padding-left: 64px;
  331. border-radius: 5px; /* Softens it */
  332. /* Give it a some definition */
  333. border: 1px solid #faa;
  334. /* Set it off left and right, seems to look a bit nicer when we have a background */
  335. margin-left: 0.5em;
  336. margin-right: 0.5em;
  337. }
  338. div.warning {
  339. background-image:url('images/attention.svg');
  340. background-repeat: no-repeat;
  341. background-size: 48px 48px;
  342. /*margin:0; /* If you want no margin */
  343. /*padding:0; /*if your want to padding */
  344. background-color: #FFA70B16;
  345. padding: 0.5em; /* Since we have a background color */
  346. padding-left: 64px;
  347. border-radius: 5px; /* Softens it */
  348. /* Give it a some definition */
  349. border: 1px solid #ffa70b;
  350. /* Set it off left and right, seems to look a bit nicer when we have a background */
  351. margin-left: 0.5em;
  352. margin-right: 0.5em;
  353. }
  354. div.information {
  355. background-image:url('images/information.svg');
  356. background-repeat: no-repeat;
  357. background-size: 48px 48px;
  358. /*margin:0; /* If you want no margin */
  359. /*padding:0; /*if your want to padding */
  360. background-color: #FAFCFE;
  361. padding: 0.5em; /* Since we have a background color */
  362. padding-left: 64px;
  363. border-radius: 5px; /* Softens it */
  364. /* Give it a some definition */
  365. border: 1px solid #00b4fa;
  366. /* Set it off left and right, seems to look a bit nicer when we have a background */
  367. margin-left: 0.5em;
  368. margin-right: 0.5em;
  369. }
  370. div.practice {
  371. background-image:url('images/practice.svg');
  372. background-repeat: no-repeat;
  373. background-size: 48px 48px;
  374. /*margin:0; /* If you want no margin */
  375. /*padding:0; /*if your want to padding */
  376. background-color: #d1f4e3;
  377. padding: 0.5em; /* Since we have a background color */
  378. padding-left: 64px;
  379. border-radius: 5px; /* Softens it */
  380. /* Give it a some definition */
  381. border: 1px solid #2bb771;
  382. /* Set it off left and right, seems to look a bit nicer when we have a background */
  383. margin-left: 0.5em;
  384. margin-right: 0.5em;
  385. }
  386. #TOC {
  387. background-image:url('images/sommaire.svg');
  388. background-repeat: no-repeat;
  389. background-size: 64px 20px;
  390. /*margin:0; /* If you want no margin */
  391. /*padding:0; /*if your want to padding */
  392. background-color: #FAFCFE;
  393. padding: 0.5em; /* Since we have a background color */
  394. padding-left: 64px;
  395. border-radius: 5px; /* Softens it */
  396. /* Give it a some definition */
  397. border: 1px solid #00b4fa;
  398. /* Set it off left and right, seems to look a bit nicer when we have a background */
  399. margin-left: 0.5em;
  400. margin-right: 0.5em;
  401. }
  402. .commit-msg {
  403. fill: #d3d3d3;
  404. color: #333;
  405. }