UNPKG

@lifi/widget

Version:

LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.

36 lines (35 loc) 1.02 kB
import { Box, ScopedCssBaseline } from '@mui/material'; import { styled } from '@mui/material/styles'; import { maxHeight } from '../AppContainer'; export const CollapseContainer = styled(Box)(({ theme }) => ({ height: maxHeight, zIndex: 0, })); export const ScrollableContainer = styled(Box)({ overflowY: 'auto', height: '100%', width: '100%', flex: 1, display: 'flex', flexDirection: 'column', }); export const Container = styled(ScopedCssBaseline)(({ theme }) => ({ backgroundColor: theme.palette.background.default, overflow: 'auto', width: 436, maxHeight, marginLeft: theme.spacing(3), display: 'flex', flexDirection: 'column', })); export const Header = styled(Box)(({ theme }) => ({ backgroundColor: theme.palette.background.default, backdropFilter: 'blur(12px)', display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: theme.spacing(1.5, 3), position: 'sticky', top: 0, zIndex: 1200, }));