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.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import {
  2. BoxModel,
  3. ColorPalette,
  4. createStyleSheet
  5. } from '../../base/styles';
  6. export const ANDROID_UNDERLINE_COLOR = 'transparent';
  7. export const CONTAINER_PADDING = 2 * BoxModel.padding;
  8. export const HEADER_COLOR = ColorPalette.blue;
  9. export const HEADER_PADDING = BoxModel.padding;
  10. const TEXT_SIZE = 17;
  11. /**
  12. * The styles of the React {@code Components} of the feature
  13. * {@code app-settings}.
  14. */
  15. export default createStyleSheet({
  16. /**
  17. * The back button style.
  18. */
  19. backIcon: {
  20. alignSelf: 'center',
  21. fontSize: 26,
  22. padding: 8,
  23. paddingRight: 22
  24. },
  25. /**
  26. * Standardized style for a field container {@code View}.
  27. */
  28. fieldContainer: {
  29. alignItems: 'center',
  30. flexDirection: 'row',
  31. minHeight: 65
  32. },
  33. /**
  34. * Standard container for a {@code View} containing a field label.
  35. */
  36. fieldLabelContainer: {
  37. alignItems: 'center',
  38. flexDirection: 'row',
  39. marginRight: 5
  40. },
  41. /**
  42. * Field container style for all but last row {@code View}.
  43. */
  44. fieldSeparator: {
  45. borderBottomWidth: 1,
  46. borderColor: 'rgba(0, 0, 0, 0.1)'
  47. },
  48. /**
  49. * Style for the {@code View} containing each
  50. * field values (the actual field).
  51. */
  52. fieldValueContainer: {
  53. alignItems: 'center',
  54. flex: 1,
  55. flexDirection: 'row',
  56. justifyContent: 'flex-end'
  57. },
  58. formSectionTitle: {
  59. backgroundColor: 'rgba(0, 0, 0, 0.1)',
  60. marginTop: 5,
  61. padding: 5
  62. },
  63. /**
  64. * Page header {@code View}.
  65. */
  66. headerContainer: {
  67. alignItems: 'center',
  68. backgroundColor: HEADER_COLOR,
  69. flexDirection: 'row',
  70. justifyContent: 'flex-start',
  71. padding: HEADER_PADDING
  72. },
  73. /**
  74. * The title {@code Text} of the header.
  75. */
  76. headerTitle: {
  77. color: ColorPalette.white,
  78. fontSize: 22
  79. },
  80. /**
  81. * Style of the ScrollView to be able to scroll the content.
  82. */
  83. scrollView: {
  84. flex: 1
  85. },
  86. /**
  87. * The back button style on the settings screen.
  88. */
  89. settingsBackButton: {
  90. color: ColorPalette.white
  91. },
  92. /**
  93. * The top level container {@code View}.
  94. */
  95. settingsContainer: {
  96. backgroundColor: ColorPalette.white,
  97. flex: 1,
  98. flexDirection: 'column',
  99. margin: 0,
  100. padding: CONTAINER_PADDING,
  101. paddingTop: 0
  102. },
  103. /**
  104. * Global {@code Text} color for the page.
  105. */
  106. text: {
  107. color: ColorPalette.black,
  108. fontSize: TEXT_SIZE
  109. },
  110. /**
  111. * Standard text input field style.
  112. */
  113. textInputField: {
  114. flex: 1,
  115. fontSize: TEXT_SIZE,
  116. textAlign: 'right'
  117. }
  118. });