Skip to content

Commit

Permalink
[docs] Small color tweaks to the docs search bar (#36160)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal authored Feb 15, 2023
1 parent af5b3f5 commit 10761a8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/src/modules/components/AppSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const SearchButton = styled('button')(({ theme }) => [
display: 'flex',
alignItems: 'center',
margin: 0,
paddingLeft: theme.spacing(1),
paddingLeft: theme.spacing(0.6),
[theme.breakpoints.only('xs')]: {
backgroundColor: 'transparent',
padding: 0,
Expand All @@ -38,7 +38,7 @@ const SearchButton = styled('button')(({ theme }) => [
},
},
[theme.breakpoints.up('sm')]: {
minWidth: 200,
minWidth: 150,
},
fontFamily: theme.typography.fontFamily,
position: 'relative',
Expand All @@ -51,15 +51,15 @@ const SearchButton = styled('button')(({ theme }) => [
transitionProperty: 'all',
transitionDuration: '150ms',
'&:hover': {
background: alpha(theme.palette.grey[100], 0.7),
background: (theme.vars || theme).palette.grey[100],
borderColor: (theme.vars || theme).palette.grey[300],
},
},
theme.applyDarkStyles({
backgroundColor: (theme.vars || theme).palette.primaryDark[900],
backgroundColor: alpha(theme.palette.primaryDark[700], 0.4),
borderColor: (theme.vars || theme).palette.primaryDark[700],
'&:hover': {
background: alpha(theme.palette.primaryDark[700], 0.4),
background: (theme.vars || theme).palette.primaryDark[700],
borderColor: (theme.vars || theme).palette.primaryDark[600],
},
}),
Expand All @@ -80,10 +80,10 @@ const Shortcut = styled('div')(({ theme }) => {
marginLeft: theme.spacing(0.5),
border: `1px solid ${(theme.vars || theme).palette.grey[200]}`,
backgroundColor: '#FFF',
padding: theme.spacing(0, 0.8),
borderRadius: 5,
padding: theme.spacing(0, 0.5),
borderRadius: 7,
...theme.applyDarkStyles({
borderColor: (theme.vars || theme).palette.primaryDark[500],
borderColor: (theme.vars || theme).palette.primaryDark[600],
backgroundColor: (theme.vars || theme).palette.primaryDark[800],
}),
};
Expand Down

0 comments on commit 10761a8

Please sign in to comment.