mirror of
https://github.com/meshtastic/web.git
synced 2026-04-20 13:58:44 -04:00
120 lines
2.4 KiB
CSS
120 lines
2.4 KiB
CSS
@import "tailwindcss";
|
|
@plugin "tailwindcss-animate";
|
|
|
|
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
|
|
|
|
@theme {
|
|
--font-mono:
|
|
Cascadia Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
"Liberation Mono", "Courier New", monospace;
|
|
--font-sans:
|
|
Inter var, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
|
|
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
|
|
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
|
|
--color-background-primary: var(--backgroundPrimary);
|
|
--color-background-secondary: var(--backgroundSecondary);
|
|
--color-accent: var(--accent);
|
|
--color-accent-muted: var(--accentMuted);
|
|
--color-text-primary: var(--textPrimary);
|
|
--color-text-secondary: var(--textSecondary);
|
|
--color-link: var(--link);
|
|
|
|
--brightness-hover: var(--brightnessHover);
|
|
--brightness-press: var(--brightnessPress);
|
|
--brightness-disabled: var(--brightnessDisabled);
|
|
}
|
|
|
|
[data-theme="light"] {
|
|
--backgroundPrimary: #ffffff;
|
|
--textPrimary: #111132;
|
|
--textSecondary: #64748b;
|
|
--link: #0b69bf;
|
|
|
|
--brightnessHover: 0.95;
|
|
--brightnessPress: 1.05;
|
|
--brightnessDisabled: 0.75;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--backgroundPrimary: #0f172a;
|
|
--textPrimary: #ebebeb;
|
|
--textSecondary: #bdbdbd;
|
|
--link: #8ec9ff;
|
|
|
|
--brightnessHover: 1.1;
|
|
--brightnessPress: 0.9;
|
|
--brightnessDisabled: 0.75;
|
|
}
|
|
|
|
/* Accordion Animations */
|
|
@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;
|
|
}
|
|
}
|
|
|
|
@layer base {
|
|
*,
|
|
::after,
|
|
::before,
|
|
::backdrop,
|
|
::file-selector-button {
|
|
border-color: var(--color-slate-200, currentColor);
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-sans);
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
.maplibregl-popup-close-button {
|
|
padding: 4px 10px 8px 0;
|
|
font-size: 1.2rem;
|
|
color: #000;
|
|
}
|
|
|
|
.maplibregl-popup-close-button:hover {
|
|
background-color: transparent !important;
|
|
}
|
|
}
|
|
|
|
/* Prevent image dragging */
|
|
img {
|
|
-webkit-user-drag: none;
|
|
}
|
|
|
|
@keyframes spin-slower {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.animate-spin-slow {
|
|
animation: spin-slower 2s linear infinite;
|
|
}
|
|
|
|
.notification-count {
|
|
color: white;
|
|
border-radius: 20%;
|
|
padding-left: 2%;
|
|
padding-right: 2%;
|
|
background-color: rgb(195,0,0);
|
|
} |