-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyle.css
182 lines (160 loc) · 3.87 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
179
180
181
182
/* General Reset */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Font and Background */
body {
font-family: 'Roboto', sans-serif;
background-color: #f5f5f7;
color: #333;
line-height: 1.6;
}
/* Main Container */
.container {
max-width: 1200px;
margin: 30px auto;
padding: 20px;
background-color: #fff;
border-radius: 12px; /* Rounded corners for container */
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); /* Subtle shadow */
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
/* Header */
header {
text-align: center;
width: 100%;
padding: 20px 0;
margin-bottom: 20px;
color: #585858;
}
header h1 {
margin: 0;
font-size: 2.5rem;
color: #333;
}
/* Form and Chart Containers */
.form-container,
.chart-container {
background-color: #fafafa; /* Lighter background for containers */
padding: 20px;
border-radius: 8px; /* Rounded corners for inner containers */
margin-bottom: 20px;
}
/* Expense Form Styling */
.expense-form input[type="text"],
.expense-form input[type="number"],
.expense-form select,
.expense-form button {
width: 100%;
padding: 15px;
margin-bottom: 15px;
border: none;
border-radius: 8px; /* Rounded corners for form elements */
}
/* Buttons */
.expense-form button {
background-color: #4CAF50;
color: white;
transition: background-color 0.3s;
font-size: 1rem;
font-weight: bold;
}
.expense-form button:hover {
background-color: #45a049;
}
/* Table Styling */
.expense-display table {
width: 100%;
border-collapse: collapse;
margin-bottom: 15px;
}
.expense-display th,
.expense-display td {
text-align: left;
padding: 10px;
border-bottom: 1px solid #ddd;
border-radius: 8px; /* Optional: Rounded corners for table cells */
}
.expense-display th {
background-color: #f9f9f9;
color: #333;
}
/* Total Amount */
.total-amount {
font-size: 1.5rem;
text-align: right;
color: #333;
}
/* Delete Button */
.delete-btn {
color: #d32f2f;
cursor: pointer;
text-align: center;
display: inline-block; /* To apply padding and margin */
padding: 2px 8px;
border-radius: 5px; /* Rounded corners for delete button */
transition: background-color 0.2s, color 0.2s;
}
.delete-btn:hover {
background-color: #d32f2f;
color: white;
}
.chart-container {
flex: 2 1 55%; /* Give more flex-basis percentage for the chart */
min-width: 300px; /* Ensure it doesn't get too small on narrow screens */
/* Other styles */
}
@media (max-width: 768px) {
.form-container,
.chart-container {
flex: 1 1 100%; /* Make them stack on smaller screens */
}
}
/* Login Form Styling */
.login-container {
width: 100%;
max-width: 400px;
margin: 60px auto 20px;
padding: 20px;
background-color: #fff;
border-radius: 8px; /* Consistent with your other elements */
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); /* Same shadow as container */
display: flex;
flex-direction: column;
align-items: center;
}
.login-form input[type="text"],
.login-form input[type="password"],
.login-form button {
width: 100%;
padding: 15px;
margin-top: 10px;
border: none;
border-radius: 8px; /* Consistent rounded corners */
font-family: 'Roboto', sans-serif; /* Consistent font */
}
.login-form button {
background-color: #4CAF50; /* Matching button color */
color: white;
transition: background-color 0.3s;
font-weight: bold;
}
.login-form button:hover {
background-color: #45a049; /* Slightly darker green on hover */
}
#login-error-message {
color: #d32f2f; /* Consistent error color */
margin-top: 10px;
display: none; /* Hidden by default */
}
/* Responsive adjustment for login container */
@media (max-width: 768px) {
.login-container {
margin: 20px auto;
width: 90%;
}
}