GarGerry commited on
Commit
13dc079
·
verified ·
1 Parent(s): 08c2a59

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +65 -11
style.css CHANGED
@@ -1,3 +1,4 @@
 
1
  body {
2
  font-family: 'Poppins', Arial, sans-serif; /* Font modern */
3
  margin: 0;
@@ -57,8 +58,10 @@ body {
57
  display: flex;
58
  justify-content: center;
59
  align-items: center;
 
60
  }
61
 
 
62
  .converter-container {
63
  display: flex;
64
  flex-direction: column;
@@ -72,11 +75,28 @@ body {
72
  box-sizing: border-box;
73
  }
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  .currency-box label {
76
  font-weight: bold;
77
  font-size: 16px;
78
- margin-bottom: 5px;
79
  color: #004d00; /* Hijau tua */
 
80
  }
81
 
82
  .currency-box input {
@@ -88,21 +108,21 @@ body {
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%;
96
  gap: 20px;
97
  margin: 20px 0;
98
- flex-wrap: wrap;
99
  }
100
 
101
- .currency-group label {
102
- font-weight: bold;
103
- font-size: 16px;
104
- margin-bottom: 5px;
105
- color: #004d00; /* Hijau tua */
106
  }
107
 
108
  .currency-group select {
@@ -133,21 +153,55 @@ body {
133
  /* Tidak ada rotasi pada desktop */
134
  @media screen and (min-width: 769px) {
135
  #swap-btn {
136
- transform: rotate(0deg); /* Tidak ada rotasi pada tampilan desktop */
137
  }
138
  }
139
 
140
  /* Rotasi tombol untuk tampilan mobile dan tablet */
141
  @media screen and (max-width: 768px) {
142
  #swap-btn {
143
- transform: rotate(90deg); /* Rotasi 90 derajat pada tampilan mobile/tablet */
 
 
 
144
  }
145
  }
146
 
147
  /* Hover efek */
148
  #swap-btn:hover {
149
  background-color: #003300; /* Warna lebih gelap saat hover */
150
- transform: rotate(180deg); /* Rotasi lebih lanjut saat hover */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  }
152
 
153
  /* Convert Button */
 
1
+ /* Body */
2
  body {
3
  font-family: 'Poppins', Arial, sans-serif; /* Font modern */
4
  margin: 0;
 
58
  display: flex;
59
  justify-content: center;
60
  align-items: center;
61
+ flex-direction: column; /* Menyusun elemen secara vertikal */
62
  }
63
 
64
+ /* Container untuk semua elemen konversi */
65
  .converter-container {
66
  display: flex;
67
  flex-direction: column;
 
75
  box-sizing: border-box;
76
  }
77
 
78
+ /* Flexbox untuk bagian input Amount, From, Swap, dan To */
79
+ .currency-box {
80
+ display: flex;
81
+ flex-direction: column; /* Menyusun input dan label secara vertikal */
82
+ width: 100%;
83
+ gap: 20px;
84
+ }
85
+
86
+ /* Untuk input amount */
87
+ .currency-box .amount {
88
+ display: flex;
89
+ justify-content: space-between; /* Menjaga jarak antar elemen */
90
+ align-items: center;
91
+ gap: 15px;
92
+ width: 100%;
93
+ }
94
+
95
  .currency-box label {
96
  font-weight: bold;
97
  font-size: 16px;
 
98
  color: #004d00; /* Hijau tua */
99
+ margin-bottom: 5px;
100
  }
101
 
102
  .currency-box input {
 
108
  box-sizing: border-box;
109
  }
110
 
111
+ /* Menyusun From, Swap, dan To secara horizontal */
112
  .currency-select {
113
  display: flex;
114
  justify-content: space-between;
115
+ align-items: center;
116
  width: 100%;
117
  gap: 20px;
118
  margin: 20px 0;
 
119
  }
120
 
121
+ .currency-group {
122
+ display: flex;
123
+ flex-direction: column;
124
+ align-items: center;
125
+ width: 100%;
126
  }
127
 
128
  .currency-group select {
 
153
  /* Tidak ada rotasi pada desktop */
154
  @media screen and (min-width: 769px) {
155
  #swap-btn {
156
+ transform: rotate(0deg); /* Pastikan tombol swap tetap horizontal */
157
  }
158
  }
159
 
160
  /* Rotasi tombol untuk tampilan mobile dan tablet */
161
  @media screen and (max-width: 768px) {
162
  #swap-btn {
163
+ transform: rotate(90deg); /* Rotasi tombol swap supaya bisa terlihat seperti tombol tukar */
164
+ width: 40px;
165
+ height: 40px;
166
+ margin: 0; /* Menghilangkan margin untuk posisi yang lebih tepat */
167
  }
168
  }
169
 
170
  /* Hover efek */
171
  #swap-btn:hover {
172
  background-color: #003300; /* Warna lebih gelap saat hover */
173
+ transform: rotate(180deg);
174
+ }
175
+
176
+ /* Mode Mobile */
177
+ @media screen and (max-width: 768px) {
178
+ .currency-select {
179
+ flex-direction: column; /* Menyusun dropdown dan tombol secara vertikal */
180
+ justify-content: center;
181
+ align-items: center;
182
+ gap: 10px; /* Menambah jarak antar elemen */
183
+ }
184
+
185
+ .currency-group {
186
+ display: flex;
187
+ flex-direction: column; /* Menyusun label dan dropdown secara vertikal */
188
+ align-items: center;
189
+ }
190
+ }
191
+
192
+ /* Mode Web dan Tablet */
193
+ @media screen and (min-width: 769px) {
194
+ .currency-select {
195
+ flex-direction: row; /* Menyusun elemen secara horizontal */
196
+ align-items: center;
197
+ gap: 20px; /* Jarak antar elemen */
198
+ }
199
+
200
+ .currency-group {
201
+ display: flex;
202
+ flex-direction: column; /* Label dan dropdown disusun secara vertikal */
203
+ align-items: center;
204
+ }
205
  }
206
 
207
  /* Convert Button */