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.js 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. pollCreateButton: {
  126. flex: 1,
  127. marginHorizontal: 8
  128. },
  129. buttonRow: {
  130. flexDirection: 'row'
  131. },
  132. answerContent: {
  133. paddingBottom: 8
  134. },
  135. switchRow: {
  136. alignItems: 'center',
  137. flexDirection: 'row',
  138. padding: 6
  139. },
  140. pollCreateAddButton: {
  141. margin: BaseTheme.spacing[2]
  142. },
  143. toggleText: {
  144. color: ColorPalette.blue,
  145. paddingTop: BaseTheme.spacing[3]
  146. },
  147. createPollButton: {
  148. padding: 8,
  149. margin: BaseTheme.spacing[2]
  150. },
  151. PollPane: {
  152. flex: 1,
  153. padding: 8
  154. },
  155. PollPaneContainer: {
  156. flex: 1
  157. },
  158. PollPaneContent: {
  159. justifyContent: 'space-between',
  160. padding: BaseTheme.spacing[3],
  161. flex: 1
  162. },
  163. bottomLinks: {
  164. flexDirection: 'row',
  165. justifyContent: 'space-between'
  166. }
  167. });