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
 
(15 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{
.fr-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{
  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;
}
}
.fa-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); }


/* ---- Make images fill & crop to the media box ---- */
/* 16:9 ratio */
.fa-media {
.fa-media::before{
   position: relative;
   content:"";
   height: 200px;         /* fixed banner height; change if you want */
   display:block;
   overflow: hidden;
   width:100%;
   background: #f3f4f6;
   padding-top:56.25%;
  line-height: 0;         /* kill inline-image baseline gap */
}
}


/* Make the wiki <a class="image"> and wrappers fill the box */
.fa-img{
.fa-img,
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
}
 
/* MediaWiki file wrapper quirks */
.fa-img a,
.fa-img a,
.fa-media .image,
.fa-img .image,
.fa-media .mw-file-description {
.fa-img .mw-file-element,
   display: block;
.fa-img img{
   width: 100%;
   display:block;
   height: 100%;
   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;
}
}


/* Force the <img> to cover the box, no letterboxing */
.fa-title a{
.fa-media img,
   color:#1f4d36; /* brand-ish green */
.fa-media .mw-file-element {
   text-decoration:none;
   display: block;
   width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
}
}


/* Placeholder */
.fa-title a:hover{
.fa-img--placeholder {
   text-decoration:underline;
   display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: .9rem;
}
}


/* Body */
/* Kicker */
.fa-body {
.fa-kicker{
   padding: 14px 16px 16px 16px;
   margin:0;
   display: flex;
   font-size:.85rem;
  flex-direction: column;
   color:#6b7280;
   gap: 8px; /* consistent vertical rhythm */
}
}


/* Kicker (status + path) */
.k-item{
.fa-kicker {
   display:inline-block;
   margin: 0;
   line-height:1.35;
  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; }
.fa-status { font-weight: 700; color: #374151; }


/* Title */
.fa-hook{
.fa-title {
   margin:0;
   margin: 0;
  color:#374151;
   font-size: 1.125rem; /* 18px */
   font-size:.93rem;
   line-height: 1.25;
  line-height:1.5;
   color: #1f2937;
 
  /* 3-line clamp without webkit */
   display:block;
  max-height:4.5em;  /* 1.5 * 3 lines */
   overflow:hidden;
}
}
.fa-title a { color: inherit; text-decoration: none; }
.fa-title a:hover { text-decoration: underline; }


/* Subline (location) */
/* Footer pinned to bottom */
.fa-sub {
.fa-foot{
   margin: 0;
   margin-top:auto;
   color: #4b5563;
   display:flex;
   font-size: .92rem;
   flex-direction:column;
  gap:10px;
  padding-top:4px;
}
}


/* Provenance/meta (dot-separated via CSS) */
.fa-foot-sep{
.fa-provenance {
   height:1px;
   margin: 0;
   background:#eef2f7;
   color: #64748b;
  font-size: .88rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
}
.fa-provenance .pv-item {
 
   display: inline-flex;
/* Status line */
   align-items: center;
.fa-statusline{
   white-space: nowrap;
  margin:0;
   display:flex;
   flex-wrap:wrap;
  gap:8px;
   align-items:center;
}
}
.fa-provenance .pv-item + .pv-item::before {
 
   content: "·";
/* Pills */
   margin: 0 8px;
.status-pill,
   color: #cbd5e1;
.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;
}
}


/* Hook (one-line pitch) */
.pill-dot{
.fa-hook {
  width:8px;
  margin: 0;
  height:8px;
  color: #334155;
  border-radius:999px;
   font-size: .95rem;
  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 */
/* CTA */
.fa-cta {
.fa-cta{
   margin: 2px 0 0 0;
   margin:0;
   font-weight: 600;
   font-size:.9rem;
}
.fa-cta a {
  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; }


/* Badges (kept for future use if needed) */
.fa-cta a{
.fa-badge {
   color:#1f4d36;
   display: inline-block;
   text-decoration:none;
   font-size: .75rem;
   font-weight:600;
   line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #e5e7eb;
}
}
.fa-badge--tier { background: #ecfeff; color: #155e75; }
.fa-badge--pres { background: #f0fdf4; color: #166534; }


/* Small screens */
.fa-cta a:hover{
@media (max-width: 480px) {
   text-decoration:underline;
  .fa-media { height: 160px; }
  .fa-body { padding: 12px 14px 14px 14px; gap: 6px; }
  .fa-title { font-size: 1.05rem; }
   .fa-provenance { font-size: .86rem; }
}
}

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;
}