/* base ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ *, *::before, *::after { box-sizing: border-box; } body { min-height: 100%; font-family: var(--main-font); background-color: var(--bg-color); color: var(--text-color); } html { scroll-behavior: smooth; } button:focus-visible, a:focus-visible { outline: var(--primary-color) solid 3px; } ::selection { background-color: var(--primary-color); color: var(--bg-color); } @media screen and (min-width: 425px) { body::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar { width: 4px; height: 4px; } ::-webkit-scrollbar-track { background: #0000; } ::-webkit-scrollbar-thumb { background: #aeb7caa1; border-radius: 0px; } ::-webkit-scrollbar-thumb:hover { background: #8a90a1a1; } } /* prose ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ .prose { h1 { font-size: 1.5em; font-weight: bolder; margin: 1em 0 0.5em 0; } h2 { font-size: 1.3em; padding-top: 65px; margin-top: -45px; } h3 { font-size: 1.1em; padding-top: 65px; margin-top: -45px; } h4 { font-size: 1.05em; margin: 30px 0 15px 0; } .zola-anchor { visibility: hidden; margin-left: 0.75em; font-size: 0.85em; } h1, h2, h3, h4, h5, h6 { &:hover a.zola-anchor { visibility: visible; } } p { font-size: 1em; line-height: inherit; word-wrap: break-word; } a { color: var(--primary-color); text-decoration-color: var(--primary-pale-color); text-decoration-thickness: 1.5px; &:hover { text-decoration-color: var(--primary-color); } @media (max-width: 425px) { text-decoration-color: unset; text-decoration-thickness: auto; } } img { max-width: 100%; display: block; margin: 0 auto; border-radius: var(--img-border-radius); } figure { margin: 0 auto; } figcaption { width: 100%; text-align: center; margin: 5px auto; } blockquote { border-left: 3px var(--primary-pale-color) solid; padding-left: 16px; margin: 0 0 24px 0; color: var(--text-pale-color); } li::marker { color: var(--primary-color); } hr { border: none; background-color: var(--primary-pale-color); height: 3px; margin: 36px 0; } table { width: 100%; border-spacing: 0; border: 1px solid var(--primary-pale-color); } thead { background-color: var(--primary-pale-color); } th, td { line-height: 2; text-align: center; border: 1px solid var(--primary-pale-color); padding: 1px 10px; } p>code, li>code, td>code, th>code { font-family: var(--code-font); font-size: 0.8em; padding: 1px 6px; margin: 0 2px; color: var(--primary-color); background-color: var(--primary-pale-color); border-radius: var(--inline-code-border-radius); } pre { font-size: 0.8em; margin: 1.25em 0; padding: 12px 48px 12px 16px; line-height: 1.5; border: 1.5px solid var(--primary-color); overflow: auto; code { font-family: var(--code-font); } &[data-linenos] { padding: 12px 48px 12px 8px; } table { width: 100%; border-collapse: collapse; border: none; th, td { line-height: 1.5; } } table tr td:first-of-type { color: var(--text-pale-color); } table td { padding: 0; padding-right: 48px; text-align: initial; border: initial; } table td:nth-of-type(1) { text-align: right; user-select: none; padding-right: 1em; mark::before { left: -8px; width: calc(100% + 1em + 8px); } } mark { display: block; color: inherit; background-color: transparent; position: relative; overflow: visible; &::before { pointer-events: none; content: ''; position: absolute; top: 0; bottom: 0; width: calc(100% + 48px + 48px); background-color: var(--highlight-mark-color); } } &.mermaid { border: none; } } pre > code > mark::before { width: calc(100% + 48px + 16px); left: -16px; } .codeblock { margin: 1em 0; position: relative; overflow: auto; pre { margin: 0; } .copy { z-index: 9; position: absolute; right: 0.6em; top: 0.6em; width: 24px; height: 24px; padding: 2px; cursor: pointer; background: transparent; border: none; color: var(--text-pale-color); &.copied, &:hover { color: var(--primary-color); } svg { width: 20px; height: 20px; } } } .codeblock-with-filename { margin-top: calc(0px - 1.2em - 24px - 1em - 1.5px); .filename { z-index: 1; position: relative; top: calc(1.2em + 24px + 1em + 1.5px); padding: 12px 16px; line-height: 1.2; color: var(--text-pale-color); border-bottom: 1.5px solid var(--primary-pale-color); } pre>code { display: inline-block; min-width: 100%; margin-top: 3.2em; } } .footnote-definition { display: flex; .footnote-definition-label { position: static; font-size: 1em; line-height: inherit; vertical-align: auto; margin-right: 0.5em; &::after { content: "."; } } p { margin: 0; } button.backlink { border: none; background: none; display: flex; align-items: center; margin-left: 0.5em; color: var(--primary-color); cursor: pointer; } } .callout { line-height: inherit; margin-bottom: 20px; border: 1.5px solid var(--primary-color); padding: 6px 12px; display: flex; gap: 12px; .icon { height: 1.75em; display: flex; align-items: center; } .content { p { margin: 0; +p { margin: 0.2em 0 0.5em; } } } &.note { color: var(--callout-note-color); border-color: var(--callout-note-color); } &.important { color: var(--callout-important-color); border-color: var(--callout-important-color); } &.warning { color: var(--callout-warning-color); border-color: var(--callout-warning-color); } &.alert { color: var(--callout-alert-color); border-color: var(--callout-alert-color); } &.question { color: var(--callout-question-color); border-color: var(--callout-question-color); } &.tip { color: var(--callout-tip-color); border-color: var(--callout-tip-color); } } .mermaid { background: #fff; } } /* prose pages ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ body.prose-page { main { font-size: var(--paragraph-font-size); min-height: 100vh; padding-top: 45px; margin: 0 auto; max-width: var(--main-max-width); display: flex; flex-direction: column; justify-content: space-between; } article { padding: 45px 15px 30px; font-size: var(--paragraph-font-size); line-height: var(--paragraph-line-height); } .giscus { padding: 0 15px; } } /* layout blog list ( homepage / blogpage ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ .layout-list { .category { font-size: 1.3em; margin: 2em 15px 1em; } .post-list { margin-top: 25px; } .post { display: flex; justify-content: space-between; align-items: flex-end; gap: 5px; padding: 6px 15px; margin: 1px 0; border-radius: 2px; font-size: 1.1em; text-decoration: none; color: var(--primary-color); -webkit-tap-highlight-color: transparent; &:hover { background-color: var(--primary-pale-color); } @media (max-width: 768px) { & { font-size: 1em; margin: 2.5px 5px; padding: 5px 10px; } } .date { white-space: nowrap; } } } /* homepage ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ body.homepage { #wrapper { width: 100%; min-height: 100vh; display: flex; justify-content: center; align-items: center; } main { width: 100%; max-width: var(--homepage-max-width); padding: 3em 0 6em; } #info { padding: 0 15px; display: flex; gap: 1em; img { height: var(--avatar-size); width: var(--avatar-size); border-radius: 50%; } #text { font-size: 1.25em; display: flex; flex-direction: column; justify-content: space-around; } #id { margin-left: 0.5em; color: var(--primary-color); } #bio { font-size: 0.85em; } } #links { padding: 0 15px; margin: 1.25em 0 1.75em; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5em 1em; font-size: 1.25em; a, button { text-decoration: none; color: var(--text-color); &:hover { color: var(--primary-color); } } #left { display: flex; flex-wrap: wrap; gap: 1em; a { border-bottom: 1.5px solid var(--primary-color); line-height: 24px; } } #right { display: flex; gap: 0.5em; margin-left: auto; a, button { width: 24px; height: 24px; } button { padding: 0; border: none; background-color: transparent; cursor: pointer; } } @media (max-width: 425px) { #left { gap: 0.75em; } } } #brief { padding: 0 15px; font-size: 1.15em; line-height: 1.5; } } /* header ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ header { z-index: 99; position: fixed; top: 0; width: 100%; height: 45px; background-color: var(--bg-color); border-bottom: 1.5px solid var(--primary-color); @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) { &.blur { background-color: initial; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } } #header-wrapper { height: 100%; max-width: var(--main-max-width); margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; position: relative; } nav { font-size: 1.4em; display: flex; align-items: center; a { color: var(--text-color); text-decoration: none; &:hover { color: var(--primary-color); } } .separator { width: 24px; text-align: center; line-height: 1; cursor: pointer; border: none; padding: 0; background: transparent; margin: 0 0.1em; color: var(--text-color); -webkit-tap-highlight-color: transparent; } .wrap { &.left { margin: 0 0.3em 0 -0.1em; } &.right { margin: 0 0 0 0.3em; } } .wrap-separator { margin: 0 0.5em 0 0.1em; } .fold { display: none; &.shown { display: initial; } } } #btns { display: flex; gap: 1em; align-items: center; padding-top: 1.5px; a, button { width: 24px; height: 24px; border: none; background-color: transparent; padding: 0; text-decoration: none; color: var(--text-color); cursor: pointer; @media (hover: hover) { &:hover { color: var(--primary-color); } } } } #toc-toggle { display: none; @media (max-width: 1024px) { & { display: inline-block; &.active { color: var(--primary-color); } } } } } /* footer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ footer { font-size: 0.95rem; padding: 15px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 15px; color: var(--text-pale-color); .copyright { margin-right: auto; } .credits { margin-left: auto; } a { color: var(--text-pale-color); } @media (max-width: 374px) { & { flex-direction: column; gap: 0; .copyright, .credits { margin: 0; } } } } /* blog page ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ body.blog { #wrapper { margin: 0 auto; max-width: var(--main-max-width); min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; } main { margin: 60px 0; } } /* post page ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ body.post { #wrapper { display: flex; justify-content: space-between; font-size: 18px; } #blank { order: 1; position: sticky; width: calc((100% - var(--main-max-width)) / 2); } main { order: 2; width: 100%; margin: 0 auto; padding-top: 45px; max-width: var(--main-max-width); min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; } article { padding: 0 15px 30px; font-size: var(--paragraph-font-size); line-height: var(--paragraph-line-height); #post-info { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 1em; } #date { color: var(--text-pale-color); margin-bottom: 1em; #publish, #updated { margin-right: 20px; } } #tags { margin-bottom: 1em; display: flex; gap: 1em; flex-wrap: wrap; a { color: var(--primary-color); text-decoration: none; span { font-size: 0.95em; margin-right: 2px; } } } #outdate_alert.hidden { display: none; } } .mermaid { background: #fff; } .giscus { padding: 0 15px; } aside { order: 3; width: calc((100% - var(--main-max-width)) / 2); position: sticky; margin-top: 195px; top: 60px; height: min-content; font-size: var(--aside-font-size); nav { padding: 5px 15px 5px 2em; min-width: 60%; overflow-y: auto; max-height: calc(100vh - 50px - 5em); scrollbar-width: none; &::-webkit-scrollbar { width: 0; } &:hover::-webkit-scrollbar { width: 4px; } } ul { list-style-type: none; padding: 0; line-height: 2; margin: 0; } a { text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-pale-color); position: relative; padding: 0 1em; &.h3 { padding-left: 2.5em; font-size: 0.95em; } &::before { display: block; content: ""; width: 2px; position: absolute; top: 0.6em; bottom: 0.7em; left: 0em; background: transparent; } &:hover, &.active { color: var(--primary-color); } &:hover::before { background-color: var(--primary-color); } } #back-to-top { z-index: 99; height: 28px; padding: 0; position: fixed; bottom: 1.5em; margin-left: 3em; color: var(--text-pale-color); background: transparent; border: none; cursor: pointer; svg { width: 28px; height: 28px; } transform: translateY(-5px) scale(0); transition: transform 0.2s; &.shown { transform: translateY(0px) scale(1); } &:hover { color: var(--primary-color); } } } @media screen and (max-width: 1024px) { aside { position: fixed; right: -100%; &.shown { right: 0; } top: 45px; margin-top: 0; min-width: 260px; height: 100%; background-color: var(--bg-color); box-shadow: rgba(0, 0, 0, 0.08) -2px 8px 8px 0px; nav { padding: 1em 0; } ul { padding-left: 10px; } #back-to-top { display: none; } } @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) { aside.blur { background-color: fade(var(--bg-color), 75%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } } #blank { display: none; } main { margin: 0 auto; } } } /* tag list page ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ body.tag-list { #wrapper { margin: 0 auto; max-width: var(--main-max-width); min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; } main { margin: 85px auto 60px; } .title { width: min-content; font-size: 1.3em; margin: 0 auto; } .tags { margin-top: 40px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; font-size: 1.1em; a { color: var(--primary-color); text-decoration: none; margin: 2em; } } } /* tag single page ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ body.tag-single { #wrapper { margin: 0 auto; max-width: var(--main-max-width); min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; } main { width: 100%; margin: 85px auto 60px; } .title { width: min-content; white-space: nowrap; color: var(--text-color); font-size: 1.3em; margin: 0 auto; margin-bottom: 40px; padding: 0 0 0 60px; a { margin-left: 30px; font-size: 0.5em; color: var(--primary-color); } } .post { display: flex; justify-content: space-between; align-items: flex-end; gap: 5px; padding: 6px 15px; margin: 1px 0; border-radius: 2px; font-size: 1.1em; text-decoration: none; color: var(--primary-color); -webkit-tap-highlight-color: transparent; &:hover { background-color: var(--primary-pale-color); } .date { white-space: nowrap; } @media screen and (max-width: 768px) { & { font-size: 1em; margin: 2.5px 5px; padding: 5px 10px; } } } } /* projects page ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ body.projects { #wrapper { margin: 0 auto; max-width: var(--main-max-width); min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; } main { width: 100%; margin: 90px auto 40px; } .proj { margin: 0px 15px 45px; .name { font-size: 1.2em; margin: 0 0 15px 0; color: var(--primary-color); } .desc { line-height: 1.5; margin: 0 0 10px 0; a { color: var(--primary-color); text-decoration: underline var(--primary-pale-color) 2px; &:hover { text-decoration-color: var(--primary-color); } } p>code { font-family: var(--code-font); font-size: 0.8em; padding: 1px 6px; color: var(--primary-color); background-color: var(--primary-pale-color); border-radius: 4px; } } .more { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1em; .tags { font-size: 0.9em; display: flex; gap: 0.5em 1em; flex-wrap: wrap; div { color: var(--text-pale-color); span { font-size: 0.9em; margin-right: 1.5px; } } } .links { margin-left: auto; display: flex; justify-content: end; gap: 0.5em 1em; a { text-decoration: none; border-bottom: 1.5px solid var(--primary-color); padding: 0 2px; cursor: pointer; color: inherit; &:visited { color: inherit; } &:hover { color: var(--primary-color); } } } } } } /* 404 page ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ body.not-found { height: 100vh; height: 100dvh; display: flex; justify-content: center; align-items: center; .wrapper { display: flex; flex-direction: column; align-items: center; gap: 3em; } .error { display: flex; align-items: center; font-size: 2em; color: var(--text-pale-color); } .spacer { background: var(--text-pale-color); width: 2px; height: 0.75em; margin: 0 0.5em; } .text { font-size: 0.85em; } a { color: var(--primary-color); text-decoration-color: var(--primary-pale-color); &:hover, &:active { text-decoration-color: var(--primary-color); } } } /* normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ html { line-height: 1.15; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } body { margin: 0; } main { display: block; } h1 { font-size: 2em; margin: 0.67em 0; } hr { box-sizing: content-box; height: 0; overflow: visible; } pre { font-family: monospace, monospace; font-size: 1em; } a { background-color: transparent; } abbr[title] { border-bottom: none; text-decoration: underline; text-decoration: underline dotted; } b, strong { font-weight: bolder; } code, kbd, samp { font-family: monospace, monospace; font-size: 1em; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } img { border-style: none; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } button, input { overflow: visible; } button, select { text-transform: none; } button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; appearance: button; } button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; } button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; } fieldset { padding: 0.35em 0.75em 0.625em; } legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } progress { vertical-align: baseline; } textarea { overflow: auto; } [type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; } [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; } [type="search"] { -webkit-appearance: textfield; appearance: textfield; outline-offset: -2px; } [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } details { display: block; } summary { display: list-item; } template { display: none; } [hidden] { display: none; }