Toggle menu
648
119
74
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/ConservationPanel.css: Difference between revisions

Template page
Undo revision 1439 by Eloise Zomia (talk)
Tag: Undo
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/* ===== Container ===== */
/* Conservation Panel */
 
.lw-cons-panel {
.lw-cons-panel{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:20px;box-shadow:0 1px 2px rgba(16, 24, 40, 0.04);}
  background: #f7faf6;
 
  border: 1px solid #d2ddce;
.lw-cons-title{font-weight:700;font-size:16px;letter-spacing:.02em;color:#1f2937;margin:4px 0 14px;}
  border-radius: 12px;
 
  padding: 24px 28px 28px;
 
  margin: 12px 0 24px;
/* ===== KPIs ===== */
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
 
.lw-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px;}
 
.lw-kpi{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:16px;text-align:center;}
 
.lw-kpi__num{font-weight:800;line-height:1;font-size:30px;color:#111827;margin-bottom:6px;}
 
.lw-kpi__label{font-size:13px;color:#6b7280;}
 
.lw-kpi__label a{color:inherit;text-decoration:none;}
 
 
/* responsive type fallback (no clamp) */
 
@media (max-width:420px){ .lw-kpi__num{font-size:22px;} }
 
@media (min-width:421px) and (max-width:1024px){ .lw-kpi__num{font-size:28px;} }
 
@media (min-width:1025px){ .lw-kpi__num{font-size:34px;} }
 
 
/* ===== Status bar (single row) ===== */
 
.lw-statusbar{display:flex;height:10px;border-radius:999px;overflow:hidden;background:#eef2f7;border:0;margin:8px 0 6px;}
 
.lw-seg{height:100%;}
 
.lw-s-stable{background:#2e7d32;}
 
.lw-s-vulnerable{background:#f59e0b;}
 
.lw-s-endangered{background:#ef6c00;}
 
.lw-s-critical{background:#dc2626;}
 
.lw-s-extinct{background:#111827;}
 
.lw-s-unknown{background:#9ca3af;}
 
/* LEGEND */
 
.lw-legend {
 
  display: flex; flex-wrap: wrap; gap: .5rem .75rem;
 
  margin: .75rem 0 1rem;
 
  padding: 0; list-style: none;
 
  font-size: .875rem; line-height: 1.25rem;
 
}
}
 
/* Headline */
.lw-legend__item {
.lw-cons-headline {
 
   margin: 0 0 20px;
   display: inline-flex; align-items: center; gap: .4rem;
   line-height: 1.5;
 
   padding: .25rem .6rem;
 
  border-radius: 999px;
 
  background: #f8fafc; /* subtle chip bg */
 
  color: #334155;
 
}
}
 
.lw-cons-pct {
.lw-legend .dot {
  display: block;
 
   font-size: 2.4rem;
   width: .6em; height: .6em; border-radius: 50%;
  font-weight: 700;
 
  line-height: 1;
   display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
   color: #c92a2a;
 
  margin: 0 0 4px;
}
}
 
.lw-cons-pct-label {
.lw-legend .lbl { font-weight: 500; }
  font-size: .95rem;
 
   font-weight: 500;
.lw-legend .count {
  color: #34402d;
 
   line-height: 1.5;
   margin-left: .15rem; opacity: .8;
 
   font-feature-settings: "tnum" 1; /* tabular nums */
 
}
}
 
/* Priority bar */
/* Status colors – tune to your palette if needed */
.lw-cons-bar {
 
  display: flex;
.dot--stable { background:#2e7d32; }
  height: 24px;
 
  border-radius: 6px;
.dot--vuln  { background:#e69500; }
  overflow: hidden;
 
  gap: 2px;
.dot--end    { background:#ef6c00; }
  margin: 0 0 14px;
 
}
.dot--crit  { background:#d32f2f; }
.lw-bar-seg {
 
  min-width: 0;
.dot--ext    { background:#6b7280; }
  transition: flex-grow 0.3s ease;
 
}
.dot--unk    { background:#94a3b8; }
.lw-bar-seg:first-child { border-radius: 6px 0 0 6px; }
 
.lw-bar-seg:last-child  { border-radius: 0 6px 6px 0; }
/* ===== Conservation panel: Actions ===== */
.lw-bar--critical { background: #c92a2a; }
 
.lw-bar--high    { background: #d9480f; }
.lw-cons-panel .lw-actions {
.lw-bar--medium  { background: #e67700; }
 
.lw-bar--low      { background: #2b8a3e; }
/* Legend */
.lw-cons-legend {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
   display: flex;
   display: flex;
   flex-wrap: wrap;
   flex-wrap: wrap;
 
   gap: 18px;
   gap: .5rem .5rem;
 
  margin: .6rem 0 0;
 
}
}
 
.lw-cons-legend__item {
/* Pill buttons aligned with site palette */
 
.lw-cons-panel .lw-actions .btn {
 
   display: inline-flex;
   display: inline-flex;
   align-items: center;
   align-items: center;
 
   gap: 6px;
   justify-content: center;
   font-size: .8rem;
 
   color: #34402d;
  padding: .55rem .95rem;
 
  border-radius: 999px;
 
  font-weight: 600;
 
   font-size: .875rem;
 
   line-height: 1.25rem;
 
  text-decoration: none;
 
  border: 1px solid transparent;
 
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
 
  transition: background-color .15s ease, border-color .15s ease, transform .06s ease;
 
}
}
 
.lw-ldot {
/* Focus ring (TemplateStyles-safe) */
  width: 10px;
 
  height: 10px;
.lw-cons-panel .lw-actions .btn:focus {
   border-radius: 2px;
 
  display: inline-block;
   outline: 2px solid #a7d1b0; /* soft green ring */
   flex-shrink: 0;
 
   outline-offset: 2px;
 
}
}
 
.lw-ldot--critical { background: #c92a2a; }
/* Primary: deep green from your theme */
.lw-ldot--high    { background: #d9480f; }
 
.lw-ldot--medium  { background: #e67700; }
.lw-cons-panel .lw-actions .btn--primary {
.lw-ldot--low      { background: #2b8a3e; }
 
.lw-llbl {
  background: #2d5016;
   font-weight: 500;
 
   color: #fff;
 
}
}
 
.lw-lcount {
.lw-cons-panel .lw-actions .btn--primary:hover { background: #3d6b1f; }
  color: #7a8472;
 
  font-variant-numeric: tabular-nums;
.lw-cons-panel .lw-actions .btn--primary:active { transform: translateY(1px); }
}
 
/* Separator */
/* Ghost: white with hairline border */
.lw-cons-sep {
 
  height: 1px;
.lw-cons-panel .lw-actions .btn--ghost {
  background: #d2ddce;
 
  margin: 0 0 18px;
}
/* KPI cards */
.lw-cons-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lw-cons-kpi {
   background: #ffffff;
   background: #ffffff;
 
   border: 1px solid #e1e6df;
   border-color: #e5e7eb;
   border-radius: 10px;
 
  padding: 14px 16px;
   color: #1f2937;
   text-align: center;
 
   box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
 
.lw-cons-panel .lw-actions .btn--ghost:hover {
 
   border-color: #cfd6de;
 
   background: #f8fafc;
 
}
}
 
.lw-cons-kpi__num {
/* Muted: subtle gray */
  font-size: 1.5rem;
 
   font-weight: 700;
.lw-cons-panel .lw-actions .btn--muted {
   color: #1a2612;
 
  line-height: 1.2;
   background: #f3f4f6;
   font-variant-numeric: tabular-nums;
 
   color: #374151;
 
   border-color: #e5e7eb;
 
}
}
 
.lw-cons-kpi__label {
.lw-cons-panel .lw-actions .btn--muted:hover { background: #eceff2; }
  font-size: .75rem;
 
  color: #5a6650;
 
   margin-top: 3px;
/* Remove MediaWiki redlink styling *inside* this block only */
 
.lw-cons-panel .lw-actions a.new { color: inherit; border-color: #e5e7eb; }
 
 
/* Mobile touch targets */
 
@media (max-width: 768px) {
 
   .lw-cons-panel .lw-actions .btn { padding: .6rem .8rem; }
 
}
}
 
/* Responsive */
 
@media (max-width: 600px) {
/* ===== Responsive ===== */
  .lw-cons-panel {
 
    padding: 18px 16px 20px;
@media (max-width:720px){
  }
 
   .lw-cons-pct {
   .lw-kpis{grid-template-columns:1fr;}
    font-size: 1.8rem;
 
  }
   .lw-actions{gap:8px;}
  .lw-cons-pct-label {
 
    font-size: .88rem;
  }
  .lw-cons-bar {
    height: 20px;
  }
   .lw-cons-kpis {
    gap: 8px;
  }
  .lw-cons-kpi {
    padding: 12px 10px;
  }
  .lw-cons-kpi__num {
    font-size: 1.25rem;
  }
}
}

Latest revision as of 12:12, 1 April 2026

/* Conservation Panel */
.lw-cons-panel {
  background: #f7faf6;
  border: 1px solid #d2ddce;
  border-radius: 12px;
  padding: 24px 28px 28px;
  margin: 12px 0 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
/* Headline */
.lw-cons-headline {
  margin: 0 0 20px;
  line-height: 1.5;
}
.lw-cons-pct {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: #c92a2a;
  margin: 0 0 4px;
}
.lw-cons-pct-label {
  font-size: .95rem;
  font-weight: 500;
  color: #34402d;
  line-height: 1.5;
}
/* Priority bar */
.lw-cons-bar {
  display: flex;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  gap: 2px;
  margin: 0 0 14px;
}
.lw-bar-seg {
  min-width: 0;
  transition: flex-grow 0.3s ease;
}
.lw-bar-seg:first-child { border-radius: 6px 0 0 6px; }
.lw-bar-seg:last-child  { border-radius: 0 6px 6px 0; }
.lw-bar--critical { background: #c92a2a; }
.lw-bar--high     { background: #d9480f; }
.lw-bar--medium   { background: #e67700; }
.lw-bar--low      { background: #2b8a3e; }
/* Legend */
.lw-cons-legend {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.lw-cons-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: #34402d;
}
.lw-ldot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}
.lw-ldot--critical { background: #c92a2a; }
.lw-ldot--high     { background: #d9480f; }
.lw-ldot--medium   { background: #e67700; }
.lw-ldot--low      { background: #2b8a3e; }
.lw-llbl {
  font-weight: 500;
}
.lw-lcount {
  color: #7a8472;
  font-variant-numeric: tabular-nums;
}
/* Separator */
.lw-cons-sep {
  height: 1px;
  background: #d2ddce;
  margin: 0 0 18px;
}
/* KPI cards */
.lw-cons-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lw-cons-kpi {
  background: #ffffff;
  border: 1px solid #e1e6df;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.lw-cons-kpi__num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2612;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.lw-cons-kpi__label {
  font-size: .75rem;
  color: #5a6650;
  margin-top: 3px;
}
/* Responsive */
@media (max-width: 600px) {
  .lw-cons-panel {
    padding: 18px 16px 20px;
  }
  .lw-cons-pct {
    font-size: 1.8rem;
  }
  .lw-cons-pct-label {
    font-size: .88rem;
  }
  .lw-cons-bar {
    height: 20px;
  }
  .lw-cons-kpis {
    gap: 8px;
  }
  .lw-cons-kpi {
    padding: 12px 10px;
  }
  .lw-cons-kpi__num {
    font-size: 1.25rem;
  }
}