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.

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