2021-09-13 20:41:05 +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' },
|
|
|
|
android: { fontFamily: 'monospace' }
|
|
|
|
});
|
|
|
|
|
2022-03-21 20:44:06 +00:00
|
|
|
export default StyleSheet.create({
|
2019-08-27 12:25:38 +00:00
|
|
|
container: {
|
|
|
|
alignItems: 'flex-start',
|
|
|
|
flexDirection: 'row'
|
|
|
|
},
|
|
|
|
childContainer: {
|
|
|
|
flex: 1
|
|
|
|
},
|
|
|
|
block: {
|
|
|
|
alignItems: 'flex-start',
|
|
|
|
flexDirection: 'row',
|
2019-10-02 12:41:51 +00:00
|
|
|
flexWrap: 'wrap',
|
|
|
|
flex: 1
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
emph: {
|
|
|
|
fontStyle: 'italic'
|
|
|
|
},
|
|
|
|
strong: {
|
|
|
|
fontWeight: 'bold'
|
|
|
|
},
|
|
|
|
del: {
|
|
|
|
textDecorationLine: 'line-through'
|
|
|
|
},
|
2021-10-20 16:32:58 +00:00
|
|
|
plainText: {
|
|
|
|
fontSize: 16,
|
|
|
|
flexShrink: 1
|
|
|
|
},
|
2019-08-27 12:25:38 +00:00
|
|
|
text: {
|
|
|
|
fontSize: 16,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
|
|
|
textInfo: {
|
|
|
|
fontStyle: 'italic',
|
|
|
|
fontSize: 16,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
|
|
|
textBig: {
|
|
|
|
fontSize: 30,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
|
|
|
customEmoji: {
|
|
|
|
width: 20,
|
|
|
|
height: 20
|
|
|
|
},
|
|
|
|
customEmojiBig: {
|
|
|
|
width: 30,
|
|
|
|
height: 30
|
|
|
|
},
|
|
|
|
temp: { opacity: 0.3 },
|
|
|
|
mention: {
|
|
|
|
fontSize: 16,
|
2020-10-30 15:58:48 +00:00
|
|
|
...sharedStyles.textSemibold
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
paragraph: {
|
|
|
|
marginTop: 0,
|
|
|
|
marginBottom: 0,
|
|
|
|
flexWrap: 'wrap',
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'flex-start',
|
|
|
|
justifyContent: 'flex-start'
|
|
|
|
},
|
|
|
|
inlineImage: {
|
|
|
|
width: 300,
|
|
|
|
height: 300,
|
|
|
|
resizeMode: 'contain'
|
|
|
|
},
|
|
|
|
codeInline: {
|
2021-10-20 16:32:58 +00:00
|
|
|
fontSize: 16,
|
2019-08-27 12:25:38 +00:00
|
|
|
...sharedStyles.textRegular,
|
|
|
|
...codeFontFamily,
|
|
|
|
borderWidth: 1,
|
2021-10-20 16:32:58 +00:00
|
|
|
borderRadius: 4,
|
|
|
|
paddingLeft: 2,
|
|
|
|
paddingTop: 2
|
2019-08-27 12:25:38 +00:00
|
|
|
},
|
|
|
|
codeBlock: {
|
|
|
|
borderWidth: 1,
|
|
|
|
borderRadius: 4,
|
|
|
|
padding: 4
|
|
|
|
},
|
2022-07-20 21:02:18 +00:00
|
|
|
codeBlockText: {
|
|
|
|
fontSize: 16,
|
|
|
|
...sharedStyles.textRegular,
|
|
|
|
...codeFontFamily
|
|
|
|
},
|
2019-08-27 12:25:38 +00:00
|
|
|
link: {
|
|
|
|
fontSize: 16,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
|
|
|
heading1: {
|
|
|
|
...sharedStyles.textBold,
|
|
|
|
fontSize: 24
|
|
|
|
},
|
|
|
|
heading2: {
|
|
|
|
...sharedStyles.textBold,
|
|
|
|
fontSize: 22
|
|
|
|
},
|
|
|
|
heading3: {
|
|
|
|
...sharedStyles.textSemibold,
|
|
|
|
fontSize: 20
|
|
|
|
},
|
|
|
|
heading4: {
|
|
|
|
...sharedStyles.textSemibold,
|
|
|
|
fontSize: 18
|
|
|
|
},
|
|
|
|
heading5: {
|
|
|
|
...sharedStyles.textMedium,
|
|
|
|
fontSize: 16
|
|
|
|
},
|
|
|
|
heading6: {
|
|
|
|
...sharedStyles.textMedium,
|
|
|
|
fontSize: 14
|
|
|
|
},
|
|
|
|
quote: {
|
|
|
|
height: '100%',
|
|
|
|
width: 2,
|
|
|
|
marginRight: 5
|
|
|
|
},
|
|
|
|
touchableTable: {
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
containerTable: {
|
|
|
|
borderBottomWidth: 1,
|
|
|
|
borderRightWidth: 1
|
|
|
|
},
|
|
|
|
table: {
|
|
|
|
borderLeftWidth: 1,
|
|
|
|
borderTopWidth: 1
|
|
|
|
},
|
|
|
|
tableExtraBorders: {
|
|
|
|
borderBottomWidth: 1,
|
|
|
|
borderRightWidth: 1
|
|
|
|
},
|
|
|
|
row: {
|
|
|
|
flexDirection: 'row'
|
|
|
|
},
|
|
|
|
rowBottomBorder: {
|
|
|
|
borderBottomWidth: 1
|
|
|
|
},
|
|
|
|
cell: {
|
|
|
|
justifyContent: 'flex-start',
|
|
|
|
paddingHorizontal: 13,
|
|
|
|
paddingVertical: 6
|
|
|
|
},
|
|
|
|
cellRightBorder: {
|
|
|
|
borderRightWidth: 1
|
|
|
|
},
|
|
|
|
alignCenter: {
|
|
|
|
textAlign: 'center'
|
|
|
|
},
|
|
|
|
alignRight: {
|
|
|
|
textAlign: 'right'
|
2021-10-27 13:13:20 +00:00
|
|
|
},
|
|
|
|
inline: {
|
|
|
|
flexShrink: 1
|
2019-08-27 12:25:38 +00:00
|
|
|
}
|
|
|
|
});
|