您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

styles.js 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. // @flow
  2. import { ColorPalette, createStyleSheet } from '../../../base/styles';
  3. import BaseTheme from '../../../base/ui/components/BaseTheme';
  4. export const answerStyles = createStyleSheet({
  5. question: {
  6. fontSize: 24,
  7. fontWeight: 'bold',
  8. marginBottom: 6
  9. },
  10. answer: {
  11. flexDirection: 'row',
  12. alignItems: 'center',
  13. marginBottom: 3
  14. },
  15. option: {
  16. flexShrink: 1
  17. }
  18. });
  19. export const dialogStyles = createStyleSheet({
  20. question: {
  21. fontSize: 16,
  22. fontWeight: 'bold',
  23. marginVertical: 4
  24. },
  25. optionContainer: {
  26. flexDirection: 'row'
  27. },
  28. field: {
  29. borderBottomWidth: 1,
  30. borderColor: ColorPalette.blue,
  31. fontSize: 14,
  32. flexGrow: 1,
  33. paddingBottom: 0,
  34. flexShrink: 1
  35. },
  36. buttonContainer: {
  37. justifyContent: 'flex-end',
  38. alignItems: 'center'
  39. },
  40. icon: {
  41. color: ColorPalette.white,
  42. backgroundColor: ColorPalette.blue,
  43. borderRadius: 5,
  44. margin: 0
  45. },
  46. plusButton: {
  47. marginTop: 8
  48. }
  49. });
  50. export const resultsStyles = createStyleSheet({
  51. title: {
  52. fontSize: 24,
  53. fontWeight: 'bold'
  54. },
  55. barContainer: {
  56. backgroundColor: '#ccc',
  57. borderRadius: 3,
  58. width: '100%',
  59. height: 6,
  60. marginTop: 2
  61. },
  62. bar: {
  63. backgroundColor: ColorPalette.blue,
  64. borderRadius: 3,
  65. height: 6
  66. },
  67. voters: {
  68. borderRadius: 3,
  69. borderWidth: 1,
  70. borderColor: 'gray',
  71. padding: 2,
  72. marginHorizontal: 8,
  73. marginVertical: 4
  74. },
  75. answerContainer: {
  76. marginVertical: 2,
  77. maxWidth: '100%'
  78. },
  79. answerHeader: {
  80. flexDirection: 'row',
  81. justifyContent: 'space-between'
  82. },
  83. answer: {
  84. flexShrink: 1
  85. },
  86. answerVoteCount: {
  87. paddingLeft: 10
  88. },
  89. chatQuestion: {
  90. fontWeight: 'bold'
  91. }
  92. });
  93. export const chatStyles = createStyleSheet({
  94. messageFooter: {
  95. flex: 1,
  96. flexDirection: 'row',
  97. justifyContent: 'space-between',
  98. alignItems: 'center',
  99. fontSize: 11,
  100. marginTop: 6
  101. },
  102. showDetails: {
  103. fontWeight: 'bold'
  104. },
  105. noPollText: {
  106. flex: 1,
  107. color: BaseTheme.palette.ui05,
  108. textAlign: 'center',
  109. paddingTop: '8%'
  110. },
  111. pollItemContainer: {
  112. borderRadius: 4,
  113. borderColor: '#2183ad',
  114. borderWidth: 2,
  115. padding: 16,
  116. marginBottom: 8
  117. },
  118. pollCreateContainer: {
  119. flex: 1,
  120. justifyContent: 'space-between'
  121. },
  122. pollCreateSubContainer: {
  123. flex: 1
  124. },
  125. pollCreateButtonsContainer: {
  126. paddingVertical: BaseTheme.spacing[2]
  127. },
  128. pollCreateButton: {
  129. flex: 1,
  130. marginHorizontal: 8
  131. },
  132. buttonRow: {
  133. flexDirection: 'row'
  134. },
  135. answerContent: {
  136. paddingBottom: 8
  137. },
  138. switchRow: {
  139. alignItems: 'center',
  140. flexDirection: 'row',
  141. padding: 6
  142. },
  143. pollCreateAddButton: {
  144. margin: BaseTheme.spacing[2]
  145. },
  146. toggleText: {
  147. color: ColorPalette.blue,
  148. paddingTop: BaseTheme.spacing[3]
  149. },
  150. createPollButton: {
  151. padding: 8,
  152. margin: BaseTheme.spacing[2]
  153. },
  154. PollPane: {
  155. flex: 1,
  156. padding: 8
  157. },
  158. PollPaneContainer: {
  159. flex: 1
  160. },
  161. PollPaneContent: {
  162. justifyContent: 'space-between',
  163. padding: BaseTheme.spacing[3],
  164. flex: 1
  165. },
  166. bottomLinks: {
  167. flexDirection: 'row',
  168. justifyContent: 'space-between'
  169. }
  170. });