-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
178 lines (176 loc) · 3.53 KB
/
style.css
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");
body {
margin: 0;
padding: 20px;
font-size: 16px;
font-family: "Space Grotesk", sans-serif;
}
* {
box-sizing: border-box;
}
input {
outline: none;
font-size: 16px;
padding: 8px 10px;
border-radius: 5px;
font-size: inherit;
font-family: inherit;
border: 1px solid #cccccc;
}
/*** Budget Wrapper Css ***/
.budget-input-wrapper {
display: flex;
justify-content: center;
}
.budget-input-wrapper {
display: flex;
gap: 10px;
}
.budget-input-wrapper input {
width: 400px;
}
/*** Budget Statistics Css ***/
.budget-statistics {
text-align: center;
margin-bottom: 30px;
}
.budget-statistics-wrapper {
display: flex;
gap: 20px;
justify-content: space-between;
}
.budget-statistics h2 {
margin: 30px 0;
}
.budget-statistics-wrapper div {
background-color: #eeeeee;
flex: 1;
display: flex;
justify-content: center;
padding: 10px;
border-radius: 5px;
}
.budget-statistics-wrapper span {
font-size: 25px;
}
/*** Expense CSS ***/
.budget-expenses-wrapper h2 {
font-size: 30px;
}
.budget-add-expense-wrapper select {
outline: none;
font-size: 16px;
padding: 8px 10px;
border-radius: 5px;
border: 1px solid #cccccc;
}
.budget-expenses-list {
gap: 10px;
padding: 0;
display: flex;
list-style: none;
flex-direction: column;
}
.budget-expenses-list li div span {
display: block;
}
.budget-expenses-list li {
gap: 10px;
display: flex;
padding: 25px;
border-radius: 5px;
align-items: center;
justify-content: space-between;
}
.budget-expenses-list li input {
background-color: transparent;
border: none;
outline: none;
font-size: inherit;
font-family: inherit;
padding: 4px 10px;
width: 100%;
text-align: center;
}
.budget-expenses-list li.editing input {
border: 1px solid #000000;
}
.budget-expenses-list li:nth-child(odd) {
background-color: #eeeeee;
}
.budget-expenses-list li:nth-child(even) {
border: 1px solid #cccccc;
}
.budget-expenses-list .expense-list-item:not(.editing) select,
.budget-expenses-list .expense-list-item:not(.editing) input {
pointer-events: none;
outline: none;
font-size: 16px;
padding: 8px 10px;
border-radius: 5px;
appearance: none;
background: transparent;
border: 0px;
width: 100%;
text-align: center;
}
.budget-expenses-list .expense-list-item.editing .btn.delete-btn {
opacity: 0.3;
pointer-events: none;
}
.budget-expenses-list .expense-list-item.editing select {
text-align: center;
outline: none;
font-size: 16px;
padding: 8px 10px;
border-radius: 5px;
border: 1px solid #cccccc;
}
.budget-expenses-list li div {
display: flex;
gap: 10px;
width: 100%;
box-sizing: border-box;
}
.btn.edit-btn {
padding: 10px 16px;
font-size: 12px;
border: 1px solid #000000;
}
.btn.edit-btn:hover {
background-color: transparent;
}
.btn.delete-btn {
font-size: 12px;
padding: 10px 16px;
color: #f44336;
background-color: transparent;
border: 1px solid #f44336;
}
.btn.delete-btn:hover {
background-color: #f44336;
color: #ffffff;
}
@media only screen and (max-width: 930px) {
.budget-expenses-wrapper {
flex-direction: column;
}
}
@media only screen and (max-width: 600px) {
div.budget-expenses-list-wrapper {
flex-basis: 100%;
}
.budget-statistics-wrapper {
flex-direction: column;
}
.budget-expenses-list .expense-list-item.editing select,
.budget-expenses-list li input {
width: 100%;
}
.budget-expenses-list li {
flex-direction: column;
}
}
textarea {
resize: none;
}