Skip to content

Commit

Permalink
minor change, remove hover effect, only focus effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Huy Nguyen committed Apr 20, 2021
1 parent d5785de commit f013330
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions src/web/src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,6 @@ const useStyles = makeStyles((theme: Theme) =>
padding: theme.spacing(2, 2, 0, 2),
marginBottom: theme.spacing(10),
},
card: {
padding: theme.spacing(0, 0, 0, 2),
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
borderRadius: '50px',
background: theme.palette.background.paper,
border: 'solid 1px transparent',
transition: 'background-color .5s',
'&:hover': {
backgroundColor: theme.palette.type === 'light' ? '#ffffff' : '#000000',
border: 'solid 1px #999999',
},
[theme.breakpoints.down('xs')]: {
borderRadius: '15px',
padding: theme.spacing(0, 0, 0, 2),
},
},
input: {
fontSize: '1.8rem',
width: '100%',
Expand All @@ -44,12 +26,12 @@ const useStyles = makeStyles((theme: Theme) =>
background: '#EEEEEE',
position: 'absolute',
transition: 'border .2s',
'&:hover, &:focus': {
border: 'solid 1px #999999',
'&:focus': {
boxShadow: '0 0 5px 2px #CCCCCC',
},
},
iconButton: {
backgroundColor: '#EEEEEE',
backgroundColor: 'transparent',
color: '#999999',
'&:hover': {
backgroundColor: '#EEEEEE',
Expand All @@ -65,7 +47,7 @@ const useStyles = makeStyles((theme: Theme) =>
clearIcon: {
color: '#999999',
'&:hover': {
backgroundColor: '#EEEEEE',
backgroundColor: 'transparent',
},
'& * > .MuiSvgIcon-root': {
fontSize: '3rem',
Expand Down

0 comments on commit f013330

Please sign in to comment.