Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

styles.js 3.1KB

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