GarGerry commited on
Commit
70dad81
·
verified ·
1 Parent(s): abefd7f

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +14 -60
style.css CHANGED
@@ -1,6 +1,6 @@
1
  /* Body */
2
  body {
3
- font-family: 'Open Sans', Arial, sans-serif; /* Ganti font ke Open Sans untuk kesan lebih profesional */
4
  margin: 0;
5
  padding: 0;
6
  box-sizing: border-box;
@@ -29,11 +29,6 @@ body {
29
  object-fit: contain;
30
  }
31
 
32
- .navbar .logo img:hover {
33
- transform: scale(1.1);
34
- transition: transform 0.3s ease;
35
- }
36
-
37
  /* Headline */
38
  .headline {
39
  text-align: center;
@@ -62,13 +57,12 @@ body {
62
  flex-direction: column;
63
  }
64
 
65
- /* Container untuk semua elemen konversi */
66
  .converter-container {
67
  display: flex;
68
  flex-direction: column;
69
  align-items: center;
70
  width: 100%;
71
- max-width: 800px; /* Membatasi lebar agar tampilan tetap rapi pada layar besar */
72
  padding: 40px;
73
  border-radius: 12px;
74
  background-color: white;
@@ -76,17 +70,15 @@ body {
76
  box-sizing: border-box;
77
  }
78
 
79
- /* Flexbox untuk bagian input Amount, From, Swap, dan To */
80
  .currency-box {
81
  display: flex;
82
  flex-direction: column;
83
  width: 100%;
84
  gap: 25px;
85
- max-width: 800px; /* Membatasi lebar supaya lebih rapi pada layar besar */
86
- margin: 0 auto; /* Menjaga posisi tetap di tengah */
87
  }
88
 
89
- /* Untuk input amount */
90
  .currency-box .amount {
91
  display: flex;
92
  justify-content: space-between;
@@ -121,13 +113,6 @@ body {
121
  margin: 30px 0;
122
  }
123
 
124
- .currency-group {
125
- display: flex;
126
- flex-direction: column;
127
- align-items: center;
128
- width: 100%;
129
- }
130
-
131
  .currency-group select {
132
  padding: 20px;
133
  font-size: 18px;
@@ -138,66 +123,45 @@ body {
138
 
139
  /* Swap Button */
140
  #swap-btn {
141
- color: #000; /* Warna hitam untuk simbol swap */
142
  cursor: pointer;
143
- border-radius: 50%; /* Membuat tombol swap berbentuk bulat */
144
- border: 2px solid #000; /* Border hitam untuk tombol */
145
- font-size: 30px; /* Ukuran lebih besar untuk tampilan web */
146
- height: 70px; /* Ukuran lebih besar */
147
- width: 70px; /* Ukuran lebih besar */
148
  display: flex;
149
  justify-content: center;
150
  align-items: center;
151
  margin: 30px auto;
152
  font-weight: bold;
153
- transition: transform 0.3s ease; /* Menghapus background dan efek hover */
154
- }
155
-
156
- #swap-btn:hover {
157
- transform: rotate(180deg); /* Rotasi saat hover */
158
  }
159
 
160
  /* Mode Mobile */
161
  @media screen and (max-width: 768px) {
162
  .currency-select {
163
  flex-direction: column;
164
- justify-content: center;
165
- align-items: center;
166
  gap: 15px;
167
  }
168
 
169
  #swap-btn {
170
- transform: rotate(90deg); /* Rotasi tombol swap */
171
  width: 60px;
172
  height: 60px;
173
  margin: 0;
174
  }
175
-
176
- .currency-group {
177
- display: flex;
178
- flex-direction: column;
179
- align-items: center;
180
- }
181
  }
182
 
183
- /* Mode Web dan Tablet */
184
  @media screen and (min-width: 769px) {
185
  .currency-select {
186
  flex-direction: row;
187
- align-items: center;
188
  gap: 25px;
189
  }
190
 
191
  #swap-btn {
192
- transform: rotate(0deg); /* Pastikan tombol swap tetap horizontal */
193
- width: 70px; /* Ukuran lebih besar */
194
- height: 70px; /* Ukuran lebih besar */
195
- }
196
-
197
- .currency-group {
198
- display: flex;
199
- flex-direction: column;
200
- align-items: center;
201
  }
202
  }
203
 
@@ -245,12 +209,6 @@ body {
245
  padding: 25px;
246
  border-radius: 10px;
247
  text-align: center;
248
- transition: background-color 0.3s ease, transform 0.3s ease;
249
- }
250
-
251
- .step:hover {
252
- background-color: #e0e0e0;
253
- transform: translateY(-5px);
254
  }
255
 
256
  .step h3 {
@@ -268,10 +226,6 @@ body {
268
  border-top: 2px solid #003300;
269
  }
270
 
271
- .footer-content p {
272
- margin: 5px 0;
273
- }
274
-
275
  .footer-content a {
276
  color: white;
277
  text-decoration: none;
 
1
  /* Body */
2
  body {
3
+ font-family: 'Open Sans', Arial, sans-serif;
4
  margin: 0;
5
  padding: 0;
6
  box-sizing: border-box;
 
29
  object-fit: contain;
30
  }
31
 
 
 
 
 
 
32
  /* Headline */
33
  .headline {
34
  text-align: center;
 
57
  flex-direction: column;
58
  }
59
 
 
60
  .converter-container {
61
  display: flex;
62
  flex-direction: column;
63
  align-items: center;
64
  width: 100%;
65
+ max-width: 800px;
66
  padding: 40px;
67
  border-radius: 12px;
68
  background-color: white;
 
70
  box-sizing: border-box;
71
  }
72
 
 
73
  .currency-box {
74
  display: flex;
75
  flex-direction: column;
76
  width: 100%;
77
  gap: 25px;
78
+ max-width: 800px;
79
+ margin: 0 auto;
80
  }
81
 
 
82
  .currency-box .amount {
83
  display: flex;
84
  justify-content: space-between;
 
113
  margin: 30px 0;
114
  }
115
 
 
 
 
 
 
 
 
116
  .currency-group select {
117
  padding: 20px;
118
  font-size: 18px;
 
123
 
124
  /* Swap Button */
125
  #swap-btn {
126
+ color: #000;
127
  cursor: pointer;
128
+ border-radius: 50%;
129
+ border: 2px solid #000;
130
+ font-size: 30px;
131
+ height: 70px;
132
+ width: 70px;
133
  display: flex;
134
  justify-content: center;
135
  align-items: center;
136
  margin: 30px auto;
137
  font-weight: bold;
138
+ transform: rotate(0deg); /* Awal tanpa hover */
 
 
 
 
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 di mode mobile */
150
  width: 60px;
151
  height: 60px;
152
  margin: 0;
153
  }
 
 
 
 
 
 
154
  }
155
 
156
+ /* Mode Desktop */
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); /* Tetap horizontal di mode desktop */
 
 
 
 
 
 
 
 
165
  }
166
  }
167
 
 
209
  padding: 25px;
210
  border-radius: 10px;
211
  text-align: center;
 
 
 
 
 
 
212
  }
213
 
214
  .step h3 {
 
226
  border-top: 2px solid #003300;
227
  }
228
 
 
 
 
 
229
  .footer-content a {
230
  color: white;
231
  text-decoration: none;