You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

styles.js 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. import { ColorPalette } from '../../../base/styles';
  2. export const ANDROID_UNDERLINE_COLOR = 'transparent';
  3. export const PLACEHOLDER_COLOR = ColorPalette.lightGrey;
  4. const TEXT_SIZE = 17;
  5. /**
  6. * The styles of the native components of the feature {@code settings}.
  7. */
  8. export default {
  9. /**
  10. * Standardized style for a field container {@code View}.
  11. */
  12. fieldContainer: {
  13. alignItems: 'center',
  14. flexDirection: 'row',
  15. minHeight: 65,
  16. paddingHorizontal: 8
  17. },
  18. /**
  19. * * Appended style for column layout fields.
  20. */
  21. fieldContainerColumn: {
  22. alignItems: 'flex-start',
  23. flexDirection: 'column',
  24. paddingVertical: 3
  25. },
  26. /**
  27. * Standard container for a {@code View} containing a field label.
  28. */
  29. fieldLabelContainer: {
  30. alignItems: 'center',
  31. flexDirection: 'row',
  32. marginRight: 5
  33. },
  34. /**
  35. * Text of the field labels on the form.
  36. */
  37. fieldLabelText: {
  38. fontSize: TEXT_SIZE
  39. },
  40. /**
  41. * Appended style for column layout fields.
  42. */
  43. fieldLabelTextColumn: {
  44. fontSize: 12
  45. },
  46. /**
  47. * Field container style for all but last row {@code View}.
  48. */
  49. fieldSeparator: {
  50. borderBottomWidth: 1,
  51. borderColor: 'rgba(0, 0, 0, 0.1)'
  52. },
  53. /**
  54. * Style for the {@code View} containing each
  55. * field values (the actual field).
  56. */
  57. fieldValueContainer: {
  58. alignItems: 'center',
  59. flex: 1,
  60. flexDirection: 'row',
  61. justifyContent: 'flex-end'
  62. },
  63. /**
  64. * Style fo the form section separator titles.
  65. */
  66. formSectionTitle: {
  67. backgroundColor: 'rgba(0, 0, 0, 0.1)',
  68. padding: 5
  69. },
  70. /**
  71. * Global {@code Text} color for the components.
  72. */
  73. text: {
  74. color: ColorPalette.black
  75. },
  76. /**
  77. * Standard text input field style.
  78. */
  79. textInputField: {
  80. color: ColorPalette.black,
  81. flex: 1,
  82. fontSize: TEXT_SIZE,
  83. textAlign: 'right'
  84. },
  85. /**
  86. * Appended style for column layout fields.
  87. */
  88. textInputFieldColumn: {
  89. backgroundColor: 'rgb(245, 245, 245)',
  90. borderRadius: 8,
  91. marginVertical: 5,
  92. paddingVertical: 3,
  93. textAlign: 'left'
  94. }
  95. };