application-amicale/native-base-theme/components/Form.js

87 lines
1.6 KiB
JavaScript
Raw Normal View History

2019-06-25 22:20:24 +02:00
// @flow
2020-01-28 20:07:21 +01:00
export default () => {
2019-06-25 22:20:24 +02:00
const theme = {
2020-01-28 20:07:21 +01:00
'NativeBase.Item': {
'.fixedLabel': {
'NativeBase.Label': {
2019-06-25 22:20:24 +02:00
paddingLeft: null
},
marginLeft: 15
},
2020-01-28 20:07:21 +01:00
'.inlineLabel': {
'NativeBase.Label': {
2019-06-25 22:20:24 +02:00
paddingLeft: null
},
marginLeft: 15
},
2020-01-28 20:07:21 +01:00
'.placeholderLabel': {
'NativeBase.Input': {}
2019-06-25 22:20:24 +02:00
},
2020-01-28 20:07:21 +01:00
'.stackedLabel': {
'NativeBase.Label': {
2019-06-25 22:20:24 +02:00
top: 5,
paddingLeft: null
},
2020-01-28 20:07:21 +01:00
'NativeBase.Input': {
2019-06-25 22:20:24 +02:00
paddingLeft: null,
marginLeft: null
},
2020-01-28 20:07:21 +01:00
'NativeBase.Icon': {
2019-06-25 22:20:24 +02:00
marginTop: 36
},
marginLeft: 15
},
2020-01-28 20:07:21 +01:00
'.floatingLabel': {
'NativeBase.Input': {
2019-06-25 22:20:24 +02:00
paddingLeft: null,
top: 10,
marginLeft: null
},
2020-01-28 20:07:21 +01:00
'NativeBase.Label': {
2019-06-25 22:20:24 +02:00
left: 0,
top: 6
},
2020-01-28 20:07:21 +01:00
'NativeBase.Icon': {
2019-06-25 22:20:24 +02:00
top: 6
},
marginTop: 15,
marginLeft: 15
},
2020-01-28 20:07:21 +01:00
'.regular': {
'NativeBase.Label': {
2019-06-25 22:20:24 +02:00
left: 0
},
marginLeft: 0
},
2020-01-28 20:07:21 +01:00
'.rounded': {
'NativeBase.Label': {
2019-06-25 22:20:24 +02:00
left: 0
},
marginLeft: 0
},
2020-01-28 20:07:21 +01:00
'.underline': {
'NativeBase.Label': {
2019-06-25 22:20:24 +02:00
left: 0,
top: 0,
2020-01-28 20:07:21 +01:00
position: 'relative'
2019-06-25 22:20:24 +02:00
},
2020-01-28 20:07:21 +01:00
'NativeBase.Input': {
2019-06-25 22:20:24 +02:00
left: -15
},
marginLeft: 15
},
2020-01-28 20:07:21 +01:00
'.last': {
2019-06-25 22:20:24 +02:00
marginLeft: 0,
paddingLeft: 15
},
2020-01-28 20:07:21 +01:00
'NativeBase.Label': {
2019-06-25 22:20:24 +02:00
paddingRight: 5
},
marginLeft: 15
}
};
return theme;
};