Temp user updates and several bug fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
31
map/app/public/css/modules/temp-user.css
Normal file
31
map/app/public/css/modules/temp-user.css
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user