Form.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // @flow
  2. export default () => {
  3. const theme = {
  4. 'NativeBase.Item': {
  5. '.fixedLabel': {
  6. 'NativeBase.Label': {
  7. paddingLeft: null
  8. },
  9. marginLeft: 15
  10. },
  11. '.inlineLabel': {
  12. 'NativeBase.Label': {
  13. paddingLeft: null
  14. },
  15. marginLeft: 15
  16. },
  17. '.placeholderLabel': {
  18. 'NativeBase.Input': {}
  19. },
  20. '.stackedLabel': {
  21. 'NativeBase.Label': {
  22. top: 5,
  23. paddingLeft: null
  24. },
  25. 'NativeBase.Input': {
  26. paddingLeft: null,
  27. marginLeft: null
  28. },
  29. 'NativeBase.Icon': {
  30. marginTop: 36
  31. },
  32. marginLeft: 15
  33. },
  34. '.floatingLabel': {
  35. 'NativeBase.Input': {
  36. paddingLeft: null,
  37. top: 10,
  38. marginLeft: null
  39. },
  40. 'NativeBase.Label': {
  41. left: 0,
  42. top: 6
  43. },
  44. 'NativeBase.Icon': {
  45. top: 6
  46. },
  47. marginTop: 15,
  48. marginLeft: 15
  49. },
  50. '.regular': {
  51. 'NativeBase.Label': {
  52. left: 0
  53. },
  54. marginLeft: 0
  55. },
  56. '.rounded': {
  57. 'NativeBase.Label': {
  58. left: 0
  59. },
  60. marginLeft: 0
  61. },
  62. '.underline': {
  63. 'NativeBase.Label': {
  64. left: 0,
  65. top: 0,
  66. position: 'relative'
  67. },
  68. 'NativeBase.Input': {
  69. left: -15
  70. },
  71. marginLeft: 15
  72. },
  73. '.last': {
  74. marginLeft: 0,
  75. paddingLeft: 15
  76. },
  77. 'NativeBase.Label': {
  78. paddingRight: 5
  79. },
  80. marginLeft: 15
  81. }
  82. };
  83. return theme;
  84. };