feat: enhance admin UI for maturity models and skills catalog
- Added new styles and layout for the maturity models admin panel, improving user experience. - Removed unused multi-selection component for focus areas, style directions, and target groups. - Updated skills catalog functionality to support editing and sorting of main categories and skills. - Introduced a modal for editing main categories, categories, and skills with improved accessibility. - Enhanced responsiveness and visual consistency across admin components.
This commit is contained in:
1 parent
e8b7e62832
commit
469ec93074
3 files changed
+1008
-546
No files matched your search
@@ -1248,6 +1248,426 @@ a.analysis-split__nav-item {
|
||||
min-width: 2rem;
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text2);
|
||||
box-shadow: none;
|
||||
}
|
||||
.btn-ghost:hover {
|
||||
background: var(--surface2);
|
||||
color: var(--text1);
|
||||
}
|
||||
|
||||
/* Touch-Ziel mind. ca. 44×44 (Apple HIG) */
|
||||
.btn-icon-touch {
|
||||
min-width: 44px;
|
||||
min-height: 44px;
|
||||
padding: 0 10px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.15rem;
|
||||
line-height: 1;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.admin-modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 1000;
|
||||
background: rgba(0, 0, 0, 0.45);
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
padding-bottom: env(safe-area-inset-bottom, 0px);
|
||||
}
|
||||
@media (min-width: 640px) {
|
||||
.admin-modal-backdrop {
|
||||
align-items: center;
|
||||
padding: 24px;
|
||||
padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
}
|
||||
|
||||
.admin-modal-sheet {
|
||||
width: 100%;
|
||||
max-width: 520px;
|
||||
max-height: min(92vh, 100dvh);
|
||||
background: var(--surface);
|
||||
border-radius: 16px 16px 0 0;
|
||||
border: 1px solid var(--border);
|
||||
border-bottom: none;
|
||||
box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
@media (min-width: 640px) {
|
||||
.admin-modal-sheet {
|
||||
border-radius: 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
max-height: min(88vh, 900px);
|
||||
}
|
||||
}
|
||||
|
||||
.admin-modal-sheet__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 16px 16px 12px;
|
||||
padding-top: max(16px, env(safe-area-inset-top, 0px));
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.admin-modal-sheet__title {
|
||||
margin: 0;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.admin-modal-sheet__close {
|
||||
flex-shrink: 0;
|
||||
min-width: 44px;
|
||||
min-height: 44px;
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.admin-modal-sheet__body {
|
||||
padding: 16px;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
|
||||
/* Reifegradmodell-Admin: klare Schritte, responsives Raster */
|
||||
.admin-matrix-alert {
|
||||
border: 1px solid var(--danger);
|
||||
padding: 14px 16px;
|
||||
margin-bottom: 16px;
|
||||
border-radius: 12px;
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.admin-matrix-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(260px, 300px) 1fr;
|
||||
gap: 20px;
|
||||
align-items: start;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.admin-matrix-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-matrix-sidebar {
|
||||
position: sticky;
|
||||
top: 12px;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.admin-matrix-sidebar {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-matrix-sidebar__title {
|
||||
margin: 0 0 12px;
|
||||
font-size: 1.05rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.admin-matrix-sidebar__subtitle {
|
||||
margin: 0 0 10px;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.admin-matrix-divider {
|
||||
border: none;
|
||||
border-top: 1px solid var(--border);
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.admin-matrix-model-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
max-height: min(40vh, 320px);
|
||||
overflow-y: auto;
|
||||
}
|
||||
.admin-matrix-model-list li + li {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.admin-matrix-model-btn {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 12px 14px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--border2);
|
||||
background: var(--surface2);
|
||||
color: var(--text1);
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
min-height: 48px;
|
||||
}
|
||||
.admin-matrix-model-btn:hover {
|
||||
background: var(--surface);
|
||||
}
|
||||
.admin-matrix-model-btn--active {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-light);
|
||||
color: var(--accent-dark);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.admin-matrix-model-btn--active {
|
||||
color: var(--accent);
|
||||
}
|
||||
}
|
||||
.admin-matrix-model-btn__name {
|
||||
font-weight: 600;
|
||||
}
|
||||
.admin-matrix-model-btn__meta {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.admin-matrix-new-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.admin-matrix-main {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.admin-matrix-loading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 12px 0;
|
||||
}
|
||||
|
||||
.admin-matrix-empty {
|
||||
padding: 24px;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.admin-matrix-section__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.admin-matrix-section__title {
|
||||
margin: 0;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.admin-matrix-step {
|
||||
flex-shrink: 0;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.admin-matrix-hint {
|
||||
font-size: 14px;
|
||||
margin: 0 0 12px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.admin-matrix-meta-grid {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.admin-matrix-meta-grid__row2 {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
.admin-matrix-meta-grid__row2 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-matrix-context-readonly {
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
padding: 12px 14px;
|
||||
border-radius: 10px;
|
||||
background: var(--surface2);
|
||||
border: 1px dashed var(--border2);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.admin-matrix-context-readonly strong {
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.admin-matrix-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.admin-matrix-actions--mt {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.admin-matrix-level-count {
|
||||
max-width: 220px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.admin-matrix-table-wrap {
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.admin-matrix-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 14px;
|
||||
}
|
||||
.admin-matrix-table th,
|
||||
.admin-matrix-table td {
|
||||
text-align: left;
|
||||
padding: 8px;
|
||||
border-top: 1px solid var(--border);
|
||||
vertical-align: middle;
|
||||
}
|
||||
.admin-matrix-table thead th {
|
||||
border-top: none;
|
||||
font-weight: 600;
|
||||
color: var(--text2);
|
||||
font-size: 13px;
|
||||
}
|
||||
.admin-matrix-table__narrow {
|
||||
width: 88px;
|
||||
}
|
||||
|
||||
.admin-matrix-skill-add {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
align-items: flex-end;
|
||||
}
|
||||
.admin-matrix-skill-add__select {
|
||||
flex: 1 1 220px;
|
||||
min-width: 0;
|
||||
}
|
||||
.admin-matrix-skill-add__btn {
|
||||
flex-shrink: 0;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.admin-matrix-skill-list {
|
||||
margin: 12px 0 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.admin-matrix-skill-list__item {
|
||||
padding: 12px 0;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.admin-matrix-skill-list__item:first-child {
|
||||
border-top: none;
|
||||
}
|
||||
.admin-matrix-skill-list__row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
.admin-matrix-skill-list__name {
|
||||
font-size: 15px;
|
||||
}
|
||||
.admin-matrix-skill-list__path {
|
||||
font-size: 12px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.admin-matrix-matrix-scroll {
|
||||
overflow: auto;
|
||||
max-height: min(70vh, 720px);
|
||||
-webkit-overflow-scrolling: touch;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
}
|
||||
.admin-matrix-table--matrix th,
|
||||
.admin-matrix-table--matrix td {
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.admin-matrix-matrix__corner {
|
||||
position: sticky;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
background: var(--surface);
|
||||
min-width: 140px;
|
||||
padding: 8px;
|
||||
}
|
||||
.admin-matrix-matrix__level-head {
|
||||
padding: 8px;
|
||||
min-width: 160px;
|
||||
background: var(--surface2);
|
||||
font-size: 13px;
|
||||
}
|
||||
.admin-matrix-matrix__skill-cell {
|
||||
position: sticky;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
background: var(--surface);
|
||||
font-weight: 600;
|
||||
max-width: 220px;
|
||||
vertical-align: top;
|
||||
padding: 8px;
|
||||
}
|
||||
.admin-matrix-matrix__skill-path {
|
||||
font-size: 11px;
|
||||
font-weight: 400;
|
||||
margin-top: 6px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.admin-matrix-matrix__cell {
|
||||
vertical-align: top;
|
||||
padding: 6px;
|
||||
min-width: 148px;
|
||||
}
|
||||
.admin-matrix-matrix__ta {
|
||||
font-size: 12px;
|
||||
width: 100%;
|
||||
min-width: 120px;
|
||||
}
|
||||
.admin-matrix-matrix__ta--criteria {
|
||||
font-size: 11px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.btn-small {
|
||||
padding: 8px 12px;
|
||||
font-size: 13px;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
.muted { color: var(--text3); font-size: 13px; }
|
||||
.empty-state { text-align: center; padding: 48px 16px; color: var(--text3); }
|
||||
.empty-state h3 { font-size: 16px; color: var(--text2); margin-bottom: 6px; }
|
||||
|
||||
Reference in new issue
Block a user