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/FeaturedRegionCard/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
 
Line 1: Line 1:
/* ============================================ */
/* Featured Region Cards (Home) */
 
/* HOME GRID LAYOUT */
 
/* ============================================ */
 
 
 
 
 
.home-grid {
 
    display: grid;
 
    grid-template-columns: repeat(6, 1fr);
 
    gap: 0.625rem;
 
    margin-top: 2.4rem;
 
    width: 100%;


.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)); }
 
 
/* ============================================ */
 
/* BASE HOME CARD STYLES */
 
/* ============================================ */
 
 
 
 
 
.home-card {
 
    position: relative;
 
    padding: 20px;
 
    background: #ffffff;
 
    border-radius: 8px;
 
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
 
    font-size: 0.875rem;
 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
 
    border: 1px solid #dee2e6;
 
    min-height: 120px;
 
}
}
 
@media (max-width: 600px){
 
  .fa-grid{ grid-template-columns:1fr; }
 
 
 
.home-card--col2 {
 
    grid-column: span 2;
 
}
}


 
/* Card */
 
.fa-card{
 
  display:flex;
 
  flex-direction:column;
.home-card:hover {
  background:#fff;
 
  border:1px solid #e5e7eb;
    transform: translateY(-2px);
  border-radius:14px;
 
  overflow:hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 6px 12px rgba(0, 0, 0, 0.115);
  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);
 
/* Card sub-elements */
 
.home-card__label {
 
    color: #6c757d;
 
    font-size: 0.8125rem;
 
    letter-spacing: 0.75px;
 
    text-transform: uppercase;
 
    font-weight: 500;
 
    margin-bottom: 0.5rem;
 
}
}


 
/* Media */
 
.fa-media{
 
  position:relative;
 
  background:#f3f4f6;
.home-card__header {
  border-bottom:1px solid #eef2f7;
 
    margin: 0 0 1rem 0;
 
    font-size: 1.1rem;
 
    color: #2d5016;
 
    font-weight: 600;
 
}
}


 
/* 16:9 ratio */
 
.fa-media::before{
 
  content:"";
 
  display:block;
.home-card__header a {
  width:100%;
 
  padding-top:56.25%;
    color: inherit;
 
    text-decoration: none;
 
}
}


 
.fa-img{
 
  position:absolute;
 
  inset:0;
 
  display:block;
.home-card__header a:hover {
  width:100%;
 
  height:100%;
    color: #3d6b1f;
 
}
}


 
/* MediaWiki file wrapper quirks */
 
.fa-img a,
 
.fa-img .image,
 
.fa-img .mw-file-element,
.home-card__body {
.fa-img img{
 
  display:block;
    color: #495057;
  width:100% !important;
 
  height:100% !important;
    line-height: 1.6;
  max-width:none !important;
 
  object-fit:cover;
    margin-bottom: 1rem;
  object-position:center;
 
}
}


 
/* Placeholder that still looks designed */
 
.fa-img--placeholder{
 
  position:absolute;
 
  inset:0;
.home-card__links {
  display:flex;
 
  align-items:center;
    font-size: 0.8125rem;
  justify-content:center;
 
  font-size:.95rem;
    color: #6c757d;
  color:#6b7280;
 
  background:
    border-top: 1px solid #dee2e6;
     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%),
     padding-top: 0.75rem;
    #f3f4f6;
 
     margin-top: 0.75rem;
 
}
}


 
/* Body */
 
.fa-body{
 
  display:flex;
 
  flex-direction:column;
.home-card__links a {
  gap:10px;
 
  padding:14px 16px 16px;
    color: #2d5016;
  min-height:0;
 
    text-decoration: none;
 
    font-weight: 500;
 
}
}


 
/* Title */
 
.fa-title{
 
  margin:0;
 
  font-size:1.05rem;
.home-card__links a:hover {
  font-weight:700;
 
  line-height:1.25;
    text-decoration: underline;
 
}
}


 
.fa-title a{
 
  color:#1f4d36; /* brand-ish green */
 
  text-decoration:none;
 
/* ============================================ */
 
/* IMAGE HEADER CARDS - EXACT CLONE OF .fa-card */
 
/* ============================================ */
 
 
 
 
 
/* Card shell - exactly like .fa-card */
 
.home-card--image-header {
 
    display: flex;
 
    flex-direction: column;
 
    background: #ffffff;
 
    border: 1px solid #e5e7eb;
 
    border-radius: 12px;
 
    overflow: hidden;
 
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
 
    transition: box-shadow .2s ease;
 
    height: 100%;
 
    padding: 0;
 
}
}


 
.fa-title a:hover{
 
  text-decoration:underline;
 
 
.home-card--image-header:hover {
 
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
 
}
}


 
/* Kicker */
 
