add staff managment permission modal window
This commit is contained in:
@@ -0,0 +1,211 @@
|
||||
.edit-permissions-modal {
|
||||
padding: 24px;
|
||||
max-width: 900px;
|
||||
width: 100%;
|
||||
max-height: 85vh;
|
||||
overflow-y: auto;
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
|
||||
.modal-header {
|
||||
margin-bottom: 24px;
|
||||
padding-bottom: 16px;
|
||||
border-bottom: 2px solid #f0f0f0;
|
||||
|
||||
.modal-title {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
color: #1a1a1a;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.permissions-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
margin-bottom: 28px;
|
||||
|
||||
.permission-item {
|
||||
/* border: 1px solid #e9ecef; */
|
||||
border-radius: 12px;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
/* &:hover {
|
||||
border-color: #dee2e6;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||
} */
|
||||
|
||||
.permission-header {
|
||||
/* padding: 20px; */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
flex-wrap: wrap;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.permission-info {
|
||||
flex: 1;
|
||||
|
||||
.permission-title {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #212529;
|
||||
margin: 0 0 4px 0;
|
||||
}
|
||||
|
||||
.permission-description {
|
||||
font-size: 13px;
|
||||
color: #6c757d;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.permission-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.permission-level-buttons {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
background: #f8f9fa;
|
||||
padding: 4px;
|
||||
border-radius: 8px;
|
||||
|
||||
.permission-level-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 6px 12px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
font-size: 13px;
|
||||
color: #6c757d;
|
||||
|
||||
.btn-icon {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.btn-text {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: white;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
|
||||
&.no-access {
|
||||
color: #dc3545;
|
||||
background: #fff5f5;
|
||||
}
|
||||
|
||||
&.read-only {
|
||||
color: #0d6efd;
|
||||
background: #f0f7ff;
|
||||
}
|
||||
|
||||
&.full-access {
|
||||
color: #198754;
|
||||
background: #f0fff4;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #e9ecef;
|
||||
|
||||
.btn {
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&.btn-secondary {
|
||||
background: #6c757d;
|
||||
color: white;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
background: #5a6268;
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-primary {
|
||||
background: #0d6efd;
|
||||
color: white;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
background: #0b5ed7;
|
||||
}
|
||||
}
|
||||
|
||||
.spinner {
|
||||
display: inline-block;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border: 2px solid rgba(255, 255, 255, 0.3);
|
||||
border-radius: 50%;
|
||||
border-top-color: white;
|
||||
animation: spin 0.6s linear infinite;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
// Scrollbar styling
|
||||
.edit-permissions-modal::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
.edit-permissions-modal::-webkit-scrollbar-track {
|
||||
background: #f1f1f1;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.edit-permissions-modal::-webkit-scrollbar-thumb {
|
||||
background: #888;
|
||||
border-radius: 10px;
|
||||
|
||||
&:hover {
|
||||
background: #555;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
@use './variable.scss' as v;
|
||||
@use './edit-permissions-modal.scss';
|
||||
|
||||
:root {
|
||||
--primary-color: #2563eb;
|
||||
|
||||
Reference in New Issue
Block a user