MediaWiki:Gadget-wix-interactive.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,168:
font-size: 0.85em;
color: var(--wix-accent);
}
 
 
/* ================================================================
DISCOUNT RATE — data-wix-module="discount-rate"
Discount-rate dashboard with chart and table.
================================================================ */
 
 
/* ── 38. Stat Cards (3-column) ──────────────────────────────────
──────────────────────────────────────────────────────────────── */
 
.wix-dr-cards {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.65rem;
margin-bottom: 1.25rem;
}
 
@media (max-width: 480px) {
.wix-dr-cards {
grid-template-columns: 1fr;
}
}
 
 
/* ── 39. Chart Area ─────────────────────────────────────────────
──────────────────────────────────────────────────────────────── */
 
.wix-dr-chart {
position: relative;
height: 260px;
margin-bottom: 0.5rem;
}
 
.wix-dr-chart canvas {
width: 100%;
height: 100%;
}
 
@media (max-width: 480px) {
.wix-dr-chart {
height: 200px;
}
}
 
 
/* ── 40. Nominal Legend Swatch ───────────────────────────────────
Dashed line swatch for the nominal reference line.
──────────────────────────────────────────────────────────────── */
 
.wix-dr-nom-swatch {
display: inline-block;
width: 16px;
height: 0;
border-top: 1.5px dashed var(--wix-border);
vertical-align: middle;
}
 
 
/* ── 41. Table ──────────────────────────────────────────────────
Year-by-year unwinding table.
──────────────────────────────────────────────────────────────── */
 
.wix-dr-table {
margin-top: 1.25rem;
}
 
.wix-dr-tbl {
width: 100%;
border-collapse: collapse;
font-size: 0.85em;
}
 
.wix-dr-tbl th,
.wix-dr-tbl td {
padding: 0.4rem 0.6rem;
border-bottom: 1px solid var(--wix-border-subtle);
}
 
.wix-dr-tbl th {
text-align: right;
color: var(--wix-text-muted);
font-weight: 600;
}
 
.wix-dr-tbl th:first-child {
text-align: left;
}
 
.wix-dr-tbl td {
text-align: right;
}
 
.wix-dr-tbl td:first-child {
text-align: left;
}