2019-04-08 12:35:28 +00:00
|
|
|
import { StyleSheet, Platform } from 'react-native';
|
2018-01-09 17:12:55 +00:00
|
|
|
|
2019-03-29 19:36:07 +00:00
|
|
|
import sharedStyles from '../../views/Styles';
|
2019-04-08 12:35:28 +00:00
|
|
|
import {
|
|
|
|
COLOR_BORDER, COLOR_PRIMARY, COLOR_WHITE, COLOR_BACKGROUND_CONTAINER
|
|
|
|
} from '../../constants/colors';
|
|
|
|
|
|
|
|
const codeFontFamily = Platform.select({
|
|
|
|
ios: { fontFamily: 'Courier New' },
|
|
|
|
android: { fontFamily: 'monospace' }
|
|
|
|
});
|
2019-03-29 19:36:07 +00:00
|
|
|
|
2018-01-09 17:12:55 +00:00
|
|
|
export default StyleSheet.create({
|
2018-11-16 11:06:29 +00:00
|
|
|
root: {
|
|
|
|
flexDirection: 'row'
|
|
|
|
},
|
2018-09-11 16:32:52 +00:00
|
|
|
container: {
|
2019-03-27 20:06:57 +00:00
|
|
|
paddingVertical: 4,
|
2019-02-27 14:47:15 +00:00
|
|
|
width: '100%',
|
2019-03-27 20:06:57 +00:00
|
|
|
paddingHorizontal: 14,
|
2019-05-20 20:43:50 +00:00
|
|
|
flexDirection: 'column'
|
2018-09-11 16:32:52 +00:00
|
|
|
},
|
2018-04-24 19:34:03 +00:00
|
|
|
messageContent: {
|
|
|
|
flex: 1,
|
2019-03-01 16:49:11 +00:00
|
|
|
marginLeft: 46
|
2018-09-11 16:32:52 +00:00
|
|
|
},
|
2018-11-16 11:06:29 +00:00
|
|
|
messageContentWithHeader: {
|
2019-03-01 16:49:11 +00:00
|
|
|
marginLeft: 10
|
2018-01-09 17:12:55 +00:00
|
|
|
},
|
2018-11-16 11:06:29 +00:00
|
|
|
messageContentWithError: {
|
|
|
|
marginLeft: 0
|
|
|
|
},
|
2018-02-08 14:08:50 +00:00
|
|
|
flex: {
|
2019-05-20 20:43:50 +00:00
|
|
|
flexDirection: 'row'
|
|
|
|
// flex: 1
|
2018-02-08 14:08:50 +00:00
|
|
|
},
|
2019-04-08 12:35:28 +00:00
|
|
|
text: {
|
|
|
|
fontSize: 16,
|
|
|
|
...sharedStyles.textColorNormal,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
2019-06-27 16:35:45 +00:00
|
|
|
textBig: {
|
2019-07-04 16:17:57 +00:00
|
|
|
fontSize: 30,
|
2019-06-27 16:35:45 +00:00
|
|
|
...sharedStyles.textColorNormal,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
2018-01-09 17:12:55 +00:00
|
|
|
textInfo: {
|
|
|
|
fontStyle: 'italic',
|
2019-03-29 19:36:07 +00:00
|
|
|
fontSize: 16,
|
|
|
|
...sharedStyles.textColorDescription,
|
|
|
|
...sharedStyles.textRegular
|
2018-01-09 17:12:55 +00:00
|
|
|
},
|
2018-01-16 18:48:05 +00:00
|
|
|
customEmoji: {
|
2018-09-11 16:32:52 +00:00
|
|
|
width: 20,
|
|
|
|
height: 20
|
2018-01-16 18:48:05 +00:00
|
|
|
},
|
2019-06-27 16:35:45 +00:00
|
|
|
customEmojiBig: {
|
2019-07-04 16:17:57 +00:00
|
|
|
width: 30,
|
|
|
|
height: 30
|
2019-06-27 16:35:45 +00:00
|
|
|
},
|
2018-04-24 19:34:03 +00:00
|
|
|
temp: { opacity: 0.3 },
|
2019-03-27 20:06:57 +00:00
|
|
|
marginTop: {
|
2019-03-29 19:36:07 +00:00
|
|
|
marginTop: 6
|
2018-11-16 11:06:29 +00:00
|
|
|
},
|
2018-01-30 19:48:26 +00:00
|
|
|
reactionsContainer: {
|
|
|
|
flexDirection: 'row',
|
2018-04-24 19:34:03 +00:00
|
|
|
flexWrap: 'wrap',
|
2019-03-29 19:36:07 +00:00
|
|
|
marginTop: 6
|
2018-01-30 19:48:26 +00:00
|
|
|
},
|
2018-09-19 14:18:32 +00:00
|
|
|
reactionButton: {
|
2019-03-29 19:36:07 +00:00
|
|
|
marginRight: 6,
|
|
|
|
marginBottom: 6,
|
2019-03-01 16:49:11 +00:00
|
|
|
borderRadius: 2
|
2018-09-19 14:18:32 +00:00
|
|
|
},
|
2019-04-08 12:35:28 +00:00
|
|
|
reactionButtonReacted: {
|
|
|
|
backgroundColor: '#e8f2ff'
|
|
|
|
},
|
2018-01-30 19:48:26 +00:00
|
|
|
reactionContainer: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'center',
|
2019-03-29 19:36:07 +00:00
|
|
|
borderRadius: 2,
|
|
|
|
borderWidth: 1,
|
|
|
|
borderColor: COLOR_BORDER,
|
2018-09-11 16:32:52 +00:00
|
|
|
height: 28,
|
2019-03-29 19:36:07 +00:00
|
|
|
minWidth: 46.3
|
2018-09-19 14:18:32 +00:00
|
|
|
},
|
|
|
|
reactedContainer: {
|
2019-03-29 19:36:07 +00:00
|
|
|
borderColor: COLOR_PRIMARY
|
2018-01-30 19:48:26 +00:00
|
|
|
},
|
|
|
|
reactionCount: {
|
2018-07-18 20:34:59 +00:00
|
|
|
fontSize: 14,
|
|
|
|
marginLeft: 3,
|
2018-09-11 16:32:52 +00:00
|
|
|
marginRight: 8.5,
|
2019-03-29 19:36:07 +00:00
|
|
|
color: COLOR_PRIMARY,
|
|
|
|
...sharedStyles.textSemibold
|
2018-01-30 19:48:26 +00:00
|
|
|
},
|
|
|
|
reactionEmoji: {
|
2018-09-11 16:32:52 +00:00
|
|
|
fontSize: 13,
|
|
|
|
marginLeft: 7
|
2018-01-30 19:48:26 +00:00
|
|
|
},
|
|
|
|
reactionCustomEmoji: {
|
2018-09-11 16:32:52 +00:00
|
|
|
width: 19,
|
|
|
|
height: 19,
|
|
|
|
marginLeft: 7
|
2018-02-08 14:08:50 +00:00
|
|
|
},
|
|
|
|
avatar: {
|
2019-03-27 20:06:57 +00:00
|
|
|
marginTop: 4
|
2018-04-24 19:34:03 +00:00
|
|
|
},
|
2019-05-03 13:33:38 +00:00
|
|
|
avatarSmall: {
|
|
|
|
marginLeft: 16
|
|
|
|
},
|
2018-09-11 16:32:52 +00:00
|
|
|
addReaction: {
|
2019-03-29 19:36:07 +00:00
|
|
|
color: COLOR_PRIMARY
|
2018-04-24 19:34:03 +00:00
|
|
|
},
|
2018-11-16 11:06:29 +00:00
|
|
|
errorButton: {
|
2019-07-17 14:06:39 +00:00
|
|
|
paddingLeft: 10,
|
2018-11-16 11:06:29 +00:00
|
|
|
paddingVertical: 5
|
2018-05-24 20:17:45 +00:00
|
|
|
},
|
2019-04-08 12:35:28 +00:00
|
|
|
buttonContainer: {
|
|
|
|
marginTop: 6,
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center'
|
|
|
|
},
|
|
|
|
button: {
|
|
|
|
paddingHorizontal: 15,
|
2018-09-11 16:32:52 +00:00
|
|
|
height: 44,
|
|
|
|
flexDirection: 'row',
|
2018-05-24 20:17:45 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
2019-03-29 19:36:07 +00:00
|
|
|
backgroundColor: COLOR_PRIMARY,
|
2019-04-17 17:01:03 +00:00
|
|
|
borderRadius: 2
|
2018-09-11 16:32:52 +00:00
|
|
|
},
|
2019-04-08 12:35:28 +00:00
|
|
|
smallButton: {
|
|
|
|
height: 30
|
|
|
|
},
|
|
|
|
buttonIcon: {
|
2019-03-29 19:36:07 +00:00
|
|
|
color: COLOR_WHITE,
|
2019-04-08 12:35:28 +00:00
|
|
|
marginRight: 6
|
2018-05-24 20:17:45 +00:00
|
|
|
},
|
2019-04-08 12:35:28 +00:00
|
|
|
buttonText: {
|
2019-03-29 19:36:07 +00:00
|
|
|
color: COLOR_WHITE,
|
2018-09-11 16:32:52 +00:00
|
|
|
fontSize: 14,
|
2019-03-29 19:36:07 +00:00
|
|
|
...sharedStyles.textMedium
|
2018-05-29 17:09:20 +00:00
|
|
|
},
|
|
|
|
mention: {
|
2019-03-29 19:36:07 +00:00
|
|
|
...sharedStyles.textMedium,
|
2018-09-11 16:32:52 +00:00
|
|
|
color: '#0072FE',
|
|
|
|
padding: 5,
|
|
|
|
backgroundColor: '#E8F2FF'
|
|
|
|
},
|
|
|
|
mentionLoggedUser: {
|
2019-03-29 19:36:07 +00:00
|
|
|
color: COLOR_WHITE,
|
|
|
|
backgroundColor: COLOR_PRIMARY
|
2018-09-11 16:32:52 +00:00
|
|
|
},
|
|
|
|
mentionAll: {
|
2019-03-29 19:36:07 +00:00
|
|
|
color: COLOR_WHITE,
|
2018-09-11 16:32:52 +00:00
|
|
|
backgroundColor: '#FF5B5A'
|
2018-05-29 17:09:20 +00:00
|
|
|
},
|
|
|
|
paragraph: {
|
|
|
|
marginTop: 0,
|
|
|
|
marginBottom: 0,
|
|
|
|
flexWrap: 'wrap',
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'flex-start',
|
|
|
|
justifyContent: 'flex-start'
|
2018-08-01 19:35:06 +00:00
|
|
|
},
|
|
|
|
imageContainer: {
|
2019-05-20 20:43:50 +00:00
|
|
|
// flex: 1,
|
2019-03-01 16:49:11 +00:00
|
|
|
flexDirection: 'column',
|
|
|
|
borderRadius: 4
|
2018-08-01 19:35:06 +00:00
|
|
|
},
|
|
|
|
image: {
|
|
|
|
width: '100%',
|
|
|
|
maxWidth: 400,
|
2018-09-11 16:32:52 +00:00
|
|
|
minHeight: 200,
|
|
|
|
borderRadius: 4,
|
2019-04-08 12:35:28 +00:00
|
|
|
borderColor: COLOR_BORDER,
|
|
|
|
borderWidth: 1
|
2018-08-01 19:35:06 +00:00
|
|
|
},
|
2019-05-20 20:43:50 +00:00
|
|
|
imagePressed: {
|
|
|
|
opacity: 0.5
|
|
|
|
},
|
2018-08-01 19:35:06 +00:00
|
|
|
inlineImage: {
|
|
|
|
width: 300,
|
|
|
|
height: 300,
|
|
|
|
resizeMode: 'contain'
|
2018-09-11 16:32:52 +00:00
|
|
|
},
|
|
|
|
edited: {
|
|
|
|
fontSize: 14,
|
2019-03-29 19:36:07 +00:00
|
|
|
...sharedStyles.textColorDescription,
|
|
|
|
...sharedStyles.textRegular
|
2019-04-08 12:35:28 +00:00
|
|
|
},
|
|
|
|
codeInline: {
|
|
|
|
...sharedStyles.textRegular,
|
|
|
|
...codeFontFamily,
|
|
|
|
borderWidth: 1,
|
|
|
|
backgroundColor: COLOR_BACKGROUND_CONTAINER,
|
|
|
|
borderRadius: 4
|
|
|
|
},
|
|
|
|
codeBlock: {
|
|
|
|
...sharedStyles.textRegular,
|
|
|
|
...codeFontFamily,
|
|
|
|
backgroundColor: COLOR_BACKGROUND_CONTAINER,
|
|
|
|
borderColor: COLOR_BORDER,
|
|
|
|
borderWidth: 1,
|
|
|
|
borderRadius: 4,
|
|
|
|
padding: 4
|
|
|
|
},
|
|
|
|
link: {
|
|
|
|
color: COLOR_PRIMARY,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
2019-04-17 17:01:03 +00:00
|
|
|
startedDiscussion: {
|
|
|
|
fontStyle: 'italic',
|
|
|
|
fontSize: 16,
|
|
|
|
marginBottom: 6,
|
|
|
|
...sharedStyles.textColorDescription,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
2019-04-08 12:35:28 +00:00
|
|
|
time: {
|
|
|
|
fontSize: 12,
|
|
|
|
paddingLeft: 10,
|
|
|
|
lineHeight: 22,
|
|
|
|
...sharedStyles.textColorDescription,
|
|
|
|
...sharedStyles.textRegular,
|
|
|
|
fontWeight: '300'
|
2019-04-17 17:01:03 +00:00
|
|
|
},
|
|
|
|
repliedThread: {
|
2019-04-24 18:36:29 +00:00
|
|
|
flexDirection: 'row',
|
2019-05-20 20:43:50 +00:00
|
|
|
// flex: 1,
|
2019-05-03 13:33:38 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
marginTop: 6,
|
|
|
|
marginBottom: 12
|
2019-04-24 18:36:29 +00:00
|
|
|
},
|
|
|
|
repliedThreadIcon: {
|
2019-04-25 17:18:49 +00:00
|
|
|
color: COLOR_PRIMARY,
|
2019-05-03 13:33:38 +00:00
|
|
|
marginRight: 10,
|
|
|
|
marginLeft: 16
|
2019-04-17 17:01:03 +00:00
|
|
|
},
|
|
|
|
repliedThreadName: {
|
2019-05-03 13:33:38 +00:00
|
|
|
fontSize: 16,
|
2019-04-24 18:36:29 +00:00
|
|
|
flex: 1,
|
2019-04-17 17:01:03 +00:00
|
|
|
color: COLOR_PRIMARY,
|
2019-04-25 17:18:49 +00:00
|
|
|
...sharedStyles.textRegular
|
2019-06-10 18:36:31 +00:00
|
|
|
},
|
|
|
|
readReceipt: {
|
|
|
|
lineHeight: 20
|
2018-01-09 17:12:55 +00:00
|
|
|
}
|
|
|
|
});
|