phantom-wiki-viewer / e2e-structures.css
timchen0618's picture
Add E2E v3 + rawtext views
12ea280 verified
Raw
History Blame Contribute Delete
2.9 kB
#e2eStructuresView { width: 100%; }
.view-toggle button.e2e-structures-tab.active {
background: rgba(251, 113, 133, .14);
color: #fda4af;
border-color: #fb7185;
}
.view-toggle button.e2e-rawtext-structures-tab.active {
background: rgba(56, 189, 248, .14);
color: #7dd3fc;
border-color: #38bdf8;
}
#e2eStructuresControls { display: flex; flex-direction: column; gap: 14px; }
#e2eStructuresSelect { max-width: 100%; text-overflow: ellipsis; }
#e2eStructuresCounter { min-width: 64px; text-align: center; color: var(--muted); font-size: 12px; }
.e2estruct-summary, .e2estruct-question, .e2estruct-doc {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
}
.e2estruct-summary {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
padding: 13px 16px;
margin-bottom: 14px;
border-top: 3px solid #fb7185;
}
.e2estruct-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.e2estruct-pills span {
border: 1px solid rgba(251, 113, 133, .45);
color: #fda4af;
background: rgba(251, 113, 133, .09);
border-radius: 999px;
padding: 3px 8px;
font-size: 11px;
}
.e2estruct-question { padding: 20px 22px; margin-bottom: 14px; }
.e2estruct-question h2 { margin: 12px 0; font-size: 20px; line-height: 1.45; }
.e2estruct-gold { border-left: 3px solid #fb7185; padding-left: 12px; }
.e2estruct-gold pre { margin-bottom: 0; }
.e2estruct-doc { margin-bottom: 12px; overflow: hidden; }
.e2estruct-doc > summary, .e2estruct-shape > summary, .e2estruct-source > summary {
cursor: pointer;
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
}
.e2estruct-doc > summary { padding: 14px 16px; color: #fda4af; }
.e2estruct-doc > summary b { color: var(--muted); font-size: 12px; white-space: nowrap; }
.e2estruct-source-ids { padding: 0 16px 12px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.e2estruct-source-ids code { color: var(--text); }
.e2estruct-source, .e2estruct-shape {
margin: 0 16px 12px;
border: 1px solid var(--border);
border-radius: 9px;
overflow: hidden;
}
.e2estruct-source > summary, .e2estruct-shape > summary { padding: 10px 12px; background: var(--panel-2); }
.e2estruct-shape > summary span { color: #fda4af; font-weight: 700; }
.e2estruct-shape > summary code { color: var(--muted); font-size: 11px; }
.e2estruct-description { padding: 10px 12px 0; color: var(--muted); font-size: 12px; }
.e2estruct-main pre {
margin: 0;
padding: 12px;
white-space: pre-wrap;
overflow-wrap: anywhere;
max-height: 560px;
overflow: auto;
color: var(--text);
background: rgba(0, 0, 0, .16);
font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.e2estruct-empty { padding: 24px; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
.e2estruct-summary { align-items: flex-start; flex-direction: column; }
}