Skip to content

Commit 5008e81

Browse files
committed
feat(blog): refine background and card styling
1 parent cee61af commit 5008e81

5 files changed

Lines changed: 9 additions & 11 deletions

File tree

src/background-image/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const BackgroundImage: FC<BackgroundProps> = ({
4747
<>
4848
{/* For transparent navbar, overrides css only in homepage, and unmounted in other pages */}
4949
<style>
50-
{'body:not(.notTopArrived) .rp-nav {background: transparent !important; border-bottom: none !important;}' +
50+
{'body:not(.notTopArrived) .rp-nav {background: transparent !important; border-bottom: 1px solid transparent !important;}' +
5151
'.rp-nav {background: color-mix(in srgb,var(--rp-c-bg) 60%,transparent);backdrop-filter: blur(25px);-webkit-backdrop-filter: blur(25px);}'}
5252
</style>
5353
<img
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ export function MeteorsBackground({
292292
width: '100%',
293293
height: '65vh',
294294
zIndex: -1,
295+
filter: 'blur(.5px)',
296+
opacity: 0.8,
295297
}}
296298
/>
297299
);

src/blog-background/index.module.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,5 @@
2626
inset: 0;
2727
background: var(--rs-blog-list-frame-bg);
2828
background-size: 1200px;
29-
opacity: 0.45;
30-
}
31-
32-
:global(.dark) .blogFrame {
33-
opacity: 0.35;
29+
opacity: 0.15;
3430
}

src/blog-background/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { MeteorsBackground } from '../blog-list/MeteorsBackground';
1+
import { MeteorsBackground } from './MeteorsBackground';
22
import styles from './index.module.scss';
33

44
export type BlogBackgroundProps = {

src/blog-list/index.module.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
--rs-blog-list-desc-color: var(--rp-c-text-2);
66
--rs-blog-list-card-bg:
77
radial-gradient(94.38% 84.84% at 0% 2.15%, #ffffff29 0%, #fff0 100%),
8-
#ffffff80;
9-
--rs-blog-list-card-border: 1px solid #11111314;
8+
#ffffff9c;
9+
--rs-blog-list-card-border: 1px solid #0e0e0f16;
1010
}
1111

1212
html.dark {
1313
--rs-blog-list-title-color: var(--rp-c-text-0);
1414
--rs-blog-list-desc-color: var(--rp-c-text-2);
15-
--rs-blog-list-card-bg: #ffffff08;
16-
--rs-blog-list-card-border: 1px solid #ffffff0f;
15+
--rs-blog-list-card-bg: #ffffff0d;
16+
--rs-blog-list-card-border: 1px solid #ffffff12;
1717
}
1818
}
1919

0 commit comments

Comments
 (0)