GarGerry commited on
Commit
8e5c5e9
·
verified ·
1 Parent(s): 4c165d8

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +41 -36
style.css CHANGED
@@ -134,6 +134,47 @@ body {
134
  align-items: center;
135
  }
136
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  #swap-btn i {
138
  font-size: 24px;
139
  }
@@ -212,40 +253,4 @@ body {
212
 
213
  .footer-content p {
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
- /* Arah panah swap vertikal untuk mode mobile */
231
- #swap-btn {
232
- transform: rotate(90deg); /* Arahkan panah swap ke vertikal */
233
- }
234
-
235
- .steps {
236
- flex-direction: column; /* Langkah-langkah dalam kolom */
237
- align-items: center;
238
- }
239
- }
240
-
241
- /* Penyesuaian untuk tampilan desktop (web mode) */
242
- @media screen and (min-width: 769px) {
243
- /* Arah panah swap horizontal untuk mode web */
244
- #swap-btn {
245
- transform: rotate(0deg); /* Arahkan panah swap ke horizontal */
246
- }
247
-
248
- .currency-select {
249
- flex-direction: row; /* Untuk elemen horizontal */
250
- }
251
  }
 
134
  align-items: center;
135
  }
136
 
137
+ /* Mode Mobile */
138
+ @media screen and (max-width: 768px) {
139
+ .currency-select {
140
+ flex-direction: column; /* Ubah jadi vertikal */
141
+ align-items: center;
142
+ }
143
+
144
+ #swap-btn {
145
+ transform: rotate(90deg); /* Rotate arrow to vertical */
146
+ width: 50px; /* Ensure button size stays the same */
147
+ height: 50px;
148
+ }
149
+
150
+ .currency-group select,
151
+ .currency-box input {
152
+ width: 100%; /* Sesuaikan lebar dropdown dan input untuk mobile */
153
+ }
154
+ }
155
+
156
+ /* Mode Web */
157
+ @media screen and (min-width: 769px) {
158
+ .currency-select {
159
+ flex-direction: row; /* Horizontal untuk mode web */
160
+ align-items: center;
161
+ }
162
+
163
+ #swap-btn {
164
+ transform: rotate(0deg); /* Keep arrow horizontal */
165
+ width: 50px;
166
+ height: 50px;
167
+ }
168
+
169
+ .currency-group select {
170
+ width: auto; /* Sesuaikan lebar dropdown untuk web */
171
+ }
172
+
173
+ .currency-box input {
174
+ width: auto; /* Sesuaikan lebar input untuk web */
175
+ }
176
+ }
177
+
178
  #swap-btn i {
179
  font-size: 24px;
180
  }
 
253
 
254
  .footer-content p {
255
  margin: 5px 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
256
  }