GarGerry commited on
Commit
aff722f
·
verified ·
1 Parent(s): 9d42efd

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +45 -42
style.css CHANGED
@@ -1,76 +1,63 @@
1
- /* General styling */
2
  body {
3
  font-family: Arial, sans-serif;
4
- background-color: #121212;
5
- color: white;
6
  margin: 0;
7
  padding: 0;
 
 
8
  display: flex;
9
  justify-content: center;
10
- align-items: center;
11
  height: 100vh;
 
12
  }
13
 
14
  .container {
 
 
15
  background-color: #1e1e1e;
16
- padding: 20px;
17
  border-radius: 10px;
18
- width: 100%;
19
- max-width: 600px;
20
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
 
 
21
  }
22
 
23
  header {
24
  display: flex;
 
25
  align-items: center;
26
- justify-content: space-between;
27
- padding: 20px 0;
28
  text-align: center;
29
  border-bottom: 1px solid #ddd;
30
  }
31
 
32
  header .logo img {
33
- width: 50px; /* Ukuran logo */
34
  }
35
 
36
  header h1 {
37
- color: white;
38
  font-size: 24px;
 
39
  }
40
 
41
  header p {
42
  color: #a1a1a1;
 
43
  }
44
 
45
- /* Styling untuk footer */
46
- footer {
47
- text-align: center;
48
- margin-top: 20px;
49
- font-size: 0.9em;
50
- color: #a1a1a1;
51
- }
52
-
53
- footer a {
54
- color: #4CAF50;
55
- text-decoration: none;
56
- }
57
-
58
- footer a:hover {
59
- text-decoration: underline;
60
- }
61
-
62
- /* Adjusting layout for input and swap button */
63
- .currency-select {
64
- display: flex;
65
- justify-content: space-between;
66
- align-items: center;
67
- gap: 10px;
68
  }
69
 
70
- input, select {
 
71
  padding: 10px;
72
- margin: 10px 0;
73
  width: 100%;
 
74
  border-radius: 5px;
75
  border: 1px solid #ddd;
76
  }
@@ -89,12 +76,6 @@ button:hover {
89
  background-color: #45a049;
90
  }
91
 
92
- #result {
93
- margin-top: 20px;
94
- font-size: 1.2em;
95
- }
96
-
97
- /* Styling swap button */
98
  button#swap-btn {
99
  background-color: transparent;
100
  border: 1px solid #4CAF50;
@@ -107,3 +88,25 @@ button#swap-btn:hover {
107
  background-color: #4CAF50;
108
  color: white;
109
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Basic layout */
2
  body {
3
  font-family: Arial, sans-serif;
 
 
4
  margin: 0;
5
  padding: 0;
6
+ background-color: #121212;
7
+ color: white;
8
  display: flex;
9
  justify-content: center;
10
+ align-items: flex-start;
11
  height: 100vh;
12
+ overflow-y: auto; /* Allow scrolling */
13
  }
14
 
15
  .container {
16
+ width: 100%;
17
+ max-width: 800px;
18
  background-color: #1e1e1e;
 
19
  border-radius: 10px;
20
+ padding: 20px;
 
21
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
22
+ margin-top: 20px;
23
+ overflow: hidden; /* Ensure content does not overflow container */
24
  }
25
 
26
  header {
27
  display: flex;
28
+ flex-direction: column;
29
  align-items: center;
30
+ padding-bottom: 20px;
 
31
  text-align: center;
32
  border-bottom: 1px solid #ddd;
33
  }
34
 
35
  header .logo img {
36
+ width: 50px;
37
  }
38
 
39
  header h1 {
 
40
  font-size: 24px;
41
+ color: white;
42
  }
43
 
44
  header p {
45
  color: #a1a1a1;
46
+ font-size: 14px;
47
  }
48
 
49
+ /* Content section */
50
+ .content {
51
+ overflow-y: auto; /* Allow scroll if content overflows */
52
+ max-height: 500px;
53
+ padding: 20px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  }
55
 
56
+ .converter input,
57
+ .converter select {
58
  padding: 10px;
 
59
  width: 100%;
60
+ margin-bottom: 10px;
61
  border-radius: 5px;
62
  border: 1px solid #ddd;
63
  }
 
76
  background-color: #45a049;
77
  }
78
 
 
 
 
 
 
 
79
  button#swap-btn {
80
  background-color: transparent;
81
  border: 1px solid #4CAF50;
 
88
  background-color: #4CAF50;
89
  color: white;
90
  }
91
+
92
+ /* Footer styling */
93
+ footer {
94
+ text-align: center;
95
+ margin-top: 20px;
96
+ font-size: 0.9em;
97
+ color: #a1a1a1;
98
+ }
99
+
100
+ footer a {
101
+ color: #4CAF50;
102
+ text-decoration: none;
103
+ }
104
+
105
+ footer a:hover {
106
+ text-decoration: underline;
107
+ }
108
+
109
+ #result {
110
+ margin-top: 20px;
111
+ font-size: 1.2em;
112
+ }