Navbar ::after extends its --b3 background into the scrollbar gutter
This commit is contained in:
@@ -8,6 +8,8 @@
|
|||||||
<script src="https://unpkg.com/htmx.org@2/dist/htmx.min.js"></script>
|
<script src="https://unpkg.com/htmx.org@2/dist/htmx.min.js"></script>
|
||||||
<style>
|
<style>
|
||||||
html { scrollbar-gutter: stable; }
|
html { scrollbar-gutter: stable; }
|
||||||
|
.navbar { position: relative; }
|
||||||
|
.navbar::after { content: ''; position: absolute; right: calc(-1 * (100vw - 100%)); top: 0; width: calc(100vw - 100%); height: 100%; background: var(--fallback-b3, oklch(var(--b3)/1)); pointer-events: none; }
|
||||||
#search-wrapper { position: relative; width: 100%; }
|
#search-wrapper { position: relative; width: 100%; }
|
||||||
#search-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; }
|
#search-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; }
|
||||||
main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }
|
main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }
|
||||||
|
|||||||
Reference in New Issue
Block a user