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
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Template:Home/FeaturedAccessionCard/styles.css  ← CSS ONLY */
/* grid */
.fa-grid {
.fa-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;align-items:stretch}
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}


.fa-card {
/* card */
  border: 1px solid #e6e6e6;
.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-radius: 10px;
  overflow: hidden;
  background: #fff;
}


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


/* Style the actual <img> regardless of class/where MW puts it */
/* body + rhythm */
.fa-media img {        
.fa-body{padding:12px 14px 14px;line-height:1.35}
  position: absolute;
.fa-body > *{margin:0 0 .45rem}
  inset: 0;
.fa-body > *:last-child{margin-bottom:0}
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


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


/* 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}


/* ---- Featured Accession Card: text & layout ---- */
/* 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}


.fa-body {
/* hook & cta */
  padding: 12px 14px 14px;
.fa-hook{font-size:.95rem;color:#374151;margin-top:.35rem}
  display: flex;
.fa-cta{margin-top:.4rem}
  flex-direction: column;
.fa-missing{color:#9ca3af;font-style:italic}
  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);
}

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}