Toggle menu
648
116
71
6.9K
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/FeaturedRegionCard/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ================================
/* Featured Region Cards (Home) */
  FeaturedRegionCard — TemplateStyles-safe CSS
  ================================ */


/* Grid wrapper (used on Main Page) */
.fa-grid{
.fa-grid {
   display:grid;
   display: grid;
   grid-template-columns:repeat(3, minmax(0,1fr));
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap:16px;
   gap: 16px;
   margin:12px 0 24px;
  align-items: stretch;
  max-width: 1200px;
   margin: 0 auto;
}
}


/* Card shell */
@media (max-width: 1024px){
.fa-card {
  .fa-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
   display: flex;
}
   flex-direction: column;
@media (max-width: 600px){
   background: #ffffff;
  .fa-grid{ grid-template-columns:1fr; }
   border: 1px solid #e5e7eb;
}
   border-radius: 12px;
 
   overflow: hidden;
/* Card */
   box-shadow: 0 1px 2px rgba(0,0,0,.04);
.fa-card{
   transition: box-shadow .2s ease;
   display:flex;
   height: 100%;
   flex-direction:column;
   background:#fff;
   border:1px solid #e5e7eb;
   border-radius:14px;
   overflow:hidden;
   box-shadow:0 1px 2px rgba(0,0,0,.04);
   transition:transform .15s ease, box-shadow .2s ease;
   height:100%;
}
}
.fa-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); }


/* --- 16:9 banner with cover --- */
.fa-card:hover{
.fa-media {
   transform:translateY(-2px);
   position: relative;
   box-shadow:0 10px 28px rgba(0,0,0,.12);
  overflow: hidden;
  background: #f3f4f6;
   line-height: 0;      /* remove inline-img baseline gap */
  border-bottom: 1px solid #eef2f7;
}
}
.fa-media::before {
 
   content: "";
/* Media */
  display: block;
.fa-media{
   width: 100%;
   position:relative;
   padding-top: 56.25%; /* 16:9 ratio */
   background:#f3f4f6;
   border-bottom:1px solid #eef2f7;
}
}


/* Fill the box */
/* 16:9 ratio */
.fa-img { position: absolute; inset: 0; }
.fa-media::before{
.fa-img,
  content:"";
.fa-img a,
  display:block;
.fa-media .image,
  width:100%;
.fa-media .mw-file-description {
  padding-top:56.25%;
   display: block;
}
   width: 100%;
 
   height: 100%;
.fa-img{
  position:absolute;
  inset:0;
   display:block;
   width:100%;
   height:100%;
}
}


/* Actual <img> element */
/* MediaWiki file wrapper quirks */
.fa-media img,
.fa-img a,
.fa-media .mw-file-element {
.fa-img .image,
   display: block;
.fa-img .mw-file-element,
   width: 100% !important;
.fa-img img{
   height: 100% !important;
   display:block;
   max-width: none !important;
   width:100% !important;
   object-fit: cover;
   height:100% !important;
   object-position: center center;
   max-width:none !important;
   object-fit:cover;
   object-position:center;
}
}


/* Placeholder */
/* Placeholder that still looks designed */
.fa-img--placeholder {
.fa-img--placeholder{
   display: flex;
  position:absolute;
   align-items: center;
  inset:0;
   justify-content: center;
   display:flex;
   color: #9ca3af;
   align-items:center;
   font-size: .9rem;
   justify-content:center;
  font-size:.95rem;
   color:#6b7280;
   background:
    radial-gradient(1200px 300px at 10% 0%, rgba(45,106,79,.18), transparent 60%),
    radial-gradient(900px 260px at 90% 10%, rgba(16,185,129,.14), transparent 55%),
    #f3f4f6;
}
}


/* Body */
/* Body */
.fa-body {
.fa-body{
  padding: 14px 16px 16px 16px;
   display:flex;
   display: flex;
   flex-direction:column;
   flex-direction: column;
   gap:10px;
   gap: 8px;
  padding:14px 16px 16px;
  min-height:0;
}
}


