Skip to content

Commit f22439c

Browse files
committed
style(create-trip): improve layout and responsiveness
1 parent 2e2efa4 commit f22439c

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

client/src/pages/styles/CreateTrip.css

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,11 @@
7777
background-color: #ffffff;
7878
padding: 2rem;
7979
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
80+
transition: box-shadow 0.3s ease;
81+
}
82+
.create-trip-form:hover {
83+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
8084
}
81-
8285
.form-group {
8386
display: flex;
8487
flex-direction: column;
@@ -175,27 +178,20 @@
175178
flex: 1;
176179
}
177180

178-
#start-date {
179-
color: #999;
180-
}
181-
182-
#end-date {
183-
color: #999;
181+
input[type="date"]:not(:placeholder-shown) {
182+
color: var(--black);
184183
}
185184

186185
.astuces-container {
187-
display: flex;
188-
justify-content: center;
189-
align-items: center;
190-
width: 25vw;
191-
height: 9vh;
186+
width: 100%;
187+
max-width: 480px;
192188
background-color: rgba(217, 217, 217, 0.3);
193189
border: 1px solid rgba(217, 217, 217, 0.5);
194190
border-radius: 8px;
195191
padding: 1rem;
196-
margin-top: 2.5rem;
192+
margin-top: 2rem;
197193
font-family: var(--body-text);
198-
font-size: 1rem;
194+
font-size: 0.95rem;
199195
color: var(--black);
200196
text-align: center;
201197
}
@@ -218,6 +214,8 @@
218214
cursor: pointer;
219215
border: none;
220216
transition: all 0.2s ease;
217+
flex: 1;
218+
max-width: 200px;
221219
}
222220

223221
.button-container button[type="submit"] {

0 commit comments

Comments
 (0)