databag/app/mobile/src/session/profile/Profile.styled.js

296 lines
5.4 KiB
JavaScript
Raw Normal View History

2022-09-21 21:06:30 +00:00
import { StyleSheet } from 'react-native';
import { Colors } from 'constants/Colors';
export const styles = StyleSheet.create({
container: {
width: '100%',
height: '100%',
display: 'flex',
flexDirection: 'column',
paddingBottom: 32,
alignItems: 'center',
justifyContent: 'center',
},
2022-09-27 19:21:40 +00:00
drawer: {
paddingTop: 16,
2022-09-28 19:41:00 +00:00
backgroundColor: Colors.formBackground,
2022-09-27 19:21:40 +00:00
},
2022-10-29 05:35:25 +00:00
action: {
width: 64,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
},
2022-09-28 05:30:47 +00:00
titleText: {
2022-09-27 19:21:40 +00:00
fontSize: 18,
2022-10-29 05:35:25 +00:00
overflow: 'hidden',
flexGrow: 1,
textAlign: 'center',
2022-09-28 05:30:47 +00:00
},
title: {
display: 'flex',
2022-10-29 05:35:25 +00:00
flexDirection: 'row',
2022-09-28 05:30:47 +00:00
flexGrow: 1,
flex: 1,
width: '100%',
textAlign: 'start',
2022-09-28 05:57:30 +00:00
alignItems: 'center',
justifyContent: 'center',
2022-09-27 19:21:40 +00:00
},
body: {
paddingTop: 16,
},
2022-09-21 21:06:30 +00:00
header: {
display: 'flex',
flexDirection: 'row',
alignItems: 'flex-end',
justifyContent: 'center',
},
headerText: {
2022-10-29 05:35:25 +00:00
paddingLeft: 16,
fontSize: 14,
paddingRight: 8,
2022-09-28 05:30:47 +00:00
color: Colors.text,
2022-09-21 21:06:30 +00:00
},
2022-09-21 22:13:43 +00:00
camera: {
position: 'absolute',
bottom: 0,
left: 0,
padding: 8,
backgroundColor: Colors.lightgrey,
borderBottomLeftRadius: 8,
borderTopRightRadius: 8,
},
gallery: {
2022-09-21 21:06:30 +00:00
position: 'absolute',
bottom: 0,
right: 0,
2022-09-21 22:13:43 +00:00
padding: 8,
2022-09-21 21:06:30 +00:00
backgroundColor: Colors.lightgrey,
borderBottomRightRadius: 8,
borderTopLeftRadius: 8,
},
2022-10-14 21:01:07 +00:00
alert: {
height: 32,
},
2022-09-21 21:06:30 +00:00
detail: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
color: Colors.text,
},
attribute: {
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
paddingBottom: 8,
},
nonametext: {
fontSize: 18,
paddingRight: 8,
fontWeight: 'bold',
color: Colors.grey,
},
2022-09-21 21:06:30 +00:00
nametext: {
fontSize: 18,
paddingRight: 8,
fontWeight: 'bold',
},
locationtext: {
fontSize: 16,
paddingLeft: 8,
color: Colors.text,
},
nolocationtext: {
fontSize: 16,
paddingLeft: 8,
color: Colors.grey,
2022-09-21 21:06:30 +00:00
},
descriptiontext: {
fontSize: 16,
paddingLeft: 8,
color: Colors.text,
},
nodescriptiontext: {
fontSize: 16,
paddingLeft: 8,
color: Colors.grey,
2022-09-21 21:06:30 +00:00
},
visible: {
display: 'flex',
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
paddingTop: 16,
},
visibleText: {
2022-09-22 05:52:33 +00:00
fontSize: 16,
2022-09-21 21:06:30 +00:00
color: Colors.text,
},
visibleSwitch: {
2022-09-22 05:52:33 +00:00
transform: [{ scaleX: .7 }, { scaleY: .7 }],
2022-09-21 21:06:30 +00:00
},
logout: {
marginTop: 32,
borderRadius: 4,
backgroundColor: Colors.primary,
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
paddingLeft: 8,
paddingRight: 8,
2022-09-22 05:52:33 +00:00
paddingTop: 8,
paddingBottom: 8,
2022-09-21 21:06:30 +00:00
},
logoutText: {
color: Colors.white,
paddingLeft: 8,
2022-09-21 22:13:43 +00:00
},
unconfirmed: {
backgroundColor: Colors.lightgrey,
2022-10-27 05:00:25 +00:00
borderRadius: 4,
padding: 8,
width: 72,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
},
remove: {
2022-10-27 05:00:25 +00:00
backgroundColor: Colors.error,
borderRadius: 4,
padding: 8,
width: 72,
2022-10-27 05:00:25 +00:00
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
2022-10-27 05:00:25 +00:00
},
removeText: {
2022-10-27 05:00:25 +00:00
color: Colors.white,
},
2022-09-21 22:13:43 +00:00
switch: {
false: Colors.grey,
true: Colors.background,
},
2022-09-22 05:52:33 +00:00
editWrapper: {
display: 'flex',
width: '100%',
height: '100%',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'rgba(52, 52, 52, 0.8)'
},
editContainer: {
backgroundColor: Colors.formBackground,
padding: 16,
width: '80%',
maxWidth: 400,
},
editHeader: {
2022-09-26 21:39:01 +00:00
fontSize: 18,
2022-09-22 05:52:33 +00:00
paddingBottom: 16,
},
2022-09-26 21:39:01 +00:00
editList: {
width: '100%',
borderWidth: 1,
borderColor: Colors.lightgrey,
borderRadius: 2,
},
2022-09-22 05:52:33 +00:00
inputField: {
width: '100%',
borderWidth: 1,
borderColor: Colors.lightgrey,
borderRadius: 4,
padding: 8,
marginBottom: 8,
maxHeight: 92,
display: 'flex',
flexDirection: 'row',
2022-09-22 05:52:33 +00:00
},
input: {
2022-09-26 21:39:01 +00:00
fontSize: 14,
flexGrow: 1,
2022-09-22 05:52:33 +00:00
},
editControls: {
display: 'flex',
flexDirection: 'row',
justifyContent: 'flex-end',
},
2022-09-26 21:39:01 +00:00
close: {
borderWidth: 1,
borderColor: Colors.lightgrey,
borderRadius: 4,
padding: 8,
marginTop: 8,
width: 72,
display: 'flex',
alignItems: 'center',
},
2022-09-22 05:52:33 +00:00
cancel: {
borderWidth: 1,
borderColor: Colors.lightgrey,
borderRadius: 4,
padding: 8,
marginRight: 8,
width: 72,
display: 'flex',
alignItems: 'center',
},
disabled: {
borderWidth: 1,
borderColor: Colors.lightgrey,
padding: 8,
borderRadius: 4,
width: 72,
display: 'flex',
alignItems: 'center',
},
disabledText: {
color: Colors.disabled,
},
2022-09-22 05:52:33 +00:00
save: {
padding: 8,
borderRadius: 4,
backgroundColor: Colors.primary,
width: 72,
display: 'flex',
alignItems: 'center',
},
save: {
padding: 8,
borderRadius: 4,
backgroundColor: Colors.error,
width: 72,
display: 'flex',
alignItems: 'center',
},
2022-09-26 21:39:01 +00:00
link: {
marginTop: 16,
},
linkText: {
color: Colors.primary,
},
delete: {
backgroundColor: Colors.error,
marginTop: 16,
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
paddingLeft: 8,
paddingRight: 8,
paddingTop: 8,
paddingBottom: 8,
borderRadius: 4,
},
deleteText: {
paddingLeft: 8,
color: Colors.white,
},
2022-09-22 05:52:33 +00:00
saveText: {
color: Colors.white,
2022-10-14 21:01:07 +00:00
},
disconnected: {
color: Colors.alert,
},
2022-09-21 21:06:30 +00:00
})