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

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