| 1 |
/* ── Parallax Section ───────────────────────────────────────────────────────── */ |
| 2 |
.bkps-outer { |
| 3 |
box-sizing: border-box; |
| 4 |
position: relative; |
| 5 |
overflow: hidden; |
| 6 |
} |
| 7 |
|
| 8 |
.bkps-bg { |
| 9 |
position: absolute; |
| 10 |
inset: -30% 0; |
| 11 |
background-size: cover; |
| 12 |
background-position: center center; |
| 13 |
background-repeat: no-repeat; |
| 14 |
will-change: transform; |
| 15 |
z-index: 0; |
| 16 |
} |
| 17 |
|
| 18 |
/* editor: disable the huge inset so it's workable */ |
| 19 |
.block-editor-block-list__block .bkps-bg { |
| 20 |
inset: 0; |
| 21 |
} |
| 22 |
|
| 23 |
.bkps-overlay { |
| 24 |
position: absolute; |
| 25 |
inset: 0; |
| 26 |
pointer-events: none; |
| 27 |
z-index: 1; |
| 28 |
} |
| 29 |
|
| 30 |
.bkps-content { |
| 31 |
position: relative; |
| 32 |
z-index: 2; |
| 33 |
display: flex; |
| 34 |
flex-direction: column; |
| 35 |
} |
| 36 |
|
| 37 |
/* inner blocks inherit text color */ |
| 38 |
.bkps-content, |
| 39 |
.bkps-content p, |
| 40 |
.bkps-content h1, |
| 41 |
.bkps-content h2, |
| 42 |
.bkps-content h3, |
| 43 |
.bkps-content h4, |
| 44 |
.bkps-content h5, |
| 45 |
.bkps-content h6 { |
| 46 |
color: inherit; |
| 47 |
} |
| 48 |
|
| 49 |
@media (prefers-reduced-motion: reduce) { |
| 50 |
.bkps-bg { |
| 51 |
will-change: auto !important; |
| 52 |
transform: none !important; |
| 53 |
inset: 0 !important; |
| 54 |
} |
| 55 |
} |
| 56 |
|