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

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