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.

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