@import "predefined.scss"; *, ::before, ::after { box-sizing: border-box; } // @view-transition { // navigation: auto; // } .skip-to-content-link { position: absolute; z-index: 100; padding: .5em; transform: translateY(-200%); transition: transform 0.3s; background-color: var(--c-bg-alt); &:focus { transform: translateY(0); } } html { -moz-tab-size: 4; tab-size: 4; scroll-behavior: smooth; line-height: 1.7; --c-bg: #f3f6f6; --c-bg-alt: #dee8e5; --c-txt: #545250; --c-txt-alt: #72706e; --c-txt-alt2: rgba(114, 112, 110, .3); --c-txt-em: #333333; --bg-height: 10rem; } body { margin: 0; padding: 1rem; min-height: 100vh; min-height: 100dvh; background-image: linear-gradient(transparent, var(--c-bg) var(--bg-height)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cstyle%3E:root%7Bcolor:%23eaf0ef%7D@media(prefers-color-scheme:dark)%7B:root%7Bcolor:%23232423%7D%7D%3C/style%3E%3Cpath fill='currentColor' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 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 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM49 36a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM33 68a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 240a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm80-176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm112 176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 180a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 84a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E"); } body, button, input, select, textarea { color: var(--c-txt); background-color: var(--c-bg); font-family: $fonts-sans; transition: color .5s, background-color .5s, border-color .5s; } // Auto light/dark mode @media (prefers-color-scheme: dark) { html { --c-bg: #1c1f21; --c-bg-alt: #313a3f; --c-txt: #bababa; --c-txt-alt: #8f8f8f; --c-txt-alt2: rgba(140, 140, 140, .5); --c-txt-em: #dedede; } main img { filter: brightness(.9); transition: filter .3s; &:hover { filter: none; } } } // Global style // h1, h2, h3, h4, h5, h6 { font-weight: bold; margin-bottom: 1rem; } ul, ol { padding-inline-start: 1.25em; } li::marker { font-size: 90%; color: var(--c-txt-alt); } // lsn -> list-style: none .lsn { list-style: none; padding-inline-start: 0; margin: 0; } // tdln -> text-decoration-line: none .tdln, .tdln a { text-decoration-line: none; } .dim { color: var(--c-txt-alt) } .dimmer { color: var(--c-txt-alt2) } a { color: var(--c-txt); text-decoration-color: var(--c-txt-alt2); text-decoration-thickness: 1px; text-underline-offset: 0.25em; transition: color .3s, text-decoration-color .3s, border-color .3s; &:hover { color: $accent; text-decoration-color: $accent; } &:active { text-decoration-style: dashed; } } pre, code, pre tt { font-family: var(--fonts-mono); } pre { padding: .7em 1.1em; overflow: auto; font-size: 90%; line-height: 1.2; white-space: pre; background-color: var(--c-bg-alt); code { padding: 0; margin: 0; background: transparent; } } code { background: var(--c-bg-alt); padding: 0 3px; margin: 0 2px; } blockquote { margin: 1.5rem 1rem; font: italic 125% var(--fonts-serif); color: var(--c-txt-alt); &::before { content: "“"; position: absolute; z-index: -1; line-height: 1; font-size: 500%; transform: translate(-1rem, -1rem); color: var(--c-bg-alt); } p { margin-left: 1.5em; } cite { font-weight: bold; font-style: normal; font-size: 75%; &::before { content: "― "; } } } table { border-collapse: collapse; border-spacing: 0; empty-cells: show; width: 100%; max-width: 100%; th, td { padding: 1.5%; border: 1px solid var(--c-txt-alt2); } th { font-weight: bold; vertical-align: bottom; background-color: var(--c-bg-alt); } } hr { width: auto; height: 2rem; border: none; text-align: center; color: var(--c-txt-alt2); margin-left: 0; &::after { content: "* * *"; display: block; font-size: 150%; } } button, [type=button], [type=reset], [type=submit] { border: 1px solid var(--c-txt-alt); &:hover { border-color: $accent; } &:active { border-style: dashed; } } input[type=text], input[type=email], input[type=url] { width: 100%; border: 1px solid var(--c-txt-alt); border-width: 0 0 1px 0; background-color: transparent; } textarea { width: 100%; max-width: 100%; padding: 2px 6px; border: 1px solid var(--c-txt-alt); background-color: transparent; } .feather { display: inline-block; vertical-align: -.125em; width: 1em; height: 1em; } .wrapper { display: flex; flex-direction: column; } .site-header { display: grid; grid-template-columns: 3fr 1fr; padding-bottom: 1rem; margin-bottom: .5rem; line-height: 1.2; border-bottom: 1px solid var(--c-bg-alt); // view-transition-name: site-header; } .site-title { font-weight: bold; } .site-nav { display: none; flex-grow: 1; text-align: center; a { position: relative; margin: 0 .5rem; &.active::after { content: '*'; position: absolute; top: 0; right: -.5em; font-size: 90%; color: $accent; } } } .rss-icon { text-align: right; } .site-main { flex: 1; } .site-footer { padding-top: 1rem; margin-top: 2rem; font-size: 80%; border-top: 1px solid var(--c-bg-alt); // view-transition-name: site-footer; } .page-title { max-width: 48em; margin: auto; } h1 { margin: 1rem 0 .25rem; font-size: 175%; line-height: 1.4; } .post-info { font-size: 85%; margin-bottom: 1rem; a { margin-right: .25em; &::before { content: "#"; } } } .content { max-width: 48em; margin: auto; overflow-wrap: break-word; figure { height: auto; margin: 0 0 .25rem; text-align: center; } figcaption>p { margin: 0 0 1em; font-size: 75%; color: var(--c-txt-alt); &::before { content: "▲"; margin-right: .25em; color: var(--c-txt-alt2); } } figure.left { float: left; margin-right: 1em; max-width: 40%; text-align: left; } figure.right { float: right; margin-left: 1em; max-width: 40%; text-align: right; } img { display: inline-block; max-width: 100%; height: auto; margin: auto; } video, iframe { max-width: 100%; height: auto; } } // single.html // .toc-wrapper { padding: .5rem; margin: 1em 0; border: 1px dashed var(--c-bg-alt); font-size: 90%; } .footnotes { padding: .5rem .75rem; margin-top: 1.5rem; font-size: 80%; background: var(--c-bg-alt); &::before { content: "Footnotes"; font-weight: bold; font-style: italic; } hr { display: none; } ol, p { margin: 0; } } a.footnote-backref { text-decoration: none; } a.footnote-ref { font-size: 80%; text-decoration: none; &::before { content: "["; } &::after { content: "]"; } &:hover { color: $accent; } } .post-footer { margin-top: 3rem; font-size: 90%; .post-item { padding: 0; } } // list.html // .section { max-width: 48em; margin: 1.5rem auto 0; } .section-title { display: flex; justify-content: space-between; align-items: center; color: var(--c-txt-alt); h2 { margin: 0; } span { font-size: 120%; } } .post-item { display: flex; align-items: center; gap: .5em; padding: .25em 0; time { flex-shrink: 0; } } .dotted-line { flex: 1; border-top: 2px dotted var(--c-bg-alt); } .album-row { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .5em; } .img-tile { height: 100px; width: auto; max-width: 100%; object-fit: cover; } .home-photo-group { display: flex; gap: .5em; overflow-x: hidden; } .home-photo-item { max-height: 50px; width: auto; } @import "syntax.scss", "partials/comments"; @media all and (min-width: 55em) { html { --bg-height: 13rem; } .site-header { grid-template-columns: 1fr 2fr 1fr; } .site-nav { display: block; } .site-main { margin-top: 2rem; } .site-footer { display: flex; justify-content: space-between; } } @media all and (min-width: 79em) { html { --bg-height: 18rem; } .site-main { margin-top: 5rem; } .page-title { max-width: 100%; margin-bottom: 2rem; text-align: center; } figure.big { width: 76rem; margin: 2rem 0 2rem -14rem; } figure.left { margin-left: -14rem; } figure.right { margin-right: -14rem; } }