verdnatura-chat/app/views/RoomsListView/styles.js

164 lines
3.2 KiB
JavaScript
Raw Normal View History

2019-01-29 19:52:56 +00:00
import { StyleSheet } from 'react-native';
import { isIOS } from '../../utils/deviceInfo';
2019-03-29 19:36:07 +00:00
import {
COLOR_SEPARATOR, COLOR_TEXT, COLOR_PRIMARY, COLOR_WHITE, COLOR_TEXT_DESCRIPTION
2019-03-29 19:36:07 +00:00
} from '../../constants/colors';
import sharedStyles from '../Styles';
export default StyleSheet.create({
container: {
flex: 1,
2019-03-29 19:36:07 +00:00
backgroundColor: isIOS ? COLOR_WHITE : '#E1E5E8'
},
list: {
width: '100%',
2019-03-29 19:36:07 +00:00
backgroundColor: COLOR_WHITE
},
actionButtonIcon: {
fontSize: 20,
height: 22,
color: 'white'
},
loading: {
flex: 1
},
dropdownContainerHeader: {
height: 41,
borderBottomWidth: StyleSheet.hairlineWidth,
2019-03-27 20:06:57 +00:00
borderColor: COLOR_SEPARATOR,
alignItems: 'center',
2019-03-29 19:36:07 +00:00
backgroundColor: isIOS ? COLOR_WHITE : '#54585E',
flexDirection: 'row'
},
sortToggleContainerClose: {
position: 'absolute',
top: 0,
width: '100%'
},
sortToggleText: {
fontSize: 15,
flex: 1,
2019-03-29 19:36:07 +00:00
marginLeft: 15,
...sharedStyles.textColorDescription,
...sharedStyles.textRegular
},
dropdownContainer: {
2019-03-29 19:36:07 +00:00
backgroundColor: COLOR_WHITE,
width: '100%',
position: 'absolute',
top: 0
},
sortItemButton: {
height: 57,
justifyContent: 'center'
},
sortItemContainer: {
flexDirection: 'row',
alignItems: 'center'
},
sortItemText: {
fontSize: 18,
2019-03-29 19:36:07 +00:00
flex: 1,
...sharedStyles.textColorNormal,
...sharedStyles.textRegular
},
backdrop: {
...StyleSheet.absoluteFill,
backgroundColor: '#000000'
},
sortSeparator: {
height: StyleSheet.hairlineWidth,
2019-03-27 20:06:57 +00:00
backgroundColor: COLOR_SEPARATOR,
marginHorizontal: 15,
flex: 1
},
sortIcon: {
width: 22,
height: 22,
marginHorizontal: 15,
2019-03-29 19:36:07 +00:00
...sharedStyles.textColorDescription
},
groupTitleContainer: {
paddingHorizontal: 15,
paddingTop: 17,
paddingBottom: 10,
2019-03-29 19:36:07 +00:00
backgroundColor: isIOS ? COLOR_WHITE : '#9ea2a8'
},
groupTitle: {
2019-03-29 19:36:07 +00:00
color: isIOS ? COLOR_TEXT : '#54585E',
2019-01-29 19:52:56 +00:00
fontSize: isIOS ? 22 : 15,
letterSpacing: 0.27,
flex: 1,
2019-03-29 19:36:07 +00:00
lineHeight: isIOS ? 41 : 24,
...sharedStyles.textBold
},
serverHeader: {
justifyContent: 'space-between'
},
serverHeaderText: {
fontSize: 15,
2019-03-29 19:36:07 +00:00
marginLeft: 15,
...sharedStyles.textColorDescription,
...sharedStyles.textRegular
},
serverHeaderAdd: {
2019-03-29 19:36:07 +00:00
color: isIOS ? COLOR_PRIMARY : COLOR_WHITE,
fontSize: 15,
marginRight: 15,
2019-03-29 19:36:07 +00:00
paddingVertical: 10,
...sharedStyles.textRegular
},
serverItem: {
height: 68
},
serverItemContainer: {
flexDirection: 'row',
alignItems: 'center'
},
serverIcon: {
width: 42,
height: 42,
marginHorizontal: 15,
marginVertical: 13,
borderRadius: 4,
resizeMode: 'contain'
},
serverTextContainer: {
flex: 1,
flexDirection: 'column',
justifyContent: 'center'
},
serverName: {
2019-03-29 19:36:07 +00:00
fontSize: 18,
...sharedStyles.textColorNormal,
...sharedStyles.textSemibold
},
serverUrl: {
fontSize: 15,
2019-03-29 19:36:07 +00:00
...sharedStyles.textColorDescription,
...sharedStyles.textRegular
},
checkIcon: {
marginHorizontal: 15,
2019-03-29 19:36:07 +00:00
color: COLOR_PRIMARY
},
serverSeparator: {
height: StyleSheet.hairlineWidth,
2019-03-27 20:06:57 +00:00
backgroundColor: COLOR_SEPARATOR,
marginLeft: 72
},
directoryIcon: {
width: 22,
height: 22,
marginHorizontal: 15,
color: isIOS ? COLOR_PRIMARY : COLOR_TEXT_DESCRIPTION
},
directoryText: {
fontSize: 15,
flex: 1,
color: isIOS ? COLOR_PRIMARY : COLOR_TEXT_DESCRIPTION,
...sharedStyles.textRegular
}
});