update frontend
This commit is contained in:
parent
a9351196df
commit
40d55b478d
|
|
@ -0,0 +1,102 @@
|
|||
.map-controls {
|
||||
position: absolute;
|
||||
right: 16px;
|
||||
bottom: 16px;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
z-index: 30;
|
||||
|
||||
/* valeurs par défaut, override par thème */
|
||||
--map-controls-bg: rgba(15, 23, 42, 0.85);
|
||||
--map-controls-border: rgba(148, 163, 184, 0.65);
|
||||
--map-controls-accent: #38bdf8;
|
||||
--map-controls-accent-text: #0f172a;
|
||||
--map-controls-text: #e5e7eb;
|
||||
}
|
||||
|
||||
/* ==== THEMES ==== */
|
||||
|
||||
.map-controls--dark {
|
||||
--map-controls-bg: rgba(15, 23, 42, 0.9);
|
||||
--map-controls-border: rgba(148, 163, 184, 0.7);
|
||||
--map-controls-accent: #38bdf8;
|
||||
--map-controls-accent-text: #0f172a;
|
||||
--map-controls-text: #e5e7eb;
|
||||
}
|
||||
|
||||
.map-controls--blue {
|
||||
--map-controls-bg: rgba(15, 23, 60, 0.9);
|
||||
--map-controls-border: rgba(59, 130, 246, 0.7);
|
||||
--map-controls-accent: #60a5fa;
|
||||
--map-controls-accent-text: #0b1120;
|
||||
--map-controls-text: #dbeafe;
|
||||
}
|
||||
|
||||
.map-controls--light {
|
||||
--map-controls-bg: rgba(248, 250, 252, 0.92);
|
||||
--map-controls-border: rgba(148, 163, 184, 0.7);
|
||||
--map-controls-accent: #2563eb;
|
||||
--map-controls-accent-text: #eff6ff;
|
||||
--map-controls-text: #0f172a;
|
||||
}
|
||||
|
||||
/* ==== BOUTONS ==== */
|
||||
|
||||
.map-controls__button {
|
||||
padding: 8px 14px;
|
||||
font-size: 13px;
|
||||
line-height: 1;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--map-controls-border); /* le “wire” autour */
|
||||
background: var(--map-controls-bg);
|
||||
color: var(--map-controls-text);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
cursor: pointer;
|
||||
backdrop-filter: blur(10px);
|
||||
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.45);
|
||||
transition:
|
||||
background 0.15s ease,
|
||||
border-color 0.15s ease,
|
||||
transform 0.1s ease,
|
||||
box-shadow 0.1s ease;
|
||||
}
|
||||
|
||||
.map-controls__button:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 16px 35px rgba(15, 23, 42, 0.55);
|
||||
}
|
||||
|
||||
.map-controls__button:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 8px 20px rgba(15, 23, 42, 0.4);
|
||||
}
|
||||
|
||||
/* My Spot = bouton accent qui suit le thème */
|
||||
|
||||
.map-controls__button--myspot {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
var(--map-controls-accent),
|
||||
color-mix(in srgb, var(--map-controls-accent) 70%, black 30%)
|
||||
);
|
||||
color: var(--map-controls-accent-text);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.map-controls__button--myspot:hover {
|
||||
border-color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
/* Put a wire = bouton ghost avec wire plus visible */
|
||||
|
||||
.map-controls__button--wire {
|
||||
background: rgba(15, 23, 42, 0.2);
|
||||
}
|
||||
|
||||
.map-controls__button--wire:hover {
|
||||
background: rgba(15, 23, 42, 0.35);
|
||||
border-color: rgba(248, 250, 252, 0.8);
|
||||
}
|
||||
Loading…
Reference in New Issue