-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: top fade scroll on wallet desktop options (#195)
* feat: top fade scroll on wallet desktop options * fix: auto scrollbar
- Loading branch information
1 parent
3c89a79
commit 0069f45
Showing
3 changed files
with
88 additions
and
62 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
packages/rainbowkit/src/components/ConnectOptions/DesktopOptions.css.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,32 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
import { sprinkles, themeVars } from '../../css/sprinkles.css'; | ||
|
||
export const QRCodeBackgroundClassName = style([ | ||
{ | ||
background: 'white', | ||
}, | ||
]); | ||
|
||
export const FadeScrollClassName = style([ | ||
sprinkles({ | ||
paddingX: '18', | ||
}), | ||
{ | ||
maxHeight: 464, | ||
overflowY: 'auto', | ||
selectors: { | ||
'&:before': { | ||
background: `linear-gradient(to bottom, ${themeVars.colors.modalBackground} 60%, rgba(255, 255, 255, 0) 100%)`, | ||
content: "''", | ||
display: 'block', | ||
height: '24px', | ||
marginBottom: -14, | ||
marginLeft: -6, | ||
marginRight: -6, | ||
position: 'sticky', | ||
top: '0', | ||
zIndex: 1, | ||
}, | ||
}, | ||
}, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0069f45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
rainbowkit-site – ./
rainbowkit.vercel.app
rainbowkit-site-rainbowdotme.vercel.app
rainbowkit-site-git-main-rainbowdotme.vercel.app
0069f45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
rainbowkit-example – ./
rainbowkit-example.vercel.app
rainbowkit-example-rainbowdotme.vercel.app
rainbowkit-example-git-main-rainbowdotme.vercel.app