.negative > * { position: relative; visibility: hidden; background-color: var(--background); border-radius: var(--radius); padding: 0 12px; margin: 12px 0; } .negative > *:after { visibility: visible; content: ""; background-color: rgba(0, 0, 0, 0.05); position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: var(--radius); } .negative > p { display: inline-block; } h1, h2, h3 { visibility: visible; display: table; }