Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 52 additions & 2 deletions core/src/components/header/header.ionic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,59 @@ ion-toolbar + ion-toolbar {

position: absolute;

backdrop-filter: saturate(180%) blur(globals.$ion-scale-100);
pointer-events: none;
}

.header-translucent-ionic .header-background-blur,
.header-translucent-ionic .header-background-blur-layer {
@include globals.position(0, 0, 0, 0);

position: absolute;
}

.header-translucent-ionic .header-background-blur-layer:nth-child(1) {
backdrop-filter: blur(globals.$ion-scale-025);

mask-image: linear-gradient(to bottom, #000 82.64%, transparent 91%);
}

.header-translucent-ionic .header-background-blur-layer:nth-child(2) {
backdrop-filter: blur(globals.$ion-scale-050);

mask-image: linear-gradient(to bottom, #000 74.29%, transparent 82.64%);
}

.header-translucent-ionic .header-background-blur-layer:nth-child(3) {
backdrop-filter: blur(globals.$ion-scale-100);

mask-image: linear-gradient(to bottom, #000 65.93%, transparent 74.29%);
}

.header-translucent-ionic .header-background-blur-layer:nth-child(4) {
backdrop-filter: blur(globals.$ion-scale-200);

mask-image: linear-gradient(to bottom, #000 57.57%, transparent 65.93%);
}

.header-translucent-ionic .header-background-blur-layer:nth-child(5) {
backdrop-filter: blur(globals.$ion-scale-400);

mask-image: linear-gradient(to bottom, #000 49.21%, transparent 57.57%);
}

.header-translucent-ionic .header-background-blur-layer:nth-child(6) {
backdrop-filter: blur(globals.$ion-scale-800);

mask-image: linear-gradient(to bottom, #000 40.86%, transparent 49.21%);
}

.header-translucent-ionic .header-background-blur-layer:nth-child(7) {
backdrop-filter: blur(globals.$ion-scale-1600);

mask-image: linear-gradient(to bottom, #000 32.5%, transparent 40.86%);
}

.header-translucent-ionic ion-toolbar {
--opacity: 0.7;
--background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}
}
16 changes: 15 additions & 1 deletion core/src/components/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,21 @@ export class Header implements ComponentInterface {
}}
{...inheritedAttributes}
>
{theme !== 'md' && translucent && <div class="header-background"></div>}
{theme !== 'md' && translucent && (
<div class="header-background">
{theme === 'ionic' && (
<div class="header-background-blur" aria-hidden="true">
<div class="header-background-blur-layer"></div>
<div class="header-background-blur-layer"></div>
<div class="header-background-blur-layer"></div>
<div class="header-background-blur-layer"></div>
<div class="header-background-blur-layer"></div>
<div class="header-background-blur-layer"></div>
<div class="header-background-blur-layer"></div>
</div>
)}
</div>
)}
<slot></slot>
</Host>
);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading