A jq-shaped resource (e.g. the GiteaStarred showcase) previously fell through to the raw <pre> JSON dump - same fallback path meant for truly unstructured data. Added a card renderer for the common case (array of plain objects): name/title as a linked heading, description as body text, everything else as small key/value chips - same visual language as AnswerRow's answer-fields, just for non-Answer data. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
1db558974e
commit
bd702bfbae
@@ -374,6 +374,43 @@ input:focus, textarea:focus {
|
||||
.answer-action:hover { border-color: var(--accent); color: var(--accent); }
|
||||
.answer-action:disabled { opacity: 0.5; cursor: wait; }
|
||||
|
||||
.item-list { display: grid; gap: 0.8rem; }
|
||||
|
||||
.item-card {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 0.8rem;
|
||||
padding: 1rem 1.1rem;
|
||||
display: grid;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.item-card-title {
|
||||
font-family: var(--sans);
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.item-card-title a { color: var(--ink); text-decoration: none; }
|
||||
.item-card-title a:hover { color: var(--accent); text-decoration: underline; }
|
||||
|
||||
.item-card-description { font-size: 0.9rem; color: var(--ink-dim); }
|
||||
|
||||
.item-card-fields {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.4rem 0.9rem;
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
|
||||
.item-card-field { font-size: 0.82rem; color: var(--ink-dim); }
|
||||
|
||||
.item-card-field-key {
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
font-size: 0.68rem;
|
||||
margin-right: 0.3rem;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.hero { padding: 3rem 1.25rem 2rem; }
|
||||
.alt-card { padding: 1.4rem 1.3rem; }
|
||||
|
||||
Reference in New Issue
Block a user