-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: additional theme refinements (#200)
- Loading branch information
Showing
33 changed files
with
219 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* Avatar mask for 16px badge | ||
*/ | ||
export const avatarMask16 = | ||
'radial-gradient(circle 10.5px at calc(100% - 5.5px) calc(100% - 5.5px), #fff0 96%, #fff) 100% 100% / 100% 100% no-repeat'; | ||
|
||
/** | ||
* Avatar mask for 12px badge | ||
*/ | ||
export const avatarMask12 = | ||
'radial-gradient(circle 8.5px at calc(100% - 3.5px) calc(100% - 3.5px), #fff0 96%, #fff) 100% 100%/100% 100% no-repeat'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { LoadingButton, loadingButtonClasses } from '@mui/lab'; | ||
import { styled } from '@mui/material'; | ||
import { getContrastAlphaColor } from '../utils/colors.js'; | ||
|
||
export const ButtonTertiary = styled(LoadingButton)(({ theme }) => ({ | ||
color: theme.palette.text.primary, | ||
height: 40, | ||
fontSize: 14, | ||
backgroundColor: getContrastAlphaColor(theme, 0.04), | ||
'&:hover, &:active': { | ||
backgroundColor: getContrastAlphaColor(theme, 0.08), | ||
}, | ||
[`&.${loadingButtonClasses.loading}:disabled`]: { | ||
backgroundColor: getContrastAlphaColor(theme, 0.04), | ||
}, | ||
[`.${loadingButtonClasses.loadingIndicator}`]: { | ||
color: theme.palette.text.primary, | ||
}, | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
import { IconButton as MuiIconButton, alpha, styled } from '@mui/material'; | ||
import { IconButton as MuiIconButton, styled } from '@mui/material'; | ||
import { getContrastAlphaColor } from '../../utils/colors.js'; | ||
|
||
export const CardIconButton = styled(MuiIconButton)(({ theme }) => { | ||
const backgroundColor = | ||
theme.palette.mode === 'light' | ||
? theme.palette.common.black | ||
: theme.palette.common.white; | ||
return { | ||
padding: theme.spacing(0.5), | ||
backgroundColor: alpha(backgroundColor, 0.04), | ||
backgroundColor: getContrastAlphaColor(theme, 0.04), | ||
'&:hover': { | ||
backgroundColor: alpha(backgroundColor, 0.08), | ||
backgroundColor: getContrastAlphaColor(theme, 0.08), | ||
}, | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.