diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-06-29 00:20:58 +0200 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-06-29 00:20:58 +0200 |
| commit | eb6d97eb3905cf1baa85ce40c19c8467b5cf75da (patch) | |
| tree | edefc0d67d30ba68ffdd79d3dcf53b04558e827a | |
| parent | 04a6c90091a88ddfce5b6c27a7a506404e821f0e (diff) | |
Update amenities in README and add amenities.yaml for bus stop overrides
| -rw-r--r-- | data/README.md | 6 | ||||
| -rw-r--r-- | data/overrides/amenities.yaml | 23 | ||||
| -rw-r--r-- | src/frontend/app/components/LineIcon.css | 2 | ||||
| -rw-r--r-- | src/frontend/app/components/StopSheet.css | 5 |
4 files changed, 31 insertions, 5 deletions
diff --git a/data/README.md b/data/README.md index dd1da79..6aa2e10 100644 --- a/data/README.md +++ b/data/README.md @@ -15,7 +15,7 @@ stopId: # Numeric ID of the stop to override hide: # Hide the stop from the map and list (boolean) amenities: # List of amenities available at this stop (list) - shelter - - real-time display + - display ``` ## Field Descriptions @@ -27,7 +27,7 @@ stopId: # Numeric ID of the stop to override - **latitude** (float): Override latitude coordinate. - **longitude** (float): Override longitude coordinate. - **hide** (boolean): Set to `true` to exclude the stop from maps and listings. -- **amenities** (array of strings): Amenities available at this stop, such as `shelter` or `real-time display`. For now, only those two will be supported in the app. +- **amenities** (array of strings): Amenities available at this stop, such as `shelter` or `display`. For now, only those two will be supported in the app. ## Example @@ -43,4 +43,4 @@ stopId: # Numeric ID of the stop to override amenities: - shelter - real-time display -```
\ No newline at end of file +``` diff --git a/data/overrides/amenities.yaml b/data/overrides/amenities.yaml new file mode 100644 index 0000000..fa2067a --- /dev/null +++ b/data/overrides/amenities.yaml @@ -0,0 +1,23 @@ +5520: # García Barbón, 7 + amenities: + - shelter + - display +5530: # García Barbón, 18 + amenities: + - shelter + - display +6620: #Policarpo Sanz, 40 + amenities: + - shelter + - display +14264: # Urzáiz - Príncipe + amenities: + - shelter + - display +20193: # Policarpo Sanz, 25 + amenities: + - shelter + - display +20198: # Policarpo Sanz, 26 + amenities: + - shelter diff --git a/src/frontend/app/components/LineIcon.css b/src/frontend/app/components/LineIcon.css index 8914602..4613a85 100644 --- a/src/frontend/app/components/LineIcon.css +++ b/src/frontend/app/components/LineIcon.css @@ -54,9 +54,9 @@ font-size: 0.9rem; font-weight: 600; text-transform: uppercase; - color: inherit; border-radius: 0.25rem 0.25rem 0 0; + color: var(--text-color); background-color: var(--background-color); } diff --git a/src/frontend/app/components/StopSheet.css b/src/frontend/app/components/StopSheet.css index 3f7621e..735e6cf 100644 --- a/src/frontend/app/components/StopSheet.css +++ b/src/frontend/app/components/StopSheet.css @@ -1,4 +1,8 @@ /* Stop Sheet Styles */ +.react-modal-sheet-container { + background-color: var(--background-color) !important; +} + .stop-sheet-content { padding: 16px; display: flex; @@ -118,7 +122,6 @@ text-decoration: none; } -/* Override react-modal-sheet styles for better integration */ [data-rsbs-overlay] { background-color: rgba(0, 0, 0, 0.3); } |
