Update style.css
Browse files
style.css
CHANGED
@@ -57,6 +57,7 @@ body {
|
|
57 |
flex-direction: column;
|
58 |
}
|
59 |
|
|
|
60 |
.converter-container {
|
61 |
display: flex;
|
62 |
flex-direction: column;
|
@@ -70,6 +71,7 @@ body {
|
|
70 |
box-sizing: border-box;
|
71 |
}
|
72 |
|
|
|
73 |
.currency-box {
|
74 |
display: flex;
|
75 |
flex-direction: column;
|
@@ -79,6 +81,7 @@ body {
|
|
79 |
margin: 0 auto;
|
80 |
}
|
81 |
|
|
|
82 |
.currency-box .amount {
|
83 |
display: flex;
|
84 |
justify-content: space-between;
|
@@ -113,6 +116,13 @@ body {
|
|
113 |
margin: 30px 0;
|
114 |
}
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
.currency-group select {
|
117 |
padding: 20px;
|
118 |
font-size: 18px;
|
@@ -135,33 +145,39 @@ body {
|
|
135 |
align-items: center;
|
136 |
margin: 30px auto;
|
137 |
font-weight: bold;
|
138 |
-
transform: rotate(0deg);
|
|
|
139 |
}
|
140 |
|
141 |
/* Mode Mobile */
|
142 |
@media screen and (max-width: 768px) {
|
143 |
.currency-select {
|
144 |
flex-direction: column;
|
|
|
|
|
145 |
gap: 15px;
|
146 |
}
|
147 |
|
148 |
#swap-btn {
|
149 |
-
transform: rotate(90deg); /* Rotasi tombol swap
|
150 |
width: 60px;
|
151 |
height: 60px;
|
152 |
margin: 0;
|
153 |
}
|
154 |
}
|
155 |
|
156 |
-
/* Mode
|
157 |
@media screen and (min-width: 769px) {
|
158 |
.currency-select {
|
159 |
flex-direction: row;
|
|
|
160 |
gap: 25px;
|
161 |
}
|
162 |
|
163 |
#swap-btn {
|
164 |
-
transform: rotate(0deg); /*
|
|
|
|
|
165 |
}
|
166 |
}
|
167 |
|
@@ -209,6 +225,12 @@ body {
|
|
209 |
padding: 25px;
|
210 |
border-radius: 10px;
|
211 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
}
|
213 |
|
214 |
.step h3 {
|
@@ -226,6 +248,10 @@ body {
|
|
226 |
border-top: 2px solid #003300;
|
227 |
}
|
228 |
|
|
|
|
|
|
|
|
|
229 |
.footer-content a {
|
230 |
color: white;
|
231 |
text-decoration: none;
|
|
|
57 |
flex-direction: column;
|
58 |
}
|
59 |
|
60 |
+
/* Container untuk semua elemen konversi */
|
61 |
.converter-container {
|
62 |
display: flex;
|
63 |
flex-direction: column;
|
|
|
71 |
box-sizing: border-box;
|
72 |
}
|
73 |
|
74 |
+
/* Flexbox untuk bagian input Amount, From, Swap, dan To */
|
75 |
.currency-box {
|
76 |
display: flex;
|
77 |
flex-direction: column;
|
|
|
81 |
margin: 0 auto;
|
82 |
}
|
83 |
|
84 |
+
/* Untuk input amount */
|
85 |
.currency-box .amount {
|
86 |
display: flex;
|
87 |
justify-content: space-between;
|
|
|
116 |
margin: 30px 0;
|
117 |
}
|
118 |
|
119 |
+
.currency-group {
|
120 |
+
display: flex;
|
121 |
+
flex-direction: column;
|
122 |
+
align-items: center;
|
123 |
+
width: 100%;
|
124 |
+
}
|
125 |
+
|
126 |
.currency-group select {
|
127 |
padding: 20px;
|
128 |
font-size: 18px;
|
|
|
145 |
align-items: center;
|
146 |
margin: 30px auto;
|
147 |
font-weight: bold;
|
148 |
+
transform: rotate(0deg);
|
149 |
+
transition: transform 0.3s ease;
|
150 |
}
|
151 |
|
152 |
/* Mode Mobile */
|
153 |
@media screen and (max-width: 768px) {
|
154 |
.currency-select {
|
155 |
flex-direction: column;
|
156 |
+
justify-content: center;
|
157 |
+
align-items: center;
|
158 |
gap: 15px;
|
159 |
}
|
160 |
|
161 |
#swap-btn {
|
162 |
+
transform: rotate(90deg); /* Rotasi tombol swap untuk mobile */
|
163 |
width: 60px;
|
164 |
height: 60px;
|
165 |
margin: 0;
|
166 |
}
|
167 |
}
|
168 |
|
169 |
+
/* Mode Web dan Tablet */
|
170 |
@media screen and (min-width: 769px) {
|
171 |
.currency-select {
|
172 |
flex-direction: row;
|
173 |
+
align-items: center;
|
174 |
gap: 25px;
|
175 |
}
|
176 |
|
177 |
#swap-btn {
|
178 |
+
transform: rotate(0deg); /* Rotasi horizontal untuk desktop */
|
179 |
+
width: 70px;
|
180 |
+
height: 70px;
|
181 |
}
|
182 |
}
|
183 |
|
|
|
225 |
padding: 25px;
|
226 |
border-radius: 10px;
|
227 |
text-align: center;
|
228 |
+
transition: background-color 0.3s ease, transform 0.3s ease;
|
229 |
+
}
|
230 |
+
|
231 |
+
.step:hover {
|
232 |
+
background-color: #e0e0e0;
|
233 |
+
transform: translateY(-5px);
|
234 |
}
|
235 |
|
236 |
.step h3 {
|
|
|
248 |
border-top: 2px solid #003300;
|
249 |
}
|
250 |
|
251 |
+
.footer-content p {
|
252 |
+
margin: 5px 0;
|
253 |
+
}
|
254 |
+
|
255 |
.footer-content a {
|
256 |
color: white;
|
257 |
text-decoration: none;
|