208 lines
4.7 KiB
CSS
208 lines
4.7 KiB
CSS
@import "tailwindcss";
|
|
@import "./malio.css";
|
|
|
|
@theme {
|
|
--color-panel: #0f172a;
|
|
--color-panel-soft: #1e293b;
|
|
--color-m-primary: rgb(var(--m-primary));
|
|
--color-m-secondary: rgb(var(--m-secondary));
|
|
--color-m-tertiary: rgb(var(--m-tertiary));
|
|
--color-m-border: rgb(var(--m-border));
|
|
--color-m-text: rgb(var(--m-text));
|
|
--color-m-muted: rgb(var(--m-muted));
|
|
--color-m-bg: rgb(var(--m-bg));
|
|
--color-m-error: rgb(var(--m-error));
|
|
--color-m-success: rgb(var(--m-success));
|
|
--color-m-accent: rgb(var(--m-accent));
|
|
--color-m-warning: rgb(var(--m-warning));
|
|
--font-display: "Outfit", system-ui, sans-serif;
|
|
--font-mono: "JetBrains Mono", "Fira Code", monospace;
|
|
}
|
|
|
|
@layer base {
|
|
html {
|
|
background: rgb(var(--m-bg));
|
|
color-scheme: dark;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
font-family: var(--font-display);
|
|
background: rgb(var(--m-bg));
|
|
background-image:
|
|
radial-gradient(circle at top left, rgb(var(--m-accent) / 0.1), transparent 24%),
|
|
radial-gradient(circle at top right, rgb(var(--m-success) / 0.08), transparent 18%);
|
|
color: rgb(var(--m-text));
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
transition: background-color 0.4s ease, color 0.4s ease;
|
|
}
|
|
|
|
::selection {
|
|
background: rgb(var(--m-accent) / 0.28);
|
|
color: rgb(var(--m-text));
|
|
}
|
|
|
|
a,
|
|
button {
|
|
transition:
|
|
color 0.2s ease,
|
|
background-color 0.2s ease,
|
|
border-color 0.2s ease,
|
|
box-shadow 0.2s ease,
|
|
transform 0.2s ease;
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 2px solid rgb(var(--m-accent) / 0.85);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
.bg-grid {
|
|
background-image:
|
|
linear-gradient(to right, rgb(var(--m-accent) / 0.04) 1px, transparent 1px),
|
|
linear-gradient(to bottom, rgb(var(--m-accent) / 0.04) 1px, transparent 1px);
|
|
background-size: 32px 32px;
|
|
}
|
|
|
|
.bg-noise {
|
|
position: relative;
|
|
}
|
|
|
|
.bg-noise::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
opacity: 0.025;
|
|
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
.card-glow {
|
|
box-shadow:
|
|
0 0 0 1px rgb(var(--m-accent) / var(--m-card-border-opacity)),
|
|
0 4px 24px -4px rgba(0, 0, 0, var(--m-shadow-opacity)),
|
|
0 0 48px -12px rgb(var(--m-accent) / 0.06);
|
|
transition: box-shadow 0.3s ease;
|
|
}
|
|
|
|
.card-glow:hover {
|
|
box-shadow:
|
|
0 0 0 1px rgb(var(--m-accent) / calc(var(--m-card-border-opacity) + 0.04)),
|
|
0 10px 30px -10px rgba(0, 0, 0, calc(var(--m-shadow-opacity) + 0.08)),
|
|
0 0 56px -14px rgb(var(--m-accent) / 0.1);
|
|
}
|
|
|
|
.card-glow-success {
|
|
box-shadow:
|
|
0 0 0 1px rgb(var(--m-success) / 0.15),
|
|
0 4px 24px -4px rgba(0, 0, 0, var(--m-shadow-opacity));
|
|
}
|
|
|
|
.card-glow-error {
|
|
box-shadow:
|
|
0 0 0 1px rgb(var(--m-error) / 0.15),
|
|
0 4px 24px -4px rgba(0, 0, 0, var(--m-shadow-opacity));
|
|
}
|
|
|
|
.text-gradient {
|
|
background: linear-gradient(135deg, rgb(var(--m-accent)), rgb(var(--m-success)));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
}
|
|
|
|
@keyframes fade-in-up {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(12px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes pulse-glow {
|
|
0%,
|
|
100% {
|
|
box-shadow: 0 0 4px currentColor, 0 0 8px currentColor;
|
|
opacity: 1;
|
|
}
|
|
|
|
50% {
|
|
box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
|
|
opacity: 0.7;
|
|
}
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% {
|
|
background-position: -200% 0;
|
|
}
|
|
|
|
100% {
|
|
background-position: 200% 0;
|
|
}
|
|
}
|
|
|
|
.animate-fade-in-up {
|
|
animation: fade-in-up 0.5s ease-out both;
|
|
}
|
|
|
|
.animate-pulse-glow {
|
|
animation: pulse-glow 2s ease-in-out infinite;
|
|
}
|
|
|
|
.animate-shimmer {
|
|
background: linear-gradient(
|
|
90deg,
|
|
var(--m-shimmer-from) 0%,
|
|
var(--m-shimmer-to) 50%,
|
|
var(--m-shimmer-from) 100%
|
|
);
|
|
background-size: 200% 100%;
|
|
animation: shimmer 2s ease-in-out infinite;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: rgb(var(--m-bg));
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: rgb(var(--m-border));
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: rgb(var(--m-muted));
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|