Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
/*
|
| 2 |
body {
|
| 3 |
font-family: Arial, sans-serif;
|
| 4 |
margin: 0;
|
|
@@ -9,9 +9,10 @@ body {
|
|
| 9 |
justify-content: center;
|
| 10 |
align-items: flex-start;
|
| 11 |
height: 100vh;
|
| 12 |
-
overflow-y: auto; /*
|
| 13 |
}
|
| 14 |
|
|
|
|
| 15 |
.container {
|
| 16 |
width: 100%;
|
| 17 |
max-width: 800px;
|
|
@@ -23,56 +24,58 @@ body {
|
|
| 23 |
overflow: hidden;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
.currency-labels {
|
| 28 |
-
margin-bottom:
|
| 29 |
}
|
| 30 |
|
| 31 |
.currency-labels label {
|
| 32 |
-
font-size:
|
| 33 |
color: #a1a1a1;
|
| 34 |
display: block;
|
| 35 |
}
|
| 36 |
|
| 37 |
-
input,
|
| 38 |
-
|
| 39 |
-
padding: 10px;
|
| 40 |
width: 100%;
|
|
|
|
| 41 |
margin-bottom: 10px;
|
| 42 |
-
border-radius:
|
| 43 |
border: 1px solid #ddd;
|
|
|
|
|
|
|
| 44 |
}
|
| 45 |
|
| 46 |
-
/*
|
| 47 |
-
button {
|
| 48 |
-
background-color: #4CAF50;
|
| 49 |
-
color: white;
|
| 50 |
-
padding: 12px;
|
| 51 |
-
font-size: 16px;
|
| 52 |
-
border: none;
|
| 53 |
-
border-radius: 5px;
|
| 54 |
-
cursor: pointer;
|
| 55 |
-
margin-top: 10px;
|
| 56 |
-
width: 100%;
|
| 57 |
-
}
|
| 58 |
-
|
| 59 |
-
button:hover {
|
| 60 |
-
background-color: #45a049;
|
| 61 |
-
}
|
| 62 |
-
|
| 63 |
-
/* Style for Swap button */
|
| 64 |
button#swap-btn {
|
| 65 |
background-color: transparent;
|
| 66 |
border: 1px solid #4CAF50;
|
| 67 |
-
padding:
|
| 68 |
color: #4CAF50;
|
| 69 |
cursor: pointer;
|
| 70 |
-
font-size:
|
| 71 |
border-radius: 50%;
|
| 72 |
margin: 10px auto;
|
|
|
|
| 73 |
width: 50px;
|
| 74 |
height: 50px;
|
| 75 |
-
display: block;
|
| 76 |
}
|
| 77 |
|
| 78 |
button#swap-btn:hover {
|
|
@@ -81,11 +84,45 @@ button#swap-btn:hover {
|
|
| 81 |
}
|
| 82 |
|
| 83 |
button#swap-btn::before {
|
| 84 |
-
content: '\2195'; /* Unicode
|
| 85 |
font-size: 22px;
|
| 86 |
}
|
| 87 |
|
| 88 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
footer {
|
| 90 |
text-align: center;
|
| 91 |
margin-top: 20px;
|
|
|
|
| 1 |
+
/* Styling dasar untuk body */
|
| 2 |
body {
|
| 3 |
font-family: Arial, sans-serif;
|
| 4 |
margin: 0;
|
|
|
|
| 9 |
justify-content: center;
|
| 10 |
align-items: flex-start;
|
| 11 |
height: 100vh;
|
| 12 |
+
overflow-y: auto; /* Membolehkan scroll */
|
| 13 |
}
|
| 14 |
|
| 15 |
+
/* Container utama */
|
| 16 |
.container {
|
| 17 |
width: 100%;
|
| 18 |
max-width: 800px;
|
|
|
|
| 24 |
overflow: hidden;
|
| 25 |
}
|
| 26 |
|
| 27 |
+
/* Styling untuk header */
|
| 28 |
+
header {
|
| 29 |
+
text-align: center;
|
| 30 |
+
margin-bottom: 20px;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
header h1 {
|
| 34 |
+
font-size: 28px;
|
| 35 |
+
color: #fff;
|
| 36 |
+
margin: 10px 0;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
header p {
|
| 40 |
+
color: #ddd;
|
| 41 |
+
font-size: 14px;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
/* Styling untuk label dan input */
|
| 45 |
.currency-labels {
|
| 46 |
+
margin-bottom: 15px;
|
| 47 |
}
|
| 48 |
|
| 49 |
.currency-labels label {
|
| 50 |
+
font-size: 16px;
|
| 51 |
color: #a1a1a1;
|
| 52 |
display: block;
|
| 53 |
}
|
| 54 |
|
| 55 |
+
input, select {
|
| 56 |
+
padding: 12px;
|
|
|
|
| 57 |
width: 100%;
|
| 58 |
+
max-width: 350px; /* Lebar input diperbesar */
|
| 59 |
margin-bottom: 10px;
|
| 60 |
+
border-radius: 8px;
|
| 61 |
border: 1px solid #ddd;
|
| 62 |
+
background-color: #2e2e2e;
|
| 63 |
+
color: #fff;
|
| 64 |
}
|
| 65 |
|
| 66 |
+
/* Tombol Swap dengan panah vertikal yang rapi */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
button#swap-btn {
|
| 68 |
background-color: transparent;
|
| 69 |
border: 1px solid #4CAF50;
|
| 70 |
+
padding: 12px;
|
| 71 |
color: #4CAF50;
|
| 72 |
cursor: pointer;
|
| 73 |
+
font-size: 24px; /* Menyesuaikan ukuran font untuk panah */
|
| 74 |
border-radius: 50%;
|
| 75 |
margin: 10px auto;
|
| 76 |
+
display: block;
|
| 77 |
width: 50px;
|
| 78 |
height: 50px;
|
|
|
|
| 79 |
}
|
| 80 |
|
| 81 |
button#swap-btn:hover {
|
|
|
|
| 84 |
}
|
| 85 |
|
| 86 |
button#swap-btn::before {
|
| 87 |
+
content: '\2195'; /* Unicode untuk panah vertikal */
|
| 88 |
font-size: 22px;
|
| 89 |
}
|
| 90 |
|
| 91 |
+
/* Styling dropdown (select) agar lebih modern */
|
| 92 |
+
select {
|
| 93 |
+
-webkit-appearance: none;
|
| 94 |
+
-moz-appearance: none;
|
| 95 |
+
appearance: none;
|
| 96 |
+
padding-right: 30px; /* Menambahkan ruang untuk panah dropdown */
|
| 97 |
+
background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-down-fill" viewBox="0 0 16 16%3E%3Cpath d="M3.646 5.646a.5.5 0 0 1 .708 0L8 9.293l3.646-3.647a.5.5 0 1 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 0-.708z"/%3E%3C/svg%3E');
|
| 98 |
+
background-position: right 10px center;
|
| 99 |
+
background-repeat: no-repeat;
|
| 100 |
+
background-size: 12px;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
/* Hover effect untuk select */
|
| 104 |
+
select:hover {
|
| 105 |
+
background-color: #444;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
/* Tombol Convert */
|
| 109 |
+
button#convert-btn {
|
| 110 |
+
background-color: #4CAF50;
|
| 111 |
+
color: white;
|
| 112 |
+
padding: 12px;
|
| 113 |
+
font-size: 16px;
|
| 114 |
+
border: none;
|
| 115 |
+
border-radius: 8px;
|
| 116 |
+
cursor: pointer;
|
| 117 |
+
width: 100%;
|
| 118 |
+
margin-top: 10px;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
button#convert-btn:hover {
|
| 122 |
+
background-color: #45a049;
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
/* Styling footer */
|
| 126 |
footer {
|
| 127 |
text-align: center;
|
| 128 |
margin-top: 20px;
|