A theme for pelican which mimics the look of LaTeX documents
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

432 wiersze
7.3 KiB

  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. #categories {
  149. margin-top: 40px;
  150. }
  151. #categories:before {
  152. content: "Categories:";
  153. }
  154. #contentinfo {
  155. flex-shrink: 0;
  156. margin-top: 40px
  157. }
  158. #container {
  159. flex: 1 0 auto;
  160. display: flex;
  161. align-items: stretch;
  162. max-width: 100%;
  163. }
  164. @media only screen and (max-width: 1024px) {
  165. #container {
  166. flex-flow: row wrap;
  167. }
  168. }
  169. #menu {
  170. min-width: 300px;
  171. }
  172. .menuitems {
  173. list-style: none;
  174. }
  175. #content {
  176. flex: 1 1 auto;
  177. }
  178. #post-list li {
  179. list-style: none;
  180. }
  181. .entry-title {
  182. text-align: center;
  183. }
  184. div.post-info {
  185. text-align: center;
  186. }
  187. .author a {
  188. margin: 0.85rem 0;
  189. font-variant-caps: small-caps;
  190. text-align: center;
  191. }
  192. footer.post-info {
  193. display: flex;
  194. flex-flow: row wrap;
  195. justify-content: space-between;
  196. padding: 1rem;
  197. }
  198. /*
  199. * Links
  200. */
  201. .entry-content {
  202. counter-reset: entrylinks 0 figures 0 tables 0 listings 0;
  203. }
  204. .entry-content a {
  205. counter-increment: entrylinks;
  206. text-decoration: none;
  207. color: inherit;
  208. outline: none;
  209. cursor: default;
  210. pointer-events: none;
  211. }
  212. .entry-content a:after {
  213. content: '[' counter(entrylinks) ']';
  214. margin-left: 2px;
  215. color: var(--main-link-color);
  216. cursor: pointer;
  217. pointer-events: auto;
  218. }
  219. /*
  220. * Lists
  221. */
  222. .entry-content ol,
  223. .entry-content ul {
  224. padding-left: 40px;
  225. }
  226. .entry-content li>ol,
  227. .entry-content li>ul {
  228. padding-left: 20px;
  229. }
  230. /*
  231. * Images
  232. */
  233. .entry-content img {
  234. counter-increment: figures;
  235. display: block;
  236. max-width: 80%;
  237. margin: 0 auto 0 auto;
  238. padding: 1rem;
  239. }
  240. .entry-content img~em{
  241. display: block;
  242. margin: 0 auto 0 auto;
  243. text-align: center;
  244. font-style: normal;
  245. }
  246. .entry-content img~em:before {
  247. content: 'Figure ' counter(figures) ': ';
  248. font-weight: bold;
  249. }
  250. /*
  251. * Tables
  252. */
  253. .entry-content table:not([class="highlighttable"]) {
  254. counter-increment: tables;
  255. max-width: 80%;
  256. margin: 0 auto 0 auto;
  257. padding: 1rem;
  258. border-collapse: collapse;
  259. border-spacing: 0;
  260. }
  261. .entry-content table~p > em{
  262. display: block;
  263. margin: 0 auto 0 auto;
  264. text-align: center;
  265. font-style: normal;
  266. }
  267. .entry-content table~p > em:before {
  268. content: 'Table ' counter(tables) ': ';
  269. font-weight: bold;
  270. }
  271. .entry-content th, td {
  272. padding: 0.5rem;
  273. }
  274. .entry-content td {
  275. border-bottom: 1px solid var(--table-border-color);
  276. }
  277. .entry-content th:not([align]), td:not([align]) {
  278. text-align: left;
  279. }
  280. .entry-content th:empty,
  281. .entry-content td:empty {
  282. border-left: 1px solid var(--table-border-color);
  283. width: 0;
  284. padding: 0;
  285. }
  286. .entry-content th:empty~th:empty,
  287. .entry-content td:empty~td:empty {
  288. border-left: 1px double var(--table-border-color);
  289. }
  290. .entry-content thead th {
  291. border-bottom: 2px solid var(--table-head-border-color);
  292. }
  293. .entry-content tfoot th {
  294. border-top: 2px solid var(--table-head-border-color);
  295. }
  296. /*
  297. * Code
  298. */
  299. .entry-content table.highlighttable,
  300. .entry-content div.highlight {
  301. width: 100%;
  302. max-width: 100%;
  303. }
  304. .entry-content div.highlight {
  305. counter-increment: listings;
  306. }
  307. .entry-content table.highlighttable~p > em,
  308. .entry-content div.highlight~p > em {
  309. display: block;
  310. margin: 0 auto 0 auto;
  311. text-align: center;
  312. font-style: normal;
  313. }
  314. .entry-content table.highlighttable~p > em:before,
  315. .entry-content div.highlight~p > em:before {
  316. content: 'Listing ' counter(listings) ': ';
  317. font-weight: bold;
  318. }
  319. .entry-content td.linenos,
  320. .entry-content td.code {
  321. border-bottom: none;
  322. }
  323. .entry-content code, pre {
  324. font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  325. font-size: 85%;
  326. }
  327. .entry-content pre {
  328. max-width: 100%;
  329. overflow: auto;
  330. border-radius: 4px;
  331. }
  332. .entry-content pre code {
  333. font-size: 95%;
  334. position: relative;
  335. }
  336. .linenos {
  337. width: 3em;
  338. }
  339. /* This is old stuff, inherited from LaTeX.css, probably unused */
  340. /* Nested ordered list for ToC */
  341. .toc ol {
  342. counter-reset: item;
  343. padding-left: 2rem;
  344. }
  345. .toc li {
  346. display: block;
  347. }
  348. .toc li:before {
  349. content: counters(item, '.') ' ';
  350. counter-increment: item;
  351. padding-right: 0.85rem;
  352. }
  353. /* Make footnote text smaller and left align it (looks bad with long URLs) */
  354. .footnotes p {
  355. text-align: left;
  356. line-height: 1.5;
  357. font-size: 85%;
  358. margin-bottom: 0.4rem;
  359. }
  360. .footnotes {
  361. border-top: 1px solid hsl(0, 0%, 39%);
  362. }