Refreshing the theme
Post last updated 3 hours, 12 minutes ago
This time I'll go with Robert Birming's Bearming theme, just because I'm lazy and want to cleanly tests some other things he created.
For posterity, here's the style for the current one:
/* Fonts */
/* Fraunces: optical-size variable serif for headings */
/* Lora: refined variable serif for body reading */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Lora:ital,wght@0,400..700;1,400..700&display=swap");
/* Variables */
:root {
/* Fonts */
--font-main: "Fraunces", serif;
--font-secondary: "Lora", serif;
--font-monospace: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
/* Font sizes */
/* Slightly scaled down from before — Lora renders optically larger than Intel One Mono */
--font-size-h1: 2.25rem;
--font-size-h2: 2rem;
--font-size-h3: 1.75rem;
--font-size-h4: 1.5rem;
--font-size-h5: 1.375rem;
--font-size-h6: 1.25rem;
--font-size-body: 1.125rem;
--font-size-sm: 1rem;
/* Other */
--border-radius: 0.25rem;
/* Fraunces has its own internal spacing — heavy negative tracking looks wrong on it */
--letter-spacing: -0.01em;
/* Tighter column = ~65 chars/line = the reading sweet spot */
--width: 720px;
--transition-duration: 0.2s;
/* Colors - Light Mode */
--background-color: oklch(0.9705 0.0395 92.75);
--accent-color: oklch(0.6988 0.198 40.7);
--text-color: oklch(0.3042 0.0506 119.32);
/* Other colors */
--link-color: var(--accent-color);
--visited-color: oklch(from var(--accent-color) calc(l - 0.15) c h);
--code-background-color: color-mix(in srgb, var(--accent-color) 15%, var(--background-color));
--code-color: var(--background-color);
--blockquote-color: var(--accent-color);
--heading-color: var(--text-color);
}
/* Dark Mode — follows system preference */
@media (prefers-color-scheme: dark) {
:root {
--background-color: oklch(0.2194 0.0909 277.58);
--accent-color: oklch(0.7047 0.1773 49.76);
--text-color: oklch(0.9184 0.0395 92.75);
--link-color: var(--accent-color);
--visited-color: oklch(from var(--accent-color) calc(l - 0.15) c h);
--code-background-color: color-mix(in srgb, var(--accent-color) 15%, var(--background-color));
--code-color: var(--background-color);
--blockquote-color: var(--accent-color);
--heading-color: var(--text-color);
}
}
/* Resets */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
-moz-text-size-adjust: none;
-webkit-text-size-adjust: none;
text-size-adjust: none;
-webkit-font-smoothing: antialiased;
/* Subpixel rendering helps Lora on non-retina screens */
-moz-osx-font-smoothing: grayscale;
}
/* Page styles */
body {
font-family: var(--font-secondary);
font-size: var(--font-size-body);
/* Left-align instead of justify: justified text causes uneven word spacing
("rivers") that actively hurts reading. Hyphens soften the ragged right edge. */
text-align: left;
hyphens: auto;
/* Let the browser kern and size glyphs optically */
font-optical-sizing: auto;
/* Lora has beautiful oldstyle numerals — use them in body text */
font-variant-numeric: oldstyle-nums proportional-nums;
background-color: var(--background-color);
word-wrap: break-word;
overflow-wrap: break-word;
/* 1.75 instead of 2: line-height 2 is too airy for a serif.
1.7–1.8 is the accepted sweet spot for long-form reading. */
line-height: 1.75;
color: var(--text-color);
max-width: var(--width);
margin: 0 auto;
display: flex;
flex-direction: column;
justify-content: center;
min-height: 100vh;
transition: background-color var(--transition-duration) ease, color var(--transition-duration) ease;
}
/* Owl selector */
:is(header, main, footer) * + * {
margin-top: 1.5rem;
}
nav,
main h1:first-of-type,
:is(ul, ol, p) * + * {
margin-top: 0;
}
/* Extra breathing room between paragraphs for reading comfort */
main p + p {
margin-top: 1.25rem;
}
/* Side padding */
header,
main,
footer {
padding-inline: 1.125rem;
}
/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-main);
color: var(--heading-color);
letter-spacing: var(--letter-spacing);
margin-bottom: 0.75rem;
text-align: left;
/* Fraunces is an optical-size font — let it adjust its stroke contrast
and spacing automatically at each size */
font-optical-sizing: auto;
/* Prevent orphaned single words on the last heading line */
text-wrap: balance;
/* Use lining numerals in headings — looks better at display size */
font-variant-numeric: lining-nums;
line-height: 1.25;
}
strong,
b {
color: var(--heading-color);
font-weight: 700;
}
/* Font sizes */
h1 {
font-size: var(--font-size-h1);
}
h2 {
font-size: var(--font-size-h2);
}
h3 {
font-size: var(--font-size-h3);
}
h4 {
font-size: var(--font-size-h4);
}
h5 {
font-size: var(--font-size-h5);
}
h6 {
font-size: var(--font-size-h6);
}
main p {
font-size: var(--font-size-body);
}
small {
font-size: var(--font-size-sm);
}
/* Header - flex wrap for palette row */
header {
display: flex;
justify-content: space-between;
align-items: baseline;
flex-wrap: wrap;
padding-block: 1rem;
}
/* Nav links */
.nav-row {
display: flex;
gap: 0.5rem;
align-items: baseline;
margin: 0;
}
/* Title */
.title h1 {
font-size: var(--font-size-h2);
margin: 0;
color: var(--link-color);
/* Fraunces italic is especially beautiful — use it for the site title */
font-style: italic;
}
/* Nav */
nav :not(:last-child) {
margin-right: 0.5rem;
}
nav p {
font-size: var(--font-size-h6);
}
/* Main */
main > p:last-of-type {
/* text-align: center; */
}
/* Footer */
footer {
padding-block: 2rem !important;
display: flex;
justify-content: space-between;
/* Fraunces italic for footer text — ties it together with the title */
font-family: var(--font-main);
font-style: italic;
font-size: var(--font-size-sm);
& > span {
}
&::before {
content: "CC0 1.0 Universal";
}
&::after {
content: "Everything is a remix.";
}
}
/* Pseudo-elements */
::selection {
background-color: var(--accent-color);
color: var(--background-color);
}
::target-text {
background-color: var(--accent-color);
color: var(--background-color);
}
/* Links besides title */
a {
color: var(--link-color);
cursor: pointer;
position: relative;
overflow: hidden;
border-radius: var(--border-radius);
padding: 0.125em;
text-decoration: underline solid 0.125rem;
/* Slightly more offset — looks better with Lora's descenders */
text-underline-offset: 0.2em;
transition: color var(--transition-duration) ease;
&::before {
content: "";
position: absolute;
inset: 0;
background-color: var(--link-color);
border-radius: inherit;
transform: scaleX(0);
transform-origin: right;
transition: transform var(--transition-duration) ease;
z-index: -1;
}
&:not(.title):hover {
color: var(--background-color);
&::before {
transform: scaleX(1);
transform-origin: left;
}
}
/* Fixed bug: was "¬(nav):visited" (missing colon) */
&:visited {
color: var(--visited-color);
}
}
/* Title link */
a.title {
display: inline-flex;
align-items: baseline;
position: relative;
overflow: hidden;
border-radius: var(--border-radius);
margin: 0 0 0 -0.125em;
padding: 0.125em;
text-decoration: none;
transition: color var(--transition-duration) ease;
/* iOS Clipping Fix */
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
transform: translateZ(0);
-webkit-tap-highlight-color: transparent;
&::before {
content: "";
position: absolute;
inset: 0;
background-color: var(--link-color);
border-radius: inherit;
transform: scaleX(0);
transform-origin: right;
transition: transform var(--transition-duration) ease;
z-index: -1;
}
&:hover {
color: var(--background-color);
&::before {
transform: scaleX(1);
transform-origin: left;
}
}
&:hover h1 {
color: var(--background-color);
}
&:hover .bear {
color: var(--background-color);
}
}
/* Focused element outlines for tabbing navigation */
:focus-visible {
outline: 0.125rem solid var(--accent-color);
z-index: 2;
}
:not(a):focus-visible {
outline-offset: 0.125rem;
}
a:focus-visible {
outline: 0.125rem solid var(--accent-color);
z-index: 2;
}
:focus:not(:focus-visible) {
outline: none;
}
/* External link icon */
a[href]:not(:where(
[href^="#"],
[href^="javascript:" i],
[href^="/"]:not([href^="//"]),
[href*="//balssh.bearblog.dev"]
))::after {
content: "↗";
}
/* Buttons */
button {
margin: 0;
cursor: pointer;
padding: 0.5em;
transition: color var(--transition-duration) ease;
color: var(--text-color);
background: var(--background-color);
border-radius: var(--border-radius);
border: 0.125rem solid var(--text-color);
font-size: var(--font-size-sm);
font-family: var(--font-secondary);
&:not(:last-child) {
margin-right: 0.5rem;
}
}
button:not(.upvote-button) {
position: relative;
overflow: hidden;
background: transparent;
&::before {
content: "";
position: absolute;
inset: 0;
background-color: var(--background-color);
z-index: -1;
}
&::after {
content: "";
position: absolute;
inset: 0;
background-color: var(--text-color);
border-radius: inherit;
transform: scaleX(0);
transform-origin: right;
transition: transform var(--transition-duration) ease;
z-index: -1;
}
&:hover {
color: var(--background-color);
&::after {
transform: scaleX(1);
transform-origin: left;
}
}
}
/* Inline code blocks */
code {
font-family: var(--font-monospace);
/* Slightly smaller — monospace reads large next to Lora */
font-size: 0.9em;
padding: 0.125rem 0.25rem;
background-color: var(--code-background-color);
color: var(--code-color);
border-radius: var(--border-radius);
/* Reset numeric variant for code */
font-variant-numeric: normal;
&::selection,
&::target-text {
background-color: var(--code-color);
color: var(--code-background-color);
}
}
/* Highlight code blocks */
highlight {
border-radius: var(--border-radius);
}
.highlight pre {
white-space: break-spaces;
}
.highlight {
text-align: left;
padding: 0.0625rem 1rem;
background-color: var(--code-background-color);
border-radius: var(--border-radius);
margin-block-start: 1em;
margin-block-end: 1em;
overflow-x: auto;
font-size: var(--font-size-sm);
::selection,
::target-text {
background-color: var(--code-color);
color: var(--code-background-color);
}
}
/* Miscellaneous elements */
time {
font-family: var(--font-monospace);
font-style: normal;
font-size: var(--font-size-sm);
/* Lining tabular nums for timestamps — columns align, easier to scan */
font-variant-numeric: lining-nums tabular-nums;
}
hr {
border: 0;
border-top: 0.125rem dotted var(--accent-color);
}
img {
max-width: 100%;
display: block;
margin: auto;
border-radius: calc(var(--border-radius) * 2);
}
blockquote {
border-left: 0.5em solid var(--blockquote-color);
background-color: color-mix(in srgb, var(--accent-color) 15%, var(--background-color));
padding-left: 1rem;
padding-block: 0.5rem;
margin-inline: 0;
font-style: italic;
/* Lora italic was designed for this — lean into it */
font-size: 1.05em;
}
mark {
background-color: var(--accent-color);
}
input:is([type="checkbox"], [type="radio"]) {
accent-color: var(--accent-color);
}
legend {
color: var(--background-color);
background-color: var(--accent-color);
border-radius: var(--border-radius);
}
/* Tables */
table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
/* Lining tabular nums in tables for column alignment */
font-variant-numeric: lining-nums tabular-nums;
}
thead {
position: sticky;
top: 0;
}
table th {
border-top: 0.0625rem solid var(--accent-color);
border-bottom: 0.0625rem solid var(--accent-color);
border-right: 0.0625rem solid var(--accent-color);
}
table td {
border-bottom: 0.0625rem solid var(--accent-color);
border-right: 0.0625rem solid var(--accent-color);
}
table :is(th, td):first-child {
border-left: 0.0625rem solid var(--accent-color);
}
table thead th {
position: sticky;
top: 0;
background-color: var(--accent-color);
color: var(--background-color);
/* Fraunces italic for table headers — a nice editorial touch */
font-family: var(--font-main);
font-style: italic;
}
th::selection,
th::target-text {
background-color: var(--background-color);
color: var(--accent-color);
}
thead th,
tfoot:is(th, td),
td {
padding: 0.5em;
}
/* Lists */
main ol,
ul:not(.blog-posts) {
list-style-position: outside;
}
:is(ol, ul) > li::marker {
font-weight: 700;
font-family: var(--font-monospace);
font-size: var(--font-size-sm);
}
/* Breathing room between list items for reading comfort */
:is(main ol, main ul:not(.blog-posts)) li + li {
margin-top: 0.4rem;
}
/* Blog post list */
ul.blog-posts {
list-style-type: none;
padding: unset;
}
ul.blog-posts li {
display: flex;
flex-direction: row-reverse;
white-space: nowrap;
&::before {
border-bottom: 0.125rem dotted
color-mix(in srgb, var(--text-color), var(--background-color) 50%);
content: "";
flex-grow: 1;
height: 1em;
order: 0;
margin: 0.125em 1em 0;
}
& span {
order: -1;
/* Lining tabular for dates so columns align */
font-variant-numeric: lining-nums tabular-nums;
}
& a {
overflow: hidden;
text-overflow: ellipsis;
}
}
/* Upvote form */
#upvote-form {
display: flex !important;
}
#upvote-form > small {
margin: 0 auto;
}
button.upvote-button {
& svg {
display: none;
}
&::before {
content: "ʕᵔᴥᵔʔ";
cursor: pointer;
}
&:hover::before {
content: "ʕ•ᴥ•ʔノ♡";
cursor: pointer;
}
&::after {
content: "\00a0toasts";
cursor: pointer;
font-family: var(--font-secondary);
}
font-size: var(--font-size-body);
padding: 0;
border: 0;
background-color: inherit;
color: inherit;
display: flex;
flex-direction: row !important;
align-items: center;
margin-top: 0;
padding: 0.5em;
border-radius: var(--border-radius);
border: 0.125rem solid var(--text-color);
}
button.upvote-button[disabled] {
font-size: var(--font-size-body);
font-family: var(--font-secondary);
color: var(--background-color) !important;
background: var(--accent-color) !important;
border-color: var(--text-color);
cursor: not-allowed;
&::before {
content: "ʕ ꈍᴥꈍʔ ";
cursor: not-allowed;
}
&::after {
content: "\00a0toast(s)\00a0(Thanks!)";
}
}
.upvote-count {
font-size: var(--font-size-body);
font-family: var(--font-secondary);
margin-left: 0.5em;
margin-top: 0 !important;
}
/* Code highlighting */
.highlight .c { font-style: italic; } /* Comment */
.highlight .err { border: 1px solid var(--background-color); } /* Error */
.highlight .k { font-weight: bold; } /* Keyword */
.highlight .ch { font-style: italic; } /* Comment.Hashbang */
.highlight .cm { font-style: italic; } /* Comment.Multiline */
.highlight .cpf { font-style: italic; } /* Comment.PreprocFile */
.highlight .c1 { font-style: italic; } /* Comment.Single */
.highlight .cs { font-style: italic; } /* Comment.Special */
.highlight .ge { font-style: italic; } /* Generic.Emph */
.highlight .ges { font-weight: bold; font-style: italic; } /* Generic.EmphStrong */
.highlight .gh { font-weight: bold; } /* Generic.Heading */
.highlight .gp { font-weight: bold; } /* Generic.Prompt */
.highlight .gs { font-weight: bold; } /* Generic.Strong */
.highlight .gu { font-weight: bold; } /* Generic.Subheading */
.highlight .kc { font-weight: bold; } /* Keyword.Constant */
.highlight .kd { font-weight: bold; } /* Keyword.Declaration */
.highlight .kn { font-weight: bold; } /* Keyword.Namespace */
.highlight .kr { font-weight: bold; } /* Keyword.Reserved */
.highlight .s { font-style: italic; } /* Literal.String */
.highlight .nc { font-weight: bold; } /* Name.Class */
.highlight .ni { font-weight: bold; } /* Name.Entity */
.highlight .ne { font-weight: bold; } /* Name.Exception */
.highlight .nn { font-weight: bold; } /* Name.Namespace */
.highlight .nt { font-weight: bold; } /* Name.Tag */
.highlight .ow { font-weight: bold; } /* Operator.Word */
.highlight .sa { font-style: italic; } /* Literal.String.Affix */
.highlight .sb { font-style: italic; } /* Literal.String.Backtick */
.highlight .sc { font-style: italic; } /* Literal.String.Char */
.highlight .dl { font-style: italic; } /* Literal.String.Delimiter */
.highlight .sd { font-style: italic; } /* Literal.String.Doc */
.highlight .s2 { font-style: italic; } /* Literal.String.Double */
.highlight .se { font-weight: bold; font-style: italic; } /* Literal.String.Escape */
.highlight .sh { font-style: italic; } /* Literal.String.Heredoc */
.highlight .si { font-weight: bold; font-style: italic; } /* Literal.String.Interpol */
.highlight .sx { font-style: italic; } /* Literal.String.Other */
.highlight .sr { font-style: italic; } /* Literal.String.Regex */
.highlight .s1 { font-style: italic; } /* Literal.String.Single */
.highlight .ss { font-style: italic; } /* Literal.String.Symbol */
/* Guestbook (guestbooks.meadow.cafe) */
#guestbooks___guestbook-form-container form {
display: flex;
flex-direction: column;
gap: 0.8em;
margin-block: 1.6em;
}
#guestbooks___guestbook-form-container :is(input, textarea, button) {
font: inherit;
letter-spacing: inherit;
appearance: none;
}
#guestbooks___guestbook-form-container
:is(input[type="text"], input[type="email"], input[type="url"], textarea) {
width: 100%;
padding: 0.65em 0.85em;
color: var(--text-color);
background: var(--background-color);
border: 2px solid var(--border-color);
transition:
border-color 0.15s ease,
background-color 0.15s ease;
}
#guestbooks___guestbook-form-container
:is(
input[type="text"],
input[type="email"],
input[type="url"],
textarea
):focus-visible {
outline: 2px solid var(--link-color);
outline-offset: 2px;
}
#guestbooks___guestbook-form-container textarea {
min-height: 7.5em;
resize: vertical;
}
#guestbooks___guestbook-form-container :is(button, input[type="submit"]) {
align-self: flex-start;
padding: 0.55em 0.9em;
color: var(--text-color);
background: var(--code-background-color);
border: 2px solid var(--text-color);
cursor: pointer;
transition:
background-color var(--transition-duration) ease,
color var(--transition-duration) ease;
&::before,
&::after {
content: none;
}
&:hover {
background-color: color-mix(in srgb, var(--code-background-color) 70%, black);
color: var(--text-color);
}
}
#guestbooks___guestbook-form-container
:is(button, input[type="submit"]):focus-visible {
outline: 2px solid var(--link-color);
outline-offset: 2px;
}
#guestbooks___guestbook-messages-header {
display: flex;
align-items: center;
gap: 0.4em;
margin-block: 2em 1em;
}
#guestbooks___guestbook-messages-header::before {
content: "💬";
translate: 0 1px;
}
#guestbooks___guestbook-messages-container > div {
margin-block: 1.2em;
padding: 1em 1.2em;
font-size: 0.95em;
border: 2px solid var(--border-color);
}
#guestbooks___guestbook-messages-container p {
margin: 0.35em 0 0;
padding: 0;
}
#guestbooks___guestbook-messages-container blockquote {
margin: 0.35em 0 0;
padding: 0;
border: 0;
background: none;
font-style: normal;
}
#guestbooks___guestbook-messages-container blockquote::before {
content: none;
}
#guestbooks___guestbook-messages-container time {
font-size: 0.85em;
opacity: 0.8;
white-space: nowrap;
}
#guestbooks___guestbook-messages-container .guestbook-message-reply {
position: relative;
margin-block: 0.9em 0.2em;
margin-inline-start: 1.6em;
padding: 0.9em 1.1em;
background: var(--code-background-color);
border: 2px solid var(--border-color);
}
#guestbooks___guestbook-messages-container .guestbook-message-reply::before {
content: "";
position: absolute;
top: -1em;
left: -0.9em;
width: 0.7em;
height: 1.6em;
border-left: 2px solid var(--border-color);
border-bottom: 2px solid var(--border-color);
}
/* Responsive styles */
@media (max-width: 768px) {
header {
flex-direction: column;
align-items: center;
padding-top: 1.125rem;
margin-right: 0;
}
nav {
margin: 0;
max-width: 100%;
}
ul.blog-posts li {
flex-direction: column;
white-space: normal;
border-bottom: 0.125rem dotted var(--accent-color);
padding-bottom: 1.5rem;
gap: 0.5rem;
}
ul.blog-posts li::before {
display: none;
}
ul.blog-posts li a {
order: 1;
text-align: left;
overflow: visible;
text-overflow: unset;
}
footer {
flex-direction: column;
align-items: center;
gap: 0.5rem;
& > span,
&::after {
margin-left: 0;
margin-right: 0;
}
}
}
/* Reduced Motion */
@media screen and (prefers-reduced-motion: reduce) {
transition-duration: 0.001ms !important;
}
/* Print styles */
@media print {
body {
color: #000;
background: #fff;
hyphens: auto;
}
a,
main a {
color: #000;
text-decoration: none;
}
blockquote,
code {
margin: 0;
padding: 0 1.5em;
background: #fff;
border: none;
}
nav,
footer,
.tags,
.upvote-button {
display: none !important;
}
}
/* ==========================================================================
GitHub Style Admonitions (Info, Warning and Caution Boxes)
========================================================================== */
blockquote:has(h4), blockquote:has(h5), blockquote:has(h6) {
border: none !important;
border-left: 0.1875rem solid !important;
padding: 0.75rem 0 0.75rem 0.75rem !important;
margin: 3rem 0 !important;
border-radius: 0 !important;
text-align: left !important;
font-family: var(--font-secondary) !important;
font-style: normal !important;
font-size: var(--font-size-sm) !important;
line-height: 1.6 !important;
max-width: var(--width);
}
blockquote:has(h4, h5, h6) p {
margin: 0 !important;
padding: 0 !important;
}
blockquote h4, blockquote h5, blockquote h6 {
margin: 0 0 0.25rem 0 !important;
font-size: var(--font-size-body) !important;
font-family: var(--font-main) !important;
font-style: italic !important;
text-transform: none !important;
font-weight: 700 !important;
display: flex;
align-items: center;
line-height: 1.4 !important;
}
blockquote h4::before, blockquote h5::before, blockquote h6::before {
display: inline-block;
width: 1.25rem;
height: 1.25rem;
margin-right: 0.5rem;
background-repeat: no-repeat;
background-size: contain;
flex-shrink: 0;
}
/* Info (H4) */
blockquote:has(h4) {
border-color: oklch(0.55 0.18 250) !important;
background-color: color-mix(in srgb, oklch(0.55 0.18 250) 15%, var(--background-color)) !important;
}
blockquote h4 { color: oklch(0.55 0.18 250) !important; }
blockquote h4::before {
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230969da'%3E%3Cpath d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'%3E%3C/path%3E%3C/svg%3E") / "Info: ";
}
/* Warning (H5) */
blockquote:has(h5) {
border-color: oklch(0.6 0.14 75) !important;
background-color: color-mix(in srgb, oklch(0.6 0.14 75) 15%, var(--background-color)) !important;
}
blockquote h5 { color: oklch(0.6 0.14 75) !important; }
blockquote h5::before {
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239a6700'%3E%3Cpath d='M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z'%3E%3C/path%3E%3C/svg%3E") / "Warning: ";
}
/* Caution (H6) */
blockquote:has(h6) {
border-color: oklch(0.55 0.2 25) !important;
background-color: color-mix(in srgb, oklch(0.55 0.2 25) 15%, var(--background-color)) !important;
}
blockquote h6 { color: oklch(0.55 0.2 25) !important; }
blockquote h6::before {
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cf222e'%3E%3Cpath d='M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'%3E%3C/path%3E%3C/svg%3E") / "Caution: ";
}
/* Dark mode admonition color overrides */
@media (prefers-color-scheme: dark) {
blockquote:has(h4) {
border-color: oklch(0.7 0.15 250) !important;
background-color: color-mix(in srgb, oklch(0.7 0.15 250) 15%, var(--background-color)) !important;
}
blockquote h4 { color: oklch(0.7 0.15 250) !important; }
blockquote:has(h5) {
border-color: oklch(0.75 0.12 75) !important;
background-color: color-mix(in srgb, oklch(0.75 0.12 75) 15%, var(--background-color)) !important;
}
blockquote h5 { color: oklch(0.75 0.12 75) !important; }
blockquote:has(h6) {
border-color: oklch(0.65 0.18 25) !important;
background-color: color-mix(in srgb, oklch(0.65 0.18 25) 15%, var(--background-color)) !important;
}
blockquote h6 { color: oklch(0.65 0.18 25) !important; }
}
You can reach out by sending me an email or leave a message in my guestbook.