Skip to content

Commit 65d588c

Browse files
committed
fixup! ✨(frontend) add floating bar with collapse button
1 parent 96ee093 commit 65d588c

File tree

1 file changed

+21
-3
lines changed
  • src/frontend/apps/impress/src/features/docs/doc-header/floating-bar/components

1 file changed

+21
-3
lines changed

src/frontend/apps/impress/src/features/docs/doc-header/floating-bar/components/FloatingBar.tsx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,27 @@ export const FloatingBar = () => {
3636
display: flex;
3737
align-items: flex-start;
3838
justify-content: flex-start;
39-
background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
40-
backdrop-filter: blur(1px);
41-
-webkit-backdrop-filter: blur(1px);
39+
isolation: isolate;
40+
41+
&::before {
42+
content: '';
43+
position: absolute;
44+
inset: 0;
45+
z-index: -1;
46+
background: linear-gradient(
47+
180deg,
48+
#fff 0%,
49+
rgba(255, 255, 255, 0) 100%
50+
);
51+
backdrop-filter: blur(1px);
52+
-webkit-backdrop-filter: blur(1px);
53+
mask-image: linear-gradient(180deg, black 0%, transparent 100%);
54+
-webkit-mask-image: linear-gradient(
55+
180deg,
56+
black 50%,
57+
transparent 100%
58+
);
59+
}
4260
4361
> * {
4462
position: relative;

0 commit comments

Comments
 (0)