/* Title (now directly under image) */
/* Title */
.fa-title {
.fa-title{
   margin: 8px 0 2px 0;
   margin:0;
   line-height: 1.2;
   font-size:1.05rem;
   font-size: 1.125rem; /* 18px */
   font-weight:700;
   color: #1f2937;
   line-height:1.25;
}
}
.fa-title a { color: inherit; text-decoration: none; }
.fa-title a:hover { text-decoration: underline; }


/* Kicker (path) */
.fa-title a{
.fa-kicker {
   color:#1f4d36; /* brand-ish green */
  margin: 0 0 8px 0;
   text-decoration:none;
   color: #6b7280;
  font-size: .88rem;
  line-height: 1.3;
  display: flex;
   flex-wrap: wrap;
  gap: 6px 10px;
}
}
.k-item { display: inline-flex; align-items: center; gap: 4px; }


/* Province line (avoid redundant country) */
.fa-title a:hover{
.fa-sub { margin: 0 0 6px 0; color: #6b7280; }
  text-decoration:underline;
}


/* Meta (dot-separated) */
/* Kicker */
.fa-provenance {
.fa-kicker{
   margin: 0 0 8px 0;
   margin:0;
  color: #64748b;
   font-size:.85rem;
   font-size: .88rem;
   color:#6b7280;
   display: flex;
  flex-wrap: wrap;
  align-items: center;
}
}
.fa-provenance .pv-item {
 
   display: inline-flex;
.k-item{
  align-items: center;
   display:inline-block;
   white-space: nowrap;
   line-height:1.35;
}
.fa-provenance .pv-item + .pv-item::before {
  content: "•";
  padding: 0 6px;
  color: #9ca3af;
}
}


/* Hook (one-line pitch) */
.fa-hook{
.fa-hook { margin: 0; color: #334155; font-size: .95rem; }
  margin:0;
  color:#374151;
  font-size:.93rem;
  line-height:1.5;


/* Footer (pinned) */
  /* 3-line clamp without webkit */
.fa-foot {
  display:block;
   margin-top: auto;               /* push footer to bottom */
   max-height:4.5em;   /* 1.5 * 3 lines */
   border-top: 1px solid #e5e7eb;
   overflow:hidden;
  padding-top: 10px;
}
}
/* Statusline holds three pills in a row (wraps on mobile) */
 
.fa-statusline {
/* Footer pinned to bottom */
   display: flex;
.fa-foot{
   align-items: center;
   margin-top:auto;
   flex-wrap: wrap;
   display:flex;
   gap: 8px;
   flex-direction:column;
  margin: 0 0 6px 0;
   gap:10px;
   font-weight: 600;
   padding-top:4px;
}
}
.fa-foot-sep { height: 1px; background: #e5e7eb; margin: 8px 0; }


/* CTA */
.fa-foot-sep{
.fa-cta { margin: 0; font-weight: 600; }
   height:1px;
.fa-cta a {
   background:#eef2f7;
   color: #2d5016;
  text-decoration: none;
  border-bottom: 1px solid rgba(45,80,22,.3);
   padding-bottom: 1px;
}
}
.fa-cta a:hover { border-bottom-color: rgba(45,80,22,.6); }
.fa-cta .fa-missing { color: #6b7280; }


/* ---------- Pills (shared base) ---------- */
/* Status line */
.pill,
.fa-statusline{
.status-pill {
   margin:0;
   display: inline-flex;
   display:flex;
   align-items: center;
   flex-wrap:wrap;
   gap: 6px;
   gap:8px;
  padding: 6px 10px;
   align-items:center;
  border-radius: 999px;
   font-weight: 600;
   font-size: .9rem;
  line-height: 1;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #1f2937;
}
}
/* Tiny dot (used by status + area) */
 
.pill-dot {
/* Pills */
   width: 8px;
.status-pill,
   height: 8px;
.pill{
   border-radius: 999px;
  display:inline-flex;
   background: #9ca3af;
   align-items:center;
   gap:8px;
   border-radius:999px;
  padding:6px 10px;
  font-size:.82rem;
  border:1px solid #e5e7eb;
   background:#f9fafb;
  color:#374151;
  line-height:1;
}
}


/* ---------- Conservation status (colored) ---------- */
.pill-dot{
.status-pill {
   width:8px;
   background: #f3f4f6;
  height:8px;
   color: #374151;
  border-radius:999px;
   background:#9ca3af;
}
}
.sp--stable    { background: #e8f5e9; color: #1b5e20; border-color: #c8e6c9; }
.sp--vulnerable { background: #fff7ed; color: #7c2d12; border-color: #fed7aa; }
.sp--endangered { background: #fff1f2; color: #7f1d1d; border-color: #fecdd3; }
.sp--critical  { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; }
.sp--extinct    { background: #f3f4f6; color: #111827; border-color: #e5e7eb; }
.sp--unknown    { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }


.sp--stable .pill-dot     { background: #2e7d32; }
/* Status variants */
.sp--vulnerable .pill-dot { background: #b45309; }
.sp--endangered{ background:rgba(239,68,68,.08); border-color:rgba(239,68,68,.25); }
.sp--endangered .pill-dot { background: #b91c1c; }
.sp--endangered .pill-dot{ background:#ef4444; }
.sp--critical .pill-dot   { background: #991b1b; }
 
.sp--extinct .pill-dot    { background: #111827; }
.sp--vulnerable{ background:rgba(245,158,11,.10); border-color:rgba(245,158,11,.28); }
.sp--unknown .pill-dot   { background: #9ca3af; }
.sp--vulnerable .pill-dot{ background:#f59e0b; }
 
.sp--near\ threatened,
.sp--near-threatened{ background:rgba(234,179,8,.10); border-color:rgba(234,179,8,.28); }
.sp--near\ threatened .pill-dot,
.sp--near-threatened .pill-dot{ background:#eab308; }
 
.sp--least\ concern,
.sp--least-concern{ background:rgba(16,185,129,.10); border-color:rgba(16,185,129,.28); }
.sp--least\ concern .pill-dot,
.sp--least-concern .pill-dot{ background:#10b981; }


/* ---------- Growing area (neutral) ---------- */
.sp--unknown{ background:#f3f4f6; border-color:#e5e7eb; }
.pill--area {
.sp--unknown .pill-dot{ background:#9ca3af; }
  background: #f8fafc;           /* light neutral */
 
   border-color: #e5e7eb;
.pill--access .pill-num{
   color: #1f2937;
   font-weight:800;
   font-variant-numeric:tabular-nums;
}
}
/* keep the dot visible but neutral */
.pill--area .pill-dot { background: #6b7280; }


/* ---------- Accessions (neutral number + label) ---------- */
/* CTA */
.pill--access {
.fa-cta{
   background: #eff6ff;           /* light blue */
   margin:0;
   border-color: #dbeafe;        /* blue-100 */
   font-size:.9rem;
  color: #1f2937;
}
}
.pill--access .pill-dot { display: none; }
 
.pill--access .pill-num { font-weight: 700; }
.fa-cta a{
.pill--access .pill-label {
   color:#1f4d36;
   font-weight: 600;
   text-decoration:none;
   color: #6b7280;
   font-weight:600;
   font-size: .9rem;
}
}


/* Small screens */
.fa-cta a:hover{
@media (max-width: 480px) {
   text-decoration:underline;
  .fa-body { padding: 12px 14px 14px 14px; gap: 6px; }
  .fa-title { font-size: 1.05rem; }
   .fa-provenance { font-size: .86rem; }
}
}
/* Hard cap the media height so wide screens don't blow it up */
.fa-media { max-height: 420px; }
@media (max-width: 600px) { .fa-media { max-height: 240px; } }

Latest revision as of 22:57, 19 January 2026

/* Featured Region Cards (Home) */

.fa-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
  margin:12px 0 24px;
}

@media (max-width: 1024px){
  .fa-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px){
  .fa-grid{ grid-template-columns:1fr; }
}

/* Card */
.fa-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  transition:transform .15s ease, box-shadow .2s ease;
  height:100%;
}

.fa-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(0,0,0,.12);
}

/* Media */
.fa-media{
  position:relative;
  background:#f3f4f6;
  border-bottom:1px solid #eef2f7;
}

/* 16:9 ratio */
.fa-media::before{
  content:"";
  display:block;
  width:100%;
  padding-top:56.25%;
}

.fa-img{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
}

/* MediaWiki file wrapper quirks */
.fa-img a,
.fa-img .image,
.fa-img .mw-file-element,
.fa-img img{
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover;
  object-position:center;
}

/* Placeholder that still looks designed */
.fa-img--placeholder{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.95rem;
  color:#6b7280;
  background:
    radial-gradient(1200px 300px at 10% 0%, rgba(45,106,79,.18), transparent 60%),
    radial-gradient(900px 260px at 90% 10%, rgba(16,185,129,.14), transparent 55%),
    #f3f4f6;
}

/* Body */
.fa-body{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 16px 16px;
  min-height:0;
}

/* Title */
.fa-title{
  margin:0;
  font-size:1.05rem;
  font-weight:700;
  line-height:1.25;
}

.fa-title a{
  color:#1f4d36; /* brand-ish green */
  text-decoration:none;
}

.fa-title a:hover{
  text-decoration:underline;
}

/* Kicker */
.fa-kicker{
  margin:0;
  font-size:.85rem;
  color:#6b7280;
}

.k-item{
  display:inline-block;
  line-height:1.35;
}

.fa-hook{
  margin:0;
  color:#374151;
  font-size:.93rem;
  line-height:1.5;

  /* 3-line clamp without webkit */
  display:block;
  max-height:4.5em;   /* 1.5 * 3 lines */
  overflow:hidden;
}

/* Footer pinned to bottom */
.fa-foot{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-top:4px;
}

.fa-foot-sep{
  height:1px;
  background:#eef2f7;
}

/* Status line */
.fa-statusline{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

/* Pills */
.status-pill,
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  padding:6px 10px;
  font-size:.82rem;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  color:#374151;
  line-height:1;
}

.pill-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#9ca3af;
}

/* Status variants */
.sp--endangered{ background:rgba(239,68,68,.08); border-color:rgba(239,68,68,.25); }
.sp--endangered .pill-dot{ background:#ef4444; }

.sp--vulnerable{ background:rgba(245,158,11,.10); border-color:rgba(245,158,11,.28); }
.sp--vulnerable .pill-dot{ background:#f59e0b; }

.sp--near\ threatened,
.sp--near-threatened{ background:rgba(234,179,8,.10); border-color:rgba(234,179,8,.28); }
.sp--near\ threatened .pill-dot,
.sp--near-threatened .pill-dot{ background:#eab308; }

.sp--least\ concern,
.sp--least-concern{ background:rgba(16,185,129,.10); border-color:rgba(16,185,129,.28); }
.sp--least\ concern .pill-dot,
.sp--least-concern .pill-dot{ background:#10b981; }

.sp--unknown{ background:#f3f4f6; border-color:#e5e7eb; }
.sp--unknown .pill-dot{ background:#9ca3af; }

.pill--access .pill-num{
  font-weight:800;
  font-variant-numeric:tabular-nums;
}

/* CTA */
.fa-cta{
  margin:0;
  font-size:.9rem;
}

.fa-cta a{
  color:#1f4d36;
  text-decoration:none;
  font-weight:600;
}

.fa-cta a:hover{
  text-decoration:underline;
}