Files
X-Financial/web/src/assets/styles/views/audit-view.css

948 lines
15 KiB
CSS

.skill-center {
height: 100%;
min-height: 0;
}
.skill-view-enter-active,
.skill-view-leave-active {
transition: opacity 220ms ease, transform 300ms var(--ease);
}
.skill-view-enter-from,
.skill-view-leave-to {
opacity: 0;
transform: translateY(14px);
}
.skill-list,
.skill-detail {
height: 100%;
min-height: 0;
}
.skill-detail {
display: grid;
grid-template-rows: minmax(0, 1fr) auto;
gap: 12px;
}
.skill-list {
display: grid;
grid-template-rows: auto auto auto minmax(0, 1fr);
padding: 18px 20px;
}
.status-tabs {
display: flex;
gap: 18px;
padding-bottom: 12px;
border-bottom: 1px solid #edf2f7;
}
.status-tabs button {
position: relative;
border: 0;
background: transparent;
color: #64748b;
font-size: 14px;
font-weight: 760;
}
.status-tabs button.active {
color: #0f172a;
}
.status-tabs button.active::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -13px;
height: 3px;
border-radius: 999px;
background: #10b981;
}
.list-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 14px 0 10px;
}
.filter-set {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.filter-btn,
.create-btn,
.row-action {
min-height: 36px;
border-radius: 8px;
font-size: 13px;
font-weight: 760;
}
.filter-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 0 12px;
border: 1px solid #d7e0ea;
background: #fff;
color: #334155;
}
.create-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 0 14px;
border: 0;
background: #059669;
color: #fff;
box-shadow: 0 8px 18px rgba(5, 150, 105, 0.18);
}
.hint {
display: inline-flex;
align-items: center;
gap: 6px;
margin: 0 0 12px;
color: #64748b;
font-size: 12px;
}
.hint .mdi {
color: #94a3b8;
}
.table-wrap {
min-height: 0;
overflow: auto;
border: 1px solid #edf2f7;
border-radius: 12px;
}
table {
width: 100%;
min-width: 1120px;
border-collapse: collapse;
}
th,
td {
padding: 14px 12px;
border-bottom: 1px solid #edf2f7;
text-align: left;
vertical-align: middle;
color: #334155;
font-size: 12px;
}
th {
background: #f8fafc;
color: #64748b;
font-weight: 800;
white-space: nowrap;
}
tbody tr {
cursor: pointer;
transition: background 180ms ease;
}
tbody tr:hover {
background: #f8fbff;
}
tbody tr.spotlight {
background: linear-gradient(90deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.03));
}
.skill-name-cell {
display: grid;
grid-template-columns: 38px minmax(0, 1fr);
gap: 10px;
align-items: center;
}
.skill-avatar {
width: 38px;
height: 38px;
display: grid;
place-items: center;
border-radius: 11px;
color: #fff;
font-size: 13px;
font-weight: 900;
}
.skill-avatar.emerald { background: linear-gradient(135deg, #10b981, #059669); }
.skill-avatar.violet { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.skill-avatar.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.skill-avatar.amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.skill-name-cell strong {
display: block;
color: #0f172a;
font-size: 13px;
font-weight: 850;
}
.skill-name-cell span:last-child {
display: block;
margin-top: 4px;
color: #64748b;
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.scope-pill,
.status-pill {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 26px;
padding: 0 9px;
border-radius: 999px;
font-size: 11px;
font-weight: 800;
white-space: nowrap;
}
.scope-pill {
background: #f1f5f9;
color: #475569;
}
.status-pill.success {
background: #dcfce7;
color: #059669;
}
.status-pill.warning {
background: #fff7ed;
color: #ea580c;
}
.status-pill.draft {
background: #eef2ff;
color: #6366f1;
}
.row-action {
padding: 0 12px;
border: 1px solid rgba(16, 185, 129, 0.32);
background: #fff;
color: #059669;
}
.detail-scroll {
height: 100%;
overflow: auto;
display: grid;
gap: 16px;
}
.detail-hero {
display: grid;
gap: 10px;
padding: 16px 20px;
}
.hero-title {
min-width: 0;
}
.skill-badge {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 0 8px;
border-radius: 999px;
color: #fff;
font-size: 11px;
font-weight: 800;
}
.skill-badge.emerald { background: linear-gradient(135deg, #10b981, #059669); }
.skill-badge.violet { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.skill-badge.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.skill-badge.amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.hero-title h2 {
margin-top: 10px;
color: #0f172a;
font-size: 24px;
font-weight: 850;
}
.hero-title p {
margin-top: 8px;
max-width: 820px;
color: #64748b;
font-size: 14px;
line-height: 1.6;
}
.hero-review-meta {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
margin-top: 12px;
}
.hero-review-meta span {
display: inline-flex;
align-items: center;
gap: 5px;
min-height: 26px;
padding: 0 9px;
border-radius: 999px;
background: #f8fafc;
color: #475569;
font-size: 12px;
font-weight: 800;
}
.hero-review-meta i {
color: #059669;
font-size: 15px;
}
.hero-stats {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.hero-stat {
min-height: 54px;
display: grid;
align-content: center;
gap: 4px;
padding: 9px 12px;
border-radius: 10px;
background: #f8fafc;
border: 1px solid #e5eaf0;
}
.hero-stat span {
display: block;
color: #64748b;
font-size: 11px;
font-weight: 800;
line-height: 1.2;
}
.hero-stat strong {
display: block;
color: #0f172a;
font-size: 15px;
font-weight: 850;
line-height: 1.25;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.hero-stat .status-pill {
width: fit-content;
min-height: 22px;
padding: 0 8px;
}
.detail-grid {
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.78fr);
gap: 16px;
}
.detail-grid.skill-md-detail-grid {
grid-template-columns: minmax(0, 1fr) 360px;
align-items: stretch;
}
.detail-grid.skill-md-detail-grid .detail-main {
height: 100%;
}
.detail-main,
.detail-side {
display: grid;
gap: 16px;
align-content: start;
}
.detail-card,
.side-card {
padding: 18px;
}
.card-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 16px;
}
.card-head h3 {
color: #0f172a;
font-size: 16px;
font-weight: 850;
}
.card-head p {
margin-top: 6px;
color: #64748b;
font-size: 13px;
line-height: 1.5;
}
.edit-badge {
display: inline-flex;
align-items: center;
min-height: 28px;
padding: 0 10px;
border-radius: 999px;
background: #ecfeff;
color: #0891b2;
font-size: 12px;
font-weight: 800;
}
.form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.field {
display: grid;
gap: 7px;
}
.field.span-2 {
grid-column: span 2;
}
.field span {
color: #64748b;
font-size: 12px;
font-weight: 800;
}
.field input,
.field textarea,
.prompt-block textarea {
width: 100%;
border: 1px solid #d7e0ea;
border-radius: 10px;
background: #fff;
color: #0f172a;
font-size: 13px;
line-height: 1.55;
padding: 10px 12px;
resize: vertical;
}
.markdown-card {
min-height: 620px;
display: grid;
grid-template-rows: auto minmax(0, 1fr);
}
.markdown-card .field {
min-height: 0;
grid-template-rows: auto minmax(0, 1fr);
}
.markdown-editor {
min-height: 520px;
height: 100%;
font-family: "Cascadia Mono", "Consolas", monospace;
font-size: 13px;
line-height: 1.65;
white-space: pre;
}
.skill-review-side {
align-content: start;
}
.review-card {
position: sticky;
top: 0;
}
.reviewer-card {
border-color: rgba(16, 185, 129, 0.24);
background: linear-gradient(180deg, #ffffff, #f8fffc);
}
.review-list {
display: grid;
gap: 0;
}
.review-row {
display: grid;
gap: 6px;
padding: 12px 0;
border-top: 1px solid #edf2f7;
}
.review-row:first-child {
border-top: 0;
padding-top: 0;
}
.review-row span {
color: #64748b;
font-size: 12px;
font-weight: 800;
}
.review-row strong {
color: #0f172a;
font-size: 13px;
font-weight: 850;
line-height: 1.45;
}
.version-list {
display: grid;
gap: 0;
}
.version-row {
display: grid;
gap: 6px;
width: 100%;
padding: 10px 12px;
border-top: 1px solid #edf2f7;
border-right: 0;
border-bottom: 0;
border-left: 0;
background: transparent;
text-align: left;
cursor: pointer;
transition: background 180ms ease;
}
.version-row:first-child {
border-top: 0;
}
.version-row:hover {
border-radius: 10px;
background: #f8fafc;
}
.version-row.active {
border-radius: 10px;
background: rgba(16, 185, 129, 0.08);
}
.version-row-head {
display: grid;
grid-template-columns: minmax(52px, 1fr) 46px 82px;
align-items: center;
gap: 8px;
}
.version-row strong {
color: #0f172a;
font-size: 13px;
font-weight: 850;
}
.version-row span {
color: #94a3b8;
font-size: 11px;
font-weight: 800;
white-space: nowrap;
text-align: right;
}
.version-current-slot {
min-width: 46px;
display: grid;
place-items: center;
text-align: center;
}
.version-current-slot .current-version {
min-height: 20px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 7px;
border-radius: 999px;
background: #dcfce7;
color: #059669;
font-size: 11px;
font-weight: 850;
}
.version-row p {
color: #64748b;
font-size: 12px;
line-height: 1.5;
}
.modal-backdrop {
position: fixed;
inset: 0;
z-index: 60;
display: grid;
place-items: center;
padding: 24px;
background: rgba(15, 23, 42, 0.34);
}
.version-modal {
width: min(480px, 100%);
padding: 20px;
border-radius: 12px;
box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}
.version-modal-summary {
display: grid;
grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
align-items: center;
gap: 10px;
margin-top: 4px;
}
.version-modal-summary div {
padding: 12px;
border: 1px solid #edf2f7;
border-radius: 10px;
background: #f8fafc;
}
.version-modal-summary span,
.version-modal-note span {
display: block;
color: #64748b;
font-size: 12px;
font-weight: 800;
}
.version-modal-summary strong,
.version-modal-note strong {
display: block;
margin-top: 6px;
color: #0f172a;
font-size: 15px;
font-weight: 850;
}
.version-modal-summary i {
color: #94a3b8;
text-align: center;
}
.version-modal-note {
margin-top: 12px;
padding: 12px;
border: 1px solid #edf2f7;
border-radius: 10px;
background: #fff;
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 16px;
}
.prompt-stack {
display: grid;
gap: 14px;
}
.prompt-block {
padding: 14px;
border: 1px solid #edf2f7;
border-radius: 12px;
background: #fbfdff;
}
.prompt-block header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 10px;
}
.prompt-block strong {
color: #0f172a;
font-size: 14px;
font-weight: 850;
}
.prompt-block header span {
color: #64748b;
font-size: 12px;
font-weight: 700;
}
.contract-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.contract-panel {
padding: 14px;
border: 1px solid #edf2f7;
border-radius: 12px;
background: #fbfdff;
}
.contract-panel h4 {
margin: 0 0 10px;
color: #0f172a;
font-size: 14px;
font-weight: 850;
}
.contract-panel ul {
display: grid;
gap: 8px;
margin: 0;
padding-left: 18px;
color: #475569;
font-size: 13px;
line-height: 1.6;
}
.test-row,
.tool-row,
.history-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
padding: 12px 0;
border-top: 1px solid #edf2f7;
}
.test-row:first-child,
.tool-row:first-child,
.history-row:first-child {
border-top: 0;
padding-top: 0;
}
.test-row strong,
.tool-row strong,
.history-row strong {
display: block;
color: #0f172a;
font-size: 13px;
font-weight: 800;
}
.test-row span,
.tool-row span,
.history-row span,
.history-row small {
display: block;
margin-top: 4px;
color: #64748b;
font-size: 12px;
line-height: 1.5;
}
.test-state,
.tool-state {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 0 8px;
border-radius: 999px;
font-size: 11px;
font-weight: 800;
white-space: nowrap;
}
.test-state.success,
.tool-state.safe {
background: #dcfce7;
color: #059669;
}
.test-state.warning,
.tool-state.active {
background: #fff7ed;
color: #ea580c;
}
.tag-list {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.tag-list span {
min-height: 28px;
display: inline-flex;
align-items: center;
padding: 0 10px;
border-radius: 999px;
background: #eff6ff;
color: #2563eb;
font-size: 12px;
font-weight: 800;
}
.publish-card {
display: grid;
gap: 14px;
}
.publish-card p,
.publish-summary span {
margin-top: 6px;
color: #64748b;
font-size: 13px;
line-height: 1.55;
}
.publish-summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 42px;
padding: 0 12px;
border-radius: 10px;
background: #f8fafc;
}
.publish-summary strong {
color: #059669;
font-size: 14px;
font-weight: 850;
}
.detail-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px 0 0;
border-top: 1px solid #e5eaf0;
}
.detail-action-group {
display: flex;
justify-content: flex-end;
gap: 8px;
}
.back-action,
.minor-action,
.major-action {
height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 0 14px;
border-radius: 8px;
font-size: 13px;
font-weight: 760;
}
.back-action {
border: 1px solid #d7e0ea;
background: #fff;
color: #475569;
}
.minor-action {
border: 1px solid #d7e0ea;
background: #fff;
color: #334155;
}
.major-action {
border: 1px solid #059669;
background: #059669;
color: #fff;
box-shadow: 0 4px 12px rgba(5, 150, 105, .16);
}
.mini-btn.primary {
border-color: transparent;
background: #059669;
color: #fff;
}
@media (max-width: 1320px) {
.detail-hero {
grid-template-columns: 1fr;
}
.hero-stats,
.form-grid,
.contract-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail-grid {
grid-template-columns: 1fr;
}
.detail-grid.skill-md-detail-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 860px) {
.skill-list,
.detail-card,
.side-card,
.detail-hero {
padding: 16px;
}
.list-toolbar,
.card-head,
.detail-actions,
.detail-action-group {
flex-direction: column;
align-items: stretch;
}
.status-tabs,
.filter-set {
overflow-x: auto;
}
.hero-stats,
.form-grid,
.contract-grid {
grid-template-columns: 1fr;
}
.field.span-2 {
grid-column: span 1;
}
}