94分控件

This commit is contained in:
2026-08-08 16:55:22 +08:00
parent b21043e3b8
commit d289f8d6e2
14 changed files with 1115 additions and 302 deletions
+144 -93
View File
@@ -233,6 +233,9 @@
border: 1px solid #fecaca;
border-radius: 10px;
}
.frontend-layout {
min-width: 0;
}
.frontend-horizontal {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
@@ -240,134 +243,96 @@
}
.frontend-vertical {
display: grid;
gap: 10px;
gap: 12px;
}
.slot-demo {
height: 100%;
margin: 0;
padding: 13px;
border: 1px solid #dbeafe;
border-radius: 12px;
background: #fff;
}
.native-list {
.frontend-list {
display: grid;
border: 1px solid #e2e8f0;
border-radius: 12px;
overflow: hidden;
}
.native-list article {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 12px;
padding: 13px 14px;
.frontend-list .frontend-slot {
border-bottom: 1px solid #e2e8f0;
border-radius: 0;
}
.native-list article:last-child {
.frontend-list .frontend-slot:last-child {
border-bottom: 0;
}
.native-list small,
.native-card-head small {
display: block;
margin-top: 3px;
color: #64748b;
}
.color-dot {
width: 12px;
height: 12px;
border-radius: 999px;
}
.state-pill {
padding: 4px 8px;
border-radius: 999px;
color: #64748b;
background: #f1f5f9;
font-size: 12px;
}
.state-pill.enabled {
color: #047857;
background: #ecfdf5;
}
.native-cards {
.frontend-cards {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
}
.native-cards article {
position: relative;
overflow: hidden;
padding: 16px;
border: 1px solid #e2e8f0;
border-radius: 13px;
.frontend-slot {
min-width: 0;
padding: 13px;
border: 1px solid #dbe4f0;
border-radius: 12px;
background: #fff;
}
.card-accent {
position: absolute;
inset: 0 0 auto;
height: 4px;
.frontend-vertical .frontend-slot {
width: 100%;
}
.native-card-head {
.slot-meta {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
margin-top: 4px;
align-items: center;
flex-wrap: wrap;
gap: 7px;
margin-bottom: 10px;
}
.native-card-head > span {
font-size: 28px;
font-weight: 800;
.slot-meta strong {
color: #0f172a;
}
.meter {
height: 6px;
margin-top: 18px;
border-radius: 999px;
background: #e2e8f0;
overflow: hidden;
.slot-meta span {
padding: 3px 6px;
border-radius: 6px;
color: #1d4ed8;
background: #eff6ff;
font-size: 11px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.meter i {
display: block;
height: 100%;
}
.native-cards p {
margin: 10px 0 0;
.slot-meta code {
max-width: 100%;
color: #64748b;
font-size: 13px;
font-size: 11px;
overflow-wrap: anywhere;
}
.native-table-wrap {
.slot-demo {
min-width: 0;
margin: 0;
}
.slot-table-wrap {
overflow-x: auto;
border: 1px solid #e2e8f0;
border-radius: 12px;
}
.native-table {
.slot-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.native-table th,
.native-table td {
padding: 11px 12px;
.slot-table th,
.slot-table td {
padding: 12px;
border-bottom: 1px solid #e2e8f0;
text-align: left;
white-space: nowrap;
vertical-align: top;
}
.native-table th {
.slot-table th {
color: #475569;
background: #f8fafc;
}
.native-table tbody tr:last-child td {
.slot-table th:first-child,
.slot-table td:first-child {
width: 64px;
}
.slot-table th:nth-child(2),
.slot-table td:nth-child(2) {
width: 320px;
}
.slot-table tbody tr:last-child td {
border-bottom: 0;
}
.color-chip {
display: inline-flex;
align-items: center;
gap: 6px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.color-chip i {
width: 11px;
height: 11px;
border-radius: 3px;
}
.mode-switch {
display: inline-flex;
gap: 5px;
@@ -455,12 +420,96 @@
.protocol-panel pre {
border-radius: 9px;
}
.advanced-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.doc-case-tabs {
display: flex;
flex-wrap: wrap;
gap: 7px;
margin-bottom: 14px;
}
.doc-case-tabs button {
padding: 8px 10px;
border: 1px solid #dbe4f0;
border-radius: 8px;
color: #475569;
background: #fff;
cursor: pointer;
}
.doc-case-tabs button.active {
border-color: #93c5fd;
color: #1d4ed8;
background: #eff6ff;
}
.doc-case {
margin-bottom: 18px;
padding: 16px;
border: 1px solid #dbe4f0;
border-radius: 13px;
background: #fbfdff;
}
.doc-case-head span {
color: #2563eb;
font-size: 11px;
font-weight: 800;
letter-spacing: 0.12em;
}
.doc-case-head h3 {
margin: 5px 0 6px;
}
.doc-case-head p {
margin: 0 0 14px;
color: #64748b;
line-height: 1.6;
}
.doc-preview {
margin-bottom: 14px;
padding: 14px;
border: 1px solid #dbe4f0;
border-radius: 12px;
background: #fff;
}
.doc-preview h4 {
margin: 0 0 10px;
}
.doc-code-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
}
.code-panel {
min-width: 0;
border: 1px solid #dbe4f0;
border-radius: 12px;
background: #0f172a;
overflow: hidden;
}
.code-panel h4 {
margin: 0;
padding: 12px 14px;
color: #dbeafe;
background: #172033;
}
.code-panel pre {
min-height: 160px;
max-height: 560px;
margin: 0;
padding: 15px;
overflow: auto;
color: #dbeafe;
font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
@media (max-width: 1120px) {
.layer-flow {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.frontend-horizontal,
.native-cards {
.frontend-cards {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@@ -487,9 +536,11 @@
.layer-flow,
.capability-grid,
.frontend-horizontal,
.native-cards,
.frontend-cards,
.json-grid,
.doc-layout {
.advanced-grid,
.doc-layout,
.doc-code-grid {
grid-template-columns: 1fr;
}
.protocol-tags {
+80 -31
View File
File diff suppressed because one or more lines are too long