html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; } .bgimage { position: fixed; top: 0; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; z-index: 0; img { opacity: 0.4; } } $nanotrasen: #384e68; #app { height: 100%; display: grid; background: linear-gradient( to bottom, darken($nanotrasen, 20%), darken($nanotrasen, 10%) ); background-size: 100% 100%; background-attachment: fixed; color: #fff; font-family: "Iosevka Aile Web", sans-serif; font-size: 9pt; line-height: 1.6em; grid-template-rows: 40px 1fr; } #tabs { grid-row: 2; padding: 10pt; overflow-y: scroll; z-index: 1; .page { a[href] { color: white; } #toctitle, h1, h2, h3 { position: sticky; top: -10pt; background: $nanotrasen; padding: 5px 10px; z-index: 999; } #toctitle h2 { margin: 0; } .mw-headline { display: flex; align-items: center; } } } #tablist { grid-row: 1; }