| 1 |
/* ── Text Highlight ──────────────────────────────────────────── */ |
| 2 |
|
| 3 |
.bkth-wrap { |
| 4 |
box-sizing: border-box; |
| 5 |
} |
| 6 |
|
| 7 |
/* ── title typography ── */ |
| 8 |
.bkth-title { |
| 9 |
font-family: var(--bkth-tt-font-family, inherit); |
| 10 |
font-size: var(--bkth-tt-font-size-d, 44px); |
| 11 |
line-height: var(--bkth-tt-line-height-d, 1.25); |
| 12 |
font-weight: var(--bkth-tt-font-weight, 700); |
| 13 |
font-style: var(--bkth-tt-font-style, normal); |
| 14 |
text-decoration: var(--bkth-tt-text-decoration, none); |
| 15 |
text-transform: var(--bkth-tt-text-transform, none); |
| 16 |
letter-spacing: var(--bkth-tt-letter-spacing-d, 0px); |
| 17 |
word-spacing: var(--bkth-tt-word-spacing-d, normal); |
| 18 |
margin: 0; |
| 19 |
} |
| 20 |
|
| 21 |
.bkth-wrap h1.bkth-title, |
| 22 |
.bkth-wrap h2.bkth-title, |
| 23 |
.bkth-wrap h3.bkth-title, |
| 24 |
.bkth-wrap h4.bkth-title { |
| 25 |
font-family: var(--bkth-tt-font-family, inherit); |
| 26 |
font-size: var(--bkth-tt-font-size-d, 44px); |
| 27 |
line-height: var(--bkth-tt-line-height-d, 1.25); |
| 28 |
font-weight: var(--bkth-tt-font-weight, 700); |
| 29 |
font-style: var(--bkth-tt-font-style, normal); |
| 30 |
text-decoration: var(--bkth-tt-text-decoration, none); |
| 31 |
text-transform: var(--bkth-tt-text-transform, none); |
| 32 |
letter-spacing: var(--bkth-tt-letter-spacing-d, 0px); |
| 33 |
word-spacing: var(--bkth-tt-word-spacing-d, normal); |
| 34 |
margin: 0; |
| 35 |
} |
| 36 |
|
| 37 |
@media (max-width: 1024px) { |
| 38 |
.bkth-wrap .bkth-title { |
| 39 |
font-size: var(--bkth-tt-font-size-t, var(--bkth-tt-font-size-d, 44px)); |
| 40 |
line-height: var(--bkth-tt-line-height-t, var(--bkth-tt-line-height-d, 1.25)); |
| 41 |
letter-spacing: var(--bkth-tt-letter-spacing-t, var(--bkth-tt-letter-spacing-d, 0px)); |
| 42 |
word-spacing: var(--bkth-tt-word-spacing-t, var(--bkth-tt-word-spacing-d, normal)); |
| 43 |
} |
| 44 |
} |
| 45 |
|
| 46 |
@media (max-width: 767px) { |
| 47 |
.bkth-wrap .bkth-title { |
| 48 |
font-size: var(--bkth-tt-font-size-m, var(--bkth-tt-font-size-t, var(--bkth-tt-font-size-d, 44px))); |
| 49 |
line-height: var(--bkth-tt-line-height-m, var(--bkth-tt-line-height-t, var(--bkth-tt-line-height-d, 1.25))); |
| 50 |
letter-spacing: var(--bkth-tt-letter-spacing-m, var(--bkth-tt-letter-spacing-t, var(--bkth-tt-letter-spacing-d, 0px))); |
| 51 |
word-spacing: var(--bkth-tt-word-spacing-m, var(--bkth-tt-word-spacing-t, var(--bkth-tt-word-spacing-d, normal))); |
| 52 |
} |
| 53 |
} |
| 54 |
|
| 55 |
.bkth-hl { |
| 56 |
position: relative; |
| 57 |
display: inline; |
| 58 |
} |
| 59 |
|
| 60 |
/* ── Sweep animation (marker / box / underline) ── */ |
| 61 |
.bkth-hl.bkth-animate { |
| 62 |
transition: background-size var(--bkth-hl-dur, 600ms) ease, |
| 63 |
border-color var(--bkth-hl-dur, 600ms) ease, |
| 64 |
text-shadow var(--bkth-hl-dur, 600ms) ease; |
| 65 |
} |
| 66 |
|
| 67 |
/* Marker sweep: background grows from 0 → 100% width */ |
| 68 |
.bkth-hl--marker.bkth-animate { |
| 69 |
background-size: 0% 100% !important; |
| 70 |
background-repeat: no-repeat; |
| 71 |
background-position: left center; |
| 72 |
transition: background-size var(--bkth-hl-dur, 600ms) cubic-bezier(0.25, 1, 0.5, 1); |
| 73 |
} |
| 74 |
.bkth-hl--marker.bkth-revealed { |
| 75 |
background-size: 100% 100% !important; |
| 76 |
} |
| 77 |
|
| 78 |
/* Underline sweep: grows from 0 → 100% */ |
| 79 |
.bkth-hl--underline.bkth-animate { |
| 80 |
border-bottom-width: 0 !important; |
| 81 |
transition: border-bottom-width var(--bkth-hl-dur, 600ms) ease; |
| 82 |
} |
| 83 |
.bkth-hl--underline.bkth-revealed { |
| 84 |
border-bottom-width: inherit !important; |
| 85 |
} |
| 86 |
|
| 87 |
/* Fade */ |
| 88 |
.bkth-hl--box.bkth-animate, |
| 89 |
.bkth-hl--strikethrough.bkth-animate, |
| 90 |
.bkth-hl--glow.bkth-animate { |
| 91 |
opacity: 0; |
| 92 |
transition: opacity var(--bkth-hl-dur, 600ms) ease; |
| 93 |
} |
| 94 |
.bkth-hl--box.bkth-revealed, |
| 95 |
.bkth-hl--strikethrough.bkth-revealed, |
| 96 |
.bkth-hl--glow.bkth-revealed { |
| 97 |
opacity: 1; |
| 98 |
} |
| 99 |
|
| 100 |
/* Stagger: each mark delayed by index * --bkth-hl-delay */ |
| 101 |
.bkth-hl[data-bkth-i] { |
| 102 |
transition-delay: calc(var(--bkth-hl-delay, 80ms) * attr(data-bkth-i number, 0)); |
| 103 |
} |
| 104 |
|
| 105 |
/* Reduced motion: show immediately */ |
| 106 |
@media (prefers-reduced-motion: reduce) { |
| 107 |
.bkth-hl.bkth-animate { |
| 108 |
transition: none !important; |
| 109 |
} |
| 110 |
.bkth-hl--marker.bkth-animate { background-size: 100% 100% !important; } |
| 111 |
.bkth-hl--underline.bkth-animate { border-bottom-width: inherit !important; } |
| 112 |
.bkth-hl--box.bkth-animate, |
| 113 |
.bkth-hl--strikethrough.bkth-animate, |
| 114 |
.bkth-hl--glow.bkth-animate { opacity: 1; } |
| 115 |
} |
| 116 |
|