/* See the Tailwind configuration guide for advanced usage
https://tailwindcss.com/docs/configuration */
@import "tailwindcss" source(none);
@import "../node_modules/leaflet/dist/leaflet.css";
@import "../node_modules/leaflet.markercluster/dist/MarkerCluster.css";
@source "../css";
@source "../js";
@source "../../lib/cartosnap_app_web";
/* 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;
}
/* ── Themes ─────────────────────────────────────────────────────────────────
The same catalog the sibling apps carry (CartosnapApp.Themes names them),
so a theme picked in one looks the same in the next. light and dark are
what "System" resolves to; the rest are picked by hand. */
@plugin "../vendor/daisyui-theme" {
name: "dark";
default: false;
prefersdark: false;
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(64% 0.076 19);
--color-primary-content: oklch(10% 0.010 19);
--color-secondary: oklch(58% 0.090 19);
--color-secondary-content: oklch(98% 0.010 19);
/* Dark rose, in the same hue family as primary/secondary (~15-19) rather
than the violet daisyUI ships. This is what `text-accent` paints: the
eyebrow over the headline, the feature icons and the step numbers. It
has to stay light enough to read against base-100 at 30% lightness, so
"dark rose" here is depth of hue and restraint of chroma, not a low
lightness -- a genuinely dark rose would be illegible on this ground.
Chroma sits above primary's 0.076 so an accent still reads as one.
The content colour follows primary, which is the same lightness. */
--color-accent: oklch(64% 0.135 15);
--color-accent-content: oklch(10% 0.012 15);
--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.008 24);
--color-base-200: oklch(96% 0.014 24);
--color-base-300: oklch(92% 0.022 24);
--color-base-content: oklch(25% 0.050 24);
--color-primary: oklch(64% 0.076 19);
--color-primary-content: oklch(98% 0.010 19);
--color-secondary: oklch(55% 0.060 19);
--color-secondary-content: oklch(98% 0.010 19);
--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;
}
/* ── neiam-co themes ────────────────────────────────────────────────────────
Ported from diogramos. Six dark pastel/jewel-tone palettes used as
alternative looks alongside the default light/dark pair. */
@plugin "../vendor/daisyui-theme" {
name: "her";
default: false;
prefersdark: false;
color-scheme: "dark";
--color-base-100: oklch(35% 0.104 24);
--color-base-200: oklch(30% 0.104 24);
--color-base-300: oklch(25% 0.104 24);
--color-base-content: oklch(98% 0.050 24);
--color-primary: oklch(64% 0.076 19);
--color-primary-content: oklch(10% 0.010 19);
--color-secondary: oklch(78% 0.049 18);
--color-secondary-content: oklch(10% 0.010 18);
--color-accent: oklch(96% 0.058 96);
--color-accent-content: oklch(10% 0.010 96);
--color-neutral: oklch(43% 0.103 22);
--color-neutral-content: oklch(98% 0.010 22);
--color-info: oklch(83% 0.101 230);
--color-info-content: oklch(15% 0.05 230);
--color-success: oklch(90% 0.089 164);
--color-success-content: oklch(15% 0.05 164);
--color-warning: oklch(95% 0.124 102);
--color-warning-content: oklch(15% 0.05 102);
--color-error: oklch(81% 0.103 20);
--color-error-content: oklch(15% 0.05 20);
--radius-selector: 1rem;
--radius-field: 0.25rem;
--radius-box: 0.5rem;
--size-selector: 0.21875rem;
--size-field: 0.21875rem;
--border: 1px;
--depth: 1;
--noise: 0;
}
@plugin "../vendor/daisyui-theme" {
name: "afterdark";
default: false;
prefersdark: false;
color-scheme: "dark";
--color-base-100: oklch(29% 0.122 277);
--color-base-200: oklch(24% 0.122 277);
--color-base-300: oklch(19% 0.122 277);
--color-base-content: oklch(98% 0.050 277);
--color-primary: oklch(60% 0.090 285);
--color-primary-content: oklch(10% 0.010 285);
--color-secondary: oklch(76% 0.060 286);
--color-secondary-content: oklch(10% 0.010 286);
--color-accent: oklch(96% 0.058 96);
--color-accent-content: oklch(10% 0.010 96);
--color-neutral: oklch(38% 0.121 281);
--color-neutral-content: oklch(98% 0.010 281);
--color-info: oklch(83% 0.101 230);
--color-info-content: oklch(15% 0.05 230);
--color-success: oklch(90% 0.089 164);
--color-success-content: oklch(15% 0.05 164);
--color-warning: oklch(95% 0.124 102);
--color-warning-content: oklch(15% 0.05 102);
--color-error: oklch(81% 0.103 20);
--color-error-content: oklch(15% 0.05 20);
--radius-selector: 1rem;
--radius-field: 0.25rem;
--radius-box: 0.5rem;
--size-selector: 0.21875rem;
--size-field: 0.21875rem;
--border: 1px;
--depth: 1;
--noise: 0;
}
@plugin "../vendor/daisyui-theme" {
name: "forest";
default: false;
prefersdark: false;
color-scheme: "dark";
--color-base-100: oklch(27% 0.063 153);
--color-base-200: oklch(22% 0.063 153);
--color-base-300: oklch(17% 0.063 153);
--color-base-content: oklch(98% 0.050 153);
--color-primary: oklch(80% 0.182 152);
--color-primary-content: oklch(10% 0.010 152);
--color-secondary: oklch(87% 0.136 154);
--color-secondary-content: oklch(10% 0.010 154);
--color-accent: oklch(96% 0.058 96);
--color-accent-content: oklch(10% 0.010 96);
--color-neutral: oklch(45% 0.108 151);
--color-neutral-content: oklch(98% 0.010 151);
--color-info: oklch(83% 0.101 230);
--color-info-content: oklch(15% 0.05 230);
--color-success: oklch(90% 0.089 164);
--color-success-content: oklch(15% 0.05 164);
--color-warning: oklch(95% 0.124 102);
--color-warning-content: oklch(15% 0.05 102);
--color-error: oklch(81% 0.103 20);
--color-error-content: oklch(15% 0.05 20);
--radius-selector: 1rem;
--radius-field: 0.25rem;
--radius-box: 0.5rem;
--size-selector: 0.21875rem;
--size-field: 0.21875rem;
--border: 1px;
--depth: 1;
--noise: 0;
}
@plugin "../vendor/daisyui-theme" {
name: "sky";
default: false;
prefersdark: false;
color-scheme: "dark";
--color-base-100: oklch(29% 0.063 243);
--color-base-200: oklch(24% 0.063 243);
--color-base-300: oklch(19% 0.063 243);
--color-base-content: oklch(98% 0.050 243);
--color-primary: oklch(75% 0.139 233);
--color-primary-content: oklch(10% 0.010 233);
--color-secondary: oklch(83% 0.101 230);
--color-secondary-content: oklch(10% 0.010 230);
--color-accent: oklch(96% 0.058 96);
--color-accent-content: oklch(10% 0.010 96);
--color-neutral: oklch(39% 0.085 241);
--color-neutral-content: oklch(98% 0.010 241);
--color-info: oklch(83% 0.101 230);
--color-info-content: oklch(15% 0.05 230);
--color-success: oklch(90% 0.089 164);
--color-success-content: oklch(15% 0.05 164);
--color-warning: oklch(95% 0.124 102);
--color-warning-content: oklch(15% 0.05 102);
--color-error: oklch(81% 0.103 20);
--color-error-content: oklch(15% 0.05 20);
--radius-selector: 1rem;
--radius-field: 0.25rem;
--radius-box: 0.5rem;
--size-selector: 0.21875rem;
--size-field: 0.21875rem;
--border: 1px;
--depth: 1;
--noise: 0;
}
@plugin "../vendor/daisyui-theme" {
name: "clays";
default: false;
prefersdark: false;
color-scheme: "dark";
--color-base-100: oklch(28% 0.074 46);
--color-base-200: oklch(23% 0.074 46);
--color-base-300: oklch(18% 0.074 46);
--color-base-content: oklch(98% 0.050 46);
--color-primary: oklch(67% 0.157 58);
--color-primary-content: oklch(10% 0.010 58);
--color-secondary: oklch(77% 0.165 70);
--color-secondary-content: oklch(10% 0.010 70);
--color-accent: oklch(96% 0.058 96);
--color-accent-content: oklch(10% 0.010 96);
--color-neutral: oklch(47% 0.125 46);
--color-neutral-content: oklch(98% 0.010 46);
--color-info: oklch(83% 0.101 230);
--color-info-content: oklch(15% 0.05 230);
--color-success: oklch(90% 0.089 164);
--color-success-content: oklch(15% 0.05 164);
--color-warning: oklch(95% 0.124 102);
--color-warning-content: oklch(15% 0.05 102);
--color-error: oklch(81% 0.103 20);
--color-error-content: oklch(15% 0.05 20);
--radius-selector: 1rem;
--radius-field: 0.25rem;
--radius-box: 0.5rem;
--size-selector: 0.21875rem;
--size-field: 0.21875rem;
--border: 1px;
--depth: 1;
--noise: 0;
}
@plugin "../vendor/daisyui-theme" {
name: "stones";
default: false;
prefersdark: false;
color-scheme: "dark";
--color-base-100: oklch(27% 0.006 34);
--color-base-200: oklch(22% 0.006 34);
--color-base-300: oklch(17% 0.006 34);
--color-base-content: oklch(98% 0.050 34);
--color-primary: oklch(55% 0.023 264);
--color-primary-content: oklch(10% 0.010 264);
--color-secondary: oklch(71% 0.019 261);
--color-secondary-content: oklch(10% 0.010 261);
--color-accent: oklch(96% 0.058 96);
--color-accent-content: oklch(10% 0.010 96);
--color-neutral: oklch(44% 0.010 74);
--color-neutral-content: oklch(98% 0.010 74);
--color-info: oklch(83% 0.101 230);
--color-info-content: oklch(15% 0.05 230);
--color-success: oklch(90% 0.089 164);
--color-success-content: oklch(15% 0.05 164);
--color-warning: oklch(95% 0.124 102);
--color-warning-content: oklch(15% 0.05 102);
--color-error: oklch(81% 0.103 20);
--color-error-content: oklch(15% 0.05 20);
--radius-selector: 1rem;
--radius-field: 0.25rem;
--radius-box: 0.5rem;
--size-selector: 0.21875rem;
--size-field: 0.21875rem;
--border: 1px;
--depth: 1;
--noise: 0;
}
/* ── "blueprint" theme ──────────────────────────────────────────────────────
Deep navy + cyan paper-blueprint palette ported from diogramos. */
@plugin "../vendor/daisyui-theme" {
name: "blueprint";
default: false;
prefersdark: false;
color-scheme: "dark";
--color-base-100: oklch(28% 0.12 252);
--color-base-200: oklch(24% 0.11 252);
--color-base-300: oklch(20% 0.10 252);
--color-base-content: oklch(91% 0.05 235);
--color-primary: oklch(68% 0.18 248);
--color-primary-content: oklch(15% 0.05 248);
--color-secondary: oklch(82% 0.10 240);
--color-secondary-content: oklch(15% 0.05 240);
--color-accent: oklch(96% 0.058 96);
--color-accent-content: oklch(10% 0.010 96);
--color-neutral: oklch(40% 0.16 253);
--color-neutral-content: oklch(91% 0.05 235);
--color-info: oklch(83% 0.101 230);
--color-info-content: oklch(15% 0.05 230);
--color-success: oklch(90% 0.089 164);
--color-success-content: oklch(15% 0.05 164);
--color-warning: oklch(95% 0.124 102);
--color-warning-content: oklch(15% 0.05 102);
--color-error: oklch(81% 0.103 20);
--color-error-content: oklch(15% 0.05 20);
--radius-selector: 1rem;
--radius-field: 0.25rem;
--radius-box: 0.5rem;
--size-selector: 0.21875rem;
--size-field: 0.21875rem;
--border: 1px;
--depth: 1;
--noise: 0;
}
@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 }
/* ── Photo map ──────────────────────────────────────────────────────────────
Leaflet's own stylesheet is unlayered, so it beats Tailwind utilities;
these override it with selectors that are more specific. */
.photo-map.leaflet-container {
background: var(--color-base-200);
font: inherit;
}
.photo-map .photo-map-tooltip {
background: var(--color-base-100);
color: var(--color-base-content);
border: 1px solid var(--color-base-300);
border-radius: 0.5rem;
box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
padding: 0.375rem 0.625rem;
font-size: 0.75rem;
line-height: 1.3;
}
.photo-map .photo-map-tooltip.leaflet-tooltip-top::before {
border-top-color: var(--color-base-300);
}
.photo-map .leaflet-control-attribution {
background: color-mix(in oklab, var(--color-base-100) 80%, transparent);
color: color-mix(in oklab, var(--color-base-content) 70%, transparent);
font-size: 0.625rem;
line-height: 1.5;
}
.photo-map .leaflet-control-attribution a {
color: inherit;
text-decoration: underline;
}
.photo-map .leaflet-bar a {
background: var(--color-base-100);
color: var(--color-base-content);
border-color: var(--color-base-300);
transition: background-color 150ms;
}
.photo-map .leaflet-bar a:hover {
background: var(--color-base-200);
}
/* Picking a spot: the map is a target. */
.photo-map.leaflet-container[data-pick-event] {
cursor: crosshair;
}
/* A photo pin: the thumbnail in a ring of the theme's base colour. */
.photo-pin {
display: block;
width: 100%;
height: 100%;
border-radius: 0.625rem;
overflow: hidden;
background: var(--color-base-300);
box-shadow: 0 0 0 2px var(--color-base-100), 0 6px 16px rgb(0 0 0 / 0.35);
transition: transform 150ms ease, box-shadow 150ms ease;
}
.photo-pin img {
width: 100%;
height: 100%;
object-fit: cover;
}
.photo-pin:hover,
.photo-pin.is-focused {
transform: scale(1.12);
box-shadow: 0 0 0 2px var(--color-primary), 0 10px 22px rgb(0 0 0 / 0.4);
}
.photo-pin.is-promoted {
box-shadow: 0 0 0 2px var(--color-base-100), 0 0 0 4px var(--color-warning), 0 6px 16px rgb(0 0 0 / 0.35);
}
/* A cluster: how many photos, on the theme's primary. */
.photo-cluster {
display: grid;
place-items: center;
width: 100%;
height: 100%;
border-radius: 9999px;
background: var(--color-primary);
color: var(--color-primary-content);
font-weight: 700;
font-size: 0.75rem;
box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-primary) 35%, transparent),
0 6px 16px rgb(0 0 0 / 0.3);
transition: transform 150ms ease;
}
.photo-cluster:hover {
transform: scale(1.08);
}
/* An area of a trip: a dashed ring round its photos, and its name. */
.photo-map .photo-area {
stroke: var(--color-primary);
stroke-width: 1.5;
stroke-dasharray: 5 6;
fill: var(--color-primary);
fill-opacity: 0.05;
cursor: pointer;
transition: fill-opacity 150ms ease;
}
.photo-map .photo-area:hover {
fill-opacity: 0.14;
}
.photo-map .photo-area-label {
background: color-mix(in oklab, var(--color-base-100) 88%, transparent);
color: var(--color-base-content);
border: 1px solid color-mix(in oklab, var(--color-primary) 45%, transparent);
border-radius: 9999px;
box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
padding: 0.125rem 0.5rem;
font-size: 0.6875rem;
font-weight: 600;
white-space: nowrap;
}
.photo-map .photo-area-label::before {
display: none;
}
/* A blurhash placeholder fades out once its image has loaded. */
.blurhash-canvas {
transition: opacity 300ms ease;
}
/* ── Shared trips ───────────────────────────────────────────────────────────
Other people's pointers over the photo (assets/js/share_cursors.js). */
.share-cursor {
position: absolute;
z-index: 10;
pointer-events: none;
transition: left 80ms linear, top 80ms linear, opacity 200ms ease;
}
.share-cursor.is-hidden {
opacity: 0;
}
.share-cursor-name {
position: absolute;
left: 14px;
top: 14px;
white-space: nowrap;
border-radius: 9999px;
padding: 1px 7px;
font-size: 11px;
font-weight: 600;
color: white;
box-shadow: 0 2px 6px rgb(0 0 0 / 0.25);
}
neiam
/cartosnap_ex
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
17.5 KiB · text
History
1ba5ec3