Files
meshtastic-web/apps/web/src/index.css
T
AustinandGitHub d2cb51d489 Execute oxfmt (#1166)
Ran
pnpm oxfmt .

This should get the web repo aligned so that we can better enforce oxfmt going forward.
2026-06-16 20:30:08 -04:00

185 lines
3.5 KiB
CSS

@font-face {
font-family: "Inter var";
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
font-family: "Inter var";
font-style: italic;
font-weight: 100 900;
font-display: swap;
src: url("/fonts/InterVariable-Italic.woff2") format("woff2");
}
@import "tailwindcss";
/* @import '@meshtastic/ui/theme/default.css'; */
/* @source "../node_modules/@meshtastic/ui"; */
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
@view-transition {
navigation: auto;
}
@theme {
--font-mono:
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);
--sidebar-width: @apply w-50 lg: w-64;
}
[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;
}
}
.animate-fan-out {
transform: translate(var(--dx), var(--dy));
transition: transform 200ms ease-out;
}
html {
overflow: hidden;
}
html,
body {
height: 100%;
}
body {
font-family: var(--font-sans);
}
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-slate-200, currentColor);
}
::-webkit-scrollbar {
@apply bg-transparent w-2;
}
::-webkit-scrollbar-thumb {
@apply bg-gray-400;
}
::-webkit-scrollbar-corner {
@apply bg-slate-200;
}
.dark {
::-webkit-scrollbar {
@apply bg-transparent w-2;
}
::-webkit-scrollbar-thumb {
@apply bg-slate-600 rounded-4xl;
}
::-webkit-scrollbar-corner {
@apply bg-slate-900;
}
}
}
@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;
}
}
@layer utilities {
.scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
}
/* Prevent image dragging */
img {
-webkit-user-drag: none;
}
@keyframes spin-slower {
to {
transform: rotate(360deg);
}
}
.animate-spin-slow {
animation: spin-slower 2s linear infinite;
}