-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new quick create timeline (#1812)
- Loading branch information
1 parent
3901a21
commit 2aee838
Showing
14 changed files
with
463 additions
and
48 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
103 changes: 103 additions & 0 deletions
103
src/components/ExperienceQuick/ExperienceQuick.style.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 |
---|---|---|
@@ -0,0 +1,103 @@ | ||
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles'; | ||
|
||
export const useStyles = makeStyles<Theme>(theme => | ||
createStyles({ | ||
root: { | ||
marginBottom: theme.spacing(1), | ||
border: '1px solid', | ||
borderColor: '#FFF', | ||
borderRadius: 10, | ||
padding: 20, | ||
width: '100%', | ||
boxShadow: `0px 2px 10px rgba(0, 0, 0, 0.05)`, | ||
position: 'relative', | ||
|
||
'&::before': { | ||
content: '""', | ||
position: 'absolute', | ||
width: 8, | ||
top: 0, | ||
left: 0, | ||
height: '100%', | ||
backgroundColor: '#FFF', | ||
borderTopLeftRadius: 10, | ||
borderBottomLeftRadius: 10, | ||
}, | ||
}, | ||
image: { | ||
width: 68, | ||
height: 68, | ||
opacity: 0.9, | ||
borderRadius: 5, | ||
}, | ||
cardContent: { | ||
width: 140, | ||
padding: '0px 0px 0px 20px', | ||
flexGrow: 1, | ||
|
||
'&:last-child': { | ||
paddingBottom: 0, | ||
}, | ||
}, | ||
title: { | ||
wordBreak: 'break-word', | ||
whiteSpace: 'nowrap', | ||
overflow: 'hidden', | ||
textOverflow: 'ellipsis', | ||
[theme.breakpoints.down('xs')]: { | ||
fontSize: '14px', | ||
}, | ||
}, | ||
subtitle: { | ||
whiteSpace: 'nowrap', | ||
overflow: 'hidden', | ||
textOverflow: 'ellipsis', | ||
[theme.breakpoints.down('xs')]: { | ||
fontSize: '12px', | ||
fontWeight: 500, | ||
}, | ||
}, | ||
icon: { | ||
[theme.breakpoints.down('xs')]: { | ||
color: '#404040', | ||
}, | ||
}, | ||
menu: { | ||
borderRadius: 10, | ||
marginTop: 8, | ||
}, | ||
delete: { | ||
color: '#FE3636', | ||
}, | ||
error: { | ||
background: '#FE3636', | ||
color: '#FFF', | ||
'&:hover': { | ||
color: theme.palette.text.primary, | ||
}, | ||
}, | ||
modal: { | ||
paddingBottom: 10, | ||
}, | ||
input: { | ||
width: 560, | ||
marginBottom: 0, | ||
marginTop: 10, | ||
|
||
'& .MuiInputLabel-root, .MuiInputBase-root': { | ||
color: '#616161', | ||
}, | ||
[theme.breakpoints.down('xs')]: { | ||
width: '100%', | ||
}, | ||
}, | ||
inputText: { | ||
flex: 1, | ||
height: 20, | ||
}, | ||
action: { | ||
cursor: 'pointer', | ||
flex: 1, | ||
}, | ||
}), | ||
); |
Oops, something went wrong.