Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
@@ -3,25 +3,24 @@ body {
|
|
3 |
font-family: Arial, sans-serif;
|
4 |
margin: 0;
|
5 |
padding: 0;
|
6 |
-
background-color: #
|
7 |
-
color:
|
8 |
display: flex;
|
9 |
justify-content: center;
|
10 |
align-items: flex-start;
|
11 |
height: 100vh;
|
12 |
-
overflow-y: auto;
|
13 |
}
|
14 |
|
15 |
/* Container utama */
|
16 |
.container {
|
17 |
width: 100%;
|
18 |
max-width: 800px;
|
19 |
-
background-color: #
|
20 |
border-radius: 10px;
|
21 |
padding: 20px;
|
22 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.
|
23 |
margin-top: 20px;
|
24 |
-
overflow: hidden;
|
25 |
}
|
26 |
|
27 |
/* Styling untuk header */
|
@@ -31,14 +30,14 @@ header {
|
|
31 |
}
|
32 |
|
33 |
header h1 {
|
34 |
-
font-size:
|
35 |
-
color: #
|
36 |
margin: 10px 0;
|
37 |
}
|
38 |
|
39 |
header p {
|
40 |
-
color: #
|
41 |
-
font-size:
|
42 |
}
|
43 |
|
44 |
/* Styling untuk label dan input */
|
@@ -48,29 +47,30 @@ header p {
|
|
48 |
|
49 |
.currency-labels label {
|
50 |
font-size: 16px;
|
51 |
-
color: #
|
52 |
display: block;
|
53 |
}
|
54 |
|
|
|
55 |
input, select {
|
56 |
-
padding:
|
57 |
width: 100%;
|
58 |
-
max-width:
|
59 |
-
margin-bottom:
|
60 |
border-radius: 8px;
|
61 |
border: 1px solid #ddd;
|
62 |
-
background-color: #
|
63 |
-
color: #
|
64 |
}
|
65 |
|
66 |
-
/* Tombol
|
67 |
button#swap-btn {
|
68 |
-
background-color:
|
69 |
-
border:
|
70 |
padding: 12px;
|
71 |
-
color:
|
72 |
cursor: pointer;
|
73 |
-
font-size:
|
74 |
border-radius: 50%;
|
75 |
margin: 10px auto;
|
76 |
display: block;
|
@@ -79,37 +79,26 @@ button#swap-btn {
|
|
79 |
}
|
80 |
|
81 |
button#swap-btn:hover {
|
82 |
-
background-color: #
|
83 |
-
color: white;
|
84 |
-
}
|
85 |
-
|
86 |
-
button#swap-btn::before {
|
87 |
-
content: '\2195'; /* Unicode untuk panah vertikal */
|
88 |
-
font-size: 22px;
|
89 |
}
|
90 |
|
91 |
-
/* Styling dropdown
|
92 |
select {
|
93 |
-webkit-appearance: none;
|
94 |
-moz-appearance: none;
|
95 |
appearance: none;
|
96 |
-
padding-right: 30px;
|
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:
|
113 |
font-size: 16px;
|
114 |
border: none;
|
115 |
border-radius: 8px;
|
@@ -127,7 +116,7 @@ footer {
|
|
127 |
text-align: center;
|
128 |
margin-top: 20px;
|
129 |
font-size: 0.9em;
|
130 |
-
color: #
|
131 |
}
|
132 |
|
133 |
footer a {
|
@@ -141,5 +130,6 @@ footer a:hover {
|
|
141 |
|
142 |
#result {
|
143 |
margin-top: 20px;
|
144 |
-
font-size: 1.
|
|
|
145 |
}
|
|
|
3 |
font-family: Arial, sans-serif;
|
4 |
margin: 0;
|
5 |
padding: 0;
|
6 |
+
background-color: #f4f4f4; /* Background putih */
|
7 |
+
color: #333;
|
8 |
display: flex;
|
9 |
justify-content: center;
|
10 |
align-items: flex-start;
|
11 |
height: 100vh;
|
12 |
+
overflow-y: auto;
|
13 |
}
|
14 |
|
15 |
/* Container utama */
|
16 |
.container {
|
17 |
width: 100%;
|
18 |
max-width: 800px;
|
19 |
+
background-color: #ffffff;
|
20 |
border-radius: 10px;
|
21 |
padding: 20px;
|
22 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
23 |
margin-top: 20px;
|
|
|
24 |
}
|
25 |
|
26 |
/* Styling untuk header */
|
|
|
30 |
}
|
31 |
|
32 |
header h1 {
|
33 |
+
font-size: 32px;
|
34 |
+
color: #4CAF50; /* Hijau untuk header */
|
35 |
margin: 10px 0;
|
36 |
}
|
37 |
|
38 |
header p {
|
39 |
+
color: #777;
|
40 |
+
font-size: 16px;
|
41 |
}
|
42 |
|
43 |
/* Styling untuk label dan input */
|
|
|
47 |
|
48 |
.currency-labels label {
|
49 |
font-size: 16px;
|
50 |
+
color: #333;
|
51 |
display: block;
|
52 |
}
|
53 |
|
54 |
+
/* Kotak input dan select (dropdown) */
|
55 |
input, select {
|
56 |
+
padding: 15px;
|
57 |
width: 100%;
|
58 |
+
max-width: 380px; /* Lebar kotak input lebih lebar */
|
59 |
+
margin-bottom: 20px;
|
60 |
border-radius: 8px;
|
61 |
border: 1px solid #ddd;
|
62 |
+
background-color: #f5f5f5;
|
63 |
+
color: #333;
|
64 |
}
|
65 |
|
66 |
+
/* Tombol swap dengan model baru */
|
67 |
button#swap-btn {
|
68 |
+
background-color: #4CAF50; /* Hijau untuk tombol swap */
|
69 |
+
border: none;
|
70 |
padding: 12px;
|
71 |
+
color: white;
|
72 |
cursor: pointer;
|
73 |
+
font-size: 20px;
|
74 |
border-radius: 50%;
|
75 |
margin: 10px auto;
|
76 |
display: block;
|
|
|
79 |
}
|
80 |
|
81 |
button#swap-btn:hover {
|
82 |
+
background-color: #45a049;
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
}
|
84 |
|
85 |
+
/* Styling dropdown agar lebih modern */
|
86 |
select {
|
87 |
-webkit-appearance: none;
|
88 |
-moz-appearance: none;
|
89 |
appearance: none;
|
90 |
+
padding-right: 30px;
|
91 |
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');
|
92 |
background-position: right 10px center;
|
93 |
background-repeat: no-repeat;
|
94 |
background-size: 12px;
|
95 |
}
|
96 |
|
|
|
|
|
|
|
|
|
|
|
97 |
/* Tombol Convert */
|
98 |
button#convert-btn {
|
99 |
background-color: #4CAF50;
|
100 |
color: white;
|
101 |
+
padding: 15px;
|
102 |
font-size: 16px;
|
103 |
border: none;
|
104 |
border-radius: 8px;
|
|
|
116 |
text-align: center;
|
117 |
margin-top: 20px;
|
118 |
font-size: 0.9em;
|
119 |
+
color: #777;
|
120 |
}
|
121 |
|
122 |
footer a {
|
|
|
130 |
|
131 |
#result {
|
132 |
margin-top: 20px;
|
133 |
+
font-size: 1.5em;
|
134 |
+
color: #333;
|
135 |
}
|