mirror of
https://github.com/Gioni06/terminal.css
synced 2025-03-09 17:19:04 -04:00
make aside menu sticky
This commit is contained in:
parent
c05f5dd642
commit
2923b48feb
@ -1,4 +1,5 @@
|
|||||||
<aside id="menu">
|
<div>
|
||||||
|
<aside id="menu">
|
||||||
<h2>Components</h2>
|
<h2>Components</h2>
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
@ -34,4 +35,5 @@
|
|||||||
<li><a href="#DocTypography">Typography</a></li>
|
<li><a href="#DocTypography">Typography</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</aside>
|
</aside>
|
||||||
|
</div>
|
||||||
|
@ -102,5 +102,10 @@
|
|||||||
.components-grid {
|
.components-grid {
|
||||||
grid-template-columns: 3fr 9fr;
|
grid-template-columns: 3fr 9fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.components-grid aside {
|
||||||
|
position: sticky;
|
||||||
|
top: calc(var(--global-space) * 2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user