-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin.css
288 lines (244 loc) · 5.32 KB
/
admin.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
body {
font-family: Arial, sans-serif;
background: url('../static/image/background25.png') no-repeat center center fixed;
background-size: cover;
margin: 0;
padding: 0;
}
.admin-container {
display: flex;
flex-direction: column;
height: 100vh;
}
.admin-header {
background-color: #007bff;
color: #fff;
padding: 20px;
text-align: center;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.admin-header h1 {
margin: 0 20px;
font-size: 4em;
}
.admin-header .logo {
width: 60px;
height: 60px;
}
.admin-body {
display: flex;
flex-grow: 1;
}
.admin-sidebar {
background-color: #f8f9fa;
width: 250px;
padding: 20px;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
flex-shrink: 0;
height: calc(100vh - 80px); /* Adjust height based on header */
}
.admin-sidebar nav ul {
list-style: none;
padding: 0;
}
.admin-sidebar nav ul li {
margin-bottom: 10px;
}
.admin-sidebar nav ul li a {
text-decoration: none;
color: #333;
padding: 10px;
display: block;
border-radius: 5px;
transition: background-color 0.3s;
}
.admin-sidebar nav ul li a:hover {
background-color: #007bff;
color: #fff;
}
.admin-main {
flex-grow: 1;
padding: 20px;
overflow-y: auto;
background: rgba(255, 255, 255, 0.3);
display: flex;
justify-content: center;
align-items: flex-start;
}
/* Custom styles for larger profile details */
#profile {
font-size: 1.2em; /* Increase base font size */
padding: 20px; /* Add padding around the section */
border: 2px solid #ddd; /* Optional: Add a border for emphasis */
border-radius: 10px; /* Rounded corners */
max-width: 600px; /* Constrain width */
margin: 0 auto; /* Center the profile section */
background-color: #f9f9f9; /* Light background color */
}
#profile p {
margin: 10px 0; /* Space between profile details */
line-height: 1.5; /* Improve readability */
}
#profile img {
display: block; /* Ensure image is on its own line */
margin: 20px auto; /* Center the image */
border-radius: 50%; /* Make the image circular */
border: 3px solid #ccc; /* Optional: Add a border to the image */
width: 150px; /* Set a consistent width for the image */
height: 150px; /* Ensure the image remains a circle */
}
#reset-points p {
font-size: 1.1em;
}
#reset-points ul {
padding-left: 20px;
}
#reset-points ul li {
font-size: 1.1em;
}
.admin-section {
display: none;
text-align: center;
width: 100%;
max-width: 800px;
}
.admin-section.active {
display: block;
}
.admin-section h2 {
margin-top: 0;
font-size: 3em;
text-align: center;
}
.table-container {
max-height: 400px;
overflow-y: auto;
width: 900px;
text-align: left; /* Align table to the left */
}
.table-header {
display: flex;
justify-content:center;
align-items: center;
margin-bottom: 10px;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
background-color: #fff;
}
table, th, td {
border: 1px solid #ddd;
}
th, td {
padding: 10px;
text-align: left;
}
th {
background-color: #f8f9fa;
}
.admin-section th {
background-color: #007bff;
color: white;
}
.export-form {
display: flex;
align-items: center;
}
.form-group {
margin-right: 10px;
text-align: center;
margin-bottom: 15px;
}
.form-group label {
display: block;
font-weight: bold;
margin-bottom: 5px;
}
.form-group input {
padding: 8px;
border: 1px solid #ddd;
border-radius: 5px;
}
.btn {
display: inline-block;
border: none;
padding: 10px 20px;
background-color: #007bff;
color: #fff;
text-align: center;
text-decoration: none;
font-size: 16px;
margin: 4px 2px;
border-radius: 5px;
cursor: pointer;
}
.btn:hover {
background-color: #0056b3;
}
.home-image {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
margin-top: 20px;
}
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0,0,0);
background-color: rgba(0,0,0,0.4);
}
.modal-content {
background-color: white;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 400px;
text-align: center;
border-radius: 8px;
font-size: 25px;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
.modal-content.success {
border-color: #28a745;
background-color: #28a745;
color: #ddd;
}
.modal-content.error {
border-color: #dc3545;
color: #ddd;
background-color: #dc3545;
}
.modal-content.info {
border-color: #17a2b8;
color: #ddd;
background-color: #17a2b8;
}
.modal-content.warning {
border-color:#FF7900;
background-color: #FF7900;
color: #ddd;
}