summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/app/components/Chat/chatStyle-jss.js
diff options
context:
space:
mode:
Diffstat (limited to 'front/odiparpack/app/components/Chat/chatStyle-jss.js')
-rw-r--r--front/odiparpack/app/components/Chat/chatStyle-jss.js148
1 files changed, 148 insertions, 0 deletions
diff --git a/front/odiparpack/app/components/Chat/chatStyle-jss.js b/front/odiparpack/app/components/Chat/chatStyle-jss.js
new file mode 100644
index 0000000..360b170
--- /dev/null
+++ b/front/odiparpack/app/components/Chat/chatStyle-jss.js
@@ -0,0 +1,148 @@
+import { lighten } from '@material-ui/core/styles/colorManipulator';
+const styles = theme => ({
+ root: {
+ flexGrow: 1,
+ display: 'flex',
+ flexDirection: 'column',
+ position: 'relative',
+ backgroundColor: lighten(theme.palette.secondary.light, 0.9),
+ },
+ chatList: {
+ padding: 24,
+ paddingTop: 110,
+ overflow: 'auto',
+ height: 580,
+ '& li': {
+ marginBottom: theme.spacing(6),
+ display: 'flex',
+ position: 'relative',
+ '& time': {
+ position: 'absolute',
+ top: -20,
+ color: theme.palette.grey[500],
+ fontSize: 11
+ }
+ },
+ },
+ detailPopup: {
+ [theme.breakpoints.down('xs')]: {
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ zIndex: 1200,
+ width: '100%',
+ overflow: 'auto',
+ height: 575
+ }
+ },
+ talk: {
+ flex: 1,
+ '& p': {
+ marginBottom: 10,
+ position: 'relative',
+ '& span': {
+ padding: 10,
+ borderRadius: 10,
+ display: 'inline-block'
+ }
+ }
+ },
+ avatar: {},
+ from: {
+ '& time': {
+ left: 60,
+ },
+ '& $avatar': {
+ marginRight: 20
+ },
+ '& $talk': {
+ '& > p': {
+ '& span': {
+ background: theme.palette.secondary.light,
+ border: `1px solid ${lighten(theme.palette.secondary.main, 0.5)}`,
+ },
+ '&:first-child': {
+ '& span': {
+ borderTopLeftRadius: 0,
+ },
+ '&:before': {
+ content: '""',
+ borderRight: `11px solid ${lighten(theme.palette.secondary.main, 0.5)}`,
+ borderBottom: '17px solid transparent',
+ position: 'absolute',
+ left: -11,
+ top: 0
+ },
+ '&:after': {
+ content: '""',
+ borderRight: `10px solid ${theme.palette.secondary.light}`,
+ borderBottom: '15px solid transparent',
+ position: 'absolute',
+ left: -9,
+ top: 1
+ },
+ }
+ }
+ }
+ },
+ to: {
+ flexDirection: 'row-reverse',
+ '& time': {
+ right: 60,
+ },
+ '& $avatar': {
+ marginLeft: 20
+ },
+ '& $talk': {
+ textAlign: 'right',
+ '& > p': {
+ '& span': {
+ textAlign: 'left',
+ background: theme.palette.primary.light,
+ border: `1px solid ${lighten(theme.palette.primary.main, 0.5)}`,
+ },
+ '&:first-child': {
+ '& span': {
+ borderTopRightRadius: 0,
+ },
+ '&:before': {
+ content: '""',
+ borderLeft: `11px solid ${lighten(theme.palette.primary.main, 0.5)}`,
+ borderBottom: '17px solid transparent',
+ position: 'absolute',
+ right: -11,
+ top: 0
+ },
+ '&:after': {
+ content: '""',
+ borderLeft: `10px solid ${theme.palette.primary.light}`,
+ borderBottom: '15px solid transparent',
+ position: 'absolute',
+ right: -9,
+ top: 1
+ },
+ }
+ }
+ }
+ },
+ messageBox: {
+ border: 'none',
+ padding: 0,
+ outline: 'none',
+ width: '100%',
+ '&:after, &:before': {
+ display: 'none'
+ }
+ },
+ writeMessage: {
+ position: 'relative',
+ bottom: 16,
+ display: 'flex',
+ minHeight: 55,
+ margin: '0 16px',
+ alignItems: 'center',
+ padding: '0 10px',
+ }
+});
+
+export default styles;