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

405 строки
6.5 KiB

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