We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4df5acc commit df2eebfCopy full SHA for df2eebf
src/background-image/index.tsx
@@ -47,9 +47,8 @@ export const BackgroundImage: FC<BackgroundProps> = ({
47
<>
48
{/* For transparent navbar, overrides css only in homepage, and unmounted in other pages */}
49
<style>
50
- {
51
- ':root {--rp-c-bg: #0b0c0e;}:root:not(.dark) {--rp-c-bg: #fff;}.rspress-nav {transition: background 0.4s;}body:not(.notTopArrived) .rspress-nav {background: transparent !important;}'
52
- }
+ {'body:not(.notTopArrived) .rp-nav {background: transparent !important; border-bottom: none !important;}' +
+ '.rp-nav {background: color-mix(in srgb,var(--rp-c-bg) 60%,transparent);backdrop-filter: blur(25px);-webkit-backdrop-filter: blur(25px);}'}
53
</style>
54
<img
55
className={styles.background}
0 commit comments