Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

2.8 KB
Raw Blame
/* The store cards: a QR code on its white tile, the store's mark and name beside it.
   The theme tone follows the appearance tokens; .asc-dark is for a surface that is
   dark in either theme (the release modal). */

.asc-row {
  display: grid;
  /* Always side by side: two compact cards read as one row of stores. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.asc-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px 8px 8px;
  border-radius: 16px;
  border: 1px solid var(--border-faint);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}
.asc-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-primary);
  box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.35); /* a neutral lift shadow */
}
.asc-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* A QR code needs its light quiet zone in either theme to scan. */
.asc-qr {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 5px;
  border-radius: 10px;
  background: #ffffff; /* a QR code needs a white quiet zone to scan */
  border: 1px solid var(--border-faint);
}
.asc-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.asc-qr-dots {
  fill: none;
  stroke: #0f172a;
} /* QR modules stay dark on their white tile */

.asc-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.asc-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: calc(10.5px * var(--fs-scale-caption, 1));
  color: var(--text-muted);
  white-space: nowrap;
}
.asc-logo {
  width: 12px;
  height: 12px;
  flex: none;
  fill: currentColor;
}
.asc-store {
  margin-top: 2px;
  font-size: calc(16px * var(--fs-scale-subtitle, 1));
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}
.asc-devices {
  margin-top: 2px;
  font-size: calc(10.5px * var(--fs-scale-caption, 1));
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asc-dark .asc-card {
  background: linear-gradient(160deg, oklch(1 0 0 / 0.1) 0%, oklch(1 0 0 / 0.045) 62%);
  border-color: oklch(1 0 0 / 0.13);
  color: #f5f5f7; /* the release modal is dark in either theme */
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.16);
}
.asc-dark .asc-card:hover {
  border-color: oklch(1 0 0 / 0.26);
}
.asc-dark .asc-qr {
  border-color: transparent;
}
.asc-dark .asc-store {
  color: #f5f5f7;
} /* the release modal is dark in either theme */
.asc-dark .asc-caption,
.asc-dark .asc-devices {
  color: oklch(1 0 0 / 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .asc-card {
    transition: none;
  }
  .asc-card:hover {
    transform: none;
  }
}