427 lines
9.9 KiB
CSS
427 lines
9.9 KiB
CSS
@import "tailwindcss";
|
|
@import "katex/dist/katex.min.css";
|
|
@import "./article.css";
|
|
|
|
@plugin 'tailwindcss-animate';
|
|
@plugin '@tailwindcss/typography';
|
|
|
|
@variant dark (&:is(.dark *));
|
|
|
|
@font-face {
|
|
font-family: "Heliotrope";
|
|
src: url("/webfonts/heliotrope_3_regular.woff2") format("woff2");
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Heliotrope";
|
|
src: url("/webfonts/heliotrope_3_italic.woff2") format("woff2");
|
|
font-weight: 400;
|
|
font-style: italic;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Heliotrope";
|
|
src: url("/webfonts/heliotrope_3_bold.woff2") format("woff2");
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Heliotrope";
|
|
src: url("/webfonts/heliotrope_3_bold_italic.woff2") format("woff2");
|
|
font-weight: 700;
|
|
font-style: italic;
|
|
font-display: swap;
|
|
}
|
|
|
|
@theme {
|
|
--font-fraunces:
|
|
"Fraunces", Georgia, Cambria, "Times New Roman", Times, serif;
|
|
--font-heliotrope:
|
|
"Heliotrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
Roboto, Oxygen;
|
|
--font-inter:
|
|
"Heliotrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
Roboto, Oxygen;
|
|
--font-sans:
|
|
"Hubot Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
Roboto, Oxygen;
|
|
--font-mono:
|
|
"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
"Liberation Mono";
|
|
--font-mona: "Mona Sans", system-ui, -apple-system, BlinkMacSystemFont;
|
|
|
|
--color-background: hsl(var(--background));
|
|
--color-foreground: hsl(var(--foreground));
|
|
--color-foreground2: hsl(var(--foreground-2));
|
|
|
|
--color-card: hsl(var(--card));
|
|
--color-card-foreground: hsl(var(--card-foreground));
|
|
|
|
--color-popover: hsl(var(--popover));
|
|
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
|
|
--color-primary: hsl(var(--primary));
|
|
--color-primary-900: hsl(var(--primary-900));
|
|
--color-primary-gradient: hsl(var(--primary-gradient));
|
|
--color-primary-foreground: hsl(var(--primary-foreground));
|
|
|
|
--color-secondary: hsl(var(--secondary));
|
|
--color-secondary-gradient: hsl(var(--secondary-gradient));
|
|
--color-tertiary-gradient: hsl(var(--tertiary-gradient));
|
|
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
|
|
--color-muted: hsl(var(--muted));
|
|
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
|
|
--color-accent: hsl(var(--accent));
|
|
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
|
|
--color-destructive: hsl(var(--destructive));
|
|
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
|
|
--color-border: hsl(var(--border));
|
|
--color-input: hsl(var(--input));
|
|
--color-ring: hsl(var(--ring));
|
|
|
|
--color-chart-1: hsl(var(--chart-1));
|
|
--color-chart-2: hsl(var(--chart-2));
|
|
--color-chart-3: hsl(var(--chart-3));
|
|
--color-chart-4: hsl(var(--chart-4));
|
|
--color-chart-5: hsl(var(--chart-5));
|
|
|
|
--color-sand-50: hsl(var(--sand-50));
|
|
--color-sand-100: hsl(var(--sand-100));
|
|
--color-sand-600: hsl(var(--sand-600));
|
|
--color-sand-700: hsl(var(--sand-700));
|
|
|
|
--color-mint-50: hsl(var(--mint-50));
|
|
--color-mint: hsl(var(--mint));
|
|
|
|
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
--animate-marquee: marquee 25s linear infinite;
|
|
|
|
@keyframes accordion-down {
|
|
from {
|
|
height: 0;
|
|
}
|
|
to {
|
|
height: var(--radix-accordion-content-height);
|
|
}
|
|
}
|
|
@keyframes accordion-up {
|
|
from {
|
|
height: var(--radix-accordion-content-height);
|
|
}
|
|
to {
|
|
height: 0;
|
|
}
|
|
}
|
|
@keyframes marquee {
|
|
0% {
|
|
transform: translateX(0%);
|
|
}
|
|
100% {
|
|
transform: translateX(-100%);
|
|
}
|
|
}
|
|
}
|
|
|
|
@utility container {
|
|
margin-inline: auto;
|
|
padding-inline: 1.5rem;
|
|
@media (width >= --theme(--breakpoint-sm)) {
|
|
max-width: none;
|
|
}
|
|
@media (width >= 1400px) {
|
|
max-width: 1228px;
|
|
}
|
|
}
|
|
|
|
/*
|
|
The default border color has changed to `currentColor` in Tailwind CSS v4,
|
|
so we've added these compatibility styles to make sure everything still
|
|
looks the same as it did with Tailwind CSS v3.
|
|
|
|
If we ever want to remove these styles, we need to add an explicit border
|
|
color utility to any element that depends on these defaults.
|
|
*/
|
|
@layer base {
|
|
*,
|
|
::after,
|
|
::before,
|
|
::backdrop,
|
|
::file-selector-button {
|
|
border-color: var(--color-gray-200, currentColor);
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
html,
|
|
body {
|
|
overflow-x: hidden;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
@apply font-inter relative;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-family: var(--font-fraunces);
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.mini-title {
|
|
@apply text-accent-foreground font-mono text-sm font-semibold tracking-widest;
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
[class*="border"] {
|
|
@apply border-border;
|
|
}
|
|
|
|
.social-links {
|
|
@apply flex items-center gap-4;
|
|
}
|
|
|
|
.social-icon-link {
|
|
color: color-mix(in srgb, currentColor 72%, transparent);
|
|
transition: color 180ms ease, transform 180ms ease;
|
|
}
|
|
|
|
.social-icon-link:hover {
|
|
color: var(--social-color);
|
|
transform: translateY(-1px);
|
|
}
|
|
}
|
|
|
|
@layer base {
|
|
:root {
|
|
--background: 0 0% 98%;
|
|
--foreground: 240 10% 4%;
|
|
--card: 0 0% 100%;
|
|
--card-foreground: 240 10% 4%;
|
|
--popover: 0 0% 100%;
|
|
--popover-foreground: 240 10% 4%;
|
|
|
|
--primary: 188 46% 39%;
|
|
--primary-900: 188 47% 26%;
|
|
--primary-foreground: 0 0% 100%;
|
|
--secondary: 0 0% 96%;
|
|
--secondary-foreground: 188 44% 34%;
|
|
--muted: 0 0% 96%;
|
|
--muted-foreground: 0 0% 49%;
|
|
--accent: 187 50% 93%;
|
|
--accent-foreground: 188 44% 34%;
|
|
--destructive: 0 84.2% 60.2%;
|
|
--destructive-foreground: 0 0% 100%;
|
|
--border: 0 0% 0% / 0.09;
|
|
--input: 240 6% 23%;
|
|
--ring: 188 46% 39%;
|
|
--chart-1: 12 76% 61%;
|
|
--chart-2: 173 58% 39%;
|
|
--chart-3: 197 37% 24%;
|
|
--chart-4: 43 74% 66%;
|
|
--chart-5: 27 87% 67%;
|
|
--primary-gradient: 188 50% 55%;
|
|
--secondary-gradient: 202 42% 68%;
|
|
--tertiary-gradient: 174 41% 70%;
|
|
}
|
|
|
|
.dark {
|
|
--background: 240 10% 4%;
|
|
--foreground: 0 0% 98%;
|
|
--card: 240 10% 4%;
|
|
--card-foreground: 0 0% 98%;
|
|
--popover: 240 10% 4%;
|
|
--popover-foreground: 0 0% 98%;
|
|
|
|
--primary: 188 55% 68%;
|
|
--primary-900: 188 58% 78%;
|
|
--primary-foreground: 240 10% 4%;
|
|
--secondary: 240 6% 10%;
|
|
--secondary-foreground: 188 55% 68%;
|
|
--muted: 240 6% 10%;
|
|
--muted-foreground: 0 0% 63%;
|
|
--accent: 240 6% 10%;
|
|
--accent-foreground: 188 55% 68%;
|
|
--destructive: 0 84% 60%;
|
|
--destructive-foreground: 0 0% 98%;
|
|
--border: 0 0% 100% / 0.1;
|
|
--input: 0 0% 98%;
|
|
--ring: 188 55% 68%;
|
|
--chart-1: 12 76% 61%;
|
|
--chart-2: 173 58% 39%;
|
|
--chart-3: 197 37% 76%;
|
|
--chart-4: 43 74% 66%;
|
|
--chart-5: 27 87% 67%;
|
|
--primary-gradient: 188 46% 39%;
|
|
--secondary-gradient: 202 36% 44%;
|
|
--tertiary-gradient: 174 36% 40%;
|
|
}
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
.blog-page-title {
|
|
@apply text-3xl font-semibold md:text-4xl;
|
|
}
|
|
|
|
.blog-post-title {
|
|
@apply text-2xl font-semibold md:text-3xl lg:text-4xl;
|
|
}
|
|
|
|
.poetry-post {
|
|
@apply max-w-2xl text-center;
|
|
}
|
|
|
|
.poetry-post-title {
|
|
@apply mb-3 text-2xl font-semibold md:text-3xl;
|
|
}
|
|
|
|
.poetry-post-meta {
|
|
@apply mb-8 flex flex-wrap items-center justify-center gap-2 font-mono text-xs uppercase tracking-wide text-muted-foreground md:mb-10;
|
|
}
|
|
|
|
.poetry-post-meta span::before {
|
|
content: "/";
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.poetry-post-body {
|
|
@apply mx-auto max-w-xl text-center text-base leading-8 text-foreground/80 md:text-lg;
|
|
}
|
|
|
|
.poetry-post-body :where(p) {
|
|
margin: 0 0 1.75em;
|
|
}
|
|
|
|
.poetry-post-body :where(p:last-child) {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.poetry-post-body :where(a) {
|
|
text-decoration-line: underline;
|
|
text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
|
|
text-underline-offset: 0.2em;
|
|
}
|
|
|
|
.poetry-post-body :where(ul, ol) {
|
|
display: inline-block;
|
|
margin: 1.5em auto;
|
|
padding-left: 1.4em;
|
|
text-align: left;
|
|
}
|
|
|
|
.poetry-post-body :where(blockquote) {
|
|
margin: 2em auto;
|
|
max-width: 32rem;
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
.poetry-post-body :where(hr) {
|
|
display: none;
|
|
}
|
|
|
|
.poetry-post-body :where(pre) {
|
|
margin-inline: auto;
|
|
text-align: left;
|
|
}
|
|
|
|
.poetry-home {
|
|
@apply px-5 py-10 md:px-8 md:py-16 lg:py-20;
|
|
}
|
|
|
|
.poetry-home-panel {
|
|
@apply mx-auto max-w-5xl rounded-2xl border bg-card px-7 py-8 shadow-sm md:px-10 md:py-10;
|
|
}
|
|
|
|
.poetry-home-header {
|
|
@apply flex flex-col gap-6 border-b pb-8 md:flex-row md:items-end md:justify-between;
|
|
}
|
|
|
|
.poetry-home-header h1 {
|
|
@apply text-3xl font-semibold md:text-4xl;
|
|
}
|
|
|
|
.poetry-search {
|
|
@apply flex w-full max-w-sm items-center gap-2 rounded-full border bg-background/80 px-4 py-2 md:w-72;
|
|
}
|
|
|
|
.poetry-search input {
|
|
@apply min-w-0 flex-1 bg-transparent text-base outline-none placeholder:text-muted-foreground/70;
|
|
}
|
|
|
|
.poetry-search button {
|
|
@apply flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:text-foreground;
|
|
}
|
|
|
|
.poetry-search svg {
|
|
@apply h-5 w-5;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 1.8;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.poetry-home-grid {
|
|
@apply pt-8;
|
|
}
|
|
|
|
.poetry-archive ol {
|
|
@apply m-0 list-none p-0;
|
|
}
|
|
|
|
.poetry-archive time {
|
|
@apply text-muted-foreground/75;
|
|
}
|
|
|
|
.poetry-archive a {
|
|
@apply font-semibold text-foreground decoration-muted-foreground/30 underline-offset-4 hover:underline;
|
|
}
|
|
|
|
.poetry-archive {
|
|
@apply w-full;
|
|
}
|
|
|
|
.poetry-archive li {
|
|
@apply flex items-baseline justify-between gap-8 border-t py-4;
|
|
}
|
|
|
|
.poetry-archive li[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.poetry-empty {
|
|
@apply border-t py-4 text-muted-foreground;
|
|
}
|
|
|
|
.blog-card-title-featured {
|
|
@apply text-xl font-semibold md:text-2xl;
|
|
}
|
|
}
|