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:




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


/* works for the <div><span>…</span></div> version */
.lw-legend--flat{
.lw-legend--flat{
   display:flex;
   display:block;                 /* don’t rely on flex */
  flex-wrap:wrap;
   margin-top:6px;
  align-items:center;
  gap:10px 16px;            /* horizontal | vertical */
   padding:0;
   background:transparent;
   background:transparent;
   border:0;
   border:0; box-shadow:none;
  box-shadow:none;
   color:#6b7280; font-size:.82rem; line-height:1.25;
   color:#6b7280;           /* neutral text */
  font-size:.82rem;
  line-height:1.25;
}
}
 
.lw-legend--flat .lw-legend__item{
.lw-legend__item{
   display:inline-flex;           /* inline so they sit in a row */
   display:inline-flex;
   align-items:center;
   align-items:center;
   gap:6px;                 /* dot → label */
   gap:6px;
   white-space:nowrap;       /* keep each pair together */
  margin-right:16px;            /* spacing between items */
   white-space:nowrap;
}
}


/* tiny, crisp dots */
/* also flatten the older <ul class="lw-legendlist"><li>…</li></ul> form, if it’s still on the page */
.lw-dot{
.lw-legendlist{
   display:inline-block;
  list-style:none; margin:6px 0 0; padding:0;
   width:9px; height:9px;
  display:block;                  /* not grid */
   border-radius:50%;
  background:transparent; border:0; box-shadow:none;
}
.lw-legendlist > li{
   display:inline-flex;           /* make each LI a chip inline */
   align-items:center; gap:6px;
   margin-right:16px;
}
}


/* reuse your palette for dots */
/* dots (unchanged) */
.lw-dot.lw-s-stable{     background:#2e7d32; }
.lw-dot{ display:inline-block; width:9px; height:9px; border-radius:50%; }
.lw-dot.lw-s-vulnerable{ background:#f59e0b; }
.lw-dot.lw-s-stable{background:#2e7d32}
.lw-dot.lw-s-endangered{ background:#f97316; }
.lw-dot.lw-s-vulnerable{background:#f59e0b}
.lw-dot.lw-s-critical{   background:#dc2626; }
.lw-dot.lw-s-endangered{background:#f97316}
.lw-dot.lw-s-extinct{     background:#111827; }
.lw-dot.lw-s-critical{background:#dc2626}
.lw-dot.lw-s-unknown{     background:#9ca3af; }
.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; }
}





Revision as of 13:42, 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 (force row) --- */
.lw-statusbar{ margin-bottom:4px; }

/* works for the <div><span>…</span></div> version */
.lw-legend--flat{
  display:block;                 /* don’t rely on flex */
  margin-top:6px;
  background:transparent;
  border:0; box-shadow:none;
  color:#6b7280; font-size:.82rem; line-height:1.25;
}
.lw-legend--flat .lw-legend__item{
  display:inline-flex;           /* inline so they sit in a row */
  align-items:center;
  gap:6px;
  margin-right:16px;             /* spacing between items */
  white-space:nowrap;
}

/* also flatten the older <ul class="lw-legendlist"><li>…</li></ul> form, if it’s still on the page */
.lw-legendlist{
  list-style:none; margin:6px 0 0; padding:0;
  display:block;                  /* not grid */
  background:transparent; border:0; box-shadow:none;
}
.lw-legendlist > li{
  display:inline-flex;            /* make each LI a chip inline */
  align-items:center; gap:6px;
  margin-right:16px;
}

/* dots (unchanged) */
.lw-dot{ display:inline-block; width:9px; height:9px; border-radius:50%; }
.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}


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