Toggle menu
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 218 by Eloise Zomia (talk)
Tag: Undo
No edit summary
Tag: Reverted
Line 1: Line 1:
/* ===== Container ===== */
/* TemplateStyles-safe CSS scoped by MediaWiki */
.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);}
.lw-cons-title{font-weight:700;font-size:16px;letter-spacing:.02em;color:#1f2937;margin:4px 0 14px;}


/* ===== KPIs ===== */
.mw-parser-output .lw-cons-panel {
.lw-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px;}
  background:#fff;
.lw-kpi{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:16px;text-align:center;}
  border:1px solid #e5e7eb;
.lw-kpi__num{font-weight:800;line-height:1;font-size:30px;color:#111827;margin-bottom:6px;}
  border-radius:12px;
.lw-kpi__label{font-size:13px;color:#6b7280;}
  padding:16px;
.lw-kpi__label a{color:inherit;text-decoration:none;}
  margin:24px 0;
 
  box-shadow:0 1px 2px rgba(0,0,0,.03);
/* 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 */
.mw-parser-output .lw-cons-title {
.lw-legend {
   font-weight:700;
   display: flex; flex-wrap: wrap; gap: .5rem .75rem;
   font-size:1.1rem;
  margin: .75rem 0 1rem;
   margin:0 0 12px 0;
  padding: 0; list-style: none;
   color:#1f2937;
   font-size: .875rem; line-height: 1.25rem;
}
.lw-legend__item {
   display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: #f8fafc; /* subtle chip bg */
  color: #334155;
}
.lw-legend .dot {
  width: .6em; height: .6em; border-radius: 50%;
  display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.lw-legend .lbl { font-weight: 500; }
.lw-legend .count {
   margin-left: .15rem; opacity: .8;
  font-feature-settings: "tnum" 1; /* tabular nums */
}
}


/* Status colors – tune to your palette if needed */
/* KPI cards */
.dot--stable { background:#2e7d32; }
.mw-parser-output .lw-kpis {
.dot--vuln  { background:#e69500; }
   display:grid;
.dot--end    { background:#ef6c00; }
   grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
.dot--crit  { background:#d32f2f; }
   gap:12px;
.dot--ext    { background:#6b7280; }
   margin-bottom:12px;
.dot--unk    { background:#94a3b8; }
 
/* ===== Conservation panel: Actions ===== */
.lw-cons-panel .lw-actions {
   display: flex;
   flex-wrap: wrap;
   gap: .5rem .5rem;
   margin: .6rem 0 0;
}
}
 
.mw-parser-output .lw-kpi {
/* Pill buttons aligned with site palette */
   border:1px solid #eef2f7;
.lw-cons-panel .lw-actions .btn {
   border-radius:10px;
   display: inline-flex;
   padding:12px;
  align-items: center;
   background:#fafafa;
  justify-content: center;
  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;
}
}
 
.mw-parser-output .lw-kpi__num {
/* Focus ring (TemplateStyles-safe) */
  font-weight:700;
.lw-cons-panel .lw-actions .btn:focus {
  font-size:1.5rem;
   outline: 2px solid #a7d1b0; /* soft green ring */
  line-height:1;
   outline-offset: 2px;
   margin-bottom:4px;
   color:#111827;
}
}
 
.mw-parser-output .lw-kpi__label {
/* Primary: deep green from your theme */
   font-size:.9rem;
.lw-cons-panel .lw-actions .btn--primary {
   color:#4b5563;
   background: #2d5016;
   color: #fff;
}
}
.lw-cons-panel .lw-actions .btn--primary:hover { background: #3d6b1f; }
.lw-cons-panel .lw-actions .btn--primary:active { transform: translateY(1px); }


/* Ghost: white with hairline border */
/* Status bar */
.lw-cons-panel .lw-actions .btn--ghost {
.mw-parser-output .lw-statusbar {
   background: #ffffff;
   display:flex;
   border-color: #e5e7eb;
  height:14px;
   color: #1f2937;
   border-radius:999px;
}
   overflow:hidden;
.lw-cons-panel .lw-actions .btn--ghost:hover {
  background:#f3f4f6;
   border-color: #cfd6de;
   border:1px solid #e5e7eb;
   background: #f8fafc;
   margin:6px 0 6px 0;
}
}
.mw-parser-output .lw-seg { height:100%; }
.mw-parser-output .lw-s-stable    { background:#2ecc71; }
.mw-parser-output .lw-s-vulnerable { background:#f1c40f; }
.mw-parser-output .lw-s-endangered { background:#f39c12; }
.mw-parser-output .lw-s-critical  { background:#e74c3c; }
.mw-parser-output .lw-s-extinct    { background:#9ca3af; }


/* Muted: subtle gray */
/* Legend (single row, wraps on mobile) */
.lw-cons-panel .lw-actions .btn--muted {
.mw-parser-output .lw-legend {
   background: #f3f4f6;
  list-style:none;
   color: #374151;
  padding:0;
   border-color: #e5e7eb;
  margin:8px 0 0 0;
  display:flex;
   flex-wrap:wrap;
   gap:10px 16px;
   align-items:center;
}
}
.lw-cons-panel .lw-actions .btn--muted:hover { background: #eceff2; }
.mw-parser-output .lw-legend__item {
 
  display:inline-flex;
/* Remove MediaWiki redlink styling *inside* this block only */
  align-items:center;
.lw-cons-panel .lw-actions a.new { color: inherit; border-color: #e5e7eb; }
  gap:6px;
 
  font-size:.9rem;
/* Mobile touch targets */
   color:#374151;
@media (max-width: 768px) {
   .lw-cons-panel .lw-actions .btn { padding: .6rem .8rem; }
}
}
 
.mw-parser-output .lw-legend .dot {
 
  width:10px;height:10px;border-radius:50%;
/* ===== Responsive ===== */
   display:inline-block;
@media (max-width:720px){
  border:1px solid rgba(0,0,0,.08);
  .lw-kpis{grid-template-columns:1fr;}
   .lw-actions{gap:8px;}
}
}
.mw-parser-output .dot--stable { background:#2ecc71; }
.mw-parser-output .dot--vuln  { background:#f1c40f; }
.mw-parser-output .dot--end    { background:#f39c12; }
.mw-parser-output .dot--crit  { background:#e74c3c; }
.mw-parser-output .dot--ext    { background:#9ca3af; }
.mw-parser-output .lw-legend .count { margin-left:4px; color:#6b7280; font-variant-numeric:tabular-nums; }

Revision as of 06:46, 26 August 2025

/* TemplateStyles-safe CSS scoped by MediaWiki */

.mw-parser-output .lw-cons-panel {
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:16px;
  margin:24px 0;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
}

.mw-parser-output .lw-cons-title {
  font-weight:700;
  font-size:1.1rem;
  margin:0 0 12px 0;
  color:#1f2937;
}

/* KPI cards */
.mw-parser-output .lw-kpis {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin-bottom:12px;
}
.mw-parser-output .lw-kpi {
  border:1px solid #eef2f7;
  border-radius:10px;
  padding:12px;
  background:#fafafa;
}
.mw-parser-output .lw-kpi__num {
  font-weight:700;
  font-size:1.5rem;
  line-height:1;
  margin-bottom:4px;
  color:#111827;
}
.mw-parser-output .lw-kpi__label {
  font-size:.9rem;
  color:#4b5563;
}

/* Status bar */
.mw-parser-output .lw-statusbar {
  display:flex;
  height:14px;
  border-radius:999px;
  overflow:hidden;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  margin:6px 0 6px 0;
}
.mw-parser-output .lw-seg { height:100%; }
.mw-parser-output .lw-s-stable     { background:#2ecc71; }
.mw-parser-output .lw-s-vulnerable { background:#f1c40f; }
.mw-parser-output .lw-s-endangered { background:#f39c12; }
.mw-parser-output .lw-s-critical   { background:#e74c3c; }
.mw-parser-output .lw-s-extinct    { background:#9ca3af; }

/* Legend (single row, wraps on mobile) */
.mw-parser-output .lw-legend {
  list-style:none;
  padding:0;
  margin:8px 0 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  align-items:center;
}
.mw-parser-output .lw-legend__item {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.9rem;
  color:#374151;
}
.mw-parser-output .lw-legend .dot {
  width:10px;height:10px;border-radius:50%;
  display:inline-block;
  border:1px solid rgba(0,0,0,.08);
}
.mw-parser-output .dot--stable { background:#2ecc71; }
.mw-parser-output .dot--vuln   { background:#f1c40f; }
.mw-parser-output .dot--end    { background:#f39c12; }
.mw-parser-output .dot--crit   { background:#e74c3c; }
.mw-parser-output .dot--ext    { background:#9ca3af; }
.mw-parser-output .lw-legend .count { margin-left:4px; color:#6b7280; font-variant-numeric:tabular-nums; }