SPB Git

Repository Public

map.css 5.6 KB 189 lines css

1/* Carte Lou-Ka : plaques civiques, épingle de la porte, aperçu au survol,2   légende et commandes. Tout suit les jetons du thème (aucun dégradé décoratif,3   aucune lueur). */45/* --- Plaques civiques (regroupements) ---------------------------------------------6   À l'image d'un numéro de porte : plaque nette, chiffres en Newsreader, fin7   linteau orange. Le marqueur Mapbox porte la position ; l'animation vit sur8   l'enfant pour ne jamais se mêler à son déplacement. */9.lk-plaque-wrap { will-change: transform; }10.lk-plaque {11  --plaque-bg: var(--ink);12  --plaque-fg: var(--bg);13  position: relative;14  display: grid;15  place-items: center;16  min-width: 2.05rem;17  height: 1.8rem;18  padding: 0.12rem 0.5rem 0;19  border: 0;20  border-radius: 4px;21  background: var(--plaque-bg);22  color: var(--plaque-fg);23  font-family: var(--font-display);24  font-size: 0.92rem;25  font-weight: 500;26  line-height: 1;27  font-variant-numeric: lining-nums tabular-nums;28  letter-spacing: 0.005em;29  box-shadow: 0 1px 2px rgb(0 0 0 / 0.22), 0 0 0 1.5px var(--bg);30  cursor: pointer;31  transition: transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 160ms ease;32  animation: lk-plaque-in 190ms cubic-bezier(0.2, 0.8, 0.2, 1) both;33}34/* linteau : le trait orange de l'encadrement */35.lk-plaque::before {36  content: "";37  position: absolute;38  inset: 0 0 auto 0;39  height: 2.5px;40  border-radius: 4px 4px 0 0;41  background: var(--accent);42}43/* part de bons prix dans le regroupement : filet forêt en pied de plaque */44.lk-plaque::after {45  content: "";46  position: absolute;47  left: 4px;48  bottom: 2.5px;49  height: 2px;50  width: calc((100% - 8px) * var(--good, 0));51  border-radius: 2px;52  background: color-mix(in srgb, var(--good-c, #86c2a4) 100%, transparent);53  opacity: 0.95;54}55.lk-plaque--m { height: 2.05rem; min-width: 2.5rem; font-size: 1.04rem; padding-inline: 0.6rem; }56.lk-plaque--l { height: 2.35rem; min-width: 3rem; font-size: 1.2rem; padding-inline: 0.7rem; }57.lk-plaque--xl { height: 2.7rem; min-width: 3.5rem; font-size: 1.38rem; padding-inline: 0.8rem; }58.lk-plaque:hover,59.lk-plaque:focus-visible {60  transform: translateY(-2px);61  box-shadow: 0 6px 14px -4px rgb(0 0 0 / 0.38), 0 0 0 1.5px var(--bg);62  z-index: 2;63}64.lk-plaque:active { transform: translateY(0) scale(0.97); }65.lk-plaque--out { animation: lk-plaque-out 150ms ease-in both; pointer-events: none; }66[data-theme="light"] .lk-plaque { --good-c: #8fd0b1; }67[data-theme="dark"] .lk-plaque { --good-c: #245b48; }68/* plaque de ville (carte d'accueil) : le nom, puis le nombre */69.lk-plaque--city {70  height: auto;71  padding: 0.42rem 0.6rem 0.34rem;72  justify-items: start;73  gap: 0.1rem;74  text-align: left;75  font-size: 0.95rem;76}77.lk-plaque--city small {78  font-family: var(--font-sans);79  font-size: 0.66rem;80  font-weight: 400;81  letter-spacing: 0.01em;82  opacity: 0.72;83  font-variant-numeric: tabular-nums;84}8586@keyframes lk-plaque-in {87  from { opacity: 0; transform: scale(0.72); }88  to { opacity: 1; transform: scale(1); }89}90@keyframes lk-plaque-out {91  from { opacity: 1; transform: scale(1); }92  to { opacity: 0; transform: scale(0.8); }93}9495/* --- Logement sélectionné : la porte Lou-Ka ------------------------------------- */96.lk-pin {97  position: relative;98  display: grid;99  place-items: center;100  width: 2.9rem;101  height: 3.35rem;102  border-radius: 6px;103  background: var(--surface);104  border: 1.5px solid var(--accent);105  box-shadow: 0 8px 18px -6px rgb(0 0 0 / 0.4);106  animation: lk-pin-in 260ms cubic-bezier(0.3, 1.4, 0.5, 1) both;107  transform-origin: 50% calc(100% + 7px);108  pointer-events: none;109}110.lk-pin::after {111  content: "";112  position: absolute;113  left: 50%;114  top: 100%;115  width: 10px;116  height: 10px;117  margin: -4.5px 0 0 -5px;118  background: var(--surface);119  border-right: 1.5px solid var(--accent);120  border-bottom: 1.5px solid var(--accent);121  transform: rotate(45deg);122  border-radius: 0 0 2px 0;123}124@keyframes lk-pin-in {125  from { opacity: 0; transform: scale(0.5); }126  to { opacity: 1; transform: scale(1); }127}128129/* --- Aperçu au survol d'une étiquette (bureau) ----------------------------------- */130.lk-peek {131  position: absolute;132  z-index: 15;133  width: 13.5rem;134  pointer-events: none;135  border-radius: 10px;136  border: 1px solid var(--line-2);137  background: var(--surface);138  box-shadow: var(--shadow-lg);139  overflow: hidden;140  animation: lk-peek-in 150ms cubic-bezier(0.2, 0.7, 0.2, 1) both;141}142@keyframes lk-peek-in {143  from { opacity: 0; transform: translateY(4px); }144  to { opacity: 1; transform: none; }145}146147/* --- Habillage : commandes, légende, échelle -------------------------------------- */148.lk-mapctl {149  display: grid;150  place-items: center;151  width: 2.5rem;152  height: 2.5rem;153  color: var(--ink-2);154  background: var(--surface);155  transition: background-color 150ms ease, color 150ms ease;156}157.lk-mapctl:hover { background: var(--surface-2); color: var(--ink); }158.lk-mapctl[aria-pressed="true"] { color: var(--accent); }159.lk-mapgroup {160  display: flex;161  flex-direction: column;162  overflow: hidden;163  border-radius: 10px;164  border: 1px solid var(--line);165  background: var(--surface);166  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);167}168.lk-mapgroup > * + * { border-top: 1px solid var(--line); }169170.mapboxgl-ctrl-scale {171  border: 0 !important;172  border-bottom: 1.5px solid var(--ink-3) !important;173  background: transparent !important;174  color: var(--ink-3) !important;175  font-family: var(--font-sans);176  font-size: 10px !important;177  padding: 0 2px 1px !important;178  line-height: 1.2;179}180.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl { margin: 0 12px 10px 0; }181182@media (prefers-reduced-motion: reduce) {183  .lk-plaque,184  .lk-plaque--out,185  .lk-pin,186  .lk-peek { animation: none; }187  .lk-plaque { transition: none; }188}189
Files main
Menu

Theme