forked from sumn2u/learn-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
125 lines (107 loc) · 1.77 KB
/
styles.css
File metadata and controls
125 lines (107 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Poppins", sans-serif;
}
body {
background: #f4f4f9;
color: #333;
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
padding: 20px;
}
.container {
background: #fff;
border-radius: 16px;
padding: 30px;
width: 100%;
max-width: 400px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
margin-bottom: 20px;
color: #2d3436;
}
.balance {
text-align: center;
margin-bottom: 20px;
}
#balance {
font-size: 2rem;
color: #2d3436;
margin-top: 10px;
}
.summary {
display: flex;
justify-content: space-between;
background: #fafafa;
border-radius: 8px;
padding: 10px 20px;
margin-bottom: 30px;
border: 1px solid #ddd;
}
.summary div {
text-align: center;
}
.income p {
color: #27ae60;
font-weight: bold;
}
.expense p {
color: #c0392b;
font-weight: bold;
}
form {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 30px;
}
form input {
padding: 10px;
border-radius: 8px;
border: 1px solid #ccc;
}
form button {
padding: 10px;
border: none;
border-radius: 8px;
background-color: #0984e3;
color: #fff;
cursor: pointer;
transition: background 0.3s ease;
}
form button:hover {
background-color: #74b9ff;
}
.list {
list-style-type: none;
margin-top: 10px;
}
.list li {
background: #f9f9f9;
border-left: 5px solid #2ecc71;
margin-bottom: 10px;
padding: 10px;
border-radius: 8px;
display: flex;
justify-content: space-between;
align-items: center;
}
.list li.expense {
border-left-color: #e74c3c;
}
.list button {
border: none;
background: transparent;
color: #e74c3c;
font-weight: bold;
cursor: pointer;
}
.list button:hover {
color: #c0392b;
}