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

Template page
Revision as of 12:39, 23 August 2025 by Eloise Zomia (talk | contribs) (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{...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* 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{
  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 */
.fa-body{ padding:12px 14px 14px; }
.fa-kicker{
  font:600 12px/1.2 system-ui;
  color:#374151;
  margin-bottom:6px;
  display:flex; align-items:center;
  gap:6px; /* if gap errors, delete this and rely on dot spacing */
}
.fa-status{ font-weight:700; }
.fa-dot{ opacity:.5; }
.fa-title{
  font:700 18px/1.25 ui-sans-serif,system-ui;
  margin:0 0 4px;
}
.fa-sub{
  font:500 12px/1.2 system-ui;
  color:#6b7280;
  margin-bottom:8px;
}