Skip to content

Commit fae13c6

Browse files
authored
Merge pull request #44 from codefornola/menu_names
Add route names/icons to route selection dropdown
2 parents f05fa3e + 381d00e commit fae13c6

14 files changed

+240
-55
lines changed

app/components/modal.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ function CustomModal(props) {
1111
return(
1212
<div>
1313
<button onClick={handleShow} className="about-button">{props.buttonText}</button>
14-
{show ?(
15-
<div class="Modal">
16-
<aside class="Modal__content">
17-
<div class="Modal__content--header">
14+
{show ? (
15+
<div className="Modal">
16+
<aside className="Modal__content">
17+
<div className="Modal__content--header">
1818
<h2>{props.title}</h2>
1919
<p>{props.subtitle}</p>
2020
</div>
2121
<p>
2222
{props.content}
2323
</p>
24-
<div class="Modal__content--footer">
24+
<div className="Modal__content--footer">
2525
<Button onClick={handleClose}>
2626
Close
2727
</Button>

app/main.css

Lines changed: 62 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
21
body {
32
padding: 0;
43
margin: 0;
54
}
6-
html, body, #main, main, .App, .leaflet-container {
5+
6+
html,
7+
body,
8+
#main,
9+
main,
10+
.App,
11+
.leaflet-container {
712
height: 100%;
813
width: 100vw;
914
}
10-
/* Need this hack to get transparency to work */
11-
.leaflet-marker-icon { background-color: transparent; border-color: transparent }
1215

1316
:root {
1417
--primary: #7A278D;
@@ -25,27 +28,31 @@ html, body, #main, main, .App, .leaflet-container {
2528
}
2629

2730
.control-bar {
31+
position: absolute;
32+
min-width: 35vw;
33+
border-radius: 0 0 10px 0px;
34+
35+
display: flex;
36+
justify-content: space-between;
2837
align-items: center;
38+
2939
background: var(--primary);
30-
justify-content: space-between;
31-
display: flex;
3240
color: white;
33-
position: absolute;
34-
min-width: 35vw;
3541
z-index: 1000;
36-
border-radius: 0 0 10px 0px;
42+
43+
filter: drop-shadow(0.2rem 0.2rem 0.5rem #00000077)
3744
}
3845

3946

4047
.control-bar svg {
4148
margin-right: 0.5rem;
4249
}
4350

44-
.control-bar__filter-label {
45-
align-items: center;
46-
display: flex;
47-
padding: 0.75rem 1rem;
48-
}
51+
/* .control-bar__filter-label { */
52+
/* align-items: center; */
53+
/* display: flex; */
54+
/* padding: 0.75rem 1rem; */
55+
/* } */
4956

5057
.control-bar__connection-container {
5158
border-left: solid 1px var(--primary_darker);
@@ -66,8 +73,12 @@ html, body, #main, main, .App, .leaflet-container {
6673
}
6774

6875
.route-filter {
69-
margin-left: 1rem;
76+
/* margin-left: 1rem; */
7077
color: black;
78+
79+
min-width: 300px;
80+
81+
margin: 0.5rem;
7182
}
7283

7384
.about-button {
@@ -145,6 +156,7 @@ button {
145156
.control-bar {
146157
min-width: 45vw;
147158
}
159+
148160
.Modal__content {
149161
max-width: 75%;
150162
}
@@ -154,29 +166,58 @@ button {
154166
body {
155167
font-size: 0.9rem;
156168
}
157-
.control-bar__filter-label {
158-
width: 100%;
159-
padding: 0.5rem 0;
160-
}
161-
169+
170+
/* .control-bar__filter-label { */
171+
/* width: 100%; */
172+
/* padding: 0.5rem 0; */
173+
/* } */
174+
162175
.route-filter {
163176
width: 100%;
164177
}
178+
179+
.route-select-option__wrapper .route-and-icon span {
180+
font-size: 1.5rem;
181+
}
182+
165183
.control-bar__label-text {
166184
display: none;
167185
}
186+
168187
.control-bar {
169188
min-width: 100vw;
170-
font-size: 0.75rem;
189+
font-size: 0.9rem;
171190
}
172191

173192
.Modal__content {
174193
max-width: 90%;
175194
margin-top: 15%;
176195
font-size: 0.9rem;
177196
}
197+
178198
.about-button {
179199
font-size: 0.7rem;
180200
padding: 0.5rem 0.75rem;
181201
}
182202
}
203+
204+
.route-select-option__wrapper {
205+
display: grid;
206+
grid-template-columns: min-content auto;
207+
align-items: center;
208+
gap: 1rem;
209+
}
210+
211+
.route-select-option__wrapper .route-and-icon {
212+
display: grid;
213+
grid-template-columns: 1fr 1fr;
214+
align-items: center;
215+
gap: 0.5rem;
216+
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
217+
font-size: 1.8rem;
218+
}
219+
220+
.route-select-option__wrapper img {
221+
width: 20px;
222+
height: 20px;
223+
}

0 commit comments

Comments
 (0)