Rocket.Chat.ReactNative/app/views/Styles.js

148 lines
2.7 KiB
JavaScript
Raw Normal View History

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
import { StyleSheet, Platform } from 'react-native';
2019-11-25 20:01:17 +00:00
import { MAX_SCREEN_CONTENT_WIDTH, MAX_CONTENT_WIDTH } from '../constants/tablet';
export default StyleSheet.create({
container: {
flex: 1,
flexDirection: 'column'
},
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
containerScrollView: {
2019-03-29 19:36:07 +00:00
padding: 15,
paddingBottom: 30
},
2019-11-25 20:01:17 +00:00
containerSplitView: {
flex: 1,
flexDirection: 'row'
},
tabletContent: {
maxWidth: MAX_CONTENT_WIDTH
},
tabletScreenContent: {
justifyContent: 'center',
2019-11-25 20:01:17 +00:00
alignSelf: 'center',
width: MAX_SCREEN_CONTENT_WIDTH
},
modal: {
alignSelf: 'center',
borderRadius: 10,
overflow: 'hidden'
},
2019-12-18 21:13:11 +00:00
modalFormSheet: {
// Following UIModalPresentationFormSheet size
// this not change on different iPad sizes
width: 540,
height: 620
},
modalPageSheet: {
width: '100%',
height: '100%'
},
status: {
position: 'absolute',
bottom: -3,
right: -3,
2019-12-17 14:08:06 +00:00
borderWidth: 3
},
2019-07-18 17:44:02 +00:00
textAlignCenter: {
textAlign: 'center'
},
opacity5: {
opacity: 0.5
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
},
loginTitle: {
fontSize: 20,
marginVertical: 15,
lineHeight: 28
},
loginSubtitle: {
fontSize: 16,
lineHeight: 20,
marginBottom: 15
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
},
separator: {
2019-12-04 16:39:53 +00:00
height: StyleSheet.hairlineWidth
},
separatorTop: {
borderTopWidth: StyleSheet.hairlineWidth
},
separatorBottom: {
borderBottomWidth: StyleSheet.hairlineWidth
},
separatorVertical: {
borderTopWidth: StyleSheet.hairlineWidth,
borderBottomWidth: StyleSheet.hairlineWidth
},
2019-11-25 20:01:17 +00:00
separatorLeft: {
borderLeftWidth: StyleSheet.hairlineWidth
},
textRegular: {
backgroundColor: 'transparent',
...Platform.select({
ios: {
fontFamily: 'System',
fontWeight: '400'
},
android: {
includeFontPadding: false,
fontFamily: 'sans-serif',
fontWeight: 'normal'
}
})
},
textMedium: {
backgroundColor: 'transparent',
...Platform.select({
ios: {
fontFamily: 'System',
fontWeight: '500'
},
android: {
includeFontPadding: false,
fontFamily: 'sans-serif-medium',
fontWeight: 'normal'
}
})
},
textSemibold: {
backgroundColor: 'transparent',
...Platform.select({
ios: {
fontFamily: 'System',
fontWeight: '600'
},
android: {
includeFontPadding: false,
fontFamily: 'sans-serif',
fontWeight: 'bold'
}
})
},
textBold: {
backgroundColor: 'transparent',
...Platform.select({
ios: {
fontFamily: 'System',
fontWeight: '700'
},
android: {
includeFontPadding: false,
fontFamily: 'sans-serif',
fontWeight: 'bold'
}
})
},
inputLastChild: {
marginBottom: 15
},
listContentContainer: {
borderTopWidth: StyleSheet.hairlineWidth,
borderBottomWidth: StyleSheet.hairlineWidth,
2019-12-04 16:39:53 +00:00
marginVertical: 36
2019-07-18 17:44:02 +00:00
},
notchLandscapeContainer: {
2019-07-29 16:33:28 +00:00
marginTop: -34,
2019-12-04 16:39:53 +00:00
paddingHorizontal: 30
}
});