A theme for pelican which mimics the look of LaTeX documents
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
4 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. @import url("pygments.css");
  2. @import url("pygments-dark.css") (prefers-color-theme: dark);
  3. @font-face {
  4. font-family: 'Latin Modern';
  5. font-style: normal;
  6. font-weight: normal;
  7. font-display: swap;
  8. src: url('../fonts/LM-regular.woff2') format('woff2'),
  9. url('../fonts/LM-regular.woff') format('woff'),
  10. url('../fonts/LM-regular.ttf') format('truetype');
  11. }
  12. @font-face {
  13. font-family: 'Latin Modern';
  14. font-style: italic;
  15. font-weight: normal;
  16. font-display: swap;
  17. src: url('../fonts/LM-italic.woff2') format('woff2'),
  18. url('../fonts/LM-italic.woff') format('woff'),
  19. url('../fonts/LM-italic.ttf') format('truetype');
  20. }
  21. @font-face {
  22. font-family: 'Latin Modern';
  23. font-style: normal;
  24. font-weight: bold;
  25. font-display: swap;
  26. src: url('../fonts/LM-bold.woff2') format('woff2'),
  27. url('../fonts/LM-bold.woff') format('woff'),
  28. url('../fonts/LM-bold.ttf') format('truetype');
  29. }
  30. @font-face {
  31. font-family: 'Latin Modern';
  32. font-style: italic;
  33. font-weight: bold;
  34. font-display: swap;
  35. src: url('../fonts/LM-bold-italic.woff2') format('woff2'),
  36. url('../fonts/LM-bold-italic.woff') format('woff'),
  37. url('../fonts/LM-bold-italic.ttf') format('truetype');
  38. }
  39. :root {
  40. --main-bg-color: hsl(210, 20%, 98%);
  41. --main-text-color: hsl(0, 5%, 10%);
  42. --main-link-color: hsl(0, 100%, 35%);
  43. --table-border-color: hsl(0, 0%, 85%);
  44. --table-head-border-color: hsl(0, 0%, 70%);
  45. }
  46. @media (prefers-color-scheme: dark) {
  47. :root {
  48. --main-bg-color: hsl(0, 5%, 10%);
  49. --main-text-color: hsl(210, 20%, 98%);
  50. --main-link-color: hsl(0, 100%, 65%);
  51. --table-border-color: hsl(0, 0%, 15%);
  52. --table-head-border-color: hsl(0, 0%, 30%);
  53. }
  54. }
  55. *, *::before, *::after {
  56. box-sizing: border-box;
  57. }
  58. body, h1, h2, h3, h4, p, ul[class], ol[class], li, figure, figcaption, dl, dd {
  59. margin: 0;
  60. }
  61. html, body {
  62. height: 98%;
  63. max-width: 1280px;
  64. margin: auto;
  65. }
  66. html {
  67. font-size: 1rem;
  68. scroll-behavior: smooth;
  69. }
  70. body {
  71. display: flex;
  72. flex-flow: column nowrap;
  73. font-family: 'Latin Modern', Georgia, Cambria, 'Times New Roman', Times, serif;
  74. line-height: 1.8;
  75. min-height: 100vh;
  76. overflow-x: hidden;
  77. margin: 0 auto;
  78. padding: 2rem 1.25rem;
  79. color: var(--main-text-color);
  80. background-color: var(--main-bg-color);
  81. text-rendering: optimizeLegibility;
  82. }
  83. p {
  84. text-align: justify;
  85. hyphens: auto;
  86. margin-top: 1rem;
  87. }
  88. a:not([class]) {
  89. text-decoration-skip-ink: auto;
  90. }
  91. a, a:visited {
  92. color: var(--main-link-color);
  93. }
  94. a:focus {
  95. outline-offset: 2px;
  96. outline: 2px solid hsl(220, 90%, 52%);
  97. }
  98. h1 {
  99. font-size: 2.5rem;
  100. line-height: 3.25rem;
  101. margin-bottom: 1.625rem;
  102. }
  103. h2 {
  104. font-size: 1.7rem;
  105. line-height: 2rem;
  106. margin-top: 3rem;
  107. }
  108. h3 {
  109. font-size: 1.4rem;
  110. margin-top: 2.5rem;
  111. }
  112. h4 {
  113. font-size: 1.2rem;
  114. margin-top: 2rem;
  115. }
  116. h5 {
  117. font-size: 1rem;
  118. margin-top: 1.8rem;
  119. }
  120. h6 {
  121. font-size: 1rem;
  122. font-style: italic;
  123. font-weight: normal;
  124. margin-top: 2.5rem;
  125. }
  126. h3, h4, h5, h6 {
  127. line-height: 1.625rem;
  128. }
  129. h1 + h2 {
  130. margin-top: 1.625rem;
  131. }
  132. h2 + h3, h3 + h4, h4 + h5 {
  133. margin-top: 0.8rem;
  134. }
  135. h5 + h6 {
  136. margin-top: -0.8rem;
  137. }
  138. h2, h3, h4, h5, h6 {
  139. margin-bottom: 0.8rem;
  140. }
  141. ul, ol {
  142. padding: 0;
  143. }
  144. #banner, #contentinfo {
  145. width: 100%;
  146. text-align: center;
  147. }
  148. #contentinfo {
  149. flex-shrink: 0;
  150. margin-top: 40px
  151. }
  152. #container {
  153. flex: 1 0 auto;
  154. display: flex;
  155. align-items: stretch;
  156. max-width: 100%;
  157. }
  158. @media only screen and (max-width: 1024px) {
  159. #container {
  160. flex-flow: row wrap;
  161. }
  162. }
  163. #menu {
  164. min-width: 300px;
  165. }
  166. .menuitems {
  167. list-style: none;
  168. }
  169. #content {
  170. flex: 1 1 auto;
  171. }
  172. #post-list li {
  173. list-style: none;
  174. }
  175. .entry-title {
  176. text-align: center;
  177. }
  178. div.post-info {
  179. text-align: center;
  180. }
  181. .author a {
  182. margin: 0.85rem 0;
  183. font-variant-caps: small-caps;
  184. text-align: center;
  185. }
  186. footer.post-info {
  187. display: flex;
  188. flex-flow: row wrap;
  189. justify-content: space-between;
  190. padding: 1rem;
  191. }
  192. /*
  193. * Links
  194. */
  195. .entry-content {
  196. counter-reset: entrylinks 0 figures 0 tables 0 listings 0;
  197. }
  198. .entry-content a {
  199. counter-increment: entrylinks;
  200. text-decoration: none;
  201. color: inherit;
  202. outline: none;
  203. cursor: default;
  204. pointer-events: none;
  205. }
  206. .entry-content a:after {
  207. content: '[' counter(entrylinks) ']';
  208. margin-left: 2px;
  209. color: var(--main-link-color);
  210. cursor: pointer;
  211. pointer-events: auto;
  212. }
  213. /*
  214. * Lists
  215. */
  216. .entry-content ol,
  217. .entry-content ul {
  218. padding-left: 40px;
  219. }
  220. .entry-content li>ol,
  221. .entry-content li>ul {
  222. padding-left: 20px;
  223. }
  224. /*
  225. * Images
  226. */
  227. .entry-content img {
  228. counter-increment: figures;
  229. display: block;
  230. max-width: 80%;
  231. margin: 0 auto 0 auto;
  232. padding: 1rem;
  233. }
  234. .entry-content img~em{
  235. display: block;
  236. margin: 0 auto 0 auto;
  237. text-align: center;
  238. font-style: normal;
  239. }
  240. .entry-content img~em:before {
  241. content: 'Figure ' counter(figures) ': ';
  242. font-weight: bold;
  243. }
  244. /*
  245. * Tables
  246. */
  247. .entry-content table:not([class="highlighttable"]) {
  248. counter-increment: tables;
  249. max-width: 80%;
  250. margin: 0 auto 0 auto;
  251. padding: 1rem;
  252. border-collapse: collapse;
  253. border-spacing: 0;
  254. }
  255. .entry-content table~p > em{
  256. display: block;
  257. margin: 0 auto 0 auto;
  258. text-align: center;
  259. font-style: normal;
  260. }
  261. .entry-content table~p > em:before {
  262. content: 'Table ' counter(tables) ': ';
  263. font-weight: bold;
  264. }
  265. .entry-content th, td {
  266. padding: 0.5rem;
  267. }
  268. .entry-content td {
  269. border-bottom: 1px solid var(--table-border-color);
  270. }
  271. .entry-content th:not([align]), td:not([align]) {
  272. text-align: left;
  273. }
  274. .entry-content th:empty,
  275. .entry-content td:empty {
  276. border-left: 1px solid var(--table-border-color);
  277. width: 0;
  278. padding: 0;
  279. }
  280. .entry-content th:empty~th:empty,
  281. .entry-content td:empty~td:empty {
  282. border-left: 1px double var(--table-border-color);
  283. }
  284. .entry-content thead th {
  285. border-bottom: 2px solid var(--table-head-border-color);
  286. }
  287. .entry-content tfoot th {
  288. border-top: 2px solid var(--table-head-border-color);
  289. }
  290. /*
  291. * Code
  292. */
  293. .entry-content table.highlighttable,
  294. .entry-content div.highlight {
  295. width: 100%;
  296. max-width: 100%;
  297. }
  298. .entry-content div.highlight {
  299. counter-increment: listings;
  300. }
  301. .entry-content table.highlighttable~p > em,
  302. .entry-content div.highlight~p > em {
  303. display: block;
  304. margin: 0 auto 0 auto;
  305. text-align: center;
  306. font-style: normal;
  307. }
  308. .entry-content table.highlighttable~p > em:before,
  309. .entry-content div.highlight~p > em:before {
  310. content: 'Listing ' counter(listings) ': ';
  311. font-weight: bold;
  312. }
  313. .entry-content td.linenos,
  314. .entry-content td.code {
  315. border-bottom: none;
  316. }
  317. .entry-content code, pre {
  318. font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  319. font-size: 85%;
  320. }
  321. .entry-content pre {
  322. max-width: 100%;
  323. overflow: auto;
  324. border-radius: 4px;
  325. }
  326. .entry-content pre code {
  327. font-size: 95%;
  328. position: relative;
  329. }
  330. .linenos {
  331. width: 3em;
  332. }
  333. /* This is old stuff, inherited from LaTeX.css, probably unused */
  334. /* Nested ordered list for ToC */
  335. .toc ol {
  336. counter-reset: item;
  337. padding-left: 2rem;
  338. }
  339. .toc li {
  340. display: block;
  341. }
  342. .toc li:before {
  343. content: counters(item, '.') ' ';
  344. counter-increment: item;
  345. padding-right: 0.85rem;
  346. }
  347. /* Make footnote text smaller and left align it (looks bad with long URLs) */
  348. .footnotes p {
  349. text-align: left;
  350. line-height: 1.5;
  351. font-size: 85%;
  352. margin-bottom: 0.4rem;
  353. }
  354. .footnotes {
  355. border-top: 1px solid hsl(0, 0%, 39%);
  356. }