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 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. import BaseTheme from '../../../base/ui/components/BaseTheme.native';
  2. /**
  3. * The style for participant states.
  4. */
  5. const participantState = {
  6. display: 'flex',
  7. justifyContent: 'center'
  8. };
  9. /**
  10. * The style for content.
  11. */
  12. const flexContent = {
  13. alignItems: 'center',
  14. color: BaseTheme.palette.icon01,
  15. display: 'flex',
  16. flex: 1
  17. };
  18. /**
  19. * The style of the participants pane buttons.
  20. */
  21. const button = {
  22. alignItems: 'center',
  23. backgroundColor: BaseTheme.palette.action02,
  24. borderRadius: BaseTheme.shape.borderRadius,
  25. display: 'flex',
  26. height: 48,
  27. justifyContent: 'center',
  28. marginLeft: 'auto'
  29. };
  30. /**
  31. * Small buttons.
  32. */
  33. const smallButton = {
  34. ...button,
  35. width: 48
  36. };
  37. /**
  38. * The style of the participants pane buttons description.
  39. */
  40. const buttonContent = {
  41. ...BaseTheme.typography.labelButton,
  42. ...flexContent,
  43. color: BaseTheme.palette.text01,
  44. justifyContent: 'center'
  45. };
  46. /**
  47. * The styles of the native components of the feature {@code participants}.
  48. */
  49. export default {
  50. lobbyParticipantItem: {
  51. flexDirection: 'row',
  52. position: 'absolute',
  53. right: 0,
  54. zIndex: 1
  55. },
  56. participantActionsHover: {
  57. backgroundColor: '#292929',
  58. bottom: 1,
  59. display: 'none',
  60. position: 'absolute',
  61. right: 8,
  62. top: 0,
  63. zIndex: 1,
  64. after: {
  65. backgroundColor: 'linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #292929 100%)',
  66. content: '',
  67. bottom: 0,
  68. display: 'block',
  69. left: 0,
  70. pointerEvents: 'none',
  71. position: 'absolute',
  72. top: 0,
  73. transform: 'translateX(-100%)',
  74. width: 40
  75. }
  76. },
  77. participantActionsPermanent: {
  78. display: 'flex',
  79. zIndex: 1
  80. },
  81. participantActionsButtonAdmit: {
  82. backgroundColor: BaseTheme.palette.action01,
  83. borderRadius: BaseTheme.shape.borderRadius,
  84. height: 32
  85. },
  86. participantActionsButtonReject: {
  87. backgroundColor: BaseTheme.palette.action01,
  88. borderRadius: BaseTheme.shape.borderRadius,
  89. height: 32
  90. },
  91. participantActionsButtonContent: {
  92. alignItems: 'center',
  93. display: 'flex',
  94. height: 32
  95. },
  96. participantActionsButtonText: {
  97. color: BaseTheme.palette.text01,
  98. textTransform: 'capitalize'
  99. },
  100. allParticipantActionsButton: {
  101. ...BaseTheme.typography.labelRegular,
  102. color: BaseTheme.palette.action01,
  103. textTransform: 'capitalize'
  104. },
  105. participantContainer: {
  106. alignItems: 'center',
  107. borderBottomColor: BaseTheme.palette.field01Hover,
  108. borderBottomWidth: 2,
  109. display: 'flex',
  110. flexDirection: 'row',
  111. height: 64,
  112. width: '100%'
  113. },
  114. participantContent: {
  115. alignItems: 'center',
  116. display: 'flex',
  117. flexDirection: 'row',
  118. height: '100%',
  119. overflow: 'hidden',
  120. width: '100%'
  121. },
  122. participantNameContainer: {
  123. display: 'flex',
  124. flexDirection: 'row',
  125. marginLeft: BaseTheme.spacing[2],
  126. overflow: 'hidden',
  127. width: '63%'
  128. },
  129. participantName: {
  130. overflow: 'hidden',
  131. color: BaseTheme.palette.text01
  132. },
  133. isLocal: {
  134. color: BaseTheme.palette.text01
  135. },
  136. participantsPane: {
  137. backgroundColor: BaseTheme.palette.ui01
  138. },
  139. participantStatesContainer: {
  140. display: 'flex',
  141. flexDirection: 'row',
  142. marginLeft: 16
  143. },
  144. participantStateAudio: {
  145. ...participantState
  146. },
  147. participantStateVideo: {
  148. ...participantState,
  149. marginRight: 8
  150. },
  151. raisedHandIndicator: {
  152. backgroundColor: BaseTheme.palette.warning02,
  153. borderRadius: BaseTheme.shape.borderRadius / 2,
  154. height: 24,
  155. marginRight: 8,
  156. width: 24
  157. },
  158. raisedHandIcon: {
  159. ...flexContent,
  160. top: 4
  161. },
  162. lobbyList: {
  163. marginLeft: 16,
  164. marginRight: 16,
  165. position: 'relative'
  166. },
  167. lobbyListDetails: {
  168. alignItems: 'center',
  169. display: 'flex',
  170. flexDirection: 'row',
  171. overflow: 'hidden',
  172. paddingBottom: 16,
  173. paddingTop: 16,
  174. position: 'relative',
  175. width: '100%'
  176. },
  177. lobbyListDescription: {
  178. color: BaseTheme.palette.text01,
  179. paddingBottom: 8,
  180. paddingTop: 8,
  181. position: 'relative',
  182. width: '55%'
  183. },
  184. lobbyListActions: {
  185. flexDirection: 'row',
  186. left: 0
  187. },
  188. header: {
  189. alignItems: 'center',
  190. backgroundColor: BaseTheme.palette.ui01,
  191. top: 0,
  192. display: 'flex',
  193. flexDirection: 'row',
  194. height: 88,
  195. paddingRight: 16,
  196. position: 'absolute',
  197. right: 0,
  198. left: 0
  199. },
  200. footer: {
  201. alignItems: 'center',
  202. backgroundColor: BaseTheme.palette.ui01,
  203. bottom: 0,
  204. display: 'flex',
  205. flexDirection: 'row',
  206. height: 88,
  207. paddingRight: 16,
  208. position: 'absolute',
  209. right: 0,
  210. left: 0
  211. },
  212. closeButton: {
  213. ...smallButton
  214. },
  215. closeIcon: {
  216. ...buttonContent,
  217. left: 8
  218. },
  219. moreButton: {
  220. ...smallButton
  221. },
  222. inviteButton: {
  223. backgroundColor: BaseTheme.palette.action01
  224. },
  225. inviteLabel: {
  226. ...BaseTheme.typography.labelButtonLarge,
  227. textTransform: 'capitalize'
  228. },
  229. moreIcon: {
  230. ...buttonContent,
  231. left: 8
  232. },
  233. muteAllButton: {
  234. ...button,
  235. left: 80
  236. },
  237. muteAllLabel: {
  238. color: BaseTheme.palette.text01,
  239. textTransform: 'capitalize'
  240. }
  241. };