Spaces:
Sleeping
Sleeping
Update static/style.css
Browse files- static/style.css +181 -1
static/style.css
CHANGED
|
@@ -210,4 +210,184 @@ th {
|
|
| 210 |
|
| 211 |
.custombutton:hover {
|
| 212 |
background-color: #636363; /* Darker grey on hover */
|
| 213 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 210 |
|
| 211 |
.custombutton:hover {
|
| 212 |
background-color: #636363; /* Darker grey on hover */
|
| 213 |
+
}
|
| 214 |
+
/* Reset and Base Styles */
|
| 215 |
+
* {
|
| 216 |
+
margin: 0;
|
| 217 |
+
padding: 0;
|
| 218 |
+
box-sizing: border-box;
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
body {
|
| 222 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 223 |
+
background-color: #f4f4f4;
|
| 224 |
+
color: #333;
|
| 225 |
+
padding: 20px;
|
| 226 |
+
line-height: 1.6;
|
| 227 |
+
}
|
| 228 |
+
|
| 229 |
+
/* Header Styles */
|
| 230 |
+
h1 {
|
| 231 |
+
font-size: 2em;
|
| 232 |
+
margin-bottom: 20px;
|
| 233 |
+
color: #2c3e50;
|
| 234 |
+
}
|
| 235 |
+
|
| 236 |
+
h2 {
|
| 237 |
+
font-size: 1.5em;
|
| 238 |
+
margin-top: 30px;
|
| 239 |
+
margin-bottom: 10px;
|
| 240 |
+
padding-bottom: 5px;
|
| 241 |
+
border-bottom: 2px solid #ddd;
|
| 242 |
+
color: #34495e;
|
| 243 |
+
}
|
| 244 |
+
|
| 245 |
+
/* Paragraph and Link Styles */
|
| 246 |
+
p {
|
| 247 |
+
margin-bottom: 15px;
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
a {
|
| 251 |
+
color: #3498db;
|
| 252 |
+
text-decoration: none;
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
a:hover {
|
| 256 |
+
text-decoration: underline;
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
/* Form Styles */
|
| 260 |
+
form {
|
| 261 |
+
background: #fff;
|
| 262 |
+
border: 1px solid #ddd;
|
| 263 |
+
border-radius: 5px;
|
| 264 |
+
padding: 20px;
|
| 265 |
+
margin-bottom: 30px;
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
form label {
|
| 269 |
+
display: block;
|
| 270 |
+
margin-bottom: 5px;
|
| 271 |
+
font-weight: bold;
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
form input[type="email"],
|
| 275 |
+
form input[type="password"],
|
| 276 |
+
form input[type="text"],
|
| 277 |
+
form input[type="number"],
|
| 278 |
+
form select {
|
| 279 |
+
width: 100%;
|
| 280 |
+
padding: 8px;
|
| 281 |
+
margin-bottom: 15px;
|
| 282 |
+
border: 1px solid #ccc;
|
| 283 |
+
border-radius: 4px;
|
| 284 |
+
}
|
| 285 |
+
|
| 286 |
+
form button {
|
| 287 |
+
display: inline-block;
|
| 288 |
+
background: #3498db;
|
| 289 |
+
color: #fff;
|
| 290 |
+
padding: 10px 15px;
|
| 291 |
+
border: none;
|
| 292 |
+
border-radius: 4px;
|
| 293 |
+
cursor: pointer;
|
| 294 |
+
}
|
| 295 |
+
|
| 296 |
+
form button:hover {
|
| 297 |
+
background: #2980b9;
|
| 298 |
+
}
|
| 299 |
+
|
| 300 |
+
/* Table Styles */
|
| 301 |
+
table {
|
| 302 |
+
width: 100%;
|
| 303 |
+
border-collapse: collapse;
|
| 304 |
+
background: #fff;
|
| 305 |
+
margin-bottom: 30px;
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
table th,
|
| 309 |
+
table td {
|
| 310 |
+
padding: 10px;
|
| 311 |
+
text-align: left;
|
| 312 |
+
border: 1px solid #ddd;
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
table th {
|
| 316 |
+
background: #f8f8f8;
|
| 317 |
+
font-weight: bold;
|
| 318 |
+
}
|
| 319 |
+
|
| 320 |
+
/* Custom Button for Inventory Management */
|
| 321 |
+
.custombutton {
|
| 322 |
+
display: inline-block;
|
| 323 |
+
background: #27ae60;
|
| 324 |
+
color: #fff;
|
| 325 |
+
padding: 10px 20px;
|
| 326 |
+
text-decoration: none;
|
| 327 |
+
border-radius: 4px;
|
| 328 |
+
margin-bottom: 30px;
|
| 329 |
+
}
|
| 330 |
+
|
| 331 |
+
.custombutton:hover {
|
| 332 |
+
background: #219150;
|
| 333 |
+
}
|
| 334 |
+
|
| 335 |
+
/* Icon Integration using Font Awesome */
|
| 336 |
+
/* Logout link icon: add the class "logout-icon" to the <a> element if needed */
|
| 337 |
+
.logout-icon::before {
|
| 338 |
+
content: "\f2f5"; /* Font Awesome icon code for "sign-out-alt" */
|
| 339 |
+
font-family: "Font Awesome 6 Free";
|
| 340 |
+
font-weight: 900;
|
| 341 |
+
margin-right: 5px;
|
| 342 |
+
}
|
| 343 |
+
|
| 344 |
+
/* Inventory Management button icon */
|
| 345 |
+
.custombutton::before {
|
| 346 |
+
content: "\f187"; /* Font Awesome icon code for "boxes" */
|
| 347 |
+
font-family: "Font Awesome 6 Free";
|
| 348 |
+
font-weight: 900;
|
| 349 |
+
margin-right: 8px;
|
| 350 |
+
}
|
| 351 |
+
|
| 352 |
+
/* Flash Messages Styles */
|
| 353 |
+
ul {
|
| 354 |
+
list-style: none;
|
| 355 |
+
margin: 20px 0;
|
| 356 |
+
padding: 0;
|
| 357 |
+
}
|
| 358 |
+
|
| 359 |
+
ul li {
|
| 360 |
+
background: #ffeeba;
|
| 361 |
+
border: 1px solid #f5c06f;
|
| 362 |
+
padding: 10px;
|
| 363 |
+
margin-bottom: 5px;
|
| 364 |
+
border-radius: 4px;
|
| 365 |
+
}
|
| 366 |
+
|
| 367 |
+
/* Responsive Table Styling */
|
| 368 |
+
@media (max-width: 768px) {
|
| 369 |
+
table, thead, tbody, th, td, tr {
|
| 370 |
+
display: block;
|
| 371 |
+
}
|
| 372 |
+
table tr {
|
| 373 |
+
margin-bottom: 15px;
|
| 374 |
+
}
|
| 375 |
+
table th {
|
| 376 |
+
background: #f4f4f4;
|
| 377 |
+
font-weight: bold;
|
| 378 |
+
}
|
| 379 |
+
table td {
|
| 380 |
+
text-align: right;
|
| 381 |
+
padding-left: 50%;
|
| 382 |
+
position: relative;
|
| 383 |
+
}
|
| 384 |
+
table td::before {
|
| 385 |
+
content: attr(data-label);
|
| 386 |
+
position: absolute;
|
| 387 |
+
left: 0;
|
| 388 |
+
width: 45%;
|
| 389 |
+
padding-left: 10px;
|
| 390 |
+
font-weight: bold;
|
| 391 |
+
text-align: left;
|
| 392 |
+
}
|
| 393 |
+
}
|