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.0 KB
Raw Blame
/* Text effects in the inspector and the Text styles shelf (StudioTextEffects.tsx,
   StudioTextStyles.tsx). Kept beside studio.css, which is at its size ceiling. */

/* One effect: its switch, then its settings indented under it while it is on. */
.trek-dash .st-fx-group + .st-fx-group {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 4px;
}
.trek-dash .st-fx-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0 10px;
}
.trek-dash .st-fx-hint {
  padding: 4px 0 6px;
}

/* The photos the letters can be filled with: the content panel's thumbnails, smaller. */
.trek-dash .st-fx-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.trek-dash .st-fx-photo {
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition:
    box-shadow 0.14s,
    transform 0.14s ease-out;
}
.trek-dash .st-fx-photo:hover {
  transform: translateY(-1px);
}
.trek-dash .st-fx-photo.is-on {
  box-shadow: 0 0 0 2px var(--accent);
}
.trek-dash .st-fx-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The Text styles shelf: each lockup drawn as it will print, on paper. */
.trek-dash .st-lockups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.trek-dash .st-lockup {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: 11px;
  overflow: hidden;
  /* Paper, not app chrome: the lockup is shown on the page it will be printed on. */
  background: white;
  border: 1px solid var(--line);
  transition:
    transform 0.14s ease-out,
    box-shadow 0.14s,
    border-color 0.16s;
}
.trek-dash .st-lockup:hover {
  transform: translateY(-1px);
  border-color: var(--line-2);
  box-shadow: var(--sh-md);
}
.trek-dash .st-lockup:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.trek-dash .st-lockup-art {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  transform-origin: 0 0;
  pointer-events: none;
}