GarGerry commited on
Commit
6e157b2
·
verified ·
1 Parent(s): 3b278a9

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +49 -11
style.css CHANGED
@@ -138,32 +138,70 @@ 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
- /* Mode Web dan Tablet */
157
- @media screen and (min-width: 769px) {
158
- #swap-btn {
159
- transform: rotate(180deg); /* Rotasi horizontal saat tampilan desktop */
160
- }
161
  }
162
 
163
  /* Mode Mobile */
164
  @media screen and (max-width: 768px) {
 
 
 
 
 
 
 
165
  #swap-btn {
166
- transform: rotate(0deg); /* Tidak ada rotasi pada tampilan mobile */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  }
168
  }
169
 
 
138
 
139
  /* Swap Button */
140
  #swap-btn {
141
+ background-color: #004d00;
142
+ color: white;
143
  cursor: pointer;
144
+ border-radius: 50%;
145
+ border: none;
146
+ font-size: 30px; /* Lebih besar untuk web */
147
  height: 70px; /* Ukuran lebih besar */
148
  width: 70px; /* Ukuran lebih besar */
149
  display: flex;
150
  justify-content: center;
151
  align-items: center;
152
  margin: 30px auto;
153
+ transition: background-color 0.3s ease, transform 0.3s ease;
154
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Tambahkan bayangan */
155
  font-weight: bold;
 
156
  }
157
 
158
+ #swap-btn:hover {
159
+ background-color: #003300;
160
+ transform: rotate(180deg);
161
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Efek bayangan lebih kuat saat hover */
 
162
  }
163
 
164
  /* Mode Mobile */
165
  @media screen and (max-width: 768px) {
166
+ .currency-select {
167
+ flex-direction: column;
168
+ justify-content: center;
169
+ align-items: center;
170
+ gap: 15px;
171
+ }
172
+
173
  #swap-btn {
174
+ transform: rotate(90deg); /* Rotasi tombol swap */
175
+ width: 60px;
176
+ height: 60px;
177
+ margin: 0;
178
+ }
179
+
180
+ .currency-group {
181
+ display: flex;
182
+ flex-direction: column;
183
+ align-items: center;
184
+ }
185
+ }
186
+
187
+ /* Mode Web dan Tablet */
188
+ @media screen and (min-width: 769px) {
189
+ .currency-select {
190
+ flex-direction: row;
191
+ align-items: center;
192
+ gap: 25px;
193
+ }
194
+
195
+ #swap-btn {
196
+ transform: rotate(0deg); /* Pastikan tombol swap tetap horizontal */
197
+ width: 70px; /* Ukuran lebih besar */
198
+ height: 70px; /* Ukuran lebih besar */
199
+ }
200
+
201
+ .currency-group {
202
+ display: flex;
203
+ flex-direction: column;
204
+ align-items: center;
205
  }
206
  }
207