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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. // @flow
  2. import { createStyleSheet } from '../../../base/styles';
  3. import BaseTheme from '../../../base/ui/components/BaseTheme.native';
  4. export const dialogStyles = createStyleSheet({
  5. questionText: {
  6. ...BaseTheme.typography.bodyShortBold,
  7. color: BaseTheme.palette.text01,
  8. marginBottom: BaseTheme.spacing[2],
  9. marginLeft: BaseTheme.spacing[2]
  10. },
  11. questionOwnerText: {
  12. ...BaseTheme.typography.bodyShortBold,
  13. color: BaseTheme.palette.text03,
  14. marginBottom: BaseTheme.spacing[2],
  15. marginLeft: BaseTheme.spacing[2]
  16. },
  17. questionField: {
  18. borderWidth: 1,
  19. borderColor: BaseTheme.palette.border05,
  20. borderRadius: BaseTheme.shape.borderRadius,
  21. color: BaseTheme.palette.text01,
  22. fontSize: 14,
  23. marginHorizontal: BaseTheme.spacing[3],
  24. marginBottom: BaseTheme.spacing[3],
  25. paddingBottom: BaseTheme.spacing[2],
  26. paddingLeft: BaseTheme.spacing[3],
  27. paddingRight: BaseTheme.spacing[3],
  28. paddingTop: BaseTheme.spacing[2]
  29. },
  30. optionContainer: {
  31. flexDirection: 'column',
  32. marginTop: BaseTheme.spacing[3],
  33. marginHorizontal: BaseTheme.spacing[3]
  34. },
  35. optionFieldLabel: {
  36. color: BaseTheme.palette.text03,
  37. marginBottom: BaseTheme.spacing[2]
  38. },
  39. optionRemoveButtonText: {
  40. color: BaseTheme.palette.actionDangerActive
  41. },
  42. field: {
  43. borderWidth: 1,
  44. borderColor: BaseTheme.palette.border05,
  45. borderRadius: BaseTheme.shape.borderRadius,
  46. color: BaseTheme.palette.text01,
  47. fontSize: 14,
  48. paddingBottom: BaseTheme.spacing[2],
  49. paddingLeft: BaseTheme.spacing[3],
  50. paddingRight: BaseTheme.spacing[3],
  51. paddingTop: BaseTheme.spacing[2]
  52. }
  53. });
  54. export const resultsStyles = createStyleSheet({
  55. title: {
  56. fontSize: 24,
  57. fontWeight: 'bold'
  58. },
  59. barContainer: {
  60. backgroundColor: '#ccc',
  61. borderRadius: 3,
  62. width: '100%',
  63. height: 6,
  64. marginTop: 2
  65. },
  66. bar: {
  67. backgroundColor: BaseTheme.palette.action01,
  68. borderRadius: BaseTheme.shape.borderRadius,
  69. height: 6
  70. },
  71. voters: {
  72. backgroundColor: BaseTheme.palette.ui04,
  73. borderColor: BaseTheme.palette.ui03,
  74. borderRadius: BaseTheme.shape.borderRadius,
  75. borderWidth: 1,
  76. padding: BaseTheme.spacing[2],
  77. marginTop: BaseTheme.spacing[2]
  78. },
  79. voter: {
  80. color: BaseTheme.palette.text01
  81. },
  82. answerContainer: {
  83. marginHorizontal: BaseTheme.spacing[2],
  84. marginVertical: BaseTheme.spacing[3],
  85. maxWidth: '100%'
  86. },
  87. answerHeader: {
  88. flexDirection: 'row',
  89. justifyContent: 'space-between'
  90. },
  91. answer: {
  92. color: BaseTheme.palette.text01,
  93. flexShrink: 1
  94. },
  95. answerVoteCount: {
  96. paddingLeft: 10
  97. },
  98. chatQuestion: {
  99. fontWeight: 'bold'
  100. }
  101. });
  102. export const chatStyles = createStyleSheet({
  103. questionFieldLabel: {
  104. color: BaseTheme.palette.text03,
  105. marginBottom: BaseTheme.spacing[2],
  106. marginLeft: BaseTheme.spacing[3]
  107. },
  108. noPollContent: {
  109. alignItems: 'center',
  110. flex: 1,
  111. flexDirection: 'column',
  112. justifyContent: 'center',
  113. paddingTop: '4%'
  114. },
  115. noPollText: {
  116. flex: 1,
  117. color: BaseTheme.palette.text03,
  118. textAlign: 'center',
  119. maxWidth: '70%'
  120. },
  121. pollItemContainer: {
  122. backgroundColor: BaseTheme.palette.ui02,
  123. borderColor: BaseTheme.palette.border05,
  124. borderRadius: BaseTheme.shape.borderRadius,
  125. boxShadow: BaseTheme.shape.boxShadow,
  126. borderWidth: 1,
  127. padding: BaseTheme.spacing[2],
  128. margin: BaseTheme.spacing[3]
  129. },
  130. pollCreateContainer: {
  131. flex: 1
  132. },
  133. pollCreateSubContainer: {
  134. flex: 1,
  135. marginTop: BaseTheme.spacing[3]
  136. },
  137. pollCreateButtonsContainer: {
  138. marginHorizontal: BaseTheme.spacing[3],
  139. marginVertical: '8%'
  140. },
  141. pollCreateButton: {
  142. flex: 1,
  143. marginHorizontal: BaseTheme.spacing[2]
  144. },
  145. pollSendLabel: {
  146. color: BaseTheme.palette.text01,
  147. textTransform: 'capitalize'
  148. },
  149. pollSendDisabledLabel: {
  150. color: BaseTheme.palette.text03,
  151. textTransform: 'capitalize'
  152. },
  153. buttonRow: {
  154. flexDirection: 'row'
  155. },
  156. buttonRowAndroid: {
  157. flexDirection: 'row',
  158. marginBottom: BaseTheme.spacing[3]
  159. },
  160. buttonRowIos: {
  161. flexDirection: 'row'
  162. },
  163. answerContent: {
  164. paddingBottom: 8
  165. },
  166. switchRow: {
  167. alignItems: 'center',
  168. flexDirection: 'row',
  169. padding: BaseTheme.spacing[2]
  170. },
  171. switchLabel: {
  172. color: BaseTheme.palette.text01,
  173. marginLeft: BaseTheme.spacing[2]
  174. },
  175. pollCreateAddButton: {
  176. margin: BaseTheme.spacing[2]
  177. },
  178. toggleText: {
  179. color: BaseTheme.palette.action01,
  180. paddingTop: BaseTheme.spacing[3]
  181. },
  182. createPollButton: {
  183. marginHorizontal: BaseTheme.spacing[4],
  184. marginVertical: '8%'
  185. },
  186. pollPane: {
  187. flex: 1,
  188. padding: 8
  189. },
  190. pollPaneContainer: {
  191. backgroundColor: BaseTheme.palette.ui01,
  192. flex: 1
  193. },
  194. bottomLinks: {
  195. flexDirection: 'row',
  196. justifyContent: 'space-between',
  197. marginHorizontal: BaseTheme.spacing[2]
  198. }
  199. });