Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor/make styles batch 6 part 2 (#2811)
Adds another batch of refactored components
- Loading branch information
1 parent
b631618
commit 093156f
Showing
15 changed files
with
272 additions
and
328 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
32 changes: 0 additions & 32 deletions
32
...t/StrategyItem/StrategyExecution/PlaygroundParameterItem/PlaygroundParametertem.styles.ts
This file was deleted.
Oops, something went wrong.
142 changes: 84 additions & 58 deletions
142
frontend/src/component/project/Project/Project.styles.ts
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,61 +1,87 @@ | ||
import { makeStyles } from 'tss-react/mui'; | ||
|
||
export const useStyles = makeStyles()(theme => ({ | ||
containerStyles: { | ||
display: 'flex', | ||
[theme.breakpoints.down('md')]: { | ||
flexDirection: 'column', | ||
}, | ||
}, | ||
projectToggles: { | ||
width: '100%', | ||
minWidth: 0, | ||
}, | ||
header: { | ||
backgroundColor: theme.palette.background.paper, | ||
borderRadius: theme.shape.borderRadiusLarge, | ||
marginBottom: '1rem', | ||
}, | ||
innerContainer: { | ||
padding: '1.25rem 2rem', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'start', | ||
}, | ||
separator: { | ||
width: '100%', | ||
backgroundColor: theme.palette.grey[200], | ||
height: '1px', | ||
}, | ||
tabContainer: { | ||
padding: '0 2rem', | ||
}, | ||
tabButton: { | ||
textTransform: 'none', | ||
fontSize: '1rem', | ||
flexGrow: 1, | ||
flexBasis: 0, | ||
[theme.breakpoints.down('md')]: { | ||
paddingLeft: theme.spacing(1), | ||
paddingRight: theme.spacing(1), | ||
}, | ||
[theme.breakpoints.up('md')]: { | ||
minWidth: 160, | ||
}, | ||
}, | ||
title: { | ||
margin: 0, | ||
width: '100%', | ||
fontSize: theme.fontSizes.mainHeader, | ||
fontWeight: 'bold', | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
gap: '1rem', | ||
import { styled, Tab } from '@mui/material'; | ||
import { FavoriteIconButton } from 'component/common/FavoriteIconButton/FavoriteIconButton'; | ||
|
||
export const StyledDiv = styled('div')(() => ({ | ||
display: 'flex', | ||
})); | ||
|
||
export const StyledTopRow = styled('div')(() => ({ | ||
display: 'flex', | ||
flexDirection: 'row', | ||
justifyContent: 'space-between', | ||
width: '100%', | ||
})); | ||
|
||
export const StyledColumn = styled('div')(() => ({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
})); | ||
|
||
export const StyledName = styled('div')(() => ({ | ||
overflow: 'hidden', | ||
textOverflow: 'ellipsis', | ||
whiteSpace: 'nowrap', | ||
})); | ||
|
||
export const StyledTitle = styled('span')(({ theme }) => ({ | ||
fontSize: theme.fontSizes.smallBody, | ||
fontWeight: 'normal', | ||
})); | ||
|
||
export const StyledText = styled(StyledTitle)(({ theme }) => ({ | ||
color: theme.palette.neutral.dark, | ||
})); | ||
|
||
export const StyledFavoriteIconButton = styled(FavoriteIconButton)( | ||
({ theme }) => ({ | ||
marginLeft: theme.spacing(-1.5), | ||
}) | ||
); | ||
|
||
export const StyledHeader = styled('div')(({ theme }) => ({ | ||
backgroundColor: theme.palette.background.paper, | ||
borderRadius: theme.shape.borderRadiusLarge, | ||
marginBottom: theme.spacing(2), | ||
})); | ||
|
||
export const StyledInnerContainer = styled('div')(({ theme }) => ({ | ||
padding: theme.spacing(2.5, 5), | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'start', | ||
})); | ||
|
||
export const StyledProjectTitle = styled('h2')(({ theme }) => ({ | ||
margin: 0, | ||
width: '100%', | ||
fontSize: theme.fontSizes.mainHeader, | ||
fontWeight: 'bold', | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
gap: theme.spacing(2), | ||
})); | ||
|
||
export const StyledSeparator = styled('div')(({ theme }) => ({ | ||
width: '100%', | ||
backgroundColor: theme.palette.tertiary.light, | ||
height: '1px', | ||
})); | ||
|
||
export const StyledTabContainer = styled('div')(({ theme }) => ({ | ||
padding: theme.spacing(0, 4), | ||
})); | ||
|
||
export const StyledTab = styled(Tab)(({ theme }) => ({ | ||
textTransform: 'none', | ||
fontSize: theme.fontSizes.bodySize, | ||
flexGrow: 1, | ||
flexBasis: 0, | ||
[theme.breakpoints.down('md')]: { | ||
paddingLeft: theme.spacing(1), | ||
paddingRight: theme.spacing(1), | ||
}, | ||
titleText: { | ||
overflow: 'hidden', | ||
textOverflow: 'ellipsis', | ||
whiteSpace: 'nowrap', | ||
[theme.breakpoints.up('md')]: { | ||
minWidth: 160, | ||
}, | ||
})); |
Oops, something went wrong.