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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. import {
  2. BoxModel,
  3. ColorPalette,
  4. createStyleSheet,
  5. fixAndroidViewClipping
  6. } from '../../../base/styles';
  7. import { FILMSTRIP_SIZE } from '../../../filmstrip';
  8. export const NAVBAR_GRADIENT_COLORS = [ 'black', '#00000000' ];
  9. /**
  10. * The styles of the feature conference.
  11. */
  12. export default createStyleSheet({
  13. /**
  14. * {@code Conference} style.
  15. */
  16. conference: fixAndroidViewClipping({
  17. alignSelf: 'stretch',
  18. backgroundColor: ColorPalette.appBackground,
  19. flex: 1
  20. }),
  21. displayNameBackdrop: {
  22. alignSelf: 'center',
  23. backgroundColor: 'rgba(28, 32, 37, 0.6)',
  24. borderRadius: 4,
  25. margin: 16,
  26. paddingHorizontal: 16,
  27. paddingVertical: 4
  28. },
  29. displayNameText: {
  30. color: ColorPalette.white,
  31. fontSize: 14
  32. },
  33. gradient: {
  34. position: 'absolute',
  35. top: 0,
  36. left: 0,
  37. right: 0,
  38. flex: 1
  39. },
  40. gradientStretch: {
  41. height: 116
  42. },
  43. /**
  44. * View that contains the indicators.
  45. */
  46. indicatorContainer: {
  47. flex: 1,
  48. flexDirection: 'row',
  49. justifyContent: 'flex-end',
  50. margin: BoxModel.margin
  51. },
  52. /**
  53. * Indicator container for wide aspect ratio.
  54. */
  55. indicatorContainerWide: {
  56. marginRight: FILMSTRIP_SIZE + BoxModel.margin
  57. },
  58. labelWrapper: {
  59. flexDirection: 'column',
  60. position: 'absolute',
  61. right: 0,
  62. top: 0
  63. },
  64. navBarButton: {
  65. iconStyle: {
  66. color: ColorPalette.white,
  67. fontSize: 24
  68. },
  69. underlayColor: 'transparent'
  70. },
  71. navBarContainer: {
  72. flexDirection: 'column',
  73. left: 0,
  74. position: 'absolute',
  75. right: 0,
  76. top: 0
  77. },
  78. navBarSafeView: {
  79. left: 0,
  80. position: 'absolute',
  81. right: 0,
  82. top: 0
  83. },
  84. navBarWrapper: {
  85. alignItems: 'center',
  86. flex: 1,
  87. flexDirection: 'row',
  88. height: 44,
  89. justifyContent: 'space-between',
  90. paddingHorizontal: 14
  91. },
  92. roomName: {
  93. color: ColorPalette.white,
  94. fontSize: 17,
  95. fontWeight: '400'
  96. },
  97. roomNameWrapper: {
  98. flexDirection: 'row',
  99. justifyContent: 'center',
  100. left: 0,
  101. paddingHorizontal: 48,
  102. position: 'absolute',
  103. right: 0
  104. },
  105. /**
  106. * The style of the {@link View} which expands over the whole
  107. * {@link Conference} area and splits it between the {@link Filmstrip} and
  108. * the {@link Toolbox}.
  109. */
  110. toolboxAndFilmstripContainer: {
  111. bottom: BoxModel.margin,
  112. flexDirection: 'column',
  113. justifyContent: 'flex-end',
  114. left: 0,
  115. position: 'absolute',
  116. right: 0,
  117. // Both on Android and iOS there is the status bar which may be visible.
  118. // On iPhone X there is the notch. In the two cases BoxModel.margin is
  119. // not enough.
  120. top: BoxModel.margin * 3
  121. }
  122. });