Skip to content

Commit

Permalink
implemented the sticky header
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeriaMaltseva committed Jan 31, 2025
1 parent 301f634 commit be80b09
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,21 @@ import { createStyles } from 'antd-style'
export const useStyles = createStyles(({ token, css }) => {
return {
headerContainer: css`
position: sticky;
top: 0;
width: 100%;
z-index: 2;
&::before {
content: '';
position: absolute;
top: -15px;
bottom: 0;
width: 100%;
height: 20px;
background-color: #fff;
z-index: -1;
}
`,

headerItem: css`
Expand Down

0 comments on commit be80b09

Please sign in to comment.