GarGerry commited on
Commit
bae041d
·
verified ·
1 Parent(s): 3fd8eba

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +46 -0
style.css CHANGED
@@ -135,6 +135,52 @@ body {
135
  transform: rotate(180deg);
136
  }
137
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  /* Convert Button */
139
  #convert-btn {
140
  background-color: #004d00; /* Hijau tua */
 
135
  transform: rotate(180deg);
136
  }
137
 
138
+ /* Mode Mobile */
139
+ @media screen and (max-width: 768px) {
140
+ .currency-select {
141
+ display: flex;
142
+ flex-direction: column; /* Menyusun dropdown dan tombol secara vertikal */
143
+ justify-content: center;
144
+ align-items: center;
145
+ gap: 10px; /* Menambah jarak antar elemen */
146
+ }
147
+
148
+ #swap-btn {
149
+ transform: rotate(90deg); /* Rotasi tombol swap supaya bisa terlihat seperti tombol tukar */
150
+ width: 40px;
151
+ height: 40px;
152
+ margin: 0; /* Menghilangkan margin untuk posisi yang lebih tepat */
153
+ }
154
+
155
+ .currency-group {
156
+ display: flex;
157
+ flex-direction: column; /* Menyusun label dan dropdown secara vertikal */
158
+ align-items: center;
159
+ }
160
+ }
161
+
162
+ /* Mode Web dan Tablet */
163
+ @media screen and (min-width: 769px) {
164
+ .currency-select {
165
+ display: flex;
166
+ flex-direction: row; /* Menyusun elemen secara horizontal */
167
+ align-items: center;
168
+ gap: 20px; /* Jarak antar elemen */
169
+ }
170
+
171
+ #swap-btn {
172
+ transform: rotate(0deg); /* Pastikan tombol swap tetap horizontal */
173
+ width: 50px;
174
+ height: 50px;
175
+ }
176
+
177
+ .currency-group {
178
+ display: flex;
179
+ flex-direction: column; /* Label dan dropdown disusun secara vertikal */
180
+ align-items: center;
181
+ }
182
+ }
183
+
184
  /* Convert Button */
185
  #convert-btn {
186
  background-color: #004d00; /* Hijau tua */