Update style.css
Browse files
style.css
CHANGED
@@ -72,24 +72,22 @@ body {
|
|
72 |
box-sizing: border-box;
|
73 |
}
|
74 |
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
margin-bottom: 5px;
|
79 |
-
color: #004d00; /* Hijau tua */
|
80 |
-
}
|
81 |
-
|
82 |
-
.currency-box input {
|
83 |
padding: 15px;
|
84 |
font-size: 16px;
|
85 |
-
width: 100%;
|
86 |
border-radius: 8px;
|
87 |
border: 1px solid #ccc;
|
88 |
box-sizing: border-box;
|
|
|
89 |
}
|
90 |
|
|
|
91 |
.currency-select {
|
92 |
display: flex;
|
|
|
93 |
justify-content: space-between;
|
94 |
align-items: flex-start;
|
95 |
width: 100%;
|
@@ -98,19 +96,14 @@ body {
|
|
98 |
flex-wrap: wrap;
|
99 |
}
|
100 |
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
}
|
107 |
-
|
108 |
-
.currency-group select {
|
109 |
-
padding: 15px;
|
110 |
-
font-size: 16px;
|
111 |
width: 100%;
|
112 |
-
|
113 |
-
|
114 |
}
|
115 |
|
116 |
/* Swap Button */
|
@@ -135,54 +128,6 @@ body {
|
|
135 |
transform: rotate(180deg);
|
136 |
}
|
137 |
|
138 |
-
/* Style CSS sebelumnya */
|
139 |
-
|
140 |
-
/* Mode Mobile */
|
141 |
-
@media screen and (max-width: 768px) {
|
142 |
-
.currency-select {
|
143 |
-
display: flex;
|
144 |
-
flex-direction: column; /* Menyusun dropdown dan tombol secara vertikal */
|
145 |
-
justify-content: center;
|
146 |
-
align-items: center;
|
147 |
-
gap: 10px; /* Menambah jarak antar elemen */
|
148 |
-
}
|
149 |
-
|
150 |
-
#swap-btn {
|
151 |
-
transform: rotate(90deg); /* Rotasi tombol swap supaya bisa terlihat seperti tombol tukar */
|
152 |
-
width: 40px;
|
153 |
-
height: 40px;
|
154 |
-
margin: 0; /* Menghilangkan margin untuk posisi yang lebih tepat */
|
155 |
-
}
|
156 |
-
|
157 |
-
.currency-group {
|
158 |
-
display: flex;
|
159 |
-
flex-direction: column; /* Menyusun label dan dropdown secara vertikal */
|
160 |
-
align-items: center;
|
161 |
-
}
|
162 |
-
}
|
163 |
-
|
164 |
-
/* Mode Web dan Tablet */
|
165 |
-
@media screen and (min-width: 769px) {
|
166 |
-
.currency-select {
|
167 |
-
display: flex;
|
168 |
-
flex-direction: row; /* Menyusun elemen secara horizontal */
|
169 |
-
align-items: center;
|
170 |
-
gap: 20px; /* Jarak antar elemen */
|
171 |
-
}
|
172 |
-
|
173 |
-
#swap-btn {
|
174 |
-
transform: rotate(0deg); /* Pastikan tombol swap tetap horizontal */
|
175 |
-
width: 50px;
|
176 |
-
height: 50px;
|
177 |
-
}
|
178 |
-
|
179 |
-
.currency-group {
|
180 |
-
display: flex;
|
181 |
-
flex-direction: column; /* Label dan dropdown disusun secara vertikal */
|
182 |
-
align-items: center;
|
183 |
-
}
|
184 |
-
}
|
185 |
-
|
186 |
/* Convert Button */
|
187 |
#convert-btn {
|
188 |
background-color: #004d00; /* Hijau tua */
|
@@ -263,4 +208,35 @@ body {
|
|
263 |
|
264 |
.footer-content a:hover {
|
265 |
color: #ccc;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
}
|
|
|
72 |
box-sizing: border-box;
|
73 |
}
|
74 |
|
75 |
+
/* Currency Input dan Select yang konsisten */
|
76 |
+
.currency-box input,
|
77 |
+
.currency-group select {
|
|
|
|
|
|
|
|
|
|
|
78 |
padding: 15px;
|
79 |
font-size: 16px;
|
80 |
+
width: 100%; /* Pastikan input dan select memenuhi lebar container */
|
81 |
border-radius: 8px;
|
82 |
border: 1px solid #ccc;
|
83 |
box-sizing: border-box;
|
84 |
+
margin-bottom: 10px; /* Memberi ruang antara input dan elemen lainnya */
|
85 |
}
|
86 |
|
87 |
+
/* Konsistensi tampilan grup currency */
|
88 |
.currency-select {
|
89 |
display: flex;
|
90 |
+
flex-direction: row;
|
91 |
justify-content: space-between;
|
92 |
align-items: flex-start;
|
93 |
width: 100%;
|
|
|
96 |
flex-wrap: wrap;
|
97 |
}
|
98 |
|
99 |
+
/* Penyesuaian grup currency */
|
100 |
+
.currency-group {
|
101 |
+
display: flex;
|
102 |
+
flex-direction: column;
|
103 |
+
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
104 |
width: 100%;
|
105 |
+
max-width: 200px; /* Lebar maksimal untuk elemen select */
|
106 |
+
margin-bottom: 20px; /* Menambahkan margin untuk spasi antar elemen */
|
107 |
}
|
108 |
|
109 |
/* Swap Button */
|
|
|
128 |
transform: rotate(180deg);
|
129 |
}
|
130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
/* Convert Button */
|
132 |
#convert-btn {
|
133 |
background-color: #004d00; /* Hijau tua */
|
|
|
208 |
|
209 |
.footer-content a:hover {
|
210 |
color: #ccc;
|
211 |
+
}
|
212 |
+
|
213 |
+
/* Responsivitas */
|
214 |
+
@media screen and (max-width: 768px) {
|
215 |
+
.currency-select {
|
216 |
+
flex-direction: column;
|
217 |
+
gap: 10px; /* Menambah jarak antar elemen */
|
218 |
+
}
|
219 |
+
|
220 |
+
#swap-btn {
|
221 |
+
transform: rotate(90deg); /* Rotasi tombol swap supaya bisa terlihat seperti tombol tukar */
|
222 |
+
width: 40px;
|
223 |
+
height: 40px;
|
224 |
+
margin: 0; /* Menghilangkan margin untuk posisi yang lebih tepat */
|
225 |
+
}
|
226 |
+
|
227 |
+
.currency-group {
|
228 |
+
width: 100%; /* Agar select tampil penuh di layar kecil */
|
229 |
+
}
|
230 |
+
}
|
231 |
+
|
232 |
+
@media screen and (min-width: 769px) {
|
233 |
+
.currency-select {
|
234 |
+
flex-direction: row;
|
235 |
+
justify-content: space-between;
|
236 |
+
gap: 20px;
|
237 |
+
}
|
238 |
+
|
239 |
+
.currency-group {
|
240 |
+
width: 45%; /* Membatasi lebar grup agar tidak terlalu lebar */
|
241 |
+
}
|
242 |
}
|