-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
144 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,119 @@ | ||
html { | ||
font-family: Arial, Helvetica, sans-serif; | ||
/* | ||
Copyright (c) Daniel W. Steinbrook. | ||
with many thanks to ChatGPT | ||
*/ | ||
|
||
body { | ||
font-family: Arial, sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
font-size: 1.2em; /* Increase default font size for better readability */ | ||
} | ||
|
||
/* touch-friendly button */ | ||
button, select, label, input { | ||
padding: 10px 20px; | ||
font-size: 16px; | ||
/* Top button bar */ | ||
nav { | ||
display: flex; | ||
justify-content: space-around; | ||
background-color: #2c3e50; | ||
padding: 15px; | ||
} | ||
|
||
.arrow-icon { | ||
width: 0; | ||
height: 0; | ||
border-left: 10px solid transparent; | ||
border-right: 10px solid transparent; | ||
border-bottom: 40px solid red; /* You can change the color */ | ||
transform-origin: bottom center; | ||
nav button, nav input, nav select, button { | ||
background-color: #e74c3c; | ||
color: #fff; | ||
border: none; | ||
padding: 15px; | ||
border-radius: 8px; | ||
cursor: pointer; | ||
font-size: 1.2em; /* Larger font size for buttons, inputs, and select */ | ||
margin-right: 10px; /* Add some spacing between controls */ | ||
max-width: 20%; | ||
} | ||
|
||
/* Speaking and playback rate selectors don't need to be as large */ | ||
nav input[type="number"] { | ||
max-width: 10%; | ||
} | ||
|
||
/* Voice selector should be wider (names can be long) */ | ||
nav select { | ||
max-width: 40%; | ||
} | ||
|
||
/* GPX file selector and seek position should be wider -- probably not running on a phone */ | ||
nav input[type="file"], nav input[type="range"] { | ||
max-width: none; | ||
} | ||
|
||
main { | ||
padding: 15px; | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-between; | ||
} | ||
|
||
#map { | ||
height: 400px; | ||
width: 100%; | ||
height: 300px; /* Adjusted height for better visibility */ | ||
border: 2px solid #000; /* Higher contrast for the map border */ | ||
margin-bottom: 15px; | ||
} | ||
|
||
#recentCalloutsArea { | ||
height: 400px; | ||
height: calc(100vh - 435px); /* all vertical space after map + button row */ | ||
overflow-y: auto; | ||
border: 1px solid #ccc; | ||
} | ||
|
||
/* display map + recent callouts side-by-side on sufficiently wide screens */ | ||
@media (min-width: 800px) { | ||
#map { | ||
width: 60%; | ||
display: inline-block; | ||
} | ||
#recentCalloutsArea { | ||
width: 38%; | ||
display: inline-block; | ||
} | ||
flex-basis: 100%; | ||
} | ||
|
||
#recentCalloutsList { | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
#recentCalloutsList li { | ||
height: 20px; | ||
#recentCalloutsList li, #recentCalloutsArea p { | ||
list-style: none; | ||
border-bottom: 2px solid #000; /* Higher contrast for list item borders */ | ||
padding: 15px; | ||
margin: 0; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
padding: 5px; | ||
border-bottom: 1px solid #eee; | ||
} | ||
|
||
/* Active beacon controls */ | ||
#recentCalloutsArea p { | ||
background-color: #e74c3c; | ||
color: #fff; | ||
font-weight: bold; | ||
} | ||
|
||
#recentCalloutsArea p button { | ||
background-color: #2c3e50; | ||
} | ||
|
||
#recentCalloutsArea button { | ||
padding: 0; | ||
width: 60px; | ||
} | ||
|
||
#recentCalloutsArea p { | ||
height: 20px; | ||
margin: 0; | ||
padding: 5px; | ||
border-bottom: 1px solid #000; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
/* display map + recent callouts side-by-side on sufficiently wide screens */ | ||
@media screen and (min-width: 600px) { | ||
#map { | ||
height: calc(100vh - 140px); /* all vertical space after button row */ | ||
width: 48%; | ||
} | ||
|
||
#recentCalloutsArea { | ||
height: calc(100vh - 140px); /* all vertical space after button row */ | ||
flex-basis: 48%; | ||
} | ||
} | ||
|
||
/* Current position marker on map */ | ||
.arrow-icon { | ||
width: 0; | ||
height: 0; | ||
border-left: 10px solid transparent; | ||
border-right: 10px solid transparent; | ||
border-bottom: 40px solid red; /* You can change the color */ | ||
transform-origin: bottom center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.