-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
144 lines (125 loc) · 2.46 KB
/
Copy pathstyle.css
File metadata and controls
144 lines (125 loc) · 2.46 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
:root {
--box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
--bg-color: #f7f7f7;
--text-color: #333;
--income-color: #2ecc71;
--expense-color: #c0392b;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--bg-color);
color: var(--text-color);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.container {
margin: 30px auto;
width: 400px;
background: #fff;
padding: 20px 30px;
border-radius: 8px;
box-shadow: var(--box-shadow);
}
h2, h3, h4 {
margin-bottom: 10px;
}
h1 {
letter-spacing: 1px;
margin-bottom: 20px;
}
.inc-exp-container {
background-color: #fff;
box-shadow: var(--box-shadow);
padding: 20px;
display: flex;
justify-content: space-between;
margin-bottom: 20px;
border-radius: 5px;
}
.inc-exp-container > div {
flex: 1;
text-align: center;
}
.inc-exp-container > div:first-of-type {
border-right: 1px solid #dedede;
}
.money {
font-size: 20px;
letter-spacing: 1px;
margin: 5px 0;
}
.money.plus { color: var(--income-color); }
.money.minus { color: var(--expense-color); }
/* List Styles */
.list {
list-style-type: none;
margin-bottom: 30px;
}
.list li {
background-color: #fff;
box-shadow: var(--box-shadow);
color: var(--text-color);
display: flex;
justify-content: space-between;
position: relative;
padding: 10px;
margin: 10px 0;
border-radius: 3px;
}
.list li.plus { border-right: 5px solid var(--income-color); }
.list li.minus { border-right: 5px solid var(--expense-color); }
.delete-btn {
cursor: pointer;
background-color: #e74c3c;
border: 0;
color: #fff;
font-size: 20px;
line-height: 20px;
padding: 2px 5px;
position: absolute;
top: 50%;
left: 0;
transform: translate(-100%, -50%);
opacity: 0;
transition: opacity 0.3s ease;
}
.list li:hover .delete-btn {
opacity: 1;
}
/* Form Styles */
.form-control {
margin: 10px 0;
}
label {
display: inline-block;
margin: 10px 0 5px;
}
input[type='text'], input[type='number'] {
border: 1px solid #dedede;
border-radius: 3px;
display: block;
font-size: 16px;
padding: 10px;
width: 100%;
}
.btn {
cursor: pointer;
background-color: #9c88ff;
box-shadow: var(--box-shadow);
color: #fff;
border: 0;
display: block;
font-size: 16px;
margin: 20px 0 30px;
padding: 10px;
width: 100%;
border-radius: 5px;
}