- Compat CSS layer (assets/css/live_table_compat.css) maps the shadcn tokens live_table/sutra_ui use (bg-muted, text-foreground, border-border, bg-background, select-trigger, input-group, etc.) onto daisyUI base colors, and provides hand-written component CSS for select/dropdown/input-group/empty so the table has a proper surface + a select popover that actually hides when closed. - Default-sort the Contacts table by most recent inserted_at. - Beacon detail "Plot path" now encodes lat/lon to an 8-char Maidenhead grid when coordinates are known, so the destination handed to the path calculator is more precise than the beacon's stored 4-char grid. - Rename BackfillLive -> StatusLive, move route from /admin/backfill to /status, retitle "Backfill Dashboard" -> "Status", drop the enqueue form (LiveStash + BackfillEnqueueWorker no longer needed on this page). Contact edit admin back-link now points at /status.
252 lines
7.3 KiB
CSS
252 lines
7.3 KiB
CSS
/* Leaflet map CSS (vendored) */
|
|
@import "../vendor/leaflet/leaflet.css";
|
|
|
|
/* See the Tailwind configuration guide for advanced usage
|
|
https://tailwindcss.com/docs/configuration */
|
|
|
|
@import "tailwindcss" source(none);
|
|
@source "../css";
|
|
@source "../js";
|
|
@source "../../lib/microwaveprop_web";
|
|
|
|
/* live_table / sutra_ui compat: maps shadcn tokens live_table uses to
|
|
daisyUI base colors and provides component CSS for the SutraUI
|
|
primitives wrapped by live_table (select, input-group, dropdown,
|
|
empty state). Must come before the daisyUI plugins so daisyUI's
|
|
primary/accent/error tokens still win in @theme resolution. */
|
|
@import "./live_table_compat.css";
|
|
|
|
/* A Tailwind plugin that makes "hero-#{ICON}" classes available.
|
|
The heroicons installation itself is managed by your mix.exs */
|
|
@plugin "../vendor/heroicons";
|
|
|
|
/* daisyUI Tailwind Plugin. You can update this file by fetching the latest version with:
|
|
curl -sLO https://github.com/saadeghi/daisyui/releases/latest/download/daisyui.js
|
|
Make sure to look at the daisyUI changelog: https://daisyui.com/docs/changelog/ */
|
|
@plugin "../vendor/daisyui" {
|
|
themes: false;
|
|
}
|
|
|
|
/* daisyUI theme plugin. You can update this file by fetching the latest version with:
|
|
curl -sLO https://github.com/saadeghi/daisyui/releases/latest/download/daisyui-theme.js
|
|
We ship with two themes, a light one inspired on Phoenix colors and a dark one inspired
|
|
on Elixir colors. Build your own at: https://daisyui.com/theme-generator/ */
|
|
@plugin "../vendor/daisyui-theme" {
|
|
name: "dark";
|
|
default: false;
|
|
prefersdark: true;
|
|
color-scheme: "dark";
|
|
--color-base-100: oklch(30.33% 0.016 252.42);
|
|
--color-base-200: oklch(25.26% 0.014 253.1);
|
|
--color-base-300: oklch(20.15% 0.012 254.09);
|
|
--color-base-content: oklch(97.807% 0.029 256.847);
|
|
--color-primary: oklch(58% 0.233 277.117);
|
|
--color-primary-content: oklch(96% 0.018 272.314);
|
|
--color-secondary: oklch(58% 0.233 277.117);
|
|
--color-secondary-content: oklch(96% 0.018 272.314);
|
|
--color-accent: oklch(60% 0.25 292.717);
|
|
--color-accent-content: oklch(96% 0.016 293.756);
|
|
--color-neutral: oklch(37% 0.044 257.287);
|
|
--color-neutral-content: oklch(98% 0.003 247.858);
|
|
--color-info: oklch(58% 0.158 241.966);
|
|
--color-info-content: oklch(97% 0.013 236.62);
|
|
--color-success: oklch(60% 0.118 184.704);
|
|
--color-success-content: oklch(98% 0.014 180.72);
|
|
--color-warning: oklch(66% 0.179 58.318);
|
|
--color-warning-content: oklch(98% 0.022 95.277);
|
|
--color-error: oklch(58% 0.253 17.585);
|
|
--color-error-content: oklch(96% 0.015 12.422);
|
|
--radius-selector: 0.25rem;
|
|
--radius-field: 0.25rem;
|
|
--radius-box: 0.5rem;
|
|
--size-selector: 0.21875rem;
|
|
--size-field: 0.21875rem;
|
|
--border: 1.5px;
|
|
--depth: 1;
|
|
--noise: 0;
|
|
}
|
|
|
|
@plugin "../vendor/daisyui-theme" {
|
|
name: "light";
|
|
default: true;
|
|
prefersdark: false;
|
|
color-scheme: "light";
|
|
--color-base-100: oklch(98% 0 0);
|
|
--color-base-200: oklch(96% 0.001 286.375);
|
|
--color-base-300: oklch(92% 0.004 286.32);
|
|
--color-base-content: oklch(21% 0.006 285.885);
|
|
--color-primary: oklch(70% 0.213 47.604);
|
|
--color-primary-content: oklch(98% 0.016 73.684);
|
|
--color-secondary: oklch(55% 0.027 264.364);
|
|
--color-secondary-content: oklch(98% 0.002 247.839);
|
|
--color-accent: oklch(0% 0 0);
|
|
--color-accent-content: oklch(100% 0 0);
|
|
--color-neutral: oklch(44% 0.017 285.786);
|
|
--color-neutral-content: oklch(98% 0 0);
|
|
--color-info: oklch(62% 0.214 259.815);
|
|
--color-info-content: oklch(97% 0.014 254.604);
|
|
--color-success: oklch(70% 0.14 182.503);
|
|
--color-success-content: oklch(98% 0.014 180.72);
|
|
--color-warning: oklch(66% 0.179 58.318);
|
|
--color-warning-content: oklch(98% 0.022 95.277);
|
|
--color-error: oklch(58% 0.253 17.585);
|
|
--color-error-content: oklch(96% 0.015 12.422);
|
|
--radius-selector: 0.25rem;
|
|
--radius-field: 0.25rem;
|
|
--radius-box: 0.5rem;
|
|
--size-selector: 0.21875rem;
|
|
--size-field: 0.21875rem;
|
|
--border: 1.5px;
|
|
--depth: 1;
|
|
--noise: 0;
|
|
}
|
|
|
|
/* Add variants based on LiveView classes */
|
|
@custom-variant phx-click-loading (.phx-click-loading&, .phx-click-loading &);
|
|
@custom-variant phx-submit-loading (.phx-submit-loading&, .phx-submit-loading &);
|
|
@custom-variant phx-change-loading (.phx-change-loading&, .phx-change-loading &);
|
|
|
|
/* Use the data attribute for dark mode */
|
|
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
|
|
|
|
/* Make LiveView wrapper divs transparent for layout */
|
|
[data-phx-session], [data-phx-teleported-src] { display: contents }
|
|
|
|
/* Fix daisyUI select text alignment — when select class is on the <select>
|
|
element directly, the nested .select select rules cause negative margins
|
|
and misaligned text. Reset them so text sits centered like <input>. */
|
|
select.select {
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Markdown rendered content — uses daisyUI theme variables for auto dark/light */
|
|
.markdown-content {
|
|
max-width: 64rem;
|
|
margin: 2rem auto;
|
|
padding: 0 1rem;
|
|
line-height: 1.75;
|
|
color: var(--color-base-content);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.markdown-content h1 {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
margin: 2rem 0 1rem;
|
|
border-bottom: 1px solid var(--color-base-300);
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.markdown-content h2 {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
margin: 1.75rem 0 0.75rem;
|
|
border-bottom: 1px solid var(--color-base-300);
|
|
padding-bottom: 0.25rem;
|
|
}
|
|
|
|
.markdown-content h3 {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
margin: 1.5rem 0 0.5rem;
|
|
}
|
|
|
|
.markdown-content h4 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
margin: 1.25rem 0 0.5rem;
|
|
}
|
|
|
|
.markdown-content p {
|
|
margin: 0.75rem 0;
|
|
}
|
|
|
|
.markdown-content ul, .markdown-content ol {
|
|
margin: 0.75rem 0;
|
|
padding-left: 2rem;
|
|
}
|
|
|
|
.markdown-content ul { list-style-type: disc; }
|
|
.markdown-content ol { list-style-type: decimal; }
|
|
|
|
.markdown-content li {
|
|
margin: 0.25rem 0;
|
|
}
|
|
|
|
.markdown-content code {
|
|
font-family: ui-monospace, monospace;
|
|
font-size: 0.875em;
|
|
background: var(--color-base-300);
|
|
padding: 0.15em 0.35em;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
.markdown-content pre {
|
|
margin: 1rem 0;
|
|
padding: 1rem;
|
|
background: var(--color-neutral);
|
|
color: var(--color-neutral-content);
|
|
border-radius: 0.5rem;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.markdown-content pre code {
|
|
background: none;
|
|
padding: 0;
|
|
font-size: 0.85em;
|
|
color: inherit;
|
|
}
|
|
|
|
.markdown-content table {
|
|
width: max-content;
|
|
min-width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 1rem 0;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.markdown-content th, .markdown-content td {
|
|
border: 1px solid var(--color-base-300);
|
|
padding: 0.5rem 0.75rem;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.markdown-content th {
|
|
background: var(--color-base-300);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.markdown-content tbody tr:nth-child(even) {
|
|
background: var(--color-base-200);
|
|
}
|
|
|
|
.markdown-content hr {
|
|
border: none;
|
|
border-top: 2px solid var(--color-base-300);
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
.markdown-content strong {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.markdown-content blockquote {
|
|
border-left: 4px solid var(--color-primary);
|
|
margin: 1rem 0;
|
|
padding: 0.5rem 1rem;
|
|
background: var(--color-base-200);
|
|
}
|
|
|
|
.markdown-content a {
|
|
color: var(--color-primary);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Allow map interaction through non-content parts of Leaflet popups */
|
|
.leaflet-popup { pointer-events: none; }
|
|
.leaflet-popup-content-wrapper, .leaflet-popup-tip, .leaflet-popup-close-button { pointer-events: auto; }
|
|
|
|
/* This file is for your main application CSS */
|