Skip to content

Commit

Permalink
more customizations
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Jul 10, 2023
1 parent 6dc75f4 commit ff246f6
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions docs/src/components/banner/TableOfContentsBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,43 @@ export default function TableOfContentsBanner() {
target="_blank"
sx={[
(theme) => ({
mb: 3,
mb: 2,
mx: 0.5,
p: 1,
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-start',
alignItems: 'center',
gap: 1.5,
overflow: 'auto',
backgroundColor: alpha(theme.palette.grey[50], 0.4),
border: '1px solid',
borderColor: (theme.vars || theme).palette.grey[200],
borderColor: (theme.vars || theme).palette.divider,
borderRadius: 1,
transitionProperty: 'all',
transitionTiming: 'cubic-bezier(0.4, 0, 0.2, 1)',
transitionDuration: '150ms',
'&:hover, &:focus-visible': {
backgroundColor: (theme.vars || theme).palette.primary[50],
borderColor: (theme.vars || theme).palette.primary[200],
},
}),
(theme) =>
theme.applyDarkStyles({
backgroundColor: alpha(theme.palette.primary[900], 0.2),
borderColor: (theme.vars || theme).palette.primaryDark[700],
borderColor: (theme.vars || theme).palette.divider,
'&:hover, &:focus-visible': {
backgroundColor: alpha(theme.palette.primary[900], 0.4),
borderColor: (theme.vars || theme).palette.primaryDark[500],
},
}),
]}
>
<Box sx={{ width: '100%' }}>
<Box sx={{ height: 5 + 1, backgroundColor: '#0057b7' }} />
<Box sx={{ height: 5, backgroundColor: '#ffd700' }} />
</Box>
<Box sx={{ p: 1 }}>
<Typography component="span" variant="caption" fontWeight="normal" color="text.secondary">
MUI stands in solidarity with the Ukrainian people.
</Typography>
<Box sx={{ borderRadius: '3px', overflow: 'auto', width: 'fit-content', flexShrink: 0 }}>
<Box sx={{ height: 6, width: 16, backgroundColor: '#0057B7' }} />
<Box sx={{ height: 6, width: 16, backgroundColor: '#FFD700' }} />
</Box>
<Typography component="span" variant="caption" fontWeight="medium" color="text.secondary">
MUI stands in solidarity with the Ukrainian people.
</Typography>
</Link>
) : null;
}

0 comments on commit ff246f6

Please sign in to comment.