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
Line 1: Line 1:
/* Card shell */
.fa-card{display:flex;flex-direction:column;border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;background:#fff}
.fa-card{
.fa-media{position:relative;width:100%;padding-top:56.25%;background:#f5f5f5}
  display:flex;
.fa-img{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;object-fit:cover;display:block}
  flex-direction:column;
.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}
  border:1px solid #e5e7eb;
.fa-body{padding:12px 14px 14px}
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}


/* Media: use padding-top ratio instead of aspect-ratio */
/* prevent skin “notice” styling from wrapping these lines */
.fa-media{
.fa-kicker,.fa-sub,.fa-cta{background:none;border:0;padding:0;margin:0 0 8px}
  position:relative;
.fa-kicker{font:600 12px/1.2 system-ui;color:#374151;display:flex;align-items:center;gap:6px}
  width:100%;
.fa-status{font-weight:700}
  padding-top:56.25%; /* 16:9 */
.fa-dot{opacity:.5}
  background:#f5f5f5;
.fa-title{font:700 18px/1.25 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;margin:0 0 4px}
}
.fa-sub{font:500 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;color:#6b7280}
.fa-img{
.fa-hook{font:400 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;color:#111827;margin:0 0 10px;max-height:4.2em;overflow:hidden}
  position:absolute; top:0; left:0; right:0; bottom:0;
.fa-cta a{text-decoration:none;border-bottom:1px solid #d1d5db}
  width:100%; height:100%;
.fa-missing{color:#9ca3af}
  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;
}

Revision as of 12:45, 23 August 2025

.fa-card{display:flex;flex-direction:column;border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;background:#fff}
.fa-media{position:relative;width:100%;padding-top:56.25%;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}
.fa-body{padding:12px 14px 14px}

/* prevent skin “notice” styling from wrapping these lines */
.fa-kicker,.fa-sub,.fa-cta{background:none;border:0;padding:0;margin:0 0 8px}
.fa-kicker{font:600 12px/1.2 system-ui;color:#374151;display:flex;align-items:center;gap:6px}
.fa-status{font-weight:700}
.fa-dot{opacity:.5}
.fa-title{font:700 18px/1.25 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;margin:0 0 4px}
.fa-sub{font:500 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;color:#6b7280}
.fa-hook{font:400 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;color:#111827;margin:0 0 10px;max-height:4.2em;overflow:hidden}
.fa-cta a{text-decoration:none;border-bottom:1px solid #d1d5db}
.fa-missing{color:#9ca3af}