2021-08-20 00:01:17 +00:00
|
|
|
import { Platform, StyleSheet } from 'react-native';
|
2019-08-27 12:25:38 +00:00
|
|
|
|
|
|
|
import sharedStyles from '../../views/Styles';
|
|
|
|
|
|
|
|
const codeFontFamily = Platform.select({
|
|
|
|
ios: { fontFamily: 'Courier New' },
|
2021-08-20 00:01:17 +00:00
|
|
|
android: { fontFamily: 'monospace' },
|
2019-08-27 12:25:38 +00:00
|
|
|
});
|
|
|
|
|
2021-07-21 15:15:13 +00:00
|
|
|
export default StyleSheet.create<any>({
|
2019-08-27 12:25:38 +00:00
|
|
|
container: {
|
|
|
|
alignItems: 'flex-start',
|
2021-08-20 00:01:17 +00:00
|
|
|
flexDirection: 'row',
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
childContainer: {
|
2021-08-20 00:01:17 +00:00
|
|
|
flex: 1,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
block: {
|
|
|
|
alignItems: 'flex-start',
|
|
|
|
flexDirection: 'row',
|
2019-10-02 12:41:51 +00:00
|
|
|
flexWrap: 'wrap',
|
2021-08-20 00:01:17 +00:00
|
|
|
flex: 1,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
emph: {
|
2021-08-20 00:01:17 +00:00
|
|
|
fontStyle: 'italic',
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
strong: {
|
2021-08-20 00:01:17 +00:00
|
|
|
fontWeight: 'bold',
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
del: {
|
2021-08-20 00:01:17 +00:00
|
|
|
textDecorationLine: 'line-through',
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
text: {
|
|
|
|
fontSize: 16,
|
2021-08-20 00:01:17 +00:00
|
|
|
...sharedStyles.textRegular,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
textInfo: {
|
|
|
|
fontStyle: 'italic',
|
|
|
|
fontSize: 16,
|
2021-08-20 00:01:17 +00:00
|
|
|
...sharedStyles.textRegular,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
textBig: {
|
|
|
|
fontSize: 30,
|
2021-08-20 00:01:17 +00:00
|
|
|
...sharedStyles.textRegular,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
customEmoji: {
|
|
|
|
width: 20,
|
2021-08-20 00:01:17 +00:00
|
|
|
height: 20,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
customEmojiBig: {
|
|
|
|
width: 30,
|
2021-08-20 00:01:17 +00:00
|
|
|
height: 30,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
temp: { opacity: 0.3 },
|
|
|
|
mention: {
|
|
|
|
fontSize: 16,
|
2021-08-20 00:01:17 +00:00
|
|
|
...sharedStyles.textSemibold,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
paragraph: {
|
|
|
|
marginTop: 0,
|
|
|
|
marginBottom: 0,
|
|
|
|
flexWrap: 'wrap',
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'flex-start',
|
2021-08-20 00:01:17 +00:00
|
|
|
justifyContent: 'flex-start',
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
inlineImage: {
|
|
|
|
width: 300,
|
|
|
|
height: 300,
|
2021-08-20 00:01:17 +00:00
|
|
|
resizeMode: 'contain',
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
codeInline: {
|
|
|
|
...sharedStyles.textRegular,
|
|
|
|
...codeFontFamily,
|
|
|
|
borderWidth: 1,
|
2021-08-20 00:01:17 +00:00
|
|
|
borderRadius: 4,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
codeBlock: {
|
|
|
|
...sharedStyles.textRegular,
|
|
|
|
...codeFontFamily,
|
|
|
|
borderWidth: 1,
|
|
|
|
borderRadius: 4,
|
2021-08-20 00:01:17 +00:00
|
|
|
padding: 4,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
link: {
|
|
|
|
fontSize: 16,
|
2021-08-20 00:01:17 +00:00
|
|
|
...sharedStyles.textRegular,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
edited: {
|
|
|
|
fontSize: 14,
|
2021-08-20 00:01:17 +00:00
|
|
|
...sharedStyles.textRegular,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
heading1: {
|
|
|
|
...sharedStyles.textBold,
|
2021-08-20 00:01:17 +00:00
|
|
|
fontSize: 24,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
heading2: {
|
|
|
|
...sharedStyles.textBold,
|
2021-08-20 00:01:17 +00:00
|
|
|
fontSize: 22,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
heading3: {
|
|
|
|
...sharedStyles.textSemibold,
|
2021-08-20 00:01:17 +00:00
|
|
|
fontSize: 20,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
heading4: {
|
|
|
|
...sharedStyles.textSemibold,
|
2021-08-20 00:01:17 +00:00
|
|
|
fontSize: 18,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
heading5: {
|
|
|
|
...sharedStyles.textMedium,
|
2021-08-20 00:01:17 +00:00
|
|
|
fontSize: 16,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
heading6: {
|
|
|
|
...sharedStyles.textMedium,
|
2021-08-20 00:01:17 +00:00
|
|
|
fontSize: 14,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
quote: {
|
|
|
|
height: '100%',
|
|
|
|
width: 2,
|
2021-08-20 00:01:17 +00:00
|
|
|
marginRight: 5,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
touchableTable: {
|
2021-08-20 00:01:17 +00:00
|
|
|
justifyContent: 'center',
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
containerTable: {
|
|
|
|
borderBottomWidth: 1,
|
2021-08-20 00:01:17 +00:00
|
|
|
borderRightWidth: 1,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
table: {
|
|
|
|
borderLeftWidth: 1,
|
2021-08-20 00:01:17 +00:00
|
|
|
borderTopWidth: 1,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
tableExtraBorders: {
|
|
|
|
borderBottomWidth: 1,
|
2021-08-20 00:01:17 +00:00
|
|
|
borderRightWidth: 1,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
row: {
|
2021-08-20 00:01:17 +00:00
|
|
|
flexDirection: 'row',
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
rowBottomBorder: {
|
2021-08-20 00:01:17 +00:00
|
|
|
borderBottomWidth: 1,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
cell: {
|
|
|
|
justifyContent: 'flex-start',
|
|
|
|
paddingHorizontal: 13,
|
2021-08-20 00:01:17 +00:00
|
|
|
paddingVertical: 6,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
cellRightBorder: {
|
2021-08-20 00:01:17 +00:00
|
|
|
borderRightWidth: 1,
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
alignCenter: {
|
2021-08-20 00:01:17 +00:00
|
|
|
textAlign: 'center',
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
alignRight: {
|
2021-08-20 00:01:17 +00:00
|
|
|
textAlign: 'right',
|
|
|
|
},
|
2019-08-27 12:25:38 +00:00
|
|
|
});
|