| 1 |
/* ── Waterfall Chart ── bkbg-wfc-* ── */ |
| 2 |
|
| 3 |
.bkbg-wfc-editor-wrap { |
| 4 |
font-family: system-ui, -apple-system, sans-serif; |
| 5 |
} |
| 6 |
|
| 7 |
.bkbg-wfc-wrap { |
| 8 |
font-family: system-ui, -apple-system, sans-serif; |
| 9 |
box-sizing: border-box; |
| 10 |
} |
| 11 |
|
| 12 |
.bkbg-wfc-title { |
| 13 |
margin: 0 0 16px; |
| 14 |
font-family: var(--bkwfc-tt-ff, inherit); |
| 15 |
font-size: var(--bkwfc-tt-fsd, 20px); |
| 16 |
line-height: var(--bkwfc-tt-lhd, 1.25); |
| 17 |
letter-spacing: var(--bkwfc-tt-lsd, normal); |
| 18 |
word-spacing: var(--bkwfc-tt-wsd, normal); |
| 19 |
font-weight: var(--bkwfc-tt-fw, 700); |
| 20 |
font-style: var(--bkwfc-tt-fst, normal); |
| 21 |
text-decoration: var(--bkwfc-tt-td, none); |
| 22 |
text-transform: var(--bkwfc-tt-tt, none); |
| 23 |
} |
| 24 |
|
| 25 |
.bkbg-wfc-canvas-wrap { |
| 26 |
position: relative; |
| 27 |
width: 100%; |
| 28 |
} |
| 29 |
|
| 30 |
.bkbg-wfc-canvas-wrap canvas { |
| 31 |
display: block; |
| 32 |
max-width: 100%; |
| 33 |
} |
| 34 |
|
| 35 |
.bkbg-wfc-legend { |
| 36 |
display: flex; |
| 37 |
flex-wrap: wrap; |
| 38 |
gap: 8px 18px; |
| 39 |
margin-top: 14px; |
| 40 |
} |
| 41 |
|
| 42 |
.bkbg-wfc-legend-item { |
| 43 |
display: flex; |
| 44 |
align-items: center; |
| 45 |
gap: 6px; |
| 46 |
font-size: 12px; |
| 47 |
} |
| 48 |
|
| 49 |
.bkbg-wfc-legend-dot { |
| 50 |
width: 12px; |
| 51 |
height: 12px; |
| 52 |
border-radius: 3px; |
| 53 |
flex-shrink: 0; |
| 54 |
} |
| 55 |
|
| 56 |
.bkbg-wfc-tooltip { |
| 57 |
position: absolute; |
| 58 |
background: #1f2937; |
| 59 |
color: #fff; |
| 60 |
padding: 8px 12px; |
| 61 |
border-radius: 8px; |
| 62 |
font-size: 13px; |
| 63 |
pointer-events: none; |
| 64 |
z-index: 10; |
| 65 |
white-space: nowrap; |
| 66 |
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); |
| 67 |
transition: opacity 0.15s; |
| 68 |
opacity: 0; |
| 69 |
} |
| 70 |
|
| 71 |
.bkbg-wfc-tooltip.is-visible { |
| 72 |
opacity: 1; |
| 73 |
} |
| 74 |
|
| 75 |
.bkbg-wfc-tooltip-label { |
| 76 |
font-weight: 700; |
| 77 |
margin-bottom: 2px; |
| 78 |
} |
| 79 |
|
| 80 |
.bkbg-wfc-tooltip-value { |
| 81 |
opacity: 0.85; |
| 82 |
} |
| 83 |
|
| 84 |
/* ── Responsive typography ───────────────────────────────────────────────── */ |
| 85 |
@media (max-width: 1024px) { |
| 86 |
.bkbg-wfc-title { |
| 87 |
font-size: var(--bkwfc-tt-fst1, var(--bkwfc-tt-fsd, 20px)); |
| 88 |
line-height: var(--bkwfc-tt-lht, var(--bkwfc-tt-lhd, 1.25)); |
| 89 |
letter-spacing: var(--bkwfc-tt-lst, var(--bkwfc-tt-lsd, normal)); |
| 90 |
word-spacing: var(--bkwfc-tt-wst, var(--bkwfc-tt-wsd, normal)); |
| 91 |
} |
| 92 |
} |
| 93 |
@media (max-width: 767px) { |
| 94 |
.bkbg-wfc-title { |
| 95 |
font-size: var(--bkwfc-tt-fsm, var(--bkwfc-tt-fst1, var(--bkwfc-tt-fsd, 20px))); |
| 96 |
line-height: var(--bkwfc-tt-lhm, var(--bkwfc-tt-lht, var(--bkwfc-tt-lhd, 1.25))); |
| 97 |
letter-spacing: var(--bkwfc-tt-lsm, var(--bkwfc-tt-lst, var(--bkwfc-tt-lsd, normal))); |
| 98 |
word-spacing: var(--bkwfc-tt-wsm, var(--bkwfc-tt-wst, var(--bkwfc-tt-wsd, normal))); |
| 99 |
} |
| 100 |
} |
| 101 |
|