-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
317 lines (274 loc) · 6.98 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
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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
/* General Body Styling */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
color: white;
display: flex;
flex-direction: column;
min-height: 100vh;
}
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('gym_background.png');
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
filter: blur(4px);
z-index: -1;
}
.wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Header styling */
header {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 20px;
padding: 15px;
width: 100%;
box-sizing: border-box;
margin-bottom: 10px;
}
.header-spacing {
margin-top: 0;
}
/* Center the main heading */
h1 {
text-align: center;
margin-top: 20px;
}
header div {
display: flex;
gap: 10px;
}
/* Footer styling */
.footer {
width: 100%;
text-align: right;
padding: 20px;
box-sizing: border-box;
}
footer p {
margin: 0;
font-size: 16px;
}
/* Buttons for navigation */
.entries-button, .back-button, .logout-button, input[type="submit"] {
padding: 10px 20px;
background-color: #007BFF;
color: white;
text-decoration: none;
border-radius: 5px;
border: none;
cursor: pointer;
display: inline-block;
text-align: center;
font-size: 16px;
line-height: normal;
margin-top: 0px;
}
/* Hover effect for buttons */
.entries-button:hover, .back-button:hover, .logout-button:hover, input[type="submit"]:hover {
background-color: #0056b3;
}
.container {
flex: 1;
display: flex;
flex-direction: column;
justify-content: flex-start;
margin-bottom: 20px;
padding: 0 30px;
}
/* Form container styling */
form {
max-width: 700px;
width: 100%;
margin: auto;
margin-top: 15px;
background-color: rgba(255, 255, 255, 0.6);
padding: 20px;
border-radius: 10px;
color: black;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Input fields styling */
form input[type="text"],
form input[type="number"],
form input[type="date"],
form textarea,
form select {
display: block;
width: calc(100% - 20px);
margin-bottom: 10px; /* Ensure consistent margin between input fields */
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
/* Form labels styling */
form label {
display: block;
text-align: left;
margin-top: 10px;
margin-bottom: 5px;
}
/* Submit button styling */
form input[type="submit"] {
margin: 20px auto;
color: white;
padding: 10px;
background-color: #007BFF;
border-radius: 5px;
border: none;
cursor: pointer;
display: block;
}
/* Ensure the table-container is positioned relative */
.table-container {
position: relative;
width: 100%;
margin-top: 20px;
border-radius: 15px; /* Apply rounded corners */
overflow: hidden; /* Ensure rounded corners are respected for the overlay */
padding: 20px; /* Add padding for the gap */
box-sizing: border-box; /* Include padding in the container's dimensions */
display: flex;
align-items: center;
justify-content: center;
}
/* Semi-transparent overlay for the table container */
.table-container::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
border-radius: 15px; /* Apply rounded corners */
z-index: -1; /* Ensure it appears behind the table */
}
/* Adjust the table dimensions */
.entries-table {
width: 100%;
display: block;
border-collapse: collapse;
z-index: 0; /* Ensure the table appears above the overlay */
}
.entries-table th,
.entries-table td {
padding: 10px;
text-align: left;
border-bottom: 1px solid #ddd;
color: white; /* Ensure text is visible against the dark background */
}
.entries-table th {
background-color: rgba(0, 0, 0, 0.7); /* Darker background for header */
}
.entries-table tr:hover {
background-color: rgba(0, 0, 0, 0.3); /* Lighten row on hover */
}
/* Table borders styling */
table, th, td {
border: 1px solid rgba(255, 255, 255, 1);
}
/* Table cells padding and alignment */
th, td {
padding: 8px;
text-align: left;
}
/* Custom styles for specific table columns */
.date {
width: 100px; /* Adjust the width as needed */
}
th.day_of_week, td.day_of_week {
width: 100px; /* Set the width for the day of the week column */
}
th.weight_kg, td.weight_kg {
width: 100px; /* Set the width for the weight column */
}
th.calories_kcal, td.calories_kcal {
width: 100px; /* Set the width for the calories column */
}
th.protein_g, td.protein_g {
width: 100px; /* Set the width for the protein column */
}
th.carbs_g, td.carbs_g {
width: 100px; /* Set the width for the carbs column */
}
th.fats_g, td.fats_g {
width: 100px; /* Set the width for the fats column */
}
th.sleep_duration_min, td.sleep_duration_min {
width: 125px; /* Set the width for the sleep duration column */
}
th.sleep_quality, td.sleep_quality {
width: 125px; /* Set the width for the sleep quality column */
}
th.mood, td.mood {
width: 100px; /* Set the width for the mood column */
}
th.stress, td.stress {
width: 100px; /* Set the width for the stress column */
}
th.gym_performance, td.gym_performance {
width: 125px; /* Set the width for the gym performance column */
}
th.gym_strength, td.gym_strength {
width: 125px; /* Set the width for the gym performance column */
}
th.resting_heart_rate, td.resting_heart_rate {
width: 125px; /* Set the width for the resting heart rate column */
}
th.blood_pressure, td.blood_pressure {
width: 125px; /* Set the width for the blood pressure column */
}
th.blood_oxygen_level, td.blood_oxygen_level {
width: 125px; /* Set the width for the blood oxygen level column */
}
th.supplements_taken, td.supplements_taken {
width: 200px; /* Set the width for the supplements taken column */
}
th.peds_taken, td.peds_taken {
width: 400px; /* Set the width for the PEDs taken column */
}
/* Custom styles for specific input fields in the form */
input#date, input#day_of_week, input#weight_kg, input#calories_kcal, input#protein_g,
input#carbs_g, input#fats_g, input#sleep_duration_min, input#sleep_quality, input#mood,
input#stress, input#gym_performance, select#gym_strength, input#resting_heart_rate, input#blood_pressure,
input#blood_oxygen_level {
background-color: white; /* Example background color for input fields */
border: 1px solid black;
border-radius: 4px;
padding: 5px;
width: calc(225px); /* Ensure the inputs take full width minus padding */
}
/* Custom size for specific input fields */
textarea#supplements_taken {
width: 350px;
height: 100px;
padding: 10px;
border: 1px solid black;
border-radius: 5px;
margin-bottom: 40px; /* Ensure consistent margin below this field */
}
textarea#peds_taken {
width: 450px;
height: 150px;
padding: 10px;
border: 1px solid black;
border-radius: 5px;
margin-bottom: 10px; /* Ensure consistent margin below this field */
}