GarGerry commited on
Commit
ed934c8
·
verified ·
1 Parent(s): 2d284c0

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +120 -35
style.css CHANGED
@@ -1,10 +1,10 @@
1
- /* Styling dasar untuk body */
2
  body {
3
- font-family: Arial, sans-serif;
4
  margin: 0;
5
  padding: 0;
6
- background-color: #1b5e20; /* Hijau gelap */
7
- color: white;
 
8
  display: flex;
9
  justify-content: center;
10
  align-items: flex-start;
@@ -12,16 +12,126 @@ body {
12
  overflow-y: auto;
13
  }
14
 
15
- /* Container dengan bentuk melengkung */
16
  .container {
17
- width: 100%;
18
  max-width: 800px;
19
- background-color: #fafafa; /* Putih krem lembut */
20
- border-radius: 30px; /* Sudut melengkung */
21
- padding: 30px; /* Menambah padding untuk memberi ruang lebih */
22
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  margin-top: 20px;
24
- min-height: 600px; /* Menambah tinggi minimum kontainer */
 
 
 
 
 
 
 
 
 
 
25
  }
26
 
27
  /* Styling untuk header */
@@ -106,7 +216,6 @@ select {
106
  -moz-appearance: none;
107
  appearance: none;
108
  padding-right: 30px;
109
- 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');
110
  background-position: right 10px center;
111
  background-repeat: no-repeat;
112
  background-size: 12px;
@@ -129,30 +238,6 @@ button#convert-btn:hover {
129
  background-color: #45a049;
130
  }
131
 
132
- /* Styling footer */
133
- footer {
134
- text-align: center;
135
- margin-top: 20px;
136
- font-size: 0.9em;
137
- color: #777;
138
- }
139
-
140
- footer a {
141
- color: #4CAF50;
142
- text-decoration: none;
143
- }
144
-
145
- footer a:hover {
146
- text-decoration: underline;
147
- }
148
-
149
- #result {
150
- margin-top: 20px;
151
- font-size: 1.5em;
152
- color: #333;
153
- text-align: center;
154
- }
155
-
156
  /* Responsif untuk layar kecil (mobile) */
157
  @media (max-width: 600px) {
158
  .container {
 
1
+ /* General Reset */
2
  body {
 
3
  margin: 0;
4
  padding: 0;
5
+ font-family: Arial, sans-serif;
6
+ background-color: #155724; /* Hijau gelap */
7
+ color: #333;
8
  display: flex;
9
  justify-content: center;
10
  align-items: flex-start;
 
12
  overflow-y: auto;
13
  }
14
 
15
+ /* Container */
16
  .container {
 
17
  max-width: 800px;
18
+ margin: 50px auto;
19
+ background-color: #ffffff; /* Kontainer putih lembut */
20
+ border-radius: 30px;
21
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
22
+ padding: 20px;
23
+ text-align: center;
24
+ min-height: 600px;
25
+ }
26
+
27
+ /* Header */
28
+ .header {
29
+ text-align: left;
30
+ display: flex;
31
+ align-items: center;
32
+ padding: 10px;
33
+ }
34
+
35
+ .header img {
36
+ width: 40px;
37
+ height: 40px;
38
+ margin-right: 10px;
39
+ }
40
+
41
+ .header h1 {
42
+ font-size: 1.8rem;
43
+ color: #28a745; /* Hijau terang */
44
+ margin: 0;
45
+ }
46
+
47
+ /* Sub-header */
48
+ .sub-header {
49
+ font-size: 0.9rem;
50
+ color: #6c757d;
51
+ margin-bottom: 20px;
52
+ }
53
+
54
+ /* Input Fields */
55
+ label {
56
+ font-size: 0.9rem;
57
+ font-weight: bold;
58
+ display: block;
59
+ margin: 10px 0 5px;
60
+ color: #155724;
61
+ }
62
+
63
+ input[type="text"], select {
64
+ width: 90%;
65
+ padding: 10px;
66
+ margin-bottom: 15px;
67
+ border: 1px solid #28a745; /* Hijau terang */
68
+ border-radius: 5px;
69
+ font-size: 1rem;
70
+ }
71
+
72
+ /* Dropdown Modern */
73
+ select {
74
+ -webkit-appearance: none;
75
+ -moz-appearance: none;
76
+ appearance: none;
77
+ background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140"><polygon points="70,90 90,50 50,50" fill="%2328a745"/></svg>') no-repeat right 10px center/12px;
78
+ }
79
+
80
+ /* Swap Button */
81
+ .swap-button {
82
+ width: 50px;
83
+ height: 50px;
84
+ background-color: #28a745;
85
+ border: none;
86
+ border-radius: 50%;
87
+ margin: 15px auto;
88
+ display: flex;
89
+ align-items: center;
90
+ justify-content: center;
91
+ cursor: pointer;
92
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
93
+ }
94
+
95
+ .swap-button:hover {
96
+ background-color: #218838;
97
+ }
98
+
99
+ .swap-button svg {
100
+ fill: #ffffff;
101
+ width: 20px;
102
+ height: 20px;
103
+ }
104
+
105
+ /* Convert Button */
106
+ .convert-button {
107
+ width: 90%;
108
+ padding: 10px;
109
+ background-color: #28a745;
110
+ color: white;
111
+ border: none;
112
+ border-radius: 5px;
113
+ font-size: 1rem;
114
+ cursor: pointer;
115
+ }
116
+
117
+ .convert-button:hover {
118
+ background-color: #218838;
119
+ }
120
+
121
+ /* Footer */
122
+ .footer {
123
  margin-top: 20px;
124
+ font-size: 0.8rem;
125
+ color: #6c757d;
126
+ }
127
+
128
+ .footer a {
129
+ color: #28a745;
130
+ text-decoration: none;
131
+ }
132
+
133
+ .footer a:hover {
134
+ text-decoration: underline;
135
  }
136
 
137
  /* Styling untuk header */
 
216
  -moz-appearance: none;
217
  appearance: none;
218
  padding-right: 30px;
 
219
  background-position: right 10px center;
220
  background-repeat: no-repeat;
221
  background-size: 12px;
 
238
  background-color: #45a049;
239
  }
240
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
  /* Responsif untuk layar kecil (mobile) */
242
  @media (max-width: 600px) {
243
  .container {