Temp user updates and several bug fixes

This commit is contained in:
2025-08-03 16:08:11 -06:00
parent 6d12d1aef1
commit 567917c013
19 changed files with 843 additions and 35 deletions

View File

@@ -54,3 +54,22 @@ body {
width: 100%;
overflow-x: hidden; /* Prevent horizontal scrolling */
}
/* Badge styles */
.badge {
display: inline-block;
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
font-weight: 500;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: 0.375rem;
margin-left: 0.5rem;
}
.temp-badge {
background-color: var(--warning-color);
color: white;
}

View File

@@ -0,0 +1,31 @@
/* Temp User Restrictions */
.temp-badge {
display: inline-block;
padding: 2px 8px;
background-color: #ff9800;
color: white;
font-size: 11px;
font-weight: bold;
border-radius: 3px;
margin-left: 5px;
text-transform: uppercase;
}
/* Hide restricted elements for temp users */
.temp-restricted {
display: none !important;
}
/* More specific selectors to ensure hiding */
a.temp-restricted,
.btn.temp-restricted,
.header-actions .temp-restricted,
.mobile-dropdown-item.temp-restricted {
display: none !important;
}
/* Hide Shift links/buttons whenever body has .temp-user */
body.temp-user a[href="/shifts.html"],
body.temp-user .mobile-dropdown-item a[href="/shifts.html"] {
display: none !important;
}