Files
iotlcm/onelink-mock/frontend/src/style.css

309 lines
10 KiB
CSS

:root {
font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
color: #1d252b;
background: #f5f7f8;
font-synthesis: none;
text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
.shell {
width: min(1280px, calc(100vw - 32px));
margin: 0 auto;
padding: 24px 0 44px;
}
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
margin-bottom: 18px;
}
.top-actions {
display: inline-flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
justify-content: flex-end;
}
.count-input {
width: 110px;
}
.group-select {
width: 150px;
}
.eyebrow {
margin: 0 0 6px;
color: #57717f;
font-size: 13px;
font-weight: 700;
}
h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; color: #14242d; }
h2 { font-size: 20px; }
p { color: #63717a; }
.icon-btn, button {
border: 0;
border-radius: 8px;
min-height: 38px;
padding: 0 14px;
background: #116a6d;
color: white;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
cursor: pointer;
}
.icon-btn { width: 42px; padding: 0; }
.ghost {
min-height: 30px;
color: #116a6d;
background: #e5f0ef;
}
.metrics {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 12px;
margin-bottom: 14px;
}
.metrics div {
min-height: 76px;
display: flex;
align-items: center;
gap: 10px;
background: white;
border: 1px solid #dce4e6;
border-radius: 8px;
padding: 16px;
}
.metric-link { cursor: pointer; }
.metric-link:hover, .metric-link:focus-visible { border-color: #116a6d; background: #f0f8f7; outline: none; }
.metrics strong { font-size: 26px; color: #0f4348; }
.metrics span { color: #68777f; }
.band {
background: white;
border: 1px solid #dce4e6;
border-radius: 8px;
padding: 18px;
margin-top: 14px;
}
.section-head {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: flex-start;
margin-bottom: 16px;
}
.section-head-actions { display: inline-flex; align-items: center; gap: 14px; }
.form-grid {
display: grid;
gap: 10px;
margin-bottom: 14px;
}
.search-row { display: grid; grid-template-columns: minmax(260px, 1fr) 150px 150px auto 42px; gap: 10px; margin-bottom: 14px; align-items: center; }
.search-row > button { white-space: nowrap; }
.app-grid { grid-template-columns: 1.4fr 1fr 1fr auto; }
.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
input, select {
width: 100%;
min-height: 38px;
border: 1px solid #ccd7da;
border-radius: 7px;
padding: 8px 10px;
color: #1d252b;
background: #fbfcfc;
}
.mono {
font-family: "Cascadia Mono", Consolas, monospace;
font-size: 12px;
}
.table {
border: 1px solid #e0e7e9;
border-radius: 8px;
overflow: hidden;
}
.tr {
display: grid;
grid-template-columns: 1fr 1.4fr 2fr 56px;
gap: 10px;
align-items: center;
min-height: 42px;
padding: 8px 12px;
border-top: 1px solid #e8eeee;
}
.tr:first-child { border-top: 0; }
.th {
background: #f1f5f5;
color: #52646d;
font-weight: 700;
}
.cards .tr {
grid-template-columns: 42px 1fr 1.5fr 1.25fr 0.85fr 0.7fr 0.8fr 0.6fr 0.7fr 150px;
}
.cards { max-height: 492px; overflow-y: auto; }
.cards .tr.th { position: sticky; top: 0; z-index: 1; }
.orders { max-height: 492px; overflow-y: auto; }
.orders .tr.th { position: sticky; top: 0; z-index: 1; }
.row-actions { display: inline-flex; gap: 8px; justify-content: flex-end; }
.export-status { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 12px; font-style: normal; }
.export-status.exported { color: #166534; background: #dcfce7; }
.export-status.not-exported { color: #9a3412; background: #ffedd5; }
.icon-only { width: 34px; padding: 0; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; color: #63717a; font-size: 13px; }
.pager button:disabled { cursor: not-allowed; opacity: 0.45; }
.page-size { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.page-size select { width: auto; min-height: 30px; padding: 4px 28px 4px 8px; }
.page-jump { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.page-input { width: 56px; min-height: 30px; padding: 4px 8px; text-align: center; }
.page-input::-webkit-outer-spin-button,
.page-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.page-input[type=number] { -moz-appearance: textfield; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgb(16 28 34 / 55%); }
.detail-modal { width: min(920px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; padding: 20px; border-radius: 8px; background: white; box-shadow: 0 18px 50px rgb(0 0 0 / 20%); }
.detail-modal.compact { width: min(720px, 100%); }
.card-editor-modal { width: min(860px, 100%); }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #dce4e6; border-radius: 8px; background: #dce4e6; }
.detail-item { min-width: 0; display: grid; gap: 6px; padding: 12px; background: white; }
.detail-item span { color: #63717a; font-size: 12px; }
.detail-item strong { overflow-wrap: anywhere; font-weight: 600; }
.card-detail-modal { width: min(980px, 100%); }
.detail-section { margin-top: 16px; }
.detail-section:first-of-type { margin-top: 0; }
.detail-section h3 { margin: 0 0 9px; color: #31404a; font-size: 14px; }
.wrap-value { white-space: pre-wrap; }
.diagnosis-list { display: grid; gap: 10px; }
.diagnosis-row { padding: 12px; border: 1px solid #dce4e6; border-radius: 7px; background: #fbfcfc; }
.diagnosis-row-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.diagnosis-row-head span { padding: 3px 7px; border-radius: 4px; color: #116a6d; background: #e5f0ef; font-size: 12px; }
.diagnosis-meta { margin-top: 7px; color: #63717a; font-size: 12px; }
.pcc-list { display: grid; gap: 6px; margin-top: 10px; }
.pcc-item { display: grid; grid-template-columns: 1fr 1.5fr 0.8fr 1fr; gap: 8px; padding: 7px 9px; border-left: 3px solid #9fc7c6; color: #40515a; background: #f1f5f5; font-size: 12px; }
.empty-inline { color: #71818a; font-size: 12px; }
.editor-section { padding: 14px 0; border-top: 1px solid #e1e8e9; }
.editor-section:first-of-type { border-top: 0; }
.editor-section h3 { margin: 0 0 10px; font-size: 14px; color: #31404a; }
.editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.editor-grid label { display: grid; gap: 6px; min-width: 0; }
.editor-grid label span { color: #63717a; font-size: 12px; }
.editor-grid .wide { grid-column: span 2; }
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; }
.editor-actions button:disabled { cursor: wait; opacity: 0.55; }
.order-row, .table .th:has(+ .order-row) { grid-template-columns: 1.5fr 1fr 0.6fr 1fr 0.7fr 1.2fr 42px; }
.select-box {
width: 18px;
min-height: 18px;
padding: 0;
}
.split {
display: grid;
grid-template-columns: 0.8fr 1.2fr;
gap: 14px;
}
.split.single {
grid-template-columns: 1fr;
}
.toggle {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
color: #31404a;
}
.toggle input {
width: 20px;
min-height: 20px;
}
.field {
display: grid;
gap: 6px;
color: #52646d;
margin-bottom: 12px;
}
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; align-items: center; }
.copy-field input { min-width: 0; }
.endpoint-select { max-height: 220px; overflow-y: auto; }
.endpoint-body { width: 100%; min-height: 150px; resize: vertical; border: 1px solid #ccd7da; border-radius: 7px; padding: 10px; color: #1d252b; background: #fbfcfc; }
.endpoint-body.compact { min-height: 112px; }
.endpoint-detail { margin-top: 12px; }
.endpoint-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.endpoint-category { min-height: 38px; padding: 8px 12px; color: #40515a; background: #f4f7f7; border: 1px solid #ccd7da; }
.endpoint-category span { min-width: 22px; height: 20px; display: inline-grid; place-items: center; margin-left: 7px; border-radius: 10px; color: #63717a; background: #e4e9ea; font-size: 12px; }
.endpoint-category.active { color: #fff; background: #116a6d; border-color: #116a6d; }
.endpoint-category.active span { color: #116a6d; background: #fff; }
.empty {
min-height: 64px;
display: grid;
place-items: center;
color: #71818a;
border: 1px dashed #cbd7da;
border-radius: 8px;
}
.toast {
position: fixed;
right: 24px;
bottom: 24px;
background: #14242d;
color: white;
border-radius: 8px;
padding: 12px 16px;
}
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.page-header > div { display: flex; align-items: center; gap: 12px; }
.page-header > span { color: #63717a; font-size: 13px; }
.log-search-row { display: grid; grid-template-columns: minmax(260px, 1fr) 140px 140px auto 42px; gap: 10px; margin-bottom: 14px; align-items: center; }
.log-table { overflow-x: auto; }
.log-table .tr { min-width: 1240px; grid-template-columns: 1.15fr 0.65fr 1.25fr 1.7fr 1.2fr 0.65fr 0.6fr 1fr 42px; }
.api-path { overflow-wrap: anywhere; }
.result-tag { font-style: normal; font-size: 12px; color: #116a6d; background: #e5f0ef; padding: 4px 8px; border-radius: 6px; }
.result-tag.failed { color: #a23b32; background: #fae9e7; }
@media (max-width: 900px) {
.metrics, .split, .app-grid, .card-grid, .search-row, .log-search-row, .detail-grid, .editor-grid { grid-template-columns: 1fr; }
.editor-grid .wide { grid-column: auto; }
.topbar { align-items: flex-start; flex-direction: column; }
.top-actions { justify-content: flex-start; }
.tr, .cards .tr { grid-template-columns: 1fr; align-items: start; }
.th { display: none; }
.endpoint-categories { display: grid; grid-template-columns: 1fr 1fr; }
.pcc-item { grid-template-columns: 1fr 1fr; }
}