.fa-kicker{
 
  margin:0;
 
  font-size:.85rem;
/* Image wrapper - exactly like .fa-media */
  color:#6b7280;
 
.home-card__image-link {
 
    position: relative;
 
    overflow: hidden;
 
    background: #f3f4f6;
 
    line-height: 0;
 
    border-bottom: 1px solid #eef2f7;
 
    display: block;
 
    text-decoration: none;
 
}
}


 
.k-item{
 
  display:inline-block;
 
  line-height:1.35;
 
/* 16:9 ratio - exactly like .fa-media::before */
 
.home-card__image-link::before {
 
    content: "";
 
    display: block;
 
    width: 100%;
 
    padding-top: 56.25%;
 
}
}


.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 */
/* Image container - exactly like .fa-img */
  overflow:hidden;
 
.home-card__image-header-bg {
 
    position: absolute;
 
    inset: 0;
 
}
}


 
/* Footer pinned to bottom */
 
.fa-foot{
 
  margin-top:auto;
 
  display:flex;
.home-card__image-header-bg,
  flex-direction:column;
 
  gap:10px;
.home-card__image-header-bg a,
  padding-top:4px;
 
.home-card__image-link .image,
 
.home-card__image-link .mw-file-description {
 
    display: block;
 
    width: 100%;
 
    height: 100%;
 
}
}


 
.fa-foot-sep{
 
  height:1px;
 
  background:#eef2f7;
 
/* Actual <img> element - exactly like .fa-media img */
 
.home-card__image-link img,
 
.home-card__image-link .mw-file-element {
 
    display: block;
 
    width: 100% !important;
 
    height: 100% !important;
 
    max-width: none !important;
 
    object-fit: cover;
 
    object-position: center center;
 
}
}


 
/* Status line */
 
.fa-statusline{
 
  margin:0;
 
  display:flex;
/* Text overlay on image (not in region cards, but needed for home cards) */
  flex-wrap:wrap;
 
  gap:8px;
.home-card__image-overlay {
  align-items:center;
 
    position: absolute;
 
    top: 0;
 
    left: 0;
 
    right: 0;
 
    bottom: 0;
 
    display: flex;
 
    align-items: center;
 
    padding: 0 20px;
 
    color: #fff;
 
    font-weight: 700;
 
    font-size: 1.3rem;
 
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
 
    background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
 
    z-index: 1;
 
}
}


 
/* Pills */
 
.status-pill,
 
.pill{
 
  display:inline-flex;
/* Content section - exactly like .fa-body */
  align-items:center;
 
  gap:8px;
.home-card__content {
  border-radius:999px;
 
  padding:6px 10px;
    padding: 14px 16px 16px 16px;
  font-size:.82rem;
 
  border:1px solid #e5e7eb;
    display: flex;
  background:#f9fafb;
 
  color:#374151;
    flex-direction: column;
  line-height:1;
 
    gap: 8px;
 
}
}


 
.pill-dot{
 
  width:8px;
 
  height:8px;
 
  border-radius:999px;
/* Hard cap the media height - exactly like .fa-media */
  background:#9ca3af;
 
.home-card__image-link {
 
    max-height: 300px;
 
}
}


/* 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; }
/* MOBILE RESPONSIVENESS */
 
/* ============================================ */
 
 
 
 
 
@media (max-width: 1024px) {
 
    .home-grid {
 
        grid-template-columns: repeat(4, 1fr);
 
    }


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


 
/* CTA */
 
.fa-cta{
 
  margin:0;
 
  font-size:.9rem;
@media (max-width: 768px) {
 
    .home-grid {
 
        grid-template-columns: repeat(2, 1fr);
 
        gap: 0.5rem;
 
    }
 
   
 
    .home-card--col2 {
 
        grid-column: span 2;
 
    }
 
   
 
    .home-card__image-link {
 
        max-height: 200px;
 
    }
 
   
 
    .home-card__image-overlay {
 
        font-size: 1.1rem;
 
        padding: 0 15px;
 
    }
 
}
}


 
.fa-cta a{
 
  color:#1f4d36;
 
  text-decoration:none;
 
  font-weight:600;
@media (max-width: 600px) {
 
    .home-card__image-link {
 
        max-height: 180px;
 
    }
 
   
 
    .home-card__content {
 
        padding: 12px 14px 14px 14px;
 
        gap: 6px;
 
    }
 
}
}


 
.fa-cta a:hover{
 
  text-decoration:underline;
 
 
@media (max-width: 480px) {
 
    .home-grid {
 
        grid-template-columns: 1fr;
 
        gap: 0.5rem;
 
    }
 
   
 
    .home-card--col2 {
 
        grid-column: span 1;
 
    }
 
   
 
    .home-card {
 
        padding: 15px;
 
    }
 
   
 
    .home-card__image-link {
 
        max-height: 160px;
 
    }
 
   
 
    .home-card__image-overlay {
 
        font-size: 1rem;
 
        padding: 0 12px;
 
    }
 
}
}

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