mirror of
https://github.com/prdlk/website.git
synced 2026-08-03 09:51:41 +00:00
fix(ui): remove deleted components
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
@import "@pagefind/component-ui/css" layer(pagefind);
|
||||
|
||||
:root {
|
||||
--pf-text-muted: var(--color-global-text);
|
||||
--pf-background: var(--color-global-bg);
|
||||
--pf-border-focus: var(--color-accent-2);
|
||||
--pf-outline-focus: var(--color-accent);
|
||||
--pf-outline-offset: none;
|
||||
--pf-font: var(--font-mono);
|
||||
--pf-text: var(--color-global-text);
|
||||
--pf-text-secondary: var(--color-muted);
|
||||
--pf-skeleton: var(--color-global-bg);
|
||||
--pf-icon-search: url("data:image/svg+xml,%3Csvg fill='none' height='16' width='16' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath d='M0 0h24v24H0z' stroke='none'%3E%3C/path%3E%3Cpath d='M3 10a7 7 0 1 0 14 0 7 7 0 1 0-14 0M21 21l-6-6'%3E%3C/path%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
.pf-trigger-btn {
|
||||
--pf-background: #0000;
|
||||
--pf-border-focus: #0000;
|
||||
--pf-hover: var(--color-accent);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: calc(var(--spacing) * 9);
|
||||
height: calc(var(--spacing) * 9);
|
||||
padding: 8px;
|
||||
accent-color: var(--color-accent);
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
|
||||
&:hover {
|
||||
@media (hover: hover) {
|
||||
--pf-text-muted: var(--color-accent);
|
||||
color: var(--color-accent);
|
||||
}
|
||||
}
|
||||
&:focus-visible {
|
||||
outline: auto;
|
||||
}
|
||||
|
||||
.pf-trigger-icon {
|
||||
width: calc(var(--spacing) * 7);
|
||||
height: calc(var(--spacing) * 7);
|
||||
}
|
||||
}
|
||||
|
||||
dialog.pf-modal::backdrop {
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.pf-modal-body {
|
||||
--pf-hover: var(--color-global-bg);
|
||||
|
||||
.pf-result-link,
|
||||
.pf-heading-link {
|
||||
background-size: 100% 6px;
|
||||
background-position: bottom;
|
||||
background-repeat: repeat-x;
|
||||
background-image: linear-gradient(
|
||||
transparent,
|
||||
transparent 5px,
|
||||
var(--color-global-text) 5px,
|
||||
var(--color-global-text)
|
||||
);
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
background-image: linear-gradient(
|
||||
transparent,
|
||||
transparent 4px,
|
||||
var(--color-link) 4px,
|
||||
var(--color-link)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
.pf-heading-link {
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.pf-heading-excerpt {
|
||||
mark {
|
||||
--pf-mark: var(--color-accent-2);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pf-keyboard-hints {
|
||||
kbd {
|
||||
color: var(--color-zinc-800);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
.admonition {
|
||||
--admonition-color: var(--tw-prose-quotes);
|
||||
@apply border-s-2 border-(--admonition-color) py-4 ps-4;
|
||||
|
||||
.admonition-title {
|
||||
@apply my-0! flex items-center gap-2 text-base font-bold text-(--admonition-color) capitalize;
|
||||
&:before {
|
||||
@apply inline-block h-4 w-4 shrink-0 overflow-visible bg-(--admonition-color) align-middle content-[''];
|
||||
mask-size: contain;
|
||||
mask-position: center;
|
||||
mask-repeat: no-repeat;
|
||||
}
|
||||
}
|
||||
|
||||
.admonition-content {
|
||||
> :last-child {
|
||||
@apply mb-0!;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-admonition-type="note"] {
|
||||
--admonition-color: var(--color-blue-400);
|
||||
@apply bg-blue-400/5;
|
||||
|
||||
.admonition-title::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%3E%3Cpath fill='var(--admonitions-color-tip)' 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");
|
||||
}
|
||||
}
|
||||
|
||||
&[data-admonition-type="tip"] {
|
||||
--admonition-color: var(--color-lime-500);
|
||||
@apply bg-lime-500/5;
|
||||
|
||||
.admonition-title::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%3E%3Cpath d='M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z'%3E%3C/path%3E%3C/svg%3E");
|
||||
}
|
||||
}
|
||||
|
||||
&[data-admonition-type="important"] {
|
||||
--admonition-color: var(--color-purple-400);
|
||||
@apply bg-purple-400/5;
|
||||
|
||||
.admonition-title::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%3E%3Cpath d='M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z'%3E%3C/path%3E%3C/svg%3E");
|
||||
}
|
||||
}
|
||||
|
||||
&[data-admonition-type="caution"] {
|
||||
--admonition-color: var(--color-orange-400);
|
||||
@apply bg-orange-400/5;
|
||||
|
||||
.admonition-title::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%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");
|
||||
}
|
||||
}
|
||||
|
||||
&[data-admonition-type="warning"] {
|
||||
--admonition-color: var(--color-red-500);
|
||||
@apply bg-red-500/5;
|
||||
|
||||
.admonition-title::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
.github-card {
|
||||
@apply bg-global-text/5 rounded-md px-4 py-3;
|
||||
|
||||
.gh-title {
|
||||
@apply relative flex items-center gap-2 text-base;
|
||||
|
||||
.gh-avatar {
|
||||
@apply bg-global-text/20 h-6 w-6 flex-none rounded-full bg-none bg-cover bg-center;
|
||||
}
|
||||
.gh-text {
|
||||
@apply line-clamp-2;
|
||||
&:after {
|
||||
@apply absolute inset-0 content-[''];
|
||||
}
|
||||
}
|
||||
.gh-icon {
|
||||
@apply bg-global-text pointer-events-none ms-auto h-6 w-6 flex-none;
|
||||
mask:
|
||||
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='31' height='32' viewBox='0 0 496 512'><path fill='%23a1f7cb' d='M165.9 397.4c0 2-2.3 3.6-5.2 3.6c-3.3.3-5.6-1.3-5.6-3.6c0-2 2.3-3.6 5.2-3.6c3-.3 5.6 1.3 5.6 3.6m-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9c2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3m44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9c.3 2 2.9 3.3 5.9 2.6c2.9-.7 4.9-2.6 4.6-4.6c-.3-1.9-3-3.2-5.9-2.9M244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2c12.8 2.3 17.3-5.6 17.3-12.1c0-6.2-.3-40.4-.3-61.4c0 0-70 15-84.7-29.8c0 0-11.4-29.1-27.8-36.6c0 0-22.9-15.7 1.6-15.4c0 0 24.9 2 38.6 25.8c21.9 38.6 58.6 27.5 72.9 20.9c2.3-16 8.8-27.1 16-33.7c-55.9-6.2-112.3-14.3-112.3-110.5c0-27.5 7.6-41.3 23.6-58.9c-2.6-6.5-11.1-33.3 2.6-67.9c20.9-6.5 69 27 69 27c20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27c13.7 34.7 5.2 61.4 2.6 67.9c16 17.7 25.8 31.5 25.8 58.9c0 96.5-58.9 104.2-114.8 110.5c9.2 7.9 17 22.9 17 46.4c0 33.7-.3 75.4-.3 83.6c0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252C496 113.3 383.5 8 244.8 8M97.2 352.9c-1.3 1-1 3.3.7 5.2c1.6 1.6 3.9 2.3 5.2 1c1.3-1 1-3.3-.7-5.2c-1.6-1.6-3.9-2.3-5.2-1m-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9c1.6 1 3.6.7 4.3-.7c.7-1.3-.3-2.9-2.3-3.9c-2-.6-3.6-.3-4.3.7m32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2c2.3 2.3 5.2 2.6 6.5 1c1.3-1.3.7-4.3-1.3-6.2c-2.2-2.3-5.2-2.6-6.5-1m-11.4-14.7c-1.6 1-1.6 3.6 0 5.9c1.6 2.3 4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2c-1.4-2.3-4-3.3-5.6-2'/%3E%3C/svg%3E")
|
||||
center center / 24px auto no-repeat;
|
||||
}
|
||||
}
|
||||
.gh-description {
|
||||
@apply mt-4 leading-tight;
|
||||
}
|
||||
.gh-chips {
|
||||
@apply mt-4 flex flex-wrap items-center gap-4;
|
||||
|
||||
.gh-stars,
|
||||
.gh-forks,
|
||||
.gh-license,
|
||||
.gh-followers,
|
||||
.gh-repositories {
|
||||
@apply flex items-center gap-x-1;
|
||||
&:before {
|
||||
@apply bg-global-text block h-5 w-5 content-[''];
|
||||
mask: var(--chip-image) center center / 16px auto no-repeat;
|
||||
}
|
||||
}
|
||||
.gh-stars {
|
||||
--chip-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 0 16 16' version='1.1' width='16'><path d='M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z'/></svg>");
|
||||
}
|
||||
.gh-forks {
|
||||
--chip-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 0 16 16' version='1.1' width='16'><path d='M5 5.372v.878c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75v-.878a2.25 2.25 0 1 1 1.5 0v.878a2.25 2.25 0 0 1-2.25 2.25h-1.5v2.128a2.251 2.251 0 1 1-1.5 0V8.5h-1.5A2.25 2.25 0 0 1 3.5 6.25v-.878a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-3 8.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z'/></svg>");
|
||||
}
|
||||
.gh-license {
|
||||
--chip-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 0 16 16' version='1.1' width='16'><path d='M8.75.75V2h.985c.304 0 .603.08.867.231l1.29.736c.038.022.08.033.124.033h2.234a.75.75 0 0 1 0 1.5h-.427l2.111 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.006.005-.01.01-.045.04c-.21.176-.441.327-.686.45C14.556 10.78 13.88 11 13 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L12.178 4.5h-.162c-.305 0-.604-.079-.868-.231l-1.29-.736a.245.245 0 0 0-.124-.033H8.75V13h2.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.5V3.5h-.984a.245.245 0 0 0-.124.033l-1.289.737c-.265.15-.564.23-.869.23h-.162l2.112 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.016.015-.045.04c-.21.176-.441.327-.686.45C4.556 10.78 3.88 11 3 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L2.178 4.5H1.75a.75.75 0 0 1 0-1.5h2.234a.249.249 0 0 0 .125-.033l1.288-.737c.265-.15.564-.23.869-.23h.984V.75a.75.75 0 0 1 1.5 0Zm2.945 8.477c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327Zm-10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327Z'/></svg>");
|
||||
}
|
||||
.gh-followers {
|
||||
--chip-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' text='muted' height='16' viewBox='0 0 16 16' version='1.1' width='16'><path d='M2 5.5a3.5 3.5 0 1 1 5.898 2.549 5.508 5.508 0 0 1 3.034 4.084.75.75 0 1 1-1.482.235 4 4 0 0 0-7.9 0 .75.75 0 0 1-1.482-.236A5.507 5.507 0 0 1 3.102 8.05 3.493 3.493 0 0 1 2 5.5ZM11 4a3.001 3.001 0 0 1 2.22 5.018 5.01 5.01 0 0 1 2.56 3.012.749.749 0 0 1-.885.954.752.752 0 0 1-.549-.514 3.507 3.507 0 0 0-2.522-2.372.75.75 0 0 1-.574-.73v-.352a.75.75 0 0 1 .416-.672A1.5 1.5 0 0 0 11 5.5.75.75 0 0 1 11 4Zm-5.5-.5a2 2 0 1 0-.001 3.999A2 2 0 0 0 5.5 3.5Z'/></svg>");
|
||||
}
|
||||
.gh-repositories {
|
||||
--chip-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 0 16 16' version='1.1' width='16'><path d='M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z'/></svg>");
|
||||
}
|
||||
.gh-language,
|
||||
.gh-region {
|
||||
@apply ms-auto;
|
||||
}
|
||||
}
|
||||
|
||||
&.gh-loading {
|
||||
.gh-title .gh-avatar,
|
||||
.gh-description,
|
||||
.gh-chips span {
|
||||
@apply bg-global-text/50 animate-pulse rounded-xl text-transparent;
|
||||
}
|
||||
.gh-chips span:before {
|
||||
@apply bg-transparent;
|
||||
}
|
||||
}
|
||||
|
||||
&.gh-error {
|
||||
.gh-avatar,
|
||||
.gh-description,
|
||||
.gh-chips {
|
||||
@apply hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
@layer theme, base, pagefind, components, utilities;
|
||||
|
||||
@import "tailwindcss/theme.css" layer(theme);
|
||||
@import "tailwindcss/preflight.css" layer(base);
|
||||
@import "tailwindcss/utilities.css" layer(utilities);
|
||||
|
||||
/* tailwind to ignore satori generated og-image */
|
||||
@source not "../pages/og-image";
|
||||
/* config for tailwindcss-typography plugin */
|
||||
@config "../../tailwind.config.ts";
|
||||
|
||||
/* use a selector-based strategy for dark mode */
|
||||
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
|
||||
|
||||
/* register custom colour properties */
|
||||
@property --color-global-bg {
|
||||
syntax: "<color>";
|
||||
inherits: true;
|
||||
initial-value: oklch(98.48% 0 0);
|
||||
}
|
||||
@property --color-global-text {
|
||||
syntax: "<color>";
|
||||
inherits: true;
|
||||
initial-value: oklch(26.99% 0.0096 235.05);
|
||||
}
|
||||
@property --color-muted {
|
||||
syntax: "<color>";
|
||||
inherits: true;
|
||||
initial-value: oklch(44.6% 0.03 256.802);
|
||||
}
|
||||
@property --color-link {
|
||||
syntax: "<color>";
|
||||
inherits: true;
|
||||
initial-value: oklch(55.44% 0.0431 185.69);
|
||||
}
|
||||
@property --color-accent {
|
||||
syntax: "<color>";
|
||||
inherits: true;
|
||||
initial-value: oklch(55.27% 0.195 19.06);
|
||||
}
|
||||
@property --color-accent-2 {
|
||||
syntax: "<color>";
|
||||
inherits: true;
|
||||
initial-value: oklch(18.15% 0 0);
|
||||
}
|
||||
@property --color-quote {
|
||||
syntax: "<color>";
|
||||
inherits: true;
|
||||
initial-value: oklch(55.27% 0.195 19.06);
|
||||
}
|
||||
|
||||
/* you could refactor below to use light-dark(), depending on your target audience */
|
||||
@theme {
|
||||
--color-global-bg: oklch(98.48% 0 0);
|
||||
--color-global-text: oklch(26.99% 0.0096 235.05);
|
||||
--color-muted: oklch(44.6% 0.03 256.802);
|
||||
--color-link: oklch(55.44% 0.0431 185.69);
|
||||
--color-accent: oklch(55.27% 0.195 19.06);
|
||||
--color-accent-2: oklch(18.15% 0 0);
|
||||
--color-quote: oklch(55.27% 0.195 19.06);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
html {
|
||||
color-scheme: light dark;
|
||||
accent-color: var(--color-accent);
|
||||
scrollbar-gutter: stable;
|
||||
|
||||
&[data-theme="light"] {
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
&[data-theme="dark"] {
|
||||
color-scheme: dark;
|
||||
--color-global-bg: oklch(23.64% 0.0045 248);
|
||||
--color-global-text: oklch(83.54% 0 264);
|
||||
--color-muted: oklch(70.7% 0.022 261.325);
|
||||
--color-link: oklch(70.44% 0.1133 349);
|
||||
--color-accent: oklch(70.91% 0.1415 163.7);
|
||||
--color-accent-2: oklch(94.66% 0 0);
|
||||
--color-quote: oklch(94.8% 0.106 136.49);
|
||||
}
|
||||
|
||||
--color-mode-transition-duration: 300ms;
|
||||
--color-mode-transition-easing: ease-in-out;
|
||||
|
||||
transition:
|
||||
--color-global-bg var(--color-mode-transition-duration) var(--color-mode-transition-easing),
|
||||
--color-global-text var(--color-mode-transition-duration) var(--color-mode-transition-easing),
|
||||
--color-muted var(--color-mode-transition-duration) var(--color-mode-transition-easing),
|
||||
--color-link var(--color-mode-transition-duration) var(--color-mode-transition-easing),
|
||||
--color-accent var(--color-mode-transition-duration) var(--color-mode-transition-easing),
|
||||
--color-accent-2 var(--color-mode-transition-duration) var(--color-mode-transition-easing),
|
||||
--color-quote var(--color-mode-transition-duration) var(--color-mode-transition-easing);
|
||||
}
|
||||
|
||||
:target {
|
||||
scroll-margin-block: 5ex;
|
||||
}
|
||||
|
||||
@view-transition {
|
||||
navigation: auto;
|
||||
}
|
||||
|
||||
/* Astro image responsive styles, modified from -> https://docs.astro.build/en/guides/images/#responsive-image-styles */
|
||||
:where([data-astro-image]) {
|
||||
object-fit: var(--fit);
|
||||
object-position: var(--pos);
|
||||
}
|
||||
[data-astro-image="full-width"] {
|
||||
width: 100%;
|
||||
}
|
||||
[data-astro-image="constrained"] {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
@import "./components/admonition.css";
|
||||
@import "./components/github-card.css";
|
||||
|
||||
.cactus-link {
|
||||
@apply hover:decoration-link underline underline-offset-2 hover:decoration-2;
|
||||
}
|
||||
|
||||
.title {
|
||||
@apply text-accent-2 text-2xl font-semibold;
|
||||
}
|
||||
}
|
||||
|
||||
@utility prose {
|
||||
--tw-prose-body: var(--color-global-text);
|
||||
--tw-prose-bold: var(--color-global-text);
|
||||
--tw-prose-bullets: var(--color-global-text);
|
||||
--tw-prose-code: var(--color-global-text);
|
||||
--tw-prose-headings: var(--color-accent-2);
|
||||
--tw-prose-hr: 0.5px dashed #666;
|
||||
--tw-prose-links: var(--color-global-text);
|
||||
--tw-prose-quotes: var(--color-quote);
|
||||
--tw-prose-th-borders: #666;
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
pre[class*='language-'] {
|
||||
color: theme('colors.zinc.100');
|
||||
}
|
||||
|
||||
.token.tag,
|
||||
.token.class-name,
|
||||
.token.selector,
|
||||
.token.selector .class,
|
||||
.token.selector.class,
|
||||
.token.function {
|
||||
color: theme('colors.pink.400');
|
||||
}
|
||||
|
||||
.token.attr-name,
|
||||
.token.keyword,
|
||||
.token.rule,
|
||||
.token.pseudo-class,
|
||||
.token.important {
|
||||
color: theme('colors.zinc.300');
|
||||
}
|
||||
|
||||
.token.module {
|
||||
color: theme('colors.pink.400');
|
||||
}
|
||||
|
||||
.token.attr-value,
|
||||
.token.class,
|
||||
.token.string,
|
||||
.token.property {
|
||||
color: theme('colors.teal.300');
|
||||
}
|
||||
|
||||
.token.punctuation,
|
||||
.token.attr-equals {
|
||||
color: theme('colors.zinc.500');
|
||||
}
|
||||
|
||||
.token.unit,
|
||||
.language-css .token.function {
|
||||
color: theme('colors.sky.200');
|
||||
}
|
||||
|
||||
.token.comment,
|
||||
.token.operator,
|
||||
.token.combinator {
|
||||
color: theme('colors.zinc.400');
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
@import 'tailwindcss/base';
|
||||
@import 'tailwindcss/components';
|
||||
@import './prism.css';
|
||||
@import 'tailwindcss/utilities';
|
||||
Reference in New Issue
Block a user