stylesheet.css 23 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327
  1. /*
  2. PaperMod v7
  3. License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE
  4. Copyright (c) 2020 nanxiaobei and adityatelange
  5. Copyright (c) 2021-2024 adityatelange
  6. */
  7. :root {
  8. --gap: 24px;
  9. --content-gap: 20px;
  10. --nav-width: 1024px;
  11. --main-width: 720px;
  12. --header-height: 60px;
  13. --footer-height: 60px;
  14. --radius: 8px;
  15. --theme: rgb(255, 255, 255);
  16. --entry: rgb(255, 255, 255);
  17. --primary: rgb(30, 30, 30);
  18. --secondary: rgb(108, 108, 108);
  19. --tertiary: rgb(214, 214, 214);
  20. --content: rgb(31, 31, 31);
  21. --code-block-bg: rgb(28, 29, 33);
  22. --code-bg: rgb(245, 245, 245);
  23. --border: rgb(238, 238, 238);
  24. }
  25. .dark {
  26. --theme: rgb(29, 30, 32);
  27. --entry: rgb(46, 46, 51);
  28. --primary: rgb(218, 218, 219);
  29. --secondary: rgb(155, 156, 157);
  30. --tertiary: rgb(65, 66, 68);
  31. --content: rgb(196, 196, 197);
  32. --code-block-bg: rgb(46, 46, 51);
  33. --code-bg: rgb(55, 56, 62);
  34. --border: rgb(51, 51, 51);
  35. }
  36. .list {
  37. background: var(--code-bg);
  38. }
  39. .dark.list {
  40. background: var(--theme);
  41. }
  42. *,
  43. ::after,
  44. ::before {
  45. box-sizing: border-box;
  46. }
  47. html {
  48. -webkit-tap-highlight-color: transparent;
  49. overflow-y: scroll;
  50. -webkit-text-size-adjust: 100%;
  51. text-size-adjust: 100%;
  52. }
  53. a,
  54. button,
  55. body,
  56. h1,
  57. h2,
  58. h3,
  59. h4,
  60. h5,
  61. h6 {
  62. color: var(--primary);
  63. }
  64. body {
  65. font-family: -apple-system, BlinkMacSystemFont, segoe ui, Roboto, Oxygen, Ubuntu, Cantarell, open sans, helvetica neue, sans-serif;
  66. font-size: 18px;
  67. line-height: 1.6;
  68. word-break: break-word;
  69. background: var(--theme);
  70. }
  71. article,
  72. aside,
  73. figcaption,
  74. figure,
  75. footer,
  76. header,
  77. hgroup,
  78. main,
  79. nav,
  80. section,
  81. table {
  82. display: block;
  83. }
  84. h1,
  85. h2,
  86. h3,
  87. h4,
  88. h5,
  89. h6 {
  90. line-height: 1.2;
  91. }
  92. h1,
  93. h2,
  94. h3,
  95. h4,
  96. h5,
  97. h6,
  98. p {
  99. margin-top: 0;
  100. margin-bottom: 0;
  101. }
  102. ul {
  103. padding: 0;
  104. }
  105. a {
  106. text-decoration: none;
  107. }
  108. body,
  109. figure,
  110. ul {
  111. margin: 0;
  112. }
  113. table {
  114. width: 100%;
  115. border-collapse: collapse;
  116. border-spacing: 0;
  117. overflow-x: auto;
  118. word-break: keep-all;
  119. }
  120. button,
  121. input,
  122. textarea {
  123. padding: 0;
  124. font: inherit;
  125. background: 0 0;
  126. border: 0;
  127. }
  128. input,
  129. textarea {
  130. outline: 0;
  131. }
  132. button,
  133. input[type="button"],
  134. input[type="submit"] {
  135. cursor: pointer;
  136. }
  137. input:-webkit-autofill,
  138. textarea:-webkit-autofill {
  139. box-shadow: 0 0 0 50px var(--theme) inset;
  140. }
  141. img {
  142. display: block;
  143. max-width: 100%;
  144. }
  145. .not-found {
  146. position: absolute;
  147. left: 0;
  148. right: 0;
  149. display: flex;
  150. align-items: center;
  151. justify-content: center;
  152. height: 80%;
  153. font-size: 160px;
  154. font-weight: 700;
  155. }
  156. .archive-posts {
  157. width: 100%;
  158. font-size: 16px;
  159. }
  160. .archive-year {
  161. margin-top: 40px;
  162. }
  163. .archive-year:not(:last-of-type) {
  164. border-bottom: 2px solid var(--border);
  165. }
  166. .archive-month {
  167. display: flex;
  168. align-items: flex-start;
  169. padding: 10px 0;
  170. }
  171. .archive-month-header {
  172. margin: 25px 0;
  173. width: 200px;
  174. }
  175. .archive-month:not(:last-of-type) {
  176. border-bottom: 1px solid var(--border);
  177. }
  178. .archive-entry {
  179. position: relative;
  180. padding: 5px;
  181. margin: 10px 0;
  182. }
  183. .archive-entry-title {
  184. margin: 5px 0;
  185. font-weight: 400;
  186. }
  187. .archive-count,
  188. .archive-meta {
  189. color: var(--secondary);
  190. font-size: 14px;
  191. }
  192. .footer,
  193. .top-link {
  194. font-size: 12px;
  195. color: var(--secondary);
  196. }
  197. .footer {
  198. max-width: calc(var(--main-width) + var(--gap) * 2);
  199. margin: auto;
  200. padding: calc((var(--footer-height) - var(--gap)) / 2) var(--gap);
  201. text-align: center;
  202. line-height: 24px;
  203. }
  204. .footer span {
  205. margin-inline-start: 1px;
  206. margin-inline-end: 1px;
  207. }
  208. .footer span:last-child {
  209. white-space: nowrap;
  210. }
  211. .footer a {
  212. color: inherit;
  213. border-bottom: 1px solid var(--secondary);
  214. }
  215. .footer a:hover {
  216. border-bottom: 1px solid var(--primary);
  217. }
  218. .top-link {
  219. visibility: hidden;
  220. position: fixed;
  221. bottom: 60px;
  222. right: 30px;
  223. z-index: 99;
  224. background: var(--tertiary);
  225. width: 42px;
  226. height: 42px;
  227. padding: 12px;
  228. border-radius: 64px;
  229. transition: visibility 0.5s, opacity 0.8s linear;
  230. }
  231. .top-link,
  232. .top-link svg {
  233. filter: drop-shadow(0 0 0 var(--theme));
  234. }
  235. .footer a:hover,
  236. .top-link:hover {
  237. color: var(--primary);
  238. }
  239. .top-link:focus,
  240. #theme-toggle:focus {
  241. outline: 0;
  242. }
  243. .nav {
  244. display: flex;
  245. flex-wrap: wrap;
  246. justify-content: space-between;
  247. max-width: calc(var(--nav-width) + var(--gap) * 2);
  248. margin-inline-start: auto;
  249. margin-inline-end: auto;
  250. padding: 10px 0;
  251. }
  252. .nav a {
  253. display: block;
  254. }
  255. .logo,
  256. .primary-menu {
  257. display: flex;
  258. margin: auto var(--gap);
  259. }
  260. .logo {
  261. flex-wrap: inherit;
  262. }
  263. .logo a {
  264. font-size: 24px;
  265. font-weight: 700;
  266. }
  267. .logo a img,
  268. .logo a svg {
  269. display: inline;
  270. vertical-align: middle;
  271. pointer-events: none;
  272. transform: translate(0, -10%);
  273. border-radius: 6px;
  274. margin-inline-end: 8px;
  275. }
  276. button#theme-toggle {
  277. font-size: 26px;
  278. margin: auto 4px;
  279. }
  280. body.dark #moon {
  281. vertical-align: middle;
  282. display: none;
  283. }
  284. body:not(.dark) #sun {
  285. display: none;
  286. }
  287. .primary-menu {
  288. list-style: none;
  289. word-break: keep-all;
  290. overflow-x: auto;
  291. white-space: nowrap;
  292. }
  293. .primary-menu li + li {
  294. margin-inline-start: var(--gap);
  295. }
  296. .primary-menu a {
  297. font-size: 16px;
  298. }
  299. .primary-menu .active {
  300. font-weight: 500;
  301. border-bottom: 2px solid;
  302. }
  303. .lang-switch li,
  304. .lang-switch ul,
  305. .logo-switches {
  306. display: inline-flex;
  307. margin: auto 4px;
  308. }
  309. .lang-switch {
  310. display: flex;
  311. flex-wrap: inherit;
  312. }
  313. .lang-switch a {
  314. margin: auto 3px;
  315. font-size: 16px;
  316. font-weight: 500;
  317. }
  318. .logo-switches {
  319. flex-wrap: inherit;
  320. }
  321. .main {
  322. position: relative;
  323. min-height: calc(100vh - var(--header-height) - var(--footer-height));
  324. max-width: calc(var(--main-width) + var(--gap) * 2);
  325. margin: auto;
  326. padding: var(--gap);
  327. }
  328. .page-header h1 {
  329. font-size: 40px;
  330. }
  331. .pagination {
  332. display: flex;
  333. }
  334. .pagination a {
  335. color: var(--theme);
  336. font-size: 13px;
  337. line-height: 36px;
  338. background: var(--primary);
  339. border-radius: calc(36px / 2);
  340. padding: 0 16px;
  341. }
  342. .pagination .next {
  343. margin-inline-start: auto;
  344. }
  345. .social-icons a {
  346. display: inline-flex;
  347. margin: 10px 10px 10px 0px;
  348. }
  349. .social-icons a svg {
  350. height: 26px;
  351. width: 26px;
  352. }
  353. code {
  354. direction: ltr;
  355. }
  356. div.highlight,
  357. pre {
  358. position: relative;
  359. }
  360. .copy-code {
  361. display: none;
  362. position: absolute;
  363. top: 4px;
  364. right: 4px;
  365. color: rgba(255, 255, 255, 0.8);
  366. background: rgba(78, 78, 78, 0.8);
  367. border-radius: var(--radius);
  368. padding: 0 5px;
  369. font-size: 14px;
  370. user-select: none;
  371. }
  372. div.highlight:hover .copy-code,
  373. pre:hover .copy-code {
  374. display: block;
  375. }
  376. .first-entry {
  377. position: relative;
  378. display: flex;
  379. flex-direction: column;
  380. justify-content: center;
  381. min-height: 220px;
  382. margin: var(--gap) 0 calc(var(--gap) * 2);
  383. }
  384. .first-entry .entry-header {
  385. overflow: hidden;
  386. display: -webkit-box;
  387. -webkit-box-orient: vertical;
  388. -webkit-line-clamp: 3;
  389. }
  390. .first-entry .entry-header h1 {
  391. font-size: 34px;
  392. line-height: 1.3;
  393. }
  394. .first-entry .entry-content {
  395. margin: 14px 0;
  396. font-size: 16px;
  397. -webkit-line-clamp: 3;
  398. }
  399. .first-entry .entry-footer {
  400. font-size: 14px;
  401. }
  402. .home-info .entry-content {
  403. -webkit-line-clamp: unset;
  404. }
  405. .post-entry {
  406. position: relative;
  407. margin-bottom: var(--gap);
  408. padding: var(--gap);
  409. background: var(--entry);
  410. border-radius: var(--radius);
  411. transition: transform 0.1s;
  412. border: 1px solid var(--border);
  413. }
  414. .post-entry:active {
  415. }
  416. .tag-entry .entry-cover {
  417. display: none;
  418. }
  419. .entry-header h2 {
  420. font-size: 24px;
  421. line-height: 1.3;
  422. }
  423. .entry-content {
  424. margin: 8px 0;
  425. color: var(--secondary);
  426. font-size: 14px;
  427. line-height: 1.6;
  428. }
  429. .entry-footer {
  430. color: var(--secondary);
  431. font-size: 13px;
  432. }
  433. .entry-hint {
  434. color: var(--secondary);
  435. }
  436. .entry-hint-parent {
  437. display: flex;
  438. justify-content: space-between;
  439. }
  440. .entry-cover {
  441. font-size: 14px;
  442. margin-bottom: var(--gap);
  443. text-align: center;
  444. }
  445. .entry-cover img {
  446. border-radius: var(--radius);
  447. pointer-events: none;
  448. width: 100%;
  449. height: auto;
  450. }
  451. .entry-cover a {
  452. color: var(--secondary);
  453. box-shadow: 0 1px 0 var(--primary);
  454. }
  455. .page-header,
  456. .post-header {
  457. margin: 24px auto var(--content-gap);
  458. }
  459. .post-title {
  460. margin-bottom: 2px;
  461. font-size: 40px;
  462. }
  463. .post-description {
  464. margin-top: 10px;
  465. margin-bottom: 5px;
  466. }
  467. .post-meta,
  468. .breadcrumbs {
  469. color: var(--secondary);
  470. font-size: 14px;
  471. }
  472. .breadcrumbs {
  473. margin-bottom:10px;
  474. }
  475. .post-meta .i18n_list li {
  476. display: inline-flex;
  477. list-style: none;
  478. margin: auto 3px;
  479. box-shadow: 0 1px 0 var(--secondary);
  480. }
  481. .breadcrumbs a {
  482. font-size: 14px;
  483. }
  484. .post-content {
  485. color: var(--content);
  486. }
  487. .post-content h3,
  488. .post-content h4,
  489. .post-content h5,
  490. .post-content h6 {
  491. margin: 24px 0 16px;
  492. }
  493. .post-content h1 {
  494. margin: 40px auto 32px;
  495. font-size: 40px;
  496. }
  497. .post-content h2 {
  498. margin: 32px auto 24px;
  499. font-size: 32px;
  500. }
  501. .post-content h3 {
  502. font-size: 24px;
  503. }
  504. .post-content h4 {
  505. font-size: 20px;
  506. }
  507. .post-content h5 {
  508. font-size: 18px;
  509. }
  510. .post-content h6 {
  511. font-size: 16px;
  512. }
  513. .post-content a,
  514. .toc a:hover {
  515. box-shadow: 0 1px;
  516. box-decoration-break: clone;
  517. -webkit-box-decoration-break: clone;
  518. }
  519. .post-content a code {
  520. margin: auto 0;
  521. border-radius: 0;
  522. box-shadow: 0 -1px 0 var(--primary) inset;
  523. }
  524. .post-content del {
  525. text-decoration: line-through;
  526. }
  527. .post-content dl,
  528. .post-content ol,
  529. .post-content p,
  530. .post-content figure,
  531. .post-content ul {
  532. margin-bottom: var(--content-gap);
  533. }
  534. .post-content ol,
  535. .post-content ul {
  536. padding-inline-start: 20px;
  537. }
  538. .post-content li {
  539. margin-top: 5px;
  540. }
  541. .post-content li p {
  542. margin-bottom: 0;
  543. }
  544. .post-content dl {
  545. display: flex;
  546. flex-wrap: wrap;
  547. margin: 0;
  548. }
  549. .post-content dt {
  550. width: 25%;
  551. font-weight: 700;
  552. }
  553. .post-content dd {
  554. width: 75%;
  555. margin-inline-start: 0;
  556. padding-inline-start: 10px;
  557. }
  558. .post-content dd ~ dd,
  559. .post-content dt ~ dt {
  560. margin-top: 10px;
  561. }
  562. .post-content table {
  563. margin-bottom: var(--content-gap);
  564. }
  565. .post-content table th,
  566. .post-content table:not(.highlighttable, .highlight table, .gist .highlight) td {
  567. min-width: 80px;
  568. padding: 8px 5px;
  569. line-height: 1.5;
  570. border-bottom: 1px solid var(--border);
  571. }
  572. .post-content table th {
  573. text-align: start;
  574. }
  575. .post-content table:not(.highlighttable) td code:only-child {
  576. margin: auto 0;
  577. }
  578. .post-content .highlight table {
  579. border-radius: var(--radius);
  580. }
  581. .post-content .highlight:not(table) {
  582. margin: 10px auto;
  583. background: var(--code-block-bg) !important;
  584. border-radius: var(--radius);
  585. direction: ltr;
  586. }
  587. .post-content li > .highlight {
  588. margin-inline-end: 0;
  589. }
  590. .post-content ul pre {
  591. margin-inline-start: calc(var(--gap) * -2);
  592. }
  593. .post-content .highlight pre {
  594. margin: 0;
  595. }
  596. .post-content .highlighttable {
  597. table-layout: fixed;
  598. }
  599. .post-content .highlighttable td:first-child {
  600. width: 40px;
  601. }
  602. .post-content .highlighttable td .linenodiv {
  603. padding-inline-end: 0 !important;
  604. }
  605. .post-content .highlighttable td .highlight,
  606. .post-content .highlighttable td .linenodiv pre {
  607. margin-bottom: 0;
  608. }
  609. .post-content code {
  610. margin: auto 4px;
  611. padding: 4px 6px;
  612. font-size: 0.78em;
  613. line-height: 1.5;
  614. background: var(--code-bg);
  615. border-radius: 2px;
  616. }
  617. .post-content pre code {
  618. display: grid;
  619. margin: auto 0;
  620. padding: 10px;
  621. color: #d5d5d6;
  622. background: var(--code-block-bg) !important;
  623. border-radius: var(--radius);
  624. overflow-x: auto;
  625. word-break: break-all;
  626. }
  627. .post-content blockquote {
  628. margin: 20px 0;
  629. padding: 0 14px;
  630. border-inline-start: 3px solid var(--primary);
  631. }
  632. .post-content hr {
  633. margin: 30px 0;
  634. height: 2px;
  635. background: var(--tertiary);
  636. border: 0;
  637. }
  638. .post-content iframe {
  639. max-width: 100%;
  640. }
  641. .post-content img {
  642. border-radius: 4px;
  643. margin: 1rem 0;
  644. }
  645. .post-content img[src*="#center"] {
  646. margin: 1rem auto;
  647. }
  648. .post-content figure.align-center {
  649. text-align: center;
  650. }
  651. .post-content figure > figcaption {
  652. color: var(--primary);
  653. font-size: 16px;
  654. font-weight: 700;
  655. margin: 8px 0 16px;
  656. }
  657. .post-content figure > figcaption > p {
  658. color: var(--secondary);
  659. font-size: 14px;
  660. font-weight: 400;
  661. }
  662. .toc-wrapper {
  663. border: 1px solid var(--border)!important;
  664. background: var(--code-bg)!important;
  665. border-radius: var(--radius)!important;
  666. }
  667. .dark .toc-wrapper {
  668. background: var(--entry);
  669. border: 1px solid var(--border);
  670. }
  671. .toc details summary {
  672. cursor: zoom-in;
  673. margin-inline-start: 20px;
  674. }
  675. .toc details[open] summary {
  676. cursor: zoom-out;
  677. }
  678. .toc .details {
  679. display: inline;
  680. font-weight: 500;
  681. }
  682. .toc .inner {
  683. margin: 0 20px;
  684. padding: 10px 20px;
  685. }
  686. .toc li ul {
  687. margin-inline-start: var(--gap);
  688. }
  689. .toc summary:focus {
  690. outline: 0;
  691. }
  692. .post-footer {
  693. margin-top: 56px;
  694. }
  695. .post-footer > * {
  696. margin-bottom: 10px;
  697. }
  698. .post-tags {
  699. display: flex;
  700. flex-wrap: wrap;
  701. gap: 10px;
  702. }
  703. .post-tags li {
  704. display: inline-block;
  705. }
  706. .post-tags a,
  707. .share-buttons,
  708. .paginav {
  709. border-radius: var(--radius);
  710. background: var(--code-bg);
  711. border: 1px solid var(--border);
  712. }
  713. .post-tags a {
  714. display: block;
  715. padding: 0 14px;
  716. color: var(--secondary);
  717. font-size: 14px;
  718. line-height: 34px;
  719. background: var(--code-bg);
  720. }
  721. .post-tags a:hover,
  722. .paginav a:hover {
  723. background: var(--border);
  724. }
  725. .share-buttons {
  726. padding: 10px;
  727. display: flex;
  728. justify-content: center;
  729. overflow-x: auto;
  730. gap: 10px;
  731. }
  732. .share-buttons li,
  733. .share-buttons a {
  734. display: inline-flex;
  735. }
  736. .share-buttons a:not(:last-of-type) {
  737. margin-inline-end: 12px;
  738. }
  739. h1:hover .anchor,
  740. h2:hover .anchor,
  741. h3:hover .anchor,
  742. h4:hover .anchor,
  743. h5:hover .anchor,
  744. h6:hover .anchor {
  745. display: inline-flex;
  746. color: var(--secondary);
  747. margin-inline-start: 8px;
  748. font-weight: 500;
  749. user-select: none;
  750. }
  751. .paginav {
  752. display: flex;
  753. line-height: 30px;
  754. line-height:1.2;
  755. font-size: 90%;
  756. }
  757. .paginav a {
  758. padding:14px;
  759. border-radius: var(--radius);
  760. }
  761. .paginav .title {
  762. letter-spacing: 1px;
  763. text-transform: uppercase;
  764. font-size: small;
  765. color: var(--secondary);
  766. }
  767. .paginav .prev,
  768. .paginav .next {
  769. width: 50%;
  770. }
  771. .paginav span:hover:not(.title) {
  772. box-shadow: 0 1px;
  773. }
  774. .paginav .next {
  775. margin-inline-start: auto;
  776. text-align: right;
  777. }
  778. [dir="rtl"] .paginav .next {
  779. text-align: left;
  780. }
  781. h1 > a > svg {
  782. display: inline;
  783. }
  784. img.in-text {
  785. display: inline;
  786. margin: auto;
  787. }
  788. .buttons,
  789. .main .profile {
  790. display: flex;
  791. justify-content: center;
  792. }
  793. .main .profile {
  794. align-items: center;
  795. min-height: calc(100vh - var(--header-height) - var(--footer-height) - (var(--gap) * 2));
  796. text-align: center;
  797. }
  798. .profile .profile_inner {
  799. display: flex;
  800. flex-direction: column;
  801. align-items: center;
  802. gap: 10px;
  803. }
  804. .profile img {
  805. border-radius: 50%;
  806. }
  807. .buttons {
  808. flex-wrap: wrap;
  809. max-width: 400px;
  810. }
  811. .button {
  812. background: var(--tertiary);
  813. border-radius: var(--radius);
  814. margin: 8px;
  815. padding: 6px;
  816. transition: transform 0.1s;
  817. }
  818. .button-inner {
  819. padding: 0 8px;
  820. }
  821. .button:active {
  822. transform: scale(0.96);
  823. }
  824. #searchbox input {
  825. padding: 4px 10px;
  826. width: 100%;
  827. color: var(--primary);
  828. font-weight: 700;
  829. border: 2px solid var(--tertiary);
  830. border-radius: var(--radius);
  831. }
  832. #searchbox input:focus {
  833. border-color: var(--secondary);
  834. }
  835. #searchResults li {
  836. list-style: none;
  837. border-radius: var(--radius);
  838. padding: 10px;
  839. margin: 10px 0;
  840. position: relative;
  841. font-weight: 500;
  842. }
  843. #searchResults {
  844. margin: 10px 0;
  845. width: 100%;
  846. }
  847. #searchResults li:active {
  848. transition: transform 0.1s;
  849. transform: scale(0.98);
  850. }
  851. #searchResults a {
  852. position: absolute;
  853. width: 100%;
  854. height: 100%;
  855. top: 0;
  856. left: 0;
  857. outline: none;
  858. }
  859. #searchResults .focus {
  860. transform: scale(0.98);
  861. border: 2px solid var(--tertiary);
  862. }
  863. .terms-tags li {
  864. display: inline-block;
  865. margin: 10px;
  866. font-weight: 500;
  867. }
  868. .terms-tags a {
  869. display: block;
  870. padding: 3px 10px;
  871. background: var(--tertiary);
  872. border-radius: 6px;
  873. transition: transform 0.1s;
  874. }
  875. .terms-tags a:active {
  876. background: var(--tertiary);
  877. transform: scale(0.96);
  878. }
  879. .terms-tags li span {
  880. display:none;
  881. }
  882. .bg {
  883. color: #cad3f5;
  884. background-color: #24273a;
  885. }
  886. .chroma {
  887. color: #cad3f5;
  888. background-color: #24273a;
  889. }
  890. .chroma .x {
  891. }
  892. .chroma .err {
  893. color: #ed8796;
  894. }
  895. .chroma .cl {
  896. }
  897. .chroma .lnlinks {
  898. outline: none;
  899. text-decoration: none;
  900. color: inherit;
  901. }
  902. .chroma .lntd {
  903. vertical-align: top;
  904. padding: 0;
  905. margin: 0;
  906. border: 0;
  907. }
  908. .chroma .lntable {
  909. border-spacing: 0;
  910. padding: 0;
  911. margin: 0;
  912. border: 0;
  913. }
  914. .chroma .hl {
  915. background-color: #474733;
  916. }
  917. .chroma .lnt {
  918. white-space: pre;
  919. -webkit-user-select: none;
  920. user-select: none;
  921. margin-right: 0.4em;
  922. padding: 0 0.4em;
  923. color: #8087a2;
  924. }
  925. .chroma .ln {
  926. white-space: pre;
  927. -webkit-user-select: none;
  928. user-select: none;
  929. margin-right: 0.4em;
  930. padding: 0 0.4em;
  931. color: #8087a2;
  932. }
  933. .chroma .line {
  934. display: flex;
  935. }
  936. .chroma .k {
  937. color: #c6a0f6;
  938. }
  939. .chroma .kc {
  940. color: #f5a97f;
  941. }
  942. .chroma .kd {
  943. color: #ed8796;
  944. }
  945. .chroma .kn {
  946. color: #8bd5ca;
  947. }
  948. .chroma .kp {
  949. color: #c6a0f6;
  950. }
  951. .chroma .kr {
  952. color: #c6a0f6;
  953. }
  954. .chroma .kt {
  955. color: #ed8796;
  956. }
  957. .chroma .n {
  958. }
  959. .chroma .na {
  960. color: #8aadf4;
  961. }
  962. .chroma .nb {
  963. color: #91d7e3;
  964. }
  965. .chroma .bp {
  966. color: #91d7e3;
  967. }
  968. .chroma .nc {
  969. color: #eed49f;
  970. }
  971. .chroma .no {
  972. color: #eed49f;
  973. }
  974. .chroma .nd {
  975. color: #8aadf4;
  976. font-weight: 700;
  977. }
  978. .chroma .ni {
  979. color: #8bd5ca;
  980. }
  981. .chroma .ne {
  982. color: #f5a97f;
  983. }
  984. .chroma .nf {
  985. color: #8aadf4;
  986. }
  987. .chroma .fm {
  988. color: #8aadf4;
  989. }
  990. .chroma .nl {
  991. color: #91d7e3;
  992. }
  993. .chroma .nn {
  994. color: #f5a97f;
  995. }
  996. .chroma .nx {
  997. }
  998. .chroma .py {
  999. color: #f5a97f;
  1000. }
  1001. .chroma .nt {
  1002. color: #c6a0f6;
  1003. }
  1004. .chroma .nv {
  1005. color: #f4dbd6;
  1006. }
  1007. .chroma .vc {
  1008. color: #f4dbd6;
  1009. }
  1010. .chroma .vg {
  1011. color: #f4dbd6;
  1012. }
  1013. .chroma .vi {
  1014. color: #f4dbd6;
  1015. }
  1016. .chroma .vm {
  1017. color: #f4dbd6;
  1018. }
  1019. .chroma .l {
  1020. }
  1021. .chroma .ld {
  1022. }
  1023. .chroma .s {
  1024. color: #a6da95;
  1025. }
  1026. .chroma .sa {
  1027. color: #ed8796;
  1028. }
  1029. .chroma .sb {
  1030. color: #a6da95;
  1031. }
  1032. .chroma .sc {
  1033. color: #a6da95;
  1034. }
  1035. .chroma .dl {
  1036. color: #8aadf4;
  1037. }
  1038. .chroma .sd {
  1039. color: #6e738d;
  1040. }
  1041. .chroma .s2 {
  1042. color: #a6da95;
  1043. }
  1044. .chroma .se {
  1045. color: #8aadf4;
  1046. }
  1047. .chroma .sh {
  1048. color: #6e738d;
  1049. }
  1050. .chroma .si {
  1051. color: #a6da95;
  1052. }
  1053. .chroma .sx {
  1054. color: #a6da95;
  1055. }
  1056. .chroma .sr {
  1057. color: #8bd5ca;
  1058. }
  1059. .chroma .s1 {
  1060. color: #a6da95;
  1061. }
  1062. .chroma .ss {
  1063. color: #a6da95;
  1064. }
  1065. .chroma .m {
  1066. color: #f5a97f;
  1067. }
  1068. .chroma .mb {
  1069. color: #f5a97f;
  1070. }
  1071. .chroma .mf {
  1072. color: #f5a97f;
  1073. }
  1074. .chroma .mh {
  1075. color: #f5a97f;
  1076. }
  1077. .chroma .mi {
  1078. color: #f5a97f;
  1079. }
  1080. .chroma .il {
  1081. color: #f5a97f;
  1082. }
  1083. .chroma .mo {
  1084. color: #f5a97f;
  1085. }
  1086. .chroma .o {
  1087. color: #91d7e3;
  1088. font-weight: 700;
  1089. }
  1090. .chroma .ow {
  1091. color: #91d7e3;
  1092. font-weight: 700;
  1093. }
  1094. .chroma .p {
  1095. }
  1096. .chroma .c {
  1097. color: #6e738d;
  1098. font-style: italic;
  1099. }
  1100. .chroma .ch {
  1101. color: #6e738d;
  1102. font-style: italic;
  1103. }
  1104. .chroma .cm {
  1105. color: #6e738d;
  1106. font-style: italic;
  1107. }
  1108. .chroma .c1 {
  1109. color: #6e738d;
  1110. font-style: italic;
  1111. }
  1112. .chroma .cs {
  1113. color: #6e738d;
  1114. font-style: italic;
  1115. }
  1116. .chroma .cp {
  1117. color: #6e738d;
  1118. font-style: italic;
  1119. }
  1120. .chroma .cpf {
  1121. color: #6e738d;
  1122. font-weight: 700;
  1123. font-style: italic;
  1124. }
  1125. .chroma .g {
  1126. }
  1127. .chroma .gd {
  1128. color: #ed8796;
  1129. background-color: #363a4f;
  1130. }
  1131. .chroma .ge {
  1132. font-style: italic;
  1133. }
  1134. .chroma .gr {
  1135. color: #ed8796;
  1136. }
  1137. .chroma .gh {
  1138. color: #f5a97f;
  1139. font-weight: 700;
  1140. }
  1141. .chroma .gi {
  1142. color: #a6da95;
  1143. background-color: #363a4f;
  1144. }
  1145. .chroma .go {
  1146. }
  1147. .chroma .gp {
  1148. }
  1149. .chroma .gs {
  1150. font-weight: 700;
  1151. }
  1152. .chroma .gu {
  1153. color: #f5a97f;
  1154. font-weight: 700;
  1155. }
  1156. .chroma .gt {
  1157. color: #ed8796;
  1158. }
  1159. .chroma .gl {
  1160. text-decoration: underline;
  1161. }
  1162. .chroma .w {
  1163. }
  1164. .chroma {
  1165. background-color: unset !important;
  1166. }
  1167. .chroma .hl {
  1168. display: flex;
  1169. }
  1170. .chroma .lnt {
  1171. padding: 0 0 0 12px;
  1172. }
  1173. .highlight pre.chroma code {
  1174. padding: 8px 0;
  1175. }
  1176. .highlight pre.chroma .line .cl,
  1177. .chroma .ln {
  1178. padding: 0 10px;
  1179. }
  1180. .chroma .lntd:last-of-type {
  1181. width: 100%;
  1182. }
  1183. ::-webkit-scrollbar-track {
  1184. background: 0 0;
  1185. }
  1186. .list:not(.dark)::-webkit-scrollbar-track {
  1187. background: var(--code-bg);
  1188. }
  1189. ::-webkit-scrollbar-thumb {
  1190. background: var(--tertiary);
  1191. border: 5px solid var(--theme);
  1192. border-radius: var(--radius);
  1193. }
  1194. .list:not(.dark)::-webkit-scrollbar-thumb {
  1195. border: 5px solid var(--code-bg);
  1196. }
  1197. ::-webkit-scrollbar-thumb:hover {
  1198. background: var(--secondary);
  1199. }
  1200. ::-webkit-scrollbar:not(.highlighttable, .highlight table, .gist .highlight) {
  1201. background: var(--theme);
  1202. }
  1203. .post-content .highlighttable td .highlight pre code::-webkit-scrollbar {
  1204. display: none;
  1205. }
  1206. .post-content :not(table) ::-webkit-scrollbar-thumb {
  1207. border: 2px solid var(--code-block-bg);
  1208. background: #717175;
  1209. }
  1210. .post-content :not(table) ::-webkit-scrollbar-thumb:hover {
  1211. background: #a3a3a5;
  1212. }
  1213. .gist table::-webkit-scrollbar-thumb {
  1214. border: 2px solid #fff;
  1215. background: #adadad;
  1216. }
  1217. .gist table::-webkit-scrollbar-thumb:hover {
  1218. background: #707070;
  1219. }
  1220. .post-content table::-webkit-scrollbar-thumb {
  1221. border-width: 2px;
  1222. }
  1223. @media screen and (min-width: 768px) {
  1224. ::-webkit-scrollbar {
  1225. width: 19px;
  1226. height: 11px;
  1227. }
  1228. }
  1229. @media screen and (max-width: 768px) {
  1230. :root {
  1231. --gap: 14px;
  1232. }
  1233. .profile img {
  1234. transform: scale(0.85);
  1235. }
  1236. .first-entry {
  1237. min-height: 260px;
  1238. }
  1239. .archive-month {
  1240. flex-direction: column;
  1241. }
  1242. .archive-year {
  1243. margin-top: 20px;
  1244. }
  1245. .footer {
  1246. padding: calc((var(--footer-height) - var(--gap) - 10px) / 2) var(--gap);
  1247. }
  1248. }
  1249. @media screen and (max-width: 900px) {
  1250. .list .top-link {
  1251. transform: translateY(-5rem);
  1252. }
  1253. }
  1254. @media screen and (max-width: 340px) {
  1255. .share-buttons {
  1256. justify-content: unset;
  1257. }
  1258. }
  1259. @media (prefers-reduced-motion) {
  1260. .terms-tags a:active,
  1261. .button:active,
  1262. .post-entry:active,
  1263. .top-link,
  1264. #searchResults .focus,
  1265. #searchResults li:active {
  1266. transform: none;
  1267. }
  1268. }
  1269. .twitter-tweet {
  1270. margin: auto;
  1271. }
  1272. iframe {
  1273. border-radius: var(--radius) !important;
  1274. }
  1275. .home-info ul {
  1276. padding-inline-start: 20px;
  1277. }
  1278. .entry-cover img {
  1279. border: none;
  1280. }
  1281. .dropdown-menu {
  1282. display:none;
  1283. }
  1284. .post-content a.anchor {
  1285. color: var(--primary);
  1286. line-height:1;
  1287. margin-left: 5px;
  1288. text-decoration:none;
  1289. box-shadow:none;
  1290. }
  1291. .profile_content p{
  1292. margin-bottom: var(--content-gap);
  1293. }
  1294. .profile_content a {
  1295. box-shadow: 0 1px;
  1296. box-decoration-break: clone;
  1297. }
  1298. .media-wrapper {
  1299. margin-bottom: var(--gap);
  1300. }
  1301. .related-posts {
  1302. margin-top: 14px;
  1303. font-size: 90%;
  1304. }
  1305. #search-form input {
  1306. padding: 4px 10px;
  1307. width: 100%;
  1308. color: var(--primary);
  1309. font-weight: 700;
  1310. border: 2px solid var(--tertiary);
  1311. border-radius: var(--radius);
  1312. }
  1313. .social-logo a {
  1314. margin: 10px 10px 10px 0px!important;
  1315. }