-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(TotalLayout): TotalLayoutHeader new props.
fix(Colors): Loader and Notifications buttons colors.
- Loading branch information
Showing
14 changed files
with
188 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
import { createStyles } from '@mantine/styles'; | ||
import { pxToRem, getPaddings, getFontExpressive, getFontProductive } from '../../theme.mixins'; | ||
import { getFontExpressive } from '../../theme.mixins'; | ||
|
||
const LoaderStyles = createStyles((theme) => { | ||
const loaderTheme = theme.other.core; | ||
|
||
export const LoaderStyles = createStyles((theme, {}) => { | ||
return { | ||
root: { | ||
...getFontExpressive(theme.fontSizes['2']), | ||
svg: { | ||
stroke: loaderTheme.color.primary['300'], | ||
}, | ||
}, | ||
}; | ||
}); | ||
|
||
export { LoaderStyles }; |
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
59 changes: 31 additions & 28 deletions
59
packages/components/src/layout/TotalLayout/TotalLayoutHeader/TotalLayoutHeader.styles.js
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,32 +1,35 @@ | ||
import { createStyles } from '@mantine/styles'; | ||
|
||
const TotalLayoutHeaderStyles = createStyles((theme, { children, compact }) => ({ | ||
root: {}, | ||
headerContainer: { | ||
padding: `${!children ? '16px' : '12px'} 24px`, | ||
minHeight: !children ? '72px' : '120px', | ||
maxHeight: !children ? '72px' : '120px', | ||
backgroundColor: 'white', | ||
}, | ||
header: { height: '40px', maxHeight: '40px' }, | ||
headerTools: { maxHeight: '40px', minHeight: '40px', marginTop: '12px' }, | ||
iconContainer: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
fontSize: '1.4rem', | ||
width: '32px', | ||
height: '32px', | ||
textAlign: 'center', | ||
marginRight: '8px', | ||
}, | ||
headerTitle: { fontSize: '18px', fontWeight: 600, lineHeight: '24px' }, | ||
headerSubtitle: { | ||
fontSize: '18px', | ||
fontWeight: 400, | ||
lineHeight: '24px', | ||
marginLeft: !compact && '40px', | ||
}, | ||
})); | ||
const TotalLayoutHeaderStyles = createStyles((theme, { children, direction, compact }) => { | ||
const expandedHeader = direction === 'column' && children; | ||
return { | ||
root: {}, | ||
headerContainer: { | ||
padding: `${!expandedHeader ? '16px' : '12px'} 24px`, | ||
minHeight: !expandedHeader ? '72px' : '120px', | ||
maxHeight: !expandedHeader ? '72px' : '120px', | ||
backgroundColor: 'white', | ||
}, | ||
header: { height: '40px', maxHeight: '40px' }, | ||
headerTools: { maxHeight: '40px', minHeight: '40px', marginTop: '12px' }, | ||
iconContainer: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
fontSize: '1.4rem', | ||
width: '32px', | ||
height: '32px', | ||
textAlign: 'center', | ||
marginRight: '8px', | ||
}, | ||
headerTitle: { fontSize: '18px', fontWeight: 600, lineHeight: '24px' }, | ||
headerSubtitle: { | ||
fontSize: '18px', | ||
fontWeight: 400, | ||
lineHeight: '24px', | ||
marginLeft: !compact && '40px', | ||
}, | ||
}; | ||
}); | ||
|
||
export { TotalLayoutHeaderStyles }; |
15 changes: 12 additions & 3 deletions
15
packages/components/src/navigation/Anchor/Anchor.styles.js
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,11 +1,20 @@ | ||
import { createStyles } from '@mantine/styles'; | ||
|
||
export const AnchorStyles = createStyles((theme, {}) => { | ||
const AnchorStyles = createStyles((theme) => { | ||
const buttonTheme = theme.other.button; | ||
return { | ||
root: { | ||
textDecoration: 'underline', | ||
color: theme.colors.interactive01, | ||
textDecoration: buttonTheme.textDecoration.underLine, | ||
color: buttonTheme.content.color.secondary.default, | ||
cursor: 'pointer', | ||
'&:hover': { | ||
color: buttonTheme.content.color.primary.default, | ||
}, | ||
'&:active': { | ||
color: buttonTheme.content.color.secondary.pressed, | ||
}, | ||
}, | ||
}; | ||
}); | ||
|
||
export { AnchorStyles }; |
Oops, something went wrong.