Update hover effect using more of Material-UI color pallete (#29)
This commit is contained in:
@@ -46,12 +46,12 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
card: {
|
card: {
|
||||||
margin: '10px',
|
margin: '10px',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
backgroundColor: 'rgba(255, 255, 255, 0.2)',
|
backgroundColor: theme.palette.action.hover,
|
||||||
transition: 'background-color 0ms ease',
|
transition: 'background-color 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',
|
||||||
},
|
},
|
||||||
'&:active': {
|
'&:active': {
|
||||||
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
backgroundColor: theme.palette.action.selected,
|
||||||
transition: 'background-color 100ms ease-out',
|
transition: 'background-color 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -41,6 +41,14 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
},
|
},
|
||||||
card: {
|
card: {
|
||||||
margin: '10px',
|
margin: '10px',
|
||||||
|
'&:hover': {
|
||||||
|
backgroundColor: theme.palette.action.hover,
|
||||||
|
transition: 'background-color 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',
|
||||||
|
},
|
||||||
|
'&:active': {
|
||||||
|
backgroundColor: theme.palette.action.selected,
|
||||||
|
transition: 'background-color 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@@ -46,12 +46,12 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
card: {
|
card: {
|
||||||
margin: '10px',
|
margin: '10px',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
backgroundColor: 'rgba(255, 255, 255, 0.2)',
|
backgroundColor: theme.palette.action.hover,
|
||||||
transition: 'background-color 0ms ease',
|
transition: 'background-color 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',
|
||||||
},
|
},
|
||||||
'&:active': {
|
'&:active': {
|
||||||
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
backgroundColor: theme.palette.action.selected,
|
||||||
transition: 'background-color 100ms ease-out',
|
transition: 'background-color 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -46,12 +46,12 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
card: {
|
card: {
|
||||||
margin: '10px',
|
margin: '10px',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
backgroundColor: 'rgba(255, 255, 255, 0.2)',
|
backgroundColor: theme.palette.action.hover,
|
||||||
transition: 'background-color 0ms ease',
|
transition: 'background-color 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',
|
||||||
},
|
},
|
||||||
'&:active': {
|
'&:active': {
|
||||||
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
backgroundColor: theme.palette.action.selected,
|
||||||
transition: 'background-color 100ms ease-out',
|
transition: 'background-color 100ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
showMobile: {
|
showMobile: {
|
||||||
|
|||||||
Reference in New Issue
Block a user