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
No edit summary
No edit summary
Line 1: Line 1:
/* Template:Home/FeaturedAccessionCard/styles.css  ← CSS ONLY */
.fa-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;align-items:stretch}
.fa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}


.fa-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}
  border: 1px solid #e6e6e6;
.fa-media{background:#f3f4f6}
  border-radius: 10px;
.fa-img img{display:block;width:100%;height:auto}
  overflow: hidden;
.fa-img--placeholder{display:flex;align-items:center;justify-content:center;min-height:160px;color:#6b7280;font-size:.9rem}
  background: #fff;
}


.fa-media {
.fa-body{padding:12px 16px 16px}
  position: relative;
.fa-kicker{margin:0 0 .25rem;font-size:.85rem;color:#374151;display:flex;align-items:center;gap:.5rem}
  width: 100%;
.fa-status{font-weight:600}
  height: 200px;        /* adjust as you like */
.fa-sep{color:#9ca3af;margin:0 .25rem}
  overflow: hidden;
.fa-title{margin:.15rem 0 .35rem;font-size:1.15rem;line-height:1.25;color:#1f2937}
  background: #f5f5f5;
.fa-sub{margin:0 0 .5rem;font-size:.85rem;color:#6b7280}
}
.fa-provenance{margin:.25rem 0 .5rem;font-size:.85rem;color:#374151}
 
.fa-id{font-weight:600}
/* Style the actual <img> regardless of class/where MW puts it */
.fa-badge{display:inline-block;padding:.1rem .4rem;border:1px solid #e5e7eb;border-radius:.5rem;font-size:.75rem}
.fa-media img {       
.fa-badge--tier{background:#f9fafb}
  position: absolute;
.fa-badge--pres{background:#eef6ff}
  inset: 0;
.fa-hook{margin:0 0 .75rem;font-size:.95rem;color:#374151}
  width: 100%;
.fa-cta{margin:0}
  height: 100%;
.fa-missing{color:#9ca3af;font-style:italic}
  object-fit: cover;
  display: block;
}
 
/* Placeholder */
.fa-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6c757d;
  font-size: .95rem;
}
 
 
/* ---- Featured Accession Card: text & layout ---- */
 
.fa-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;            /* tidy vertical rhythm */
}
 
/* Kicker line: status • population */
.fa-kicker {
  margin: 2px 0 0;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #6b7280;       /* subtle gray */
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fa-status { font-weight: 600; text-transform: capitalize; }
.fa-dot { margin: 0 .35rem; color: #9ca3af; }
.fa-loc { overflow: hidden; text-overflow: ellipsis; }
 
/* Title */
.fa-title {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.25;
  color: #1f2937;
}
.fa-title a { text-decoration: none; color: inherit; }
 
/* Subline: region • province, country */
.fa-sub {
  margin: 0;
  font-size: 0.86rem;
  color: #6b7280;
}
/* Hook/teaser */
.fa-hook {
  margin: 2px 0 6px 0;
  font-size: 0.93rem;
  line-height: 1.45;
  color: #374151;
 
  /* Sanitizer-safe multi-line clamp (~3 lines) */
  overflow: hidden;
  max-height: 4.4em;  /* 1.45 line-height × 3 lines ≈ 4.35em */
}
/* CTA */
.fa-cta { margin-top: auto; }
.fa-cta a {
  font-weight: 600;
  text-decoration: none;
  color: #2563eb;                   /* link blue */
}
.fa-cta a:hover { text-decoration: underline; }
.fa-missing { color: #9ca3af; }
 
/* Card hover polish (optional) */
.fa-card {
  transition: box-shadow .15s ease, border-color .15s ease;
}
.fa-card:hover {
  border-color: #d9d9d9;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
/* Kicker line now: status • Landrace, Population (single line w/ ellipsis) */
.fa-kicker {
  margin: 2px 0 0;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fa-status { font-weight: 600; text-transform: capitalize; }
.fa-sep { color: #9ca3af; }
.fa-landrace { font-weight: 600; color: #374151; overflow: hidden; text-overflow: ellipsis; }
.fa-pop { overflow: hidden; text-overflow: ellipsis; }

Revision as of 05:07, 24 August 2025

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

.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}
.fa-media{background:#f3f4f6}
.fa-img img{display:block;width:100%;height:auto}
.fa-img--placeholder{display:flex;align-items:center;justify-content:center;min-height:160px;color:#6b7280;font-size:.9rem}

.fa-body{padding:12px 16px 16px}
.fa-kicker{margin:0 0 .25rem;font-size:.85rem;color:#374151;display:flex;align-items:center;gap:.5rem}
.fa-status{font-weight:600}
.fa-sep{color:#9ca3af;margin:0 .25rem}
.fa-title{margin:.15rem 0 .35rem;font-size:1.15rem;line-height:1.25;color:#1f2937}
.fa-sub{margin:0 0 .5rem;font-size:.85rem;color:#6b7280}
.fa-provenance{margin:.25rem 0 .5rem;font-size:.85rem;color:#374151}
.fa-id{font-weight:600}
.fa-badge{display:inline-block;padding:.1rem .4rem;border:1px solid #e5e7eb;border-radius:.5rem;font-size:.75rem}
.fa-badge--tier{background:#f9fafb}
.fa-badge--pres{background:#eef6ff}
.fa-hook{margin:0 0 .75rem;font-size:.95rem;color:#374151}
.fa-cta{margin:0}
.fa-missing{color:#9ca3af;font-style:italic}