Skip to content

Commit

Permalink
docs: add notTopArrived transition
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter committed Aug 26, 2024
1 parent 6044d2e commit b2976be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/theme/components/Landingpage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ const LandingPage = () => {
:root:not(.dark) {
--rp-c-bg: #fff;
}
.rspress-nav {
transition: background 0.4s;
}
body:not(.notTopArrived) .rspress-nav {
background: transparent !important;
transition: background 0.2s;
}
`}
</style>
Expand Down

0 comments on commit b2976be

Please sign in to comment.