298 lines
8.8 KiB
CSS
298 lines
8.8 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: var(--font-geist-sans);
|
|
--font-mono: var(--font-geist-mono);
|
|
--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);
|
|
}
|
|
|
|
:root {
|
|
--font-iran-sans: "IRANSansX", var(--font-geist-sans);
|
|
--radius: 0.625rem;
|
|
--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;
|
|
}
|
|
}
|
|
|
|
|
|
/* WordPress table block (figure.wp-block-table > table) */
|
|
.wp-block-table {
|
|
margin: 1.5rem 0;
|
|
overflow-x: auto;
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.wp-block-table table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.9375rem;
|
|
|
|
}
|
|
|
|
.wp-block-table table.has-fixed-layout {
|
|
table-layout: fixed;
|
|
}
|
|
|
|
.wp-block-table th,
|
|
.wp-block-table td {
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid var(--border);
|
|
text-align: right;
|
|
min-width: 850px;
|
|
}
|
|
|
|
.wp-block-table tbody tr:first-child th,
|
|
.wp-block-table tbody tr:first-child td {
|
|
background: var(--muted);
|
|
font-weight: 600;
|
|
color: var(--foreground);
|
|
}
|
|
|
|
.wp-block-table tbody tr:not(:first-child):hover td {
|
|
background: var(--muted);
|
|
}
|
|
|
|
.wp-block-table thead th {
|
|
background: var(--muted);
|
|
font-weight: 600;
|
|
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-md overflow-hidden shadow-sm;
|
|
} |