Skip to content

Commit ea4d5af

Browse files
committed
addded responsiviness
1 parent 1c15bac commit ea4d5af

File tree

1 file changed

+26
-50
lines changed

1 file changed

+26
-50
lines changed

css/index.css

Lines changed: 26 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/* Universal box-sizing for easier layout */
2-
* {
3-
box-sizing: border-box;
4-
}
5-
61
body {
72
background-color: white;
83
font-family: "Plus Jakarta Sans", "Noto Sans", sans-serif;
@@ -37,6 +32,9 @@ body {
3732
align-items: center;
3833
gap: 1rem; /* Adjusted gap for mobile */
3934
}
35+
.abc{
36+
color: black;
37+
}
4038
.nav-links {
4139
display: none; /* Hide nav links by default on mobile */
4240
}
@@ -56,11 +54,6 @@ body {
5654
.nav-links {
5755
display: flex; /* Show nav links on larger screens */
5856
}
59-
.nav-links a {
60-
font-size: 0.875rem; /* Ensure original font size for desktop */
61-
font-weight: 500;
62-
padding: 0 0.5rem; /* Add slight padding for better spacing on desktop nav */
63-
}
6457
.help-btn {
6558
display: block; /* Show help button on larger screens */
6659
}
@@ -147,45 +140,33 @@ body {
147140
cursor: pointer;
148141
}
149142
.dropdown{
150-
padding: 12px; /* Increased padding for better touch target */
143+
padding:8px;
151144
width: 100%;
152145
margin-top: 4px;
153146
}
154-
155-
/* Mobile specific styles for search section */
156-
@media (max-width: 767px) {
157-
.search {
158-
flex-direction: column; /* Stack elements vertically on mobile */
159-
align-items: stretch; /* Stretch items to full width */
160-
padding: 0 1rem; /* Add horizontal padding to prevent overflow */
161-
}
162-
.search .field {
163-
flex: 1 1 auto; /* Allow fields to grow and shrink, remove min-width restriction */
164-
width: 100%; /* Ensure full width */
165-
min-width: auto; /* Remove explicit min-width for mobile */
166-
}
167-
#search {
168-
display: block; /* Make search button full-width */
169-
width: 100%; /* Ensure full width */
170-
padding: 12px; /* Increased padding for better touch target */
171-
margin-top: 1rem; /* Add more space above button */
172-
height: auto; /* Allow height to adjust with padding */
173-
}
174-
.dropdown {
175-
background-color: white; /* Ensure white background on mobile */
176-
max-height: 40vh; /* Limit visible height on mobile */
177-
overflow-y: auto; /* Enable scrolling for long lists */
178-
-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
179-
padding: 12px; /* Ensure consistent padding */
180-
}
181-
.view-route-btn {
182-
display: block; /* Make view route button full-width */
183-
width: 100%;
184-
padding: 12px; /* Increased padding for better touch target */
185-
text-align: center;
186-
}
147+
.nav-links {
148+
display: flex;
149+
gap: 2.25rem;
187150
}
188-
151+
.nav-links a {
152+
font-size: 0.875rem;
153+
font-weight: 500;
154+
}
155+
.help-btn {
156+
padding: 0.5rem 1rem;
157+
border-radius: 0.5rem;
158+
background-color: #f3f4f6;
159+
font-weight: bold;
160+
font-size: 0.875rem;
161+
}
162+
.avatar {
163+
background-size: cover;
164+
background-position: center;
165+
border-radius: 9999px;
166+
width: 2.5rem;
167+
height: 2.5rem;
168+
}
169+
189170
/* Hero Section */
190171
.hero {
191172
padding: 1.25rem 1rem; /* Adjusted padding for mobile */
@@ -280,8 +261,6 @@ body {
280261
}
281262
.footer-links a {
282263
color: #6b7280;
283-
padding: 8px 12px; /* Add padding for better touch target */
284-
border-radius: 4px;
285264
}
286265
.footer p {
287266
color: #6b7280;
@@ -366,7 +345,4 @@ body {
366345
flex: 1; /* Original flex for larger screens */
367346
}
368347
}
369-
.abc{
370-
color: black;
371-
}
372348

0 commit comments

Comments
 (0)