mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 08:38:37 +00:00
feat: dynamically calculate header translucency and clamp minimum opacity
This commit is contained in:
@@ -31,8 +31,10 @@ const Header = styled.div<Props>`
|
||||
align-items: center;
|
||||
background-size: cover !important;
|
||||
background-position: center !important;
|
||||
//background-color: var(--primary-header);
|
||||
background-color: rgba(54, 54, 54, 0.75);
|
||||
background-color: rgba(
|
||||
var(--primary-header-rgb),
|
||||
max(var(--min-opacity), 0.75)
|
||||
);
|
||||
backdrop-filter: blur(10px);
|
||||
z-index: 20;
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user