Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Home/FeaturedAccessionCard/styles.css: Difference between revisions

Template page
Created page with "Card shell: .fa-card{ display:flex; flex-direction:column; border:1px solid #e5e7eb; border-radius:14px; overflow:hidden; background:#fff; } Media: use padding-top ratio instead of aspect-ratio: .fa-media{ position:relative; width:100%; padding-top:56.25%; 16:9: background:#f5f5f5; } .fa-img{ position:absolute; top:0; left:0; right:0; bottom:0; width:100%; height:100%; object-fit:cover; display:block; } .fa-img--placeholder{..."
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Card shell */
/* grid */
.fa-card{
.fa-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;align-items:stretch}
  display:flex;
  flex-direction:column;
  border:1px solid #e5e7eb;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}


/* Media: use padding-top ratio instead of aspect-ratio */
/* card */
.fa-media{
.fa-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.03);display:flex;flex-direction:column}
  position:relative;
  width:100%;
  padding-top:56.25%; /* 16:9 */
  background:#f5f5f5;
}
.fa-img{
  position:absolute; top:0; left:0; right:0; bottom:0;
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.fa-img--placeholder{
  position:absolute; top:0; left:0; right:0; bottom:0;
  display:flex; align-items:center; justify-content:center;
  font:600 14px/1.2 system-ui;
  color:#9ca3af;
}


/* Body */
/* media: enforce consistent height */
.fa-body{ padding:12px 14px 14px; }
.fa-media{background:#f3f4f6}
.fa-kicker{
.fa-img img{display:block;width:100%;height:180px;object-fit:cover}
  font:600 12px/1.2 system-ui;
.fa-img--placeholder{display:flex;align-items:center;justify-content:center;height:180px;color:#6b7280;font-size:.9rem}
  color:#374151;
 
  margin-bottom:6px;
/* body + rhythm */
  display:flex; align-items:center;
.fa-body{padding:12px 14px 14px;line-height:1.35}
  gap:6px; /* if gap errors, delete this and rely on dot spacing */
.fa-body > *{margin:0 0 .45rem}
}
.fa-body > *:last-child{margin-bottom:0}
.fa-status{ font-weight:700; }
 
.fa-dot{ opacity:.5; }
/* kicker: clean separators, no stray bullets */
.fa-title{
.fa-kicker{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .6rem;font-size:.86rem;color:#374151}
  font:700 18px/1.25 ui-sans-serif,system-ui;
.k-item{display:inline-flex;align-items:center;white-space:nowrap}
  margin:0 0 4px;
.k-item + .k-item::before{content:"·";margin:0 .5rem;color:#9ca3af}
}
 
.fa-sub{
/* title / sub */
  font:500 12px/1.2 system-ui;
.fa-title{margin:.1rem 0 .3rem;font-size:1.12rem;line-height:1.25;color:#1f2937}
  color:#6b7280;
.fa-sub{font-size:.88rem;color:#6b7280}
  margin-bottom:8px;
 
}
/* provenance: dot separators via CSS; wraps nicely */
.fa-provenance{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem .5rem;font-size:.86rem;color:#374151}
.pv-item{display:inline-flex;align-items:center}
.pv-item + .pv-item::before{content:"·";margin:0 .5rem;color:#9ca3af}
.fa-id{font-weight:600}
.fa-badge{display:inline-block;padding:.12rem .4rem;border:1px solid #e5e7eb;border-radius:.5rem;font-size:.76rem;line-height:1}
.fa-badge--tier{background:#f9fafb}
.fa-badge--pres{background:#eef6ff}
 
/* hook & cta */
.fa-hook{font-size:.95rem;color:#374151;margin-top:.35rem}
.fa-cta{margin-top:.4rem}
.fa-missing{color:#9ca3af;font-style:italic}

Latest revision as of 05:33, 24 August 2025

/* grid */
.fa-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;align-items:stretch}

/* card */
.fa-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.03);display:flex;flex-direction:column}

/* media: enforce consistent height */
.fa-media{background:#f3f4f6}
.fa-img img{display:block;width:100%;height:180px;object-fit:cover}
.fa-img--placeholder{display:flex;align-items:center;justify-content:center;height:180px;color:#6b7280;font-size:.9rem}

/* body + rhythm */
.fa-body{padding:12px 14px 14px;line-height:1.35}
.fa-body > *{margin:0 0 .45rem}
.fa-body > *:last-child{margin-bottom:0}

/* kicker: clean separators, no stray bullets */
.fa-kicker{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .6rem;font-size:.86rem;color:#374151}
.k-item{display:inline-flex;align-items:center;white-space:nowrap}
.k-item + .k-item::before{content:"·";margin:0 .5rem;color:#9ca3af}

/* title / sub */
.fa-title{margin:.1rem 0 .3rem;font-size:1.12rem;line-height:1.25;color:#1f2937}
.fa-sub{font-size:.88rem;color:#6b7280}

/* provenance: dot separators via CSS; wraps nicely */
.fa-provenance{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem .5rem;font-size:.86rem;color:#374151}
.pv-item{display:inline-flex;align-items:center}
.pv-item + .pv-item::before{content:"·";margin:0 .5rem;color:#9ca3af}
.fa-id{font-weight:600}
.fa-badge{display:inline-block;padding:.12rem .4rem;border:1px solid #e5e7eb;border-radius:.5rem;font-size:.76rem;line-height:1}
.fa-badge--tier{background:#f9fafb}
.fa-badge--pres{background:#eef6ff}

/* hook & cta */
.fa-hook{font-size:.95rem;color:#374151;margin-top:.35rem}
.fa-cta{margin-top:.4rem}
.fa-missing{color:#9ca3af;font-style:italic}