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

Content deleted Content added
No edit summary
No edit summary
Line 2,170:
@media (max-width: 480px) {
.wix-is-choices {
grid-template-columns: 1fr;
}
}
 
 
/* ================================================================
INCOME BUILDER — data-wix-module="income-builder"
Sort 9 items into 3 IFRS 17 income statement sections.
================================================================ */
 
/* ── category colour tokens (scoped) ── */
[data-wix-module="income-builder"] {
--ib-rev: #1d4ed8;
--ib-rev-bg: #eff6ff;
--ib-rev-border: #bfdbfe;
--ib-exp: #b45309;
--ib-exp-bg: #fffbeb;
--ib-exp-border: #fde68a;
--ib-fin: #7c3aed;
--ib-fin-bg: #f5f3ff;
--ib-fin-border: #ddd6fe;
--ib-res: #15803d;
--ib-res-bg: #f0fdf4;
--ib-res-border: #bbf7d0;
}
 
 
/* ── 85. Tile (current item) ────────────────────────────────────── */
 
.wix-ib-tile {
display: inline-flex;
align-items: center;
gap: 0.4rem;
background: var(--wix-bg);
border: 2px solid var(--wix-border);
border-radius: var(--wix-radius);
padding: 0.55rem 0.9rem;
font-size: 0.82em;
font-weight: 600;
line-height: 1.35;
transition: border-color var(--wix-transition);
}
 
.wix-ib-tile-desc {
font-size: 0.76em;
color: var(--wix-text-muted);
margin-top: 0.35rem;
padding-left: 0.15rem;
line-height: 1.45;
}
 
 
/* ── 86. Choice Buttons (3-column) ──────────────────────────────── */
 
.wix-ib-choices {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.6rem;
margin-bottom: 1.25rem;
}
 
.wix-ib-choice {
padding: 0.65rem 0.4rem;
border-radius: var(--wix-radius);
border: 2px solid;
font: inherit;
font-size: 0.75em;
font-weight: 700;
text-align: center;
cursor: pointer;
line-height: 1.35;
transition: transform 0.15s, opacity 0.15s;
-webkit-tap-highlight-color: transparent;
}
 
.wix-ib-choice:active { transform: scale(0.97); }
.wix-ib-choice:disabled { opacity: 0.45; cursor: default; transform: none; }
 
.wix-ib-choice--rev { background: var(--ib-rev-bg); border-color: var(--ib-rev-border); color: var(--ib-rev); }
.wix-ib-choice--exp { background: var(--ib-exp-bg); border-color: var(--ib-exp-border); color: var(--ib-exp); }
.wix-ib-choice--fin { background: var(--ib-fin-bg); border-color: var(--ib-fin-border); color: var(--ib-fin); }
 
 
/* ── 87. Income Statement Skeleton ──────────────────────────────── */
 
.wix-ib-stmt {
background: var(--wix-bg);
border: 1px solid var(--wix-border);
border-radius: var(--wix-radius);
overflow: hidden;
margin-bottom: 1.25rem;
}
 
.wix-ib-section {
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--wix-border);
}
 
.wix-ib-section:last-child { border-bottom: none; }
 
.wix-ib-sec-head {
display: flex;
align-items: center;
gap: 0.45rem;
margin-bottom: 0.4rem;
}
 
.wix-ib-sec-dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
}
 
.wix-ib-sec-title {
font-size: 0.82em;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}
 
.wix-ib-sec-count {
font-size: 0.7em;
font-weight: 600;
color: var(--wix-text-muted);
margin-left: auto;
}
 
 
/* ── 88. Drop Area + Placed Chips ───────────────────────────────── */
 
.wix-ib-drop {
min-height: 40px;
border: 2px dashed var(--wix-border);
border-radius: var(--wix-radius);
padding: 0.4rem;
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
align-items: center;
}
 
.wix-ib-drop-ph {
font-size: 0.76em;
color: #b0b0b0;
font-style: italic;
padding: 0.2rem 0.35rem;
}
 
.wix-ib-chip {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.3rem 0.6rem;
border-radius: var(--wix-radius);
font-size: 0.74em;
font-weight: 600;
animation: wixFadeIn 0.3s ease;
}
 
.wix-ib-chip--rev { background: var(--ib-rev-bg); color: var(--ib-rev); border: 1px solid var(--ib-rev-border); }
.wix-ib-chip--exp { background: var(--ib-exp-bg); color: var(--ib-exp); border: 1px solid var(--ib-exp-border); }
.wix-ib-chip--fin { background: var(--ib-fin-bg); color: var(--ib-fin); border: 1px solid var(--ib-fin-border); }
 
 
/* ── 89. Result Row ─────────────────────────────────────────────── */
 
.wix-ib-result {
background: var(--ib-res-bg);
border-bottom: 1px solid var(--ib-res-border);
padding: 0.6rem 1rem;
display: flex;
align-items: center;
justify-content: space-between;
}
 
.wix-ib-result-label {
font-size: 0.82em;
font-weight: 700;
color: var(--ib-res);
}
 
.wix-ib-result-eq {
font-size: 0.76em;
font-weight: 600;
color: var(--ib-res);
font-style: italic;
}
 
 
/* ── 90. Mobile ─────────────────────────────────────────────────── */
 
@media (max-width: 480px) {
.wix-ib-choices {
grid-template-columns: 1fr;
}