Replace manual hashtags and color cycling with content-tone heuristics for blockquotes and tables, and refine blockquote layout with a centered icon, larger sizing, and clearer contrast over background decorations. Co-authored-by: Cursor <cursoragent@cursor.com>
568 lines
15 KiB
CSS
568 lines
15 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
|
|
/* IRANSansX Font Faces */
|
|
@font-face {
|
|
font-family: IRANSansX;
|
|
font-style: normal;
|
|
font-weight: 100;
|
|
|
|
src: url("/assets/irsansx/Woff/IRANSansXFaNum-Thin.woff") format("woff"),
|
|
url("/assets/irsansx/Woff2/IRANSansXFaNum-Thin.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: IRANSansX;
|
|
font-style: normal;
|
|
font-weight: 200;
|
|
src: url("/assets/irsansx/Woff/IRANSansXFaNum-UltraLight.woff") format("woff"),
|
|
url("/assets/irsansx/Woff2/IRANSansXFaNum-UltraLight.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: IRANSansX;
|
|
font-style: normal;
|
|
font-weight: 300;
|
|
src: url("/assets/irsansx/Woff/IRANSansXFaNum-Light.woff") format("woff"),
|
|
url("/assets/irsansx/Woff2/IRANSansXFaNum-Light.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: IRANSansX;
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
src: url("/assets/irsansx/Woff/IRANSansXFaNum-Medium.woff") format("woff"),
|
|
url("/assets/irsansx/Woff2/IRANSansXFaNum-Medium.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: IRANSansX;
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
src: url("/assets/irsansx/Woff/IRANSansXFaNum-DemiBold.woff") format("woff"),
|
|
url("/assets/irsansx/Woff2/IRANSansXFaNum-DemiBold.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: IRANSansX;
|
|
font-style: normal;
|
|
font-weight: 800;
|
|
src: url("/assets/irsansx/Woff/IRANSansXFaNum-ExtraBold.woff") format("woff"),
|
|
url("/assets/irsansx/Woff2/IRANSansXFaNum-ExtraBold.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: IRANSansX;
|
|
font-style: normal;
|
|
font-weight: 900;
|
|
src: url("/assets/irsansx/Woff/IRANSansXFaNum-Black.woff") format("woff"),
|
|
url("/assets/irsansx/Woff2/IRANSansXFaNum-Black.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: IRANSansX;
|
|
font-style: normal;
|
|
font-weight: bold;
|
|
src: url("/assets/irsansx/Woff/IRANSansXFaNum-Bold.woff") format("woff"),
|
|
url("/assets/irsansx/Woff2/IRANSansXFaNum-Bold.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: IRANSansX;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
src: url("/assets/irsansx/Woff/IRANSansXFaNum-Regular.woff") format("woff"),
|
|
url("/assets/irsansx/Woff2/IRANSansXFaNum-Regular.woff2") format("woff2");
|
|
}
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--font-sans: "IRANSansX", "system-ui", "Avenir", "Helvetica", "Arial",
|
|
"sans-serif";
|
|
--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
|
|
monospace;
|
|
--font-iran-sans: "IRANSansX", "system-ui", "Avenir", "Helvetica", "Arial",
|
|
"sans-serif";
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-chart-5: var(--chart-5);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-ring: var(--ring);
|
|
--color-input: var(--input);
|
|
--color-border: var(--border);
|
|
--color-destructive: var(--destructive);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-card: var(--card);
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) + 4px);
|
|
--radius-blog: var(--radius-blog);
|
|
}
|
|
|
|
:root {
|
|
--font-iran-sans: "IRANSansX", system-ui, sans-serif;
|
|
--radius: 0.625rem;
|
|
--radius-blog: 0.9375rem;
|
|
--card: oklch(1 0.006 175);
|
|
--card-foreground: oklch(0.145 0.02 175);
|
|
--popover: oklch(1 0.006 175);
|
|
--popover-foreground: oklch(0.145 0.02 175);
|
|
--primary: #01796F;
|
|
--primary-foreground: oklch(0.985 0 0);
|
|
--secondary: #0D9488;
|
|
--secondary-foreground: oklch(0.985 0 0);
|
|
--muted: oklch(0.97 0.012 175);
|
|
--muted-foreground: oklch(0.35 0.05 175);
|
|
--accent: #FCC61D;
|
|
--accent-foreground: oklch(0.25 0.05 50);
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--border: oklch(0.9 0.012 175);
|
|
--input: oklch(0.95 0.01 175);
|
|
--ring: oklch(0.45 0.1 175);
|
|
--chart-1: oklch(0.45 0.1 175);
|
|
--chart-2: oklch(0.6 0.12 162);
|
|
--chart-3: oklch(0.55 0.08 175);
|
|
--chart-4: oklch(0.7 0.1 170);
|
|
--chart-5: oklch(0.5 0.09 180);
|
|
--sidebar: oklch(0.985 0.008 175);
|
|
--sidebar-foreground: oklch(0.145 0.02 175);
|
|
--sidebar-primary: #01796F;
|
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
--sidebar-accent: oklch(0.97 0.015 175);
|
|
--sidebar-accent-foreground: oklch(0.205 0.02 175);
|
|
--sidebar-border: oklch(0.922 0.01 175);
|
|
--sidebar-ring: oklch(0.45 0.1 175);
|
|
--background: oklch(0.99 0.008 175);
|
|
--foreground: oklch(0.25 0.03 175);
|
|
}
|
|
|
|
.dark {
|
|
--background: oklch(0.145 0.02 175);
|
|
--foreground: oklch(0.95 0.01 280);
|
|
--card: oklch(0.22 0.025 175);
|
|
--card-foreground: oklch(0.95 0.01 280);
|
|
--popover: oklch(0.22 0.025 175);
|
|
--popover-foreground: oklch(0.95 0.01 280);
|
|
--primary: #01796F;
|
|
--primary-foreground: oklch(0.985 0 0);
|
|
--secondary: #14B8A6;
|
|
--secondary-foreground: oklch(0.985 0 0);
|
|
--muted: oklch(0.28 0.025 175);
|
|
--muted-foreground: oklch(0.75 0.02 175);
|
|
--accent: #FCC61D;
|
|
--accent-foreground: oklch(0.2 0.05 50);
|
|
--destructive: oklch(0.704 0.191 22.216);
|
|
--border: oklch(0.3 0.025 175);
|
|
--input: oklch(0.3 0.025 175);
|
|
--ring: oklch(0.5 0.12 175);
|
|
--chart-1: oklch(0.5 0.12 175);
|
|
--chart-2: oklch(0.6 0.14 162);
|
|
--chart-3: oklch(0.55 0.1 175);
|
|
--chart-4: oklch(0.65 0.11 170);
|
|
--chart-5: oklch(0.45 0.09 180);
|
|
--sidebar: oklch(0.22 0.025 175);
|
|
--sidebar-foreground: oklch(0.95 0.01 280);
|
|
--sidebar-primary: #01796F;
|
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
--sidebar-accent: oklch(0.3 0.03 175);
|
|
--sidebar-accent-foreground: oklch(0.95 0.01 280);
|
|
--sidebar-border: oklch(0.3 0.025 175);
|
|
--sidebar-ring: oklch(0.5 0.12 175);
|
|
}
|
|
|
|
@layer base {
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
font-family: "IRANSansX";
|
|
letter-spacing: normal;
|
|
line-height: 1.6;
|
|
background-image:
|
|
radial-gradient(at 0% 0%, oklch(0.98 0.012 175 / 0.3) 0px, transparent 50%),
|
|
radial-gradient(at 100% 100%, oklch(0.95 0.02 175 / 0.2) 0px, transparent 50%),
|
|
radial-gradient(at 50% 50%, oklch(0.97 0.01 170 / 0.15) 0px, transparent 50%);
|
|
background-attachment: fixed;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
.dark body {
|
|
background-image:
|
|
radial-gradient(at 0% 0%, oklch(0.2 0.025 175 / 0.3) 0px, transparent 50%),
|
|
radial-gradient(at 100% 100%, oklch(0.18 0.02 175 / 0.2) 0px, transparent 50%),
|
|
radial-gradient(at 50% 50%, oklch(0.22 0.025 170 / 0.15) 0px, transparent 50%);
|
|
}
|
|
h1, h2, h3, h4, h5, h6 {
|
|
letter-spacing: normal;
|
|
line-height: 1.5;
|
|
transition: color 0.3s ease;
|
|
}
|
|
p {
|
|
letter-spacing: normal;
|
|
line-height: 1.7;
|
|
transition: color 0.3s ease;
|
|
}
|
|
a {
|
|
transition: all 0.3s ease;
|
|
}
|
|
button {
|
|
transition: all 0.3s ease;
|
|
}
|
|
}
|
|
|
|
|
|
/* Blog table blocks (figure.blog-table) */
|
|
.blog-table {
|
|
position: relative;
|
|
width: 100%;
|
|
margin-inline: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.blog-table__scroll {
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.blog-table__grid {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.9375rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.blog-table__grid th,
|
|
.blog-table__grid td {
|
|
padding: 0.875rem 1rem;
|
|
text-align: right;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.blog-table__grid th p,
|
|
.blog-table__grid td p {
|
|
margin: 0;
|
|
}
|
|
|
|
.blog-table__caption {
|
|
margin-top: 0.75rem;
|
|
text-align: center;
|
|
font-size: 0.8125rem;
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.blog-table__grid a {
|
|
color: var(--primary);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.blog-table__grid a:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Variant one (green) & two (yellow) — glass layout aligned with HeroHeader */
|
|
.blog-table--one {
|
|
--table-tone: var(--primary);
|
|
}
|
|
|
|
.blog-table--two {
|
|
--table-tone: var(--accent);
|
|
}
|
|
|
|
.blog-table--one .blog-table__grid thead th,
|
|
.blog-table--two .blog-table__grid thead th {
|
|
background: color-mix(in srgb, var(--table-tone) 35%, transparent);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
color: var(--foreground);
|
|
font-weight: 600;
|
|
border-bottom: 1px solid color-mix(in srgb, var(--border) 10%, transparent);
|
|
}
|
|
|
|
.blog-table--one .blog-table__grid tbody tr,
|
|
.blog-table--two .blog-table__grid tbody tr {
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.blog-table--one .blog-table__grid tbody tr:nth-child(even) td,
|
|
.blog-table--two .blog-table__grid tbody tr:nth-child(even) td {
|
|
background: color-mix(in srgb, var(--background) 20%, transparent);
|
|
}
|
|
|
|
.blog-table--one .blog-table__grid tbody tr:hover td,
|
|
.blog-table--two .blog-table__grid tbody tr:hover td {
|
|
background: color-mix(in srgb, var(--table-tone) 12%, transparent);
|
|
}
|
|
|
|
.blog-table--one .blog-table__grid tbody td,
|
|
.blog-table--two .blog-table__grid tbody td {
|
|
border-top: 1px solid color-mix(in srgb, var(--border) 10%, transparent);
|
|
}
|
|
|
|
.blog-table--one .blog-table__grid tbody td:first-child,
|
|
.blog-table--two .blog-table__grid tbody td:first-child {
|
|
font-weight: 500;
|
|
color: var(--foreground);
|
|
}
|
|
|
|
|
|
.wp-block-button > .wp-element-button {
|
|
@apply inline-flex bg-primary text-primary-foreground px-4 py-2 rounded-md hover:bg-primary/80 hover:text-primary-foreground/80 cursor-pointer no-underline;
|
|
}
|
|
|
|
.wp-block-button {
|
|
@apply inline-flex;
|
|
}
|
|
|
|
.wp-block-button.is-style-outline > .wp-element-button {
|
|
@apply bg-transparent text-foreground border border-2 border-primary hover:text-primary cursor-pointer no-underline;
|
|
}
|
|
|
|
.cta-block {
|
|
@apply flex flex-col gap-4 border rounded-md border-primary/50 p-4 items-center my-4 shadow-sm bg-primary/5 text-primary;
|
|
}
|
|
|
|
.wp-block-image {
|
|
@apply rounded-blog overflow-hidden shadow-sm;
|
|
}
|
|
|
|
.blog-content .wp-block-image {
|
|
@apply my-6;
|
|
}
|
|
|
|
.blog-content img {
|
|
@apply w-full h-auto;
|
|
image-rendering: auto;
|
|
}
|
|
|
|
/* Blog prose typography — single source of truth */
|
|
.blog-content {
|
|
@apply space-y-6 text-foreground;
|
|
}
|
|
|
|
.blog-content h2 {
|
|
@apply mt-8 mb-4 text-2xl font-semibold leading-snug tracking-normal scroll-mt-24;
|
|
}
|
|
|
|
.blog-content h3 {
|
|
@apply mt-6 mb-3 text-xl font-semibold leading-snug tracking-normal scroll-mt-24;
|
|
}
|
|
|
|
.blog-content h4 {
|
|
@apply mt-4 mb-2 text-lg font-semibold leading-snug tracking-normal scroll-mt-24;
|
|
}
|
|
|
|
.blog-content p {
|
|
@apply leading-relaxed tracking-normal text-muted-foreground;
|
|
}
|
|
|
|
.blog-content a {
|
|
@apply text-primary no-underline hover:underline;
|
|
}
|
|
|
|
.blog-content ul {
|
|
@apply list-disc pr-6;
|
|
}
|
|
|
|
.blog-content ol {
|
|
@apply list-decimal pr-6;
|
|
}
|
|
|
|
.blog-content li {
|
|
@apply my-1;
|
|
}
|
|
|
|
/* Blog blockquote variants */
|
|
.blog-blockquote {
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
border-radius: var(--radius-blog);
|
|
border: 1px solid;
|
|
padding-block: 1.8rem;
|
|
padding-inline: 2.1rem;
|
|
box-shadow: 0 2px 4px rgb(0 0 0 / 0.06);
|
|
isolation: isolate;
|
|
}
|
|
|
|
.blog-blockquote::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset-block: 1rem;
|
|
inset-inline-start: 0;
|
|
width: 4px;
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
.blog-blockquote--yellow {
|
|
border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
|
|
background: color-mix(in srgb, var(--accent) 24%, var(--background));
|
|
box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 18%, transparent);
|
|
}
|
|
|
|
.blog-blockquote--yellow::before {
|
|
background: var(--accent);
|
|
}
|
|
|
|
.blog-blockquote--yellow .blog-blockquote__icon {
|
|
color: color-mix(in srgb, var(--accent) 82%, var(--foreground));
|
|
}
|
|
|
|
.blog-blockquote--yellow .blog-blockquote__footer {
|
|
border-top-color: color-mix(in srgb, var(--accent) 28%, var(--border));
|
|
}
|
|
|
|
.blog-blockquote--green {
|
|
border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
|
|
background: color-mix(in srgb, var(--primary) 18%, var(--background));
|
|
box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 16%, transparent);
|
|
}
|
|
|
|
.blog-blockquote--green::before {
|
|
background: var(--primary);
|
|
}
|
|
|
|
.blog-blockquote--green .blog-blockquote__icon {
|
|
color: color-mix(in srgb, var(--primary) 80%, var(--foreground));
|
|
}
|
|
|
|
.blog-blockquote--green .blog-blockquote__footer {
|
|
border-top-color: color-mix(in srgb, var(--primary) 28%, var(--border));
|
|
}
|
|
|
|
.blog-blockquote--gray {
|
|
border-color: color-mix(in srgb, var(--border) 90%, var(--muted-foreground));
|
|
background: color-mix(in srgb, var(--muted) 72%, var(--background));
|
|
box-shadow: 0 4px 12px rgb(0 0 0 / 0.06);
|
|
}
|
|
|
|
.blog-blockquote--gray::before {
|
|
background: color-mix(in srgb, var(--muted-foreground) 50%, transparent);
|
|
}
|
|
|
|
.blog-blockquote--gray .blog-blockquote__icon {
|
|
color: color-mix(in srgb, var(--muted-foreground) 78%, var(--foreground));
|
|
}
|
|
|
|
.blog-blockquote--gray .blog-blockquote__footer {
|
|
border-top-color: color-mix(in srgb, var(--border) 80%, transparent);
|
|
}
|
|
|
|
.blog-blockquote__icon {
|
|
position: relative;
|
|
z-index: 2;
|
|
width: 2.4rem;
|
|
height: 2.4rem;
|
|
flex-shrink: 0;
|
|
margin-bottom: 0.9rem;
|
|
}
|
|
|
|
.blog-blockquote__decorations {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
opacity: 0.07;
|
|
/* Keep decorative shapes out of the quote-icon corner (inline-start). */
|
|
clip-path: polygon(
|
|
0 0,
|
|
calc(100% - 4.75rem) 0,
|
|
calc(100% - 4.75rem) 4.75rem,
|
|
100% 4.75rem,
|
|
100% 100%,
|
|
0 100%
|
|
);
|
|
}
|
|
|
|
:dir(ltr) .blog-blockquote__decorations {
|
|
clip-path: polygon(
|
|
4.75rem 0,
|
|
100% 0,
|
|
100% 100%,
|
|
0 100%,
|
|
0 4.75rem,
|
|
4.75rem 4.75rem
|
|
);
|
|
}
|
|
|
|
.blog-pullquote .blog-blockquote__decorations {
|
|
clip-path: none;
|
|
}
|
|
|
|
.blog-blockquote__content {
|
|
position: relative;
|
|
z-index: 2;
|
|
isolation: isolate;
|
|
width: 100%;
|
|
font-size: 1.35rem;
|
|
line-height: 1.75;
|
|
text-align: justify;
|
|
}
|
|
|
|
.blog-blockquote__content p {
|
|
margin-block: 0.6rem;
|
|
}
|
|
|
|
.blog-blockquote__content a {
|
|
color: var(--accent);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.blog-blockquote__content a:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.blog-blockquote__footer {
|
|
position: relative;
|
|
z-index: 2;
|
|
width: 100%;
|
|
margin-top: 1.2rem;
|
|
padding-top: 1.2rem;
|
|
border-top: 1px solid;
|
|
}
|
|
|
|
.blog-pullquote {
|
|
text-align: center;
|
|
padding-inline: 1.8rem;
|
|
}
|
|
|
|
.blog-pullquote .blog-blockquote__icon {
|
|
width: 2.1rem;
|
|
height: 2.1rem;
|
|
}
|
|
|
|
.blog-pullquote .blog-blockquote__content {
|
|
font-size: 1.5rem;
|
|
font-weight: 500;
|
|
} |