vn-verdnaturachat/app/containers/message/styles.js

230 lines
4.1 KiB
JavaScript
Raw Normal View History

2019-04-08 12:35:28 +00:00
import { StyleSheet, Platform } from 'react-native';
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
export default StyleSheet.create({
root: {
flexDirection: 'row'
},
container: {
2019-03-27 20:06:57 +00:00
paddingVertical: 4,
width: '100%',
2019-03-27 20:06:57 +00:00
paddingHorizontal: 14,
flexDirection: 'column',
flex: 1
},
Beta (#265) * Fabric iOS * Fabric configured on iOS and Android * - react-native-fabric configured - login tracked * README updated * Run scripts from README updated * README scripts * get rooms and messages by rest * user status * more improves * more improves * send pong on timeout * fix some methods * more tests * rest messages * Room actions (#266) * Toggle notifications * Search messages * Invite users * Mute/Unmute users in room * rocket.cat messages * Room topic layout fixed * Starred messages loading onEndReached * Room actions onEndReached * Unnecessary login request * Login loading * Login services fixed * User presence layout * ïmproves on room actions view * Removed unnecessary data from SelectedUsersView * load few messages on open room, search message improve * fix loading messages forever * Removed state from search * Custom message time format * secureTextEntry layout * Reduce android app size * Roles subscription fix * Public routes navigation * fix reconnect * - New login/register, login, register * proguard * Login flux * App init/restore * Android layout fixes * Multiple meteor connection requests fixed * Nested attachments * Nested attachments * fix check status * New login layout (#269) * Public routes navigation * New login/register, login, register * Multiple meteor connection requests fixed * Nested attachments * Button component * TextInput android layout fixed * Register fixed * Thinner close modal button * Requests /me after login only one time * Static images moved * fix reconnect * fix ddp * fix custom emoji * New message layout (#273) * Grouping messages * Message layout * Users typing animation * Image attachment layout
2018-04-24 19:34:03 +00:00
messageContent: {
flex: 1,
marginLeft: 46
},
messageContentWithHeader: {
marginLeft: 10
},
messageContentWithError: {
marginLeft: 0
},
flex: {
flexDirection: 'row',
flex: 1
},
2019-04-08 12:35:28 +00:00
text: {
fontSize: 16,
...sharedStyles.textColorNormal,
...sharedStyles.textRegular
},
textInfo: {
fontStyle: 'italic',
2019-03-29 19:36:07 +00:00
fontSize: 16,
...sharedStyles.textColorDescription,
...sharedStyles.textRegular
},
editing: {
backgroundColor: '#fff5df'
},
customEmoji: {
width: 20,
height: 20
},
Beta (#265) * Fabric iOS * Fabric configured on iOS and Android * - react-native-fabric configured - login tracked * README updated * Run scripts from README updated * README scripts * get rooms and messages by rest * user status * more improves * more improves * send pong on timeout * fix some methods * more tests * rest messages * Room actions (#266) * Toggle notifications * Search messages * Invite users * Mute/Unmute users in room * rocket.cat messages * Room topic layout fixed * Starred messages loading onEndReached * Room actions onEndReached * Unnecessary login request * Login loading * Login services fixed * User presence layout * ïmproves on room actions view * Removed unnecessary data from SelectedUsersView * load few messages on open room, search message improve * fix loading messages forever * Removed state from search * Custom message time format * secureTextEntry layout * Reduce android app size * Roles subscription fix * Public routes navigation * fix reconnect * - New login/register, login, register * proguard * Login flux * App init/restore * Android layout fixes * Multiple meteor connection requests fixed * Nested attachments * Nested attachments * fix check status * New login layout (#269) * Public routes navigation * New login/register, login, register * Multiple meteor connection requests fixed * Nested attachments * Button component * TextInput android layout fixed * Register fixed * Thinner close modal button * Requests /me after login only one time * Static images moved * fix reconnect * fix ddp * fix custom emoji * New message layout (#273) * Grouping messages * Message layout * Users typing animation * Image attachment layout
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
},
reactionsContainer: {
flexDirection: 'row',
Beta (#265) * Fabric iOS * Fabric configured on iOS and Android * - react-native-fabric configured - login tracked * README updated * Run scripts from README updated * README scripts * get rooms and messages by rest * user status * more improves * more improves * send pong on timeout * fix some methods * more tests * rest messages * Room actions (#266) * Toggle notifications * Search messages * Invite users * Mute/Unmute users in room * rocket.cat messages * Room topic layout fixed * Starred messages loading onEndReached * Room actions onEndReached * Unnecessary login request * Login loading * Login services fixed * User presence layout * ïmproves on room actions view * Removed unnecessary data from SelectedUsersView * load few messages on open room, search message improve * fix loading messages forever * Removed state from search * Custom message time format * secureTextEntry layout * Reduce android app size * Roles subscription fix * Public routes navigation * fix reconnect * - New login/register, login, register * proguard * Login flux * App init/restore * Android layout fixes * Multiple meteor connection requests fixed * Nested attachments * Nested attachments * fix check status * New login layout (#269) * Public routes navigation * New login/register, login, register * Multiple meteor connection requests fixed * Nested attachments * Button component * TextInput android layout fixed * Register fixed * Thinner close modal button * Requests /me after login only one time * Static images moved * fix reconnect * fix ddp * fix custom emoji * New message layout (#273) * Grouping messages * Message layout * Users typing animation * Image attachment layout
2018-04-24 19:34:03 +00:00
flexWrap: 'wrap',
2019-03-29 19:36:07 +00:00
marginTop: 6
},
reactionButton: {
2019-03-29 19:36:07 +00:00
marginRight: 6,
marginBottom: 6,
borderRadius: 2
},
2019-04-08 12:35:28 +00:00
reactionButtonReacted: {
backgroundColor: '#e8f2ff'
},
reactionContainer: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
2019-03-29 19:36:07 +00:00
borderRadius: 2,
borderWidth: 1,
borderColor: COLOR_BORDER,
height: 28,
2019-03-29 19:36:07 +00:00
minWidth: 46.3
},
reactedContainer: {
2019-03-29 19:36:07 +00:00
borderColor: COLOR_PRIMARY
},
reactionCount: {
fontSize: 14,
marginLeft: 3,
marginRight: 8.5,
2019-03-29 19:36:07 +00:00
color: COLOR_PRIMARY,
...sharedStyles.textSemibold
},
reactionEmoji: {
fontSize: 13,
marginLeft: 7
},
reactionCustomEmoji: {
width: 19,
height: 19,
marginLeft: 7
},
avatar: {
2019-03-27 20:06:57 +00:00
marginTop: 4
Beta (#265) * Fabric iOS * Fabric configured on iOS and Android * - react-native-fabric configured - login tracked * README updated * Run scripts from README updated * README scripts * get rooms and messages by rest * user status * more improves * more improves * send pong on timeout * fix some methods * more tests * rest messages * Room actions (#266) * Toggle notifications * Search messages * Invite users * Mute/Unmute users in room * rocket.cat messages * Room topic layout fixed * Starred messages loading onEndReached * Room actions onEndReached * Unnecessary login request * Login loading * Login services fixed * User presence layout * ïmproves on room actions view * Removed unnecessary data from SelectedUsersView * load few messages on open room, search message improve * fix loading messages forever * Removed state from search * Custom message time format * secureTextEntry layout * Reduce android app size * Roles subscription fix * Public routes navigation * fix reconnect * - New login/register, login, register * proguard * Login flux * App init/restore * Android layout fixes * Multiple meteor connection requests fixed * Nested attachments * Nested attachments * fix check status * New login layout (#269) * Public routes navigation * New login/register, login, register * Multiple meteor connection requests fixed * Nested attachments * Button component * TextInput android layout fixed * Register fixed * Thinner close modal button * Requests /me after login only one time * Static images moved * fix reconnect * fix ddp * fix custom emoji * New message layout (#273) * Grouping messages * Message layout * Users typing animation * Image attachment layout
2018-04-24 19:34:03 +00:00
},
addReaction: {
2019-03-29 19:36:07 +00:00
color: COLOR_PRIMARY
Beta (#265) * Fabric iOS * Fabric configured on iOS and Android * - react-native-fabric configured - login tracked * README updated * Run scripts from README updated * README scripts * get rooms and messages by rest * user status * more improves * more improves * send pong on timeout * fix some methods * more tests * rest messages * Room actions (#266) * Toggle notifications * Search messages * Invite users * Mute/Unmute users in room * rocket.cat messages * Room topic layout fixed * Starred messages loading onEndReached * Room actions onEndReached * Unnecessary login request * Login loading * Login services fixed * User presence layout * ïmproves on room actions view * Removed unnecessary data from SelectedUsersView * load few messages on open room, search message improve * fix loading messages forever * Removed state from search * Custom message time format * secureTextEntry layout * Reduce android app size * Roles subscription fix * Public routes navigation * fix reconnect * - New login/register, login, register * proguard * Login flux * App init/restore * Android layout fixes * Multiple meteor connection requests fixed * Nested attachments * Nested attachments * fix check status * New login layout (#269) * Public routes navigation * New login/register, login, register * Multiple meteor connection requests fixed * Nested attachments * Button component * TextInput android layout fixed * Register fixed * Thinner close modal button * Requests /me after login only one time * Static images moved * fix reconnect * fix ddp * fix custom emoji * New message layout (#273) * Grouping messages * Message layout * Users typing animation * Image attachment layout
2018-04-24 19:34:03 +00:00
},
errorButton: {
paddingHorizontal: 15,
paddingVertical: 5
},
2019-04-08 12:35:28 +00:00
buttonContainer: {
marginTop: 6,
flexDirection: 'row',
alignItems: 'center'
},
button: {
paddingHorizontal: 15,
height: 44,
flexDirection: 'row',
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
},
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
},
2019-04-08 12:35:28 +00:00
buttonText: {
2019-03-29 19:36:07 +00:00
color: COLOR_WHITE,
fontSize: 14,
2019-03-29 19:36:07 +00:00
...sharedStyles.textMedium
},
mention: {
2019-03-29 19:36:07 +00:00
...sharedStyles.textMedium,
color: '#0072FE',
padding: 5,
backgroundColor: '#E8F2FF'
},
mentionLoggedUser: {
2019-03-29 19:36:07 +00:00
color: COLOR_WHITE,
backgroundColor: COLOR_PRIMARY
},
mentionAll: {
2019-03-29 19:36:07 +00:00
color: COLOR_WHITE,
backgroundColor: '#FF5B5A'
},
paragraph: {
marginTop: 0,
marginBottom: 0,
flexWrap: 'wrap',
flexDirection: 'row',
alignItems: 'flex-start',
justifyContent: 'flex-start'
},
imageContainer: {
flex: 1,
flexDirection: 'column',
borderRadius: 4
},
image: {
width: '100%',
maxWidth: 400,
minHeight: 200,
borderRadius: 4,
2019-04-08 12:35:28 +00:00
borderColor: COLOR_BORDER,
borderWidth: 1
},
inlineImage: {
width: 300,
height: 300,
resizeMode: 'contain'
},
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: {
fontSize: 16,
marginBottom: 6,
...sharedStyles.textColorDescription,
...sharedStyles.textRegular
},
repliedThreadName: {
fontSize: 16,
color: COLOR_PRIMARY,
...sharedStyles.textSemibold
}
});