feat(Navbar): apply sticky style to the main navbar
This commit is contained in:
parent
544815e4d2
commit
9f15e40d6e
5 changed files with 32 additions and 10 deletions
|
|
@ -26,7 +26,7 @@ const { title } = Astro.props;
|
|||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gardevoir" />
|
||||
</head>
|
||||
<body transition:animate="fade">
|
||||
<header>
|
||||
<header class="position-sticky py-1 py-lg-3">
|
||||
<Navbar />
|
||||
</header>
|
||||
<main>
|
||||
|
|
@ -35,13 +35,12 @@ const { title } = Astro.props;
|
|||
</div>
|
||||
<slot />
|
||||
</main>
|
||||
<style>
|
||||
header > :global(*) {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
body > main {
|
||||
position: relative;
|
||||
<style lang="scss">
|
||||
body {
|
||||
header {
|
||||
background-color: var(--prj-bg);
|
||||
border-radius: 0 0 var(--prj-border-radius) var(--prj-border-radius);
|
||||
}
|
||||
}
|
||||
|
||||
/* Position spinner in the center of the screen instead of the center of it's parent */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue