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
No edit summary
No edit summary
Line 44: Line 44:




/* Legend */
/* flat legend right under the bar */
.lw-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:8px;color:#6b7280;font-size:.8rem;}
.lw-statusbar{ margin-bottom:4px; } /* small breathing room */
.lw-legend__item{display:inline-flex;align-items:center;gap:6px;}
.lw-legend{ margin-top:6px; }
.lw-dot{display:inline-block;width:10px;height:10px;border-radius:50%;}
 
.lw-dot.lw-s-stable{background:#2e7d32;} .lw-dot.lw-s-vulnerable{background:#f59e0b;}
.lw-legend--flat{
.lw-dot.lw-s-endangered{background:#f97316;} .lw-dot.lw-s-critical{background:#dc2626;}
  display:flex;
.lw-dot.lw-s-extinct{background:#111827;} .lw-dot.lw-s-unknown{background:#9ca3af;}
  flex-wrap:wrap;
  align-items:center;
  gap:10px 16px;            /* horizontal | vertical */
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
  color:#6b7280;           /* neutral text */
  font-size:.82rem;
  line-height:1.25;
}
 
.lw-legend__item{
  display:inline-flex;
  align-items:center;
  gap:6px;                 /* dot → label */
  white-space:nowrap;      /* keep each pair together */
}
 
/* tiny, crisp dots */
.lw-dot{
  display:inline-block;
  width:9px; height:9px;
  border-radius:50%;
}
 
/* reuse your palette for dots */
.lw-dot.lw-s-stable{     background:#2e7d32; }
.lw-dot.lw-s-vulnerable{ background:#f59e0b; }
.lw-dot.lw-s-endangered{ background:#f97316; }
.lw-dot.lw-s-critical{   background:#dc2626; }
.lw-dot.lw-s-extinct{     background:#111827; }
.lw-dot.lw-s-unknown{     background:#9ca3af; }
 
/* optional: stack to single column on very narrow screens */
@media (max-width: 420px){
  .lw-legend--flat{ gap:8px 12px; }
}
 


/* Buttons */
/* Buttons */

Revision as of 13:37, 23 August 2025

/* Panel */
.lw-cons-panel{background:#fff;border:1px solid #e5e7eb;border-left:4px solid #2d5016;
  border-radius:14px;padding:20px;box-shadow:0 8px 18px rgba(0,0,0,.05);margin:2em 0;}
.lw-cons-title{font-weight:800;color:#2d5016;text-transform:uppercase;letter-spacing:.05em;
  font-size:.9rem;margin-bottom:14px;}

/* KPIs */
.lw-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px;}
.lw-kpi{background:linear-gradient(180deg,#fbfdff 0%,#f3f6fa 100%);border:1px solid #e5e7eb;
  border-radius:12px;padding:16px;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.03);}
.lw-kpi__num{font-size:2rem;font-weight:800;color:#111827;line-height:1.1;letter-spacing:.01em;}
.lw-kpi__label{margin-top:6px;font-size:.85rem;color:#6b7280;}

/* --- Status bar core (unchanged) --- */
.lw-statusbar{
  display:flex; align-items:stretch;
  height:14px; padding:2px; border-radius:999px;
  background:#f3f4f6; border:1px solid #e5e7eb; overflow:hidden;
  white-space:nowrap; font-size:0; line-height:0; direction:ltr;
}
.lw-statusbar .lw-seg{
  display:block; height:100%; box-sizing:border-box;
  flex:0 0 auto;           /* don’t grow/shrink */
  min-width:4px;           /* smallest slice always visible */
}
.lw-statusbar .lw-seg + .lw-seg{ border-left:2px solid #fff; }

/* --- USE FLEX-BASIS FOR PERCENT WIDTHS --- */
.lw-w-178  { flex-basis:1.78%; }
.lw-w-468  { flex-basis:4.68%; }
.lw-w-958  { flex-basis:9.58%; }
.lw-w-1982 { flex-basis:19.82%; }
.lw-w-2829 { flex-basis:28.29%; }
/* nudge last by -0.01% to avoid rounding overflow */
.lw-w-3585 { flex-basis:35.85%; }

/* colors (unchanged) */
.lw-s-stable{background:#2e7d32}
.lw-s-vulnerable{background:#f59e0b}
.lw-s-endangered{background:#f97316}
.lw-s-critical{background:#dc2626}
.lw-s-extinct{background:#111827}
.lw-s-unknown{background:#9ca3af}


/* flat legend right under the bar */
.lw-statusbar{ margin-bottom:4px; } /* small breathing room */
.lw-legend{ margin-top:6px; }

.lw-legend--flat{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 16px;            /* horizontal | vertical */
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
  color:#6b7280;            /* neutral text */
  font-size:.82rem;
  line-height:1.25;
}

.lw-legend__item{
  display:inline-flex;
  align-items:center;
  gap:6px;                  /* dot → label */
  white-space:nowrap;       /* keep each pair together */
}

/* tiny, crisp dots */
.lw-dot{
  display:inline-block;
  width:9px; height:9px;
  border-radius:50%;
}

/* reuse your palette for dots */
.lw-dot.lw-s-stable{      background:#2e7d32; }
.lw-dot.lw-s-vulnerable{  background:#f59e0b; }
.lw-dot.lw-s-endangered{  background:#f97316; }
.lw-dot.lw-s-critical{    background:#dc2626; }
.lw-dot.lw-s-extinct{     background:#111827; }
.lw-dot.lw-s-unknown{     background:#9ca3af; }

/* optional: stack to single column on very narrow screens */
@media (max-width: 420px){
  .lw-legend--flat{ gap:8px 12px; }
}


/* Buttons */
.lw-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
.lw-btn{display:inline-flex;align-items:center;padding:9px 14px;border-radius:10px;
  border:1px solid #e5e7eb;background:#fff;color:#2d5016;font-weight:700;text-decoration:none;
  transition:transform .15s,box-shadow .15s,background .15s,border-color .15s;}
.lw-btn:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(0,0,0,.06);
  background:#f8fafb;border-color:#d1d5db;}
.lw-btn:focus{outline:none;box-shadow:0 0 0 3px rgba(45,80,22,.25);} /* no :focus-visible */

/* Primary */
.lw-btn--primary{background:#2d5016;color:#fff;border-color:#2d5016;}
.lw-btn--primary:hover{background:#3d6b1f;border-color:#3d6b1f;}

/* kill redlink/visited styling inside buttons */
.lw-btn > a,
.lw-btn > a:visited,
.lw-btn > a:active,
.lw-btn > a.new{
  color:inherit !important;text-decoration:none !important;background:transparent !important;
  border:0 !important;padding:0 !important;
}

/* Responsive */
@media (max-width:720px){
  .lw-kpis{grid-template-columns:1fr;}
  .lw-kpi__num{font-size:1.75rem;}
}