2018-04-24 19:34:03 +00:00
|
|
|
import { StyleSheet, Platform } from 'react-native';
|
2017-09-01 19:42:50 +00:00
|
|
|
|
2018-09-25 19:28:42 +00:00
|
|
|
import {
|
2018-11-14 21:42:03 +00:00
|
|
|
COLOR_DANGER, COLOR_BUTTON_PRIMARY, COLOR_SEPARATOR
|
2018-09-25 19:28:42 +00:00
|
|
|
} from '../constants/colors';
|
2019-01-29 19:52:56 +00:00
|
|
|
import { isIOS } from '../utils/deviceInfo';
|
2018-03-29 17:55:37 +00:00
|
|
|
|
2017-09-01 19:42:50 +00:00
|
|
|
export default StyleSheet.create({
|
2017-09-21 17:08:00 +00:00
|
|
|
container: {
|
2017-11-07 16:28:02 +00:00
|
|
|
backgroundColor: 'white',
|
|
|
|
flex: 1
|
2017-09-21 17:08:00 +00:00
|
|
|
},
|
2018-04-24 19:34:03 +00:00
|
|
|
containerScrollView: {
|
2018-08-10 17:26:36 +00:00
|
|
|
padding: 15
|
2017-09-21 17:08:00 +00:00
|
|
|
},
|
2017-09-01 19:42:50 +00:00
|
|
|
label: {
|
|
|
|
lineHeight: 40,
|
|
|
|
height: 40,
|
|
|
|
fontSize: 16,
|
|
|
|
marginBottom: 5,
|
|
|
|
color: 'white'
|
|
|
|
},
|
|
|
|
label_white: {
|
|
|
|
lineHeight: 40,
|
|
|
|
height: 40,
|
|
|
|
fontSize: 16,
|
|
|
|
marginBottom: 5,
|
|
|
|
color: '#2f343d'
|
|
|
|
},
|
2017-09-21 17:08:00 +00:00
|
|
|
label_error: {
|
2018-03-29 17:55:37 +00:00
|
|
|
color: COLOR_DANGER,
|
2017-09-21 17:08:00 +00:00
|
|
|
flexGrow: 1,
|
|
|
|
paddingHorizontal: 0,
|
|
|
|
marginBottom: 20
|
|
|
|
},
|
2018-03-29 17:55:37 +00:00
|
|
|
buttonContainerLastChild: {
|
|
|
|
marginBottom: 40
|
|
|
|
},
|
2017-09-01 19:42:50 +00:00
|
|
|
buttonContainer: {
|
|
|
|
paddingVertical: 15,
|
|
|
|
backgroundColor: '#414852',
|
2018-03-29 17:55:37 +00:00
|
|
|
marginBottom: 20,
|
|
|
|
borderRadius: 2
|
2017-09-01 19:42:50 +00:00
|
|
|
},
|
|
|
|
buttonContainer_white: {
|
|
|
|
paddingVertical: 15,
|
|
|
|
backgroundColor: '#1d74f5',
|
|
|
|
marginBottom: 20
|
|
|
|
},
|
2017-11-13 20:50:07 +00:00
|
|
|
buttonContainer_inverted: {
|
|
|
|
paddingVertical: 15,
|
|
|
|
marginBottom: 0
|
|
|
|
},
|
2017-09-01 19:42:50 +00:00
|
|
|
button: {
|
|
|
|
textAlign: 'center',
|
|
|
|
color: 'white',
|
|
|
|
fontWeight: '700'
|
|
|
|
},
|
|
|
|
button_white: {
|
|
|
|
textAlign: 'center',
|
|
|
|
color: 'white',
|
|
|
|
fontWeight: '700'
|
|
|
|
},
|
2017-11-13 20:50:07 +00:00
|
|
|
button_inverted: {
|
|
|
|
textAlign: 'center',
|
|
|
|
color: '#414852',
|
|
|
|
fontWeight: '700',
|
|
|
|
flexGrow: 1
|
|
|
|
},
|
2017-09-01 19:42:50 +00:00
|
|
|
error: {
|
|
|
|
textAlign: 'center',
|
2018-03-29 17:55:37 +00:00
|
|
|
color: COLOR_DANGER,
|
2017-09-01 19:42:50 +00:00
|
|
|
paddingTop: 5
|
|
|
|
},
|
|
|
|
loading: {
|
|
|
|
flex: 1,
|
|
|
|
position: 'absolute',
|
|
|
|
backgroundColor: 'rgba(255,255,255,.2)',
|
|
|
|
left: 0,
|
|
|
|
top: 0
|
2017-09-21 17:08:00 +00:00
|
|
|
},
|
|
|
|
switchContainer: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'flex-start',
|
|
|
|
alignItems: 'center',
|
2018-05-24 20:17:45 +00:00
|
|
|
paddingHorizontal: 0,
|
|
|
|
paddingBottom: 5
|
2017-09-21 17:08:00 +00:00
|
|
|
},
|
|
|
|
switchLabel: {
|
2018-05-24 20:17:45 +00:00
|
|
|
fontSize: 16,
|
|
|
|
color: '#2f343d',
|
2017-09-21 17:08:00 +00:00
|
|
|
paddingHorizontal: 10
|
|
|
|
},
|
2018-05-24 20:17:45 +00:00
|
|
|
switchDescription: {
|
|
|
|
fontSize: 16,
|
|
|
|
color: '#9ea2a8'
|
|
|
|
},
|
2017-09-21 17:08:00 +00:00
|
|
|
disabledButton: {
|
|
|
|
backgroundColor: '#e1e5e8'
|
|
|
|
},
|
|
|
|
enabledButton: {
|
|
|
|
backgroundColor: '#1d74f5'
|
2017-11-13 20:50:07 +00:00
|
|
|
},
|
|
|
|
link: {
|
2018-04-24 19:34:03 +00:00
|
|
|
fontWeight: 'bold',
|
|
|
|
color: COLOR_BUTTON_PRIMARY
|
2017-11-13 20:50:07 +00:00
|
|
|
},
|
|
|
|
loginTermsText: {
|
2018-04-24 19:34:03 +00:00
|
|
|
marginBottom: 20,
|
2017-11-13 20:50:07 +00:00
|
|
|
color: '#414852',
|
2018-04-24 19:34:03 +00:00
|
|
|
fontSize: 13,
|
|
|
|
fontWeight: '700'
|
2017-12-20 19:20:06 +00:00
|
|
|
},
|
|
|
|
validText: {
|
|
|
|
color: 'green'
|
|
|
|
},
|
|
|
|
invalidText: {
|
2018-03-29 17:55:37 +00:00
|
|
|
color: COLOR_DANGER
|
2017-12-20 19:20:06 +00:00
|
|
|
},
|
|
|
|
validatingText: {
|
|
|
|
color: '#aaa'
|
2018-02-23 20:29:06 +00:00
|
|
|
},
|
|
|
|
oauthButton: {
|
|
|
|
width: 50,
|
|
|
|
height: 50,
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
margin: 4,
|
2018-03-29 17:55:37 +00:00
|
|
|
borderRadius: 2
|
2018-02-23 20:29:06 +00:00
|
|
|
},
|
|
|
|
facebookButton: {
|
|
|
|
backgroundColor: '#3b5998'
|
|
|
|
},
|
|
|
|
githubButton: {
|
|
|
|
backgroundColor: '#4c4c4c'
|
|
|
|
},
|
|
|
|
gitlabButton: {
|
|
|
|
backgroundColor: '#373d47'
|
|
|
|
},
|
|
|
|
googleButton: {
|
|
|
|
backgroundColor: '#dd4b39'
|
|
|
|
},
|
|
|
|
linkedinButton: {
|
|
|
|
backgroundColor: '#1b86bc'
|
|
|
|
},
|
|
|
|
meteorButton: {
|
|
|
|
backgroundColor: '#de4f4f'
|
|
|
|
},
|
|
|
|
twitterButton: {
|
|
|
|
backgroundColor: '#02acec'
|
|
|
|
},
|
|
|
|
closeOAuth: {
|
|
|
|
position: 'absolute',
|
|
|
|
left: 5,
|
2019-01-29 19:52:56 +00:00
|
|
|
top: isIOS ? 20 : 0,
|
2018-02-23 20:29:06 +00:00
|
|
|
backgroundColor: 'transparent'
|
|
|
|
},
|
|
|
|
oAuthModal: {
|
|
|
|
margin: 0
|
2018-03-29 17:55:37 +00:00
|
|
|
},
|
|
|
|
status: {
|
|
|
|
position: 'absolute',
|
|
|
|
bottom: -3,
|
|
|
|
right: -3,
|
|
|
|
borderWidth: 3,
|
2019-03-01 16:49:11 +00:00
|
|
|
borderColor: '#fff'
|
2018-03-29 17:55:37 +00:00
|
|
|
},
|
|
|
|
alignItemsFlexEnd: {
|
|
|
|
alignItems: 'flex-end'
|
|
|
|
},
|
2018-04-24 19:34:03 +00:00
|
|
|
alignItemsFlexStart: {
|
|
|
|
alignItems: 'flex-start'
|
|
|
|
},
|
2018-03-29 17:55:37 +00:00
|
|
|
textAlignRight: {
|
|
|
|
textAlign: 'right'
|
|
|
|
},
|
|
|
|
opacity5: {
|
|
|
|
opacity: 0.5
|
2018-04-24 19:34:03 +00:00
|
|
|
},
|
|
|
|
loginTitle: {
|
|
|
|
fontSize: 20,
|
2018-11-14 21:42:03 +00:00
|
|
|
marginVertical: 15,
|
|
|
|
color: '#2f343d',
|
|
|
|
lineHeight: 28
|
|
|
|
},
|
|
|
|
loginSubtitle: {
|
|
|
|
fontSize: 16,
|
|
|
|
color: '#54585e',
|
|
|
|
lineHeight: 20,
|
|
|
|
marginBottom: 15
|
2018-04-24 19:34:03 +00:00
|
|
|
},
|
2018-06-13 01:33:00 +00:00
|
|
|
headerButton: {
|
|
|
|
backgroundColor: 'transparent',
|
|
|
|
height: 44,
|
|
|
|
width: 44,
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center'
|
2018-08-31 18:13:30 +00:00
|
|
|
},
|
|
|
|
separator: {
|
|
|
|
height: StyleSheet.hairlineWidth,
|
|
|
|
backgroundColor: COLOR_SEPARATOR
|
|
|
|
},
|
|
|
|
separatorTop: {
|
|
|
|
borderColor: COLOR_SEPARATOR,
|
|
|
|
borderTopWidth: StyleSheet.hairlineWidth
|
|
|
|
},
|
|
|
|
separatorBottom: {
|
|
|
|
borderColor: COLOR_SEPARATOR,
|
|
|
|
borderBottomWidth: StyleSheet.hairlineWidth
|
|
|
|
},
|
|
|
|
separatorVertical: {
|
|
|
|
borderColor: COLOR_SEPARATOR,
|
|
|
|
borderTopWidth: StyleSheet.hairlineWidth,
|
|
|
|
borderBottomWidth: StyleSheet.hairlineWidth
|
2018-11-14 21:42:03 +00:00
|
|
|
},
|
|
|
|
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
|
2017-09-01 19:42:50 +00:00
|
|
|
}
|
|
|
|
});
|