Update style.css
Browse files
style.css
CHANGED
@@ -214,45 +214,36 @@ body {
|
|
214 |
margin: 5px 0;
|
215 |
}
|
216 |
|
217 |
-
/*
|
218 |
@media screen and (max-width: 768px) {
|
219 |
-
.currency-
|
220 |
-
|
221 |
-
|
222 |
-
|
|
|
|
|
|
|
|
|
|
|
223 |
}
|
224 |
|
225 |
-
/* Mengatur arah panah swap pada mode mobile (vertikal) */
|
226 |
#swap-btn {
|
227 |
-
transform: rotate(90deg); /*
|
228 |
}
|
229 |
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
}
|
234 |
}
|
235 |
|
236 |
-
/*
|
237 |
@media screen and (min-width: 769px) {
|
238 |
#swap-btn {
|
239 |
-
transform: rotate(0deg); /*
|
240 |
}
|
241 |
|
242 |
-
/* Layout default untuk tampilan desktop */
|
243 |
.currency-select {
|
244 |
-
flex-direction: row; /*
|
245 |
-
}
|
246 |
-
}
|
247 |
-
|
248 |
-
@media screen and (max-width: 480px) {
|
249 |
-
.currency-box input,
|
250 |
-
.currency-select select,
|
251 |
-
.currency-select button {
|
252 |
-
width: 100%;
|
253 |
-
}
|
254 |
-
|
255 |
-
.steps {
|
256 |
-
gap: 15px; /* Kurangi jarak antar kotak di layar kecil */
|
257 |
}
|
258 |
}
|
|
|
214 |
margin: 5px 0;
|
215 |
}
|
216 |
|
217 |
+
/* Penyesuaian tombol swap dan elemen lainnya untuk mode mobile */
|
218 |
@media screen and (max-width: 768px) {
|
219 |
+
.currency-select {
|
220 |
+
flex-direction: column; /* Untuk elemen vertikal */
|
221 |
+
align-items: center;
|
222 |
+
}
|
223 |
+
|
224 |
+
.currency-box input,
|
225 |
+
.currency-select select {
|
226 |
+
width: 100%; /* Agar input dan dropdown lebarnya sama */
|
227 |
+
max-width: 400px; /* Sama dengan lebar input "amount" */
|
228 |
}
|
229 |
|
|
|
230 |
#swap-btn {
|
231 |
+
transform: rotate(90deg); /* Arahkan panah swap ke vertikal */
|
232 |
}
|
233 |
|
234 |
+
.steps {
|
235 |
+
flex-direction: column; /* Langkah-langkah dalam kolom */
|
236 |
+
align-items: center;
|
237 |
}
|
238 |
}
|
239 |
|
240 |
+
/* Penyesuaian untuk tampilan desktop (web mode) */
|
241 |
@media screen and (min-width: 769px) {
|
242 |
#swap-btn {
|
243 |
+
transform: rotate(0deg); /* Arahkan panah swap ke horizontal */
|
244 |
}
|
245 |
|
|
|
246 |
.currency-select {
|
247 |
+
flex-direction: row; /* Untuk elemen horizontal */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
}
|
249 |
}
|