Toggle menu
84
103
34
3.2K
Landrace.Wiki - The Landrace Cannabis Wiki
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 10: Line 10:


.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-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 */
/* media: enforce consistent height */
 
.fa-media{
.fa-media{background:#f3f4f6}
  background:#f3f4f6;
 
  position:relative;
.home-card__image-link img,
  overflow:hidden;
.home-card__image-link .mw-file-element {
}
    display: block;
.fa-media::before{
    width: 100% !important;
  content:"";
    height: 100% !important;
  display:block;
    max-width: none !important;
  padding-top:56.25%; /* 16:9 */
    object-fit: contain;
}
    object-position: center center;
.fa-media .fa-img,
.fa-media .fa-img a,
.fa-media .fa-img .image,
.fa-media .fa-img .mw-file-description{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
}
.fa-media img,
.fa-media .mw-file-element{
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:contain;   /* this is the “fit in frame” behavior */
  object-position:center center;
}
}
.fa-img--placeholder{display:flex;align-items:center;justify-content:center;height:180px;color:#6b7280;font-size:.9rem}


/* body + rhythm */
/* body + rhythm */

Revision as of 10:04, 20 January 2026

/* 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;
  position:relative;
  overflow:hidden;
}
.fa-media::before{
  content:"";
  display:block;
  padding-top:56.25%; /* 16:9 */
}
.fa-media .fa-img,
.fa-media .fa-img a,
.fa-media .fa-img .image,
.fa-media .fa-img .mw-file-description{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
}
.fa-media img,
.fa-media .mw-file-element{
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:contain;   /* this is the “fit in frame” behavior */
  object-position:center center;
}

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