aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components/StopMapSheet.css
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-11-19 22:58:40 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-11-19 22:58:40 +0100
commit3ebb062e99dbd8a63d5642d67ba4be753e61a34d (patch)
tree3729e829f125f6bf7055cf504b255948ee683526 /src/frontend/app/components/StopMapSheet.css
parent747c579b15c54dc5dbc50482d3361761853e007a (diff)
feat: Enhance map attribution feature; improve styles and add toggle functionality in StopMapSheet component
Diffstat (limited to 'src/frontend/app/components/StopMapSheet.css')
-rw-r--r--src/frontend/app/components/StopMapSheet.css62
1 files changed, 54 insertions, 8 deletions
diff --git a/src/frontend/app/components/StopMapSheet.css b/src/frontend/app/components/StopMapSheet.css
index 2b28a13..6b2e8ed 100644
--- a/src/frontend/app/components/StopMapSheet.css
+++ b/src/frontend/app/components/StopMapSheet.css
@@ -76,15 +76,61 @@
animation: userPulse 1.8s ease-out infinite;
}
-.stop-map-container small {
+/* Map attribution */
+.map-attribution {
position: absolute;
- bottom: 4px;
- left: 4px;
- font-size: 12px;
- color: var(--text-secondary);
- background-color: rgba(255, 255, 255, 0.7);
- padding: 2px 4px;
- border-radius: 4px;
+ left: 8px;
+ bottom: 8px;
+ display: flex;
+ align-items: flex-end;
+ gap: 0.4rem;
+ z-index: 2;
+}
+
+.map-attribution__toggle {
+ width: 28px;
+ height: 28px;
+ border-radius: 50%;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ background: rgba(255, 255, 255, 0.9);
+ color: #111;
+ font-weight: 700;
+ font-size: 0.85rem;
+ cursor: pointer;
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
+}
+
+[data-theme="dark"] .map-attribution__toggle {
+ background: rgba(17, 24, 39, 0.9);
+ color: #f8fafc;
+ border-color: rgba(255, 255, 255, 0.2);
+}
+
+.map-attribution__panel {
+ font-size: 0.7rem;
+ background: rgba(0, 0, 0, 0.75);
+ color: #fff;
+ padding: 0.35rem 0.65rem;
+ border-radius: 999px;
+ max-width: 220px;
+ opacity: 0;
+ transform: translateX(-6px) scale(0.98);
+ transform-origin: left bottom;
+ transition: opacity 0.2s ease, transform 0.2s ease;
+ pointer-events: none;
+ line-height: 1.2;
+}
+
+.map-attribution__panel a {
+ color: inherit;
+ text-decoration: underline;
+ font-weight: 600;
+}
+
+.map-attribution.open .map-attribution__panel {
+ opacity: 1;
+ transform: translateX(0) scale(1);
+ pointer-events: auto;
}
@keyframes userPulse {