495 lines
8.7 KiB
CSS
495 lines
8.7 KiB
CSS
.page-header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.openapi-import-modal[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.openapi-import-modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 2400;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
padding: 28px 16px;
|
|
overflow: auto;
|
|
isolation: isolate;
|
|
}
|
|
|
|
.openapi-import-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 0;
|
|
background: rgba(1, 4, 9, 0.82);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.openapi-import-dialog {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: min(1040px, calc(100vw - 32px));
|
|
max-height: calc(100vh - 56px);
|
|
margin: 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border);
|
|
border-radius: 22px;
|
|
background: var(--bg-surface);
|
|
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
.openapi-import-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
padding: 22px 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-surface);
|
|
}
|
|
|
|
.openapi-import-header h2 {
|
|
margin: 0 0 6px;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.openapi-import-header p {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.openapi-import-body {
|
|
overflow: auto;
|
|
padding: 20px 24px 24px;
|
|
background: var(--bg-surface);
|
|
}
|
|
|
|
.openapi-import-upload {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.openapi-file-label {
|
|
display: grid;
|
|
gap: 8px;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
#openapi-import-document {
|
|
min-height: 132px;
|
|
max-height: 34vh;
|
|
resize: vertical;
|
|
padding: 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
background: var(--bg-overlay);
|
|
color: var(--text-primary);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 12px;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
#openapi-import-file {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
clip-path: inset(50%);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.openapi-file-control {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.openapi-file-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 32px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.openapi-file-name {
|
|
overflow: hidden;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.openapi-import-actions,
|
|
.openapi-import-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.openapi-import-status {
|
|
margin-top: 14px;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.openapi-import-status.error {
|
|
color: var(--red);
|
|
}
|
|
|
|
.openapi-import-preview {
|
|
display: grid;
|
|
gap: 16px;
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.openapi-import-source,
|
|
.openapi-import-group {
|
|
border: 1px solid var(--border);
|
|
border-radius: 16px;
|
|
background: var(--bg-overlay);
|
|
}
|
|
|
|
.openapi-import-source {
|
|
padding: 14px 16px;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.openapi-import-server-row {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.openapi-import-server-row label {
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
#openapi-import-server,
|
|
#openapi-import-conflict-mode,
|
|
#openapi-import-search,
|
|
#openapi-import-method-filter,
|
|
.openapi-import-server-custom {
|
|
max-width: 520px;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
background: var(--bg-surface);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.openapi-import-toolbar {
|
|
display: grid;
|
|
grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto;
|
|
gap: 12px;
|
|
align-items: end;
|
|
padding: 14px 16px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 16px;
|
|
background: var(--bg-overlay);
|
|
}
|
|
|
|
.openapi-import-filter {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.openapi-import-filter label {
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
#openapi-import-search,
|
|
#openapi-import-method-filter {
|
|
width: 100%;
|
|
max-width: none;
|
|
background: var(--bg-surface);
|
|
}
|
|
|
|
.openapi-import-bulk-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.openapi-import-groups {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.openapi-import-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.openapi-import-group-count {
|
|
margin-left: auto;
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.openapi-import-group-toggle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.openapi-import-operation {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
gap: 12px;
|
|
align-items: start;
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.openapi-import-operation:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.openapi-import-operation-title {
|
|
font-weight: 800;
|
|
}
|
|
|
|
.openapi-import-operation-meta {
|
|
margin-top: 4px;
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.openapi-import-method {
|
|
padding: 4px 8px;
|
|
border-radius: 999px;
|
|
background: var(--accent-glow);
|
|
color: var(--accent);
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.openapi-import-findings {
|
|
grid-column: 2 / -1;
|
|
display: grid;
|
|
gap: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.openapi-import-finding {
|
|
display: inline-flex;
|
|
align-items: baseline;
|
|
gap: 6px;
|
|
color: var(--amber);
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.openapi-import-finding-info {
|
|
color: var(--blue);
|
|
}
|
|
|
|
.openapi-import-finding-error {
|
|
color: var(--red);
|
|
}
|
|
|
|
.openapi-import-finding strong {
|
|
font-weight: 900;
|
|
}
|
|
|
|
.openapi-import-mapping-preview {
|
|
grid-column: 2 / -1;
|
|
display: grid;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
background: var(--bg-surface);
|
|
}
|
|
|
|
.openapi-import-mapping-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.openapi-import-mapping-label {
|
|
min-width: 52px;
|
|
color: var(--text-secondary);
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.openapi-import-mapping-chip {
|
|
padding: 3px 7px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
background: var(--bg-overlay);
|
|
color: var(--text-primary);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.openapi-import-mapping-more {
|
|
color: var(--text-secondary);
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.openapi-import-document-findings,
|
|
.openapi-import-result {
|
|
display: grid;
|
|
gap: 8px;
|
|
padding: 14px 16px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 16px;
|
|
background: var(--bg-overlay);
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.openapi-import-result strong {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.openapi-import-primary-result {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.openapi-import-primary-result .btn-primary {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.openapi-import-result-table {
|
|
display: grid;
|
|
gap: 0;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
background: var(--bg-surface);
|
|
}
|
|
|
|
.openapi-import-result-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.5fr) auto;
|
|
gap: 12px;
|
|
align-items: start;
|
|
padding: 12px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.openapi-import-result-row:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.openapi-import-result-head {
|
|
color: var(--text-secondary);
|
|
font-size: 11px;
|
|
font-weight: 900;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
background: var(--bg-overlay);
|
|
}
|
|
|
|
.openapi-import-result-name {
|
|
color: var(--text-primary);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.openapi-import-result-meta {
|
|
margin-top: 4px;
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.openapi-import-result-findings {
|
|
display: grid;
|
|
gap: 5px;
|
|
}
|
|
|
|
.openapi-import-result-ok {
|
|
color: var(--green);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.openapi-import-result-more {
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.openapi-import-result-action {
|
|
white-space: nowrap;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.openapi-import-result-skipped {
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.openapi-import-created-list {
|
|
display: grid;
|
|
gap: 6px;
|
|
margin: 4px 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.openapi-import-created-list a {
|
|
color: var(--accent);
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.openapi-import-toolbar {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.openapi-import-bulk-actions {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.openapi-import-operation {
|
|
grid-template-columns: auto 1fr;
|
|
}
|
|
|
|
.openapi-import-result-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.openapi-import-method {
|
|
justify-self: start;
|
|
}
|
|
}
|