Skip to content

Commit

Permalink
change header bg styles
Browse files Browse the repository at this point in the history
  • Loading branch information
renemennab committed Jul 10, 2024
1 parent 565c4a3 commit 735c665
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ export function PageHeader({
}

const BackdropSC = styled.div(({ theme }) => {
const backdropFilter = `blur(7.5px) url(#${DARKEN_FILTER_ID})`
const basicBackdropFilter = `blur(7.5px)`
const backdropFilter = `blur(24px)`
const basicBackdropFilter = `blur(24px)`

return {
position: 'absolute',
Expand All @@ -138,7 +138,7 @@ const BackdropSC = styled.div(({ theme }) => {
'&.show': {
transform: 'translateY(var(--top-nav-banner-height))',
},
backgroundColor: `${chroma(theme.colors['fill-zero']).alpha(0.83)}`,
backgroundColor: `rgba(14, 16, 21, 0.75)`,
// Use basic filter on Safari (doesn't support svg filters)
[`@supports (-webkit-backdrop-filter: ${basicBackdropFilter})`]: {
'-webkitBackdropFilter': basicBackdropFilter,
Expand All @@ -147,7 +147,6 @@ const BackdropSC = styled.div(({ theme }) => {
// Only tested on Chrome
[`@supports (backdrop-filter: ${backdropFilter})`]: {
backdropFilter,
backgroundColor: 'transparent',
},
// Downgrade Firefox to basic filter because its feColorMatrix rendering is ugly
[`@-moz-document url-prefix()`]: {
Expand Down

0 comments on commit 735c665

Please sign in to comment.