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.

37 lines 1.33 kB
import { Tab as MuiTab, Tabs as MuiTabs, styled, tabClasses, tabsClasses, } from '@mui/material'; export const Tabs = styled(MuiTabs)(({ theme }) => ({ flex: 1, [`.${tabsClasses.indicator}`]: { top: theme.spacing(0.5), left: theme.spacing(0.5), height: `calc(100% - ${theme.spacing(1)})`, width: `calc(100% - ${theme.spacing(1)})`, }, [`.${tabsClasses.fixed}`]: { padding: theme.spacing(0.5), }, })); export const CardTabs = styled(Tabs)(({ theme }) => ({ backgroundColor: `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.04)`, [`.${tabsClasses.indicator}`]: { backgroundColor: theme.vars.palette.background.paper, }, ...theme.applyStyles('dark', { backgroundColor: `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.08)`, [`.${tabsClasses.indicator}`]: { backgroundColor: `rgba(${theme.vars.palette.common.backgroundChannel} / 0.56)`, }, }), })); export const Tab = styled(MuiTab)(({ theme }) => ({ zIndex: 1, flex: 1, textTransform: 'none', fontSize: '1rem', fontWeight: 700, color: theme.vars.palette.common.onBackground, [`&.${tabClasses.selected}`]: { color: theme.vars.palette.common.onBackground, }, })); //# sourceMappingURL=Tabs.style.js.map