2019-04-18 20:57:35 +00:00
|
|
|
import { StyleSheet, PixelRatio } from 'react-native';
|
|
|
|
|
|
|
|
import sharedStyles from '../../views/Styles';
|
|
|
|
import {
|
2019-04-24 18:36:29 +00:00
|
|
|
COLOR_SEPARATOR, COLOR_PRIMARY, COLOR_WHITE, COLOR_UNREAD, COLOR_TEXT
|
2019-04-18 20:57:35 +00:00
|
|
|
} from '../../constants/colors';
|
|
|
|
|
|
|
|
export const ROW_HEIGHT = 75 * PixelRatio.getFontScale();
|
|
|
|
|
|
|
|
export default StyleSheet.create({
|
|
|
|
container: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center',
|
2019-07-01 14:20:38 +00:00
|
|
|
paddingLeft: 14,
|
2019-04-18 20:57:35 +00:00
|
|
|
height: ROW_HEIGHT
|
|
|
|
},
|
2019-07-04 16:15:30 +00:00
|
|
|
button: {
|
|
|
|
backgroundColor: COLOR_WHITE
|
|
|
|
},
|
2019-04-18 20:57:35 +00:00
|
|
|
centerContainer: {
|
|
|
|
flex: 1,
|
|
|
|
paddingVertical: 10,
|
|
|
|
paddingRight: 14,
|
|
|
|
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
|
|
borderColor: COLOR_SEPARATOR
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
flex: 1,
|
|
|
|
fontSize: 17,
|
|
|
|
lineHeight: 20,
|
|
|
|
...sharedStyles.textColorNormal,
|
|
|
|
...sharedStyles.textMedium
|
|
|
|
},
|
|
|
|
alert: {
|
|
|
|
...sharedStyles.textSemibold
|
|
|
|
},
|
|
|
|
row: {
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'flex-start'
|
|
|
|
},
|
|
|
|
titleContainer: {
|
|
|
|
width: '100%',
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
date: {
|
|
|
|
fontSize: 13,
|
|
|
|
marginLeft: 4,
|
|
|
|
...sharedStyles.textColorDescription,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
|
|
|
updateAlert: {
|
|
|
|
color: COLOR_PRIMARY,
|
|
|
|
...sharedStyles.textSemibold
|
|
|
|
},
|
|
|
|
unreadNumberContainer: {
|
2019-04-24 18:36:29 +00:00
|
|
|
minWidth: 21,
|
|
|
|
height: 21,
|
2019-04-18 20:57:35 +00:00
|
|
|
paddingVertical: 3,
|
|
|
|
paddingHorizontal: 5,
|
2019-04-24 18:36:29 +00:00
|
|
|
borderRadius: 10.5,
|
|
|
|
backgroundColor: COLOR_UNREAD,
|
2019-04-18 20:57:35 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
marginLeft: 10
|
|
|
|
},
|
2019-04-24 18:36:29 +00:00
|
|
|
unreadMentionedContainer: {
|
2019-04-18 20:57:35 +00:00
|
|
|
backgroundColor: COLOR_PRIMARY
|
|
|
|
},
|
2019-04-24 18:36:29 +00:00
|
|
|
unreadText: {
|
|
|
|
color: COLOR_TEXT,
|
2019-04-18 20:57:35 +00:00
|
|
|
overflow: 'hidden',
|
|
|
|
fontSize: 13,
|
2019-04-24 18:36:29 +00:00
|
|
|
...sharedStyles.textMedium,
|
2019-04-18 20:57:35 +00:00
|
|
|
letterSpacing: 0.56,
|
|
|
|
textAlign: 'center'
|
|
|
|
},
|
2019-04-24 18:36:29 +00:00
|
|
|
unreadMentionedText: {
|
|
|
|
color: COLOR_WHITE
|
|
|
|
},
|
2019-04-18 20:57:35 +00:00
|
|
|
status: {
|
|
|
|
marginRight: 7,
|
|
|
|
marginTop: 3
|
|
|
|
},
|
|
|
|
markdownText: {
|
|
|
|
flex: 1,
|
|
|
|
fontSize: 14,
|
|
|
|
lineHeight: 17,
|
|
|
|
...sharedStyles.textRegular,
|
|
|
|
...sharedStyles.textColorDescription
|
|
|
|
},
|
|
|
|
markdownTextAlert: {
|
|
|
|
...sharedStyles.textColorNormal
|
|
|
|
},
|
|
|
|
avatar: {
|
|
|
|
marginRight: 10
|
2019-07-01 14:20:38 +00:00
|
|
|
},
|
|
|
|
actionText: {
|
2019-07-04 16:15:30 +00:00
|
|
|
color: COLOR_WHITE,
|
|
|
|
fontSize: 15,
|
2019-07-01 14:20:38 +00:00
|
|
|
backgroundColor: 'transparent',
|
2019-07-04 16:15:30 +00:00
|
|
|
justifyContent: 'center',
|
|
|
|
marginTop: 4,
|
|
|
|
...sharedStyles.textSemibold
|
2019-07-01 14:20:38 +00:00
|
|
|
},
|
|
|
|
actionButtonLeft: {
|
|
|
|
flex: 1,
|
|
|
|
backgroundColor: '#497AFC',
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'flex-end'
|
|
|
|
},
|
|
|
|
actionButtonRightFav: {
|
|
|
|
flex: 1,
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'flex-start',
|
|
|
|
backgroundColor: '#F4BD3E'
|
|
|
|
},
|
|
|
|
actionButtonRightHide: {
|
|
|
|
flex: 1,
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'flex-start',
|
|
|
|
backgroundColor: '#55585D'
|
|
|
|
},
|
|
|
|
actionView: {
|
|
|
|
width: 80,
|
|
|
|
alignItems: 'center'
|
|
|
|
},
|
|
|
|
leftAction: {
|
|
|
|
...StyleSheet.absoluteFill,
|
|
|
|
flexDirection: 'row-reverse'
|
|
|
|
},
|
|
|
|
rightAction: {
|
|
|
|
...StyleSheet.absoluteFill,
|
|
|
|
flexDirection: 'row'
|
|
|
|
},
|
|
|
|
upperContainer: {
|
|
|
|
overflow: 'hidden'
|
2019-04-18 20:57:35 +00:00
|
|
|
}
|
|
|
|
});
|