Skip to content

Commit

Permalink
stray fine-tunes throughout the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Apr 2, 2024
1 parent 8287dcb commit ef2d41e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 16 deletions.
3 changes: 1 addition & 2 deletions docs/src/components/banner/TableOfContentsBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ export default function TableOfContentsBanner() {
(theme) =>
theme.applyDarkStyles({
backgroundColor: alpha(theme.palette.primary[900], 0.2),
borderColor: (theme.vars || theme).palette.divider,
'&:hover, &:focus-visible': {
backgroundColor: alpha(theme.palette.primary[900], 0.4),
borderColor: (theme.vars || theme).palette.primaryDark[500],
borderColor: (theme.vars || theme).palette.primary[900],
},
}),
]}
Expand Down
5 changes: 2 additions & 3 deletions docs/src/modules/components/AppFrame.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,12 @@ const StyledAppBar = styled(AppBar, {
boxShadow: 'none',
backdropFilter: 'blur(8px)',
borderStyle: 'solid',
borderColor: (theme.vars || theme).palette.grey[100],
borderColor: (theme.vars || theme).palette.divider,
borderWidth: 0,
borderBottomWidth: 'thin',
backgroundColor: 'rgba(255,255,255,0.8)',
color: (theme.vars || theme).palette.grey[800],
...theme.applyDarkStyles({
borderColor: alpha(theme.palette.primary[100], 0.08),
backgroundColor: alpha(theme.palette.primaryDark[900], 0.8),
color: (theme.vars || theme).palette.grey[500],
}),
Expand Down Expand Up @@ -205,7 +204,7 @@ export default function AppFrame(props) {
</Box>
</NextLink>
<GrowingDiv />
<Stack direction="row" spacing="10px">
<Stack direction="row" spacing={1} useFlexGap>
<BannerComponent />
<DeferredAppSearch />
<Tooltip title={t('appFrame.github')} enterDelay={300}>
Expand Down
9 changes: 2 additions & 7 deletions docs/src/modules/components/AppSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ const SearchButton = styled('button')(({ theme }) => [
cursor: 'pointer',
transitionProperty: 'all',
transitionDuration: '150ms',
boxShadow: `inset 0 -1px 0 ${(theme.vars || theme).palette.grey[100]}, 0 1px 0.5px ${alpha(
theme.palette.grey[100],
0.6,
)}`,
boxShadow: `hsl(200, 0%, 100%) 0 2px 0 inset, ${alpha(theme.palette.grey[100], 0.5)} 0 -1.5px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
'&:hover': {
background: (theme.vars || theme).palette.grey[100],
borderColor: (theme.vars || theme).palette.grey[300],
Expand All @@ -70,9 +67,7 @@ const SearchButton = styled('button')(({ theme }) => [
theme.applyDarkStyles({
backgroundColor: alpha(theme.palette.primaryDark[700], 0.4),
borderColor: (theme.vars || theme).palette.primaryDark[700],
boxShadow: `inset 0 -1px 1px ${(theme.vars || theme).palette.primaryDark[900]}, 0 1px 0.5px ${
(theme.vars || theme).palette.common.black
}`,
boxShadow: `${alpha(theme.palette.primaryDark[600], 0.1)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
'&:hover': {
background: (theme.vars || theme).palette.primaryDark[700],
borderColor: (theme.vars || theme).palette.primaryDark[600],
Expand Down
6 changes: 3 additions & 3 deletions docs/src/modules/components/DiamondSponsors.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const NativeLink = styled('a')(({ theme }) => ({
border: '1px solid',
borderColor: (theme.vars || theme).palette.divider,
transition: theme.transitions.create(['color', 'border-color']),
boxShadow: `${alpha(theme.palette.grey[50], 0.5)} 0 1px 0 inset, ${alpha(theme.palette.grey[100], 0.3)} 0 -2px 0 inset, ${alpha(theme.palette.grey[200], 0.5)} 0 1px 2px 0`,
boxShadow: `${alpha(theme.palette.grey[100], 0.3)} 0 -2px 0 inset`,
'&:hover': {
backgroundColor: (theme.vars || theme).palette.grey[50],
},
Expand All @@ -29,10 +29,10 @@ const NativeLink = styled('a')(({ theme }) => ({
display: 'inline-block',
},
...theme.applyDarkStyles({
boxShadow: `${alpha(theme.palette.primaryDark[600], 0.15)} 0 1px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 1px 2px 0`,
boxShadow: `${alpha(theme.palette.primaryDark[600], 0.1)} 0 2px 0 inset, ${(theme.vars || theme).palette.common.black} 0 -2px 0 inset`,
'&:hover': {
backgroundColor: (theme.vars || theme).palette.primaryDark[800],
borderColor: (theme.vars || theme).palette.primaryDark[600],
borderColor: (theme.vars || theme).palette.primary[900],
},
}),
}));
Expand Down
1 change: 1 addition & 0 deletions docs/src/modules/components/EditPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default function EditPage(props) {
component="a"
size="small"
variant="outlined"
color="secondary"
startIcon={<GitHubIcon sx={{ mr: 0.5 }} />}
href={
userLanguage === 'en'
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-docs/src/InfoCard/InfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function InfoCard(props: InfoCardProps) {
height: '100%',
background: `${(theme.vars || theme).palette.gradients.linearSubtle}`,
...theme.applyDarkStyles({
bgcolor: 'primaryDark.900',
bgcolor: alpha(theme.palette.primaryDark[800], 0.25),
background: `${(theme.vars || theme).palette.gradients.linearSubtle}`,
borderColor: 'primaryDark.700',
}),
Expand Down

0 comments on commit ef2d41e

Please sign in to comment.