-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat (redmine 1269198): add collapse element and edit style * feat(redmine 1269198): fix style errors * feat (redmine 1269198): change breakpoint value * feat(redmine 1269198): add responsive breakpoint props * feat(redmine 1269198): fix breakpoints methode
- Loading branch information
vapersmile
authored
Jan 3, 2024
1 parent
5696400
commit 70b674f
Showing
5 changed files
with
214 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@smile/react-front-kit': minor | ||
--- | ||
|
||
Add collapse function for infoCard component |
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
105 changes: 105 additions & 0 deletions
105
packages/react-front-kit/src/Components/InfoCard/InfoCard.style.tsx
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,105 @@ | ||
import type { IMantineBreakpoint } from './InfoCard'; | ||
|
||
import { createStyles } from '@mantine/core'; | ||
|
||
export const useStyles = createStyles( | ||
(theme, responsiveBreakpoint: IMantineBreakpoint) => ({ | ||
collapseButton: { | ||
[`@media screen and (max-width: ${theme.breakpoints[responsiveBreakpoint]})`]: | ||
{ | ||
margin: 'auto', | ||
}, | ||
margin: '12px', | ||
}, | ||
collapseButtonCenter: { | ||
marginBottom: 'auto', | ||
marginTop: 'auto', | ||
}, | ||
collapseRight: { | ||
height: '100%', | ||
width: '100%', | ||
}, | ||
container: { | ||
[`@media screen and (max-width: ${theme.breakpoints[responsiveBreakpoint]})`]: | ||
{ | ||
flexDirection: 'column', | ||
margin: 'auto', | ||
width: 'fit-content', | ||
}, | ||
display: 'flex', | ||
flexWarp: 'wrap', | ||
gap: 10, | ||
justifyContent: 'space-between', | ||
position: 'relative', | ||
zIndex: 1, | ||
}, | ||
contentItem: { | ||
alignItems: 'center', | ||
cursor: 'pointer', | ||
display: 'flex', | ||
fontSize: '20px', | ||
justifyContent: 'center', | ||
}, | ||
contentItemGroup: { | ||
alignItems: 'center', | ||
display: 'flex', | ||
gap: 16, | ||
justifyContent: 'left', | ||
maxWidth: 175, | ||
}, | ||
contentItems: { | ||
[`@media screen and (max-width: ${theme.breakpoints[responsiveBreakpoint]})`]: | ||
{ | ||
minWidth: '0px', | ||
}, | ||
columnGap: 40, | ||
display: 'flex', | ||
flexWrap: 'wrap', | ||
justifyContent: 'left', | ||
marginBottom: '28px', | ||
rowGap: 10, | ||
}, | ||
leftContainer: { | ||
[`@media screen and (max-width: ${theme.breakpoints[responsiveBreakpoint]})`]: | ||
{ | ||
minWidth: '0px !important', | ||
}, | ||
display: 'flex', | ||
flexDirection: 'column', | ||
justifyContent: 'space-between', | ||
minWidth: '390px', | ||
}, | ||
motif: { | ||
left: -40, | ||
position: 'absolute', | ||
top: -60, | ||
zIndex: 0, | ||
}, | ||
rightContainer: { | ||
[`@media screen and (max-width: ${theme.breakpoints[responsiveBreakpoint]})`]: | ||
{ | ||
maxWidth: 440, | ||
}, | ||
display: 'flex', | ||
height: '100%', | ||
width: '100%', | ||
}, | ||
root: { | ||
overflow: 'hidden', | ||
padding: '24px 48px', | ||
position: 'relative', | ||
width: '100%', | ||
}, | ||
title: { | ||
'h1, h2, h3, h4 h5, p': { | ||
fontSize: '26px', | ||
fontWeight: 700, | ||
}, | ||
}, | ||
topContent: { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
rowGap: 24, | ||
}, | ||
}), | ||
); |
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.