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