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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. import {
  2. BoxModel,
  3. ColorPalette,
  4. createStyleSheet,
  5. fixAndroidViewClipping
  6. } from '../../base/styles';
  7. export const PLACEHOLDER_TEXT_COLOR = 'rgba(255, 255, 255, 0.3)';
  8. /**
  9. * The default color of text on the WelcomePage.
  10. */
  11. const TEXT_COLOR = ColorPalette.white;
  12. /**
  13. * The styles of the React {@code Components} of the feature welcome including
  14. * {@code WelcomePage} and {@code BlankPage}.
  15. */
  16. export default createStyleSheet({
  17. /**
  18. * The style of the top-level container of {@code BlankPage}.
  19. */
  20. blankPage: {
  21. },
  22. /**
  23. * Join button style.
  24. */
  25. button: {
  26. backgroundColor: ColorPalette.white,
  27. borderColor: ColorPalette.white,
  28. borderRadius: 8,
  29. borderWidth: 1,
  30. height: 45,
  31. justifyContent: 'center',
  32. marginBottom: BoxModel.margin,
  33. marginTop: BoxModel.margin
  34. },
  35. /**
  36. * Join button text style.
  37. */
  38. buttonText: {
  39. alignSelf: 'center',
  40. color: ColorPalette.blue,
  41. fontSize: 18
  42. },
  43. /**
  44. * The style of the legal-related content such as (hyper)links to Privacy
  45. * Policy and Terms of Service displayed on the WelcomePage.
  46. */
  47. legaleseContainer: {
  48. alignItems: 'center',
  49. flex: 0,
  50. flexDirection: 'row',
  51. justifyContent: 'center',
  52. // XXX Lift the legaleseContainer up above the iPhone X home indicator;
  53. // otherwise, the former is partially underneath the latter.
  54. marginBottom: BoxModel.margin
  55. },
  56. /**
  57. * The style of a piece of legal-related content such as a (hyper)link to
  58. * Privacy Policy or Terms of Service displayed on the WelcomePage.
  59. */
  60. legaleseItem: {
  61. // XXX The backgroundColor must be transparent; otherwise, the
  62. // backgroundColor of a parent may show through. Moreover, the
  63. // legaleseItem is not really expected to have a background of its own.
  64. backgroundColor: 'transparent',
  65. color: TEXT_COLOR,
  66. fontSize: 12,
  67. margin: BoxModel.margin
  68. },
  69. /**
  70. * The style of the top-level container/{@code View} of
  71. * {@code LocalVideoTrackUnderlay}.
  72. */
  73. localVideoTrackUnderlay: fixAndroidViewClipping({
  74. alignSelf: 'stretch',
  75. backgroundColor: 'transparent',
  76. flex: 1
  77. }),
  78. /**
  79. * Container for room name input box and 'join' button.
  80. */
  81. roomContainer: {
  82. alignSelf: 'stretch',
  83. flex: 1,
  84. flexDirection: 'column',
  85. // XXX RecentList will eventually push the room name TextInput and the
  86. // Join button up from the center. I don't like that movement from
  87. // center to top, especially without an animation. Just start with the
  88. // room name TextInput and the Join button at the top.
  89. justifyContent: 'flex-start',
  90. margin: 3 * BoxModel.margin,
  91. // XXX Be consistent with the marginBottom of legaleseContainer!
  92. marginBottom: BoxModel.margin,
  93. // XXX Push the roomContainer down bellow the iPhone X notchl otherwise,
  94. // the former seems glued to the latter. THe amount of visual margin at
  95. // the top is pretty much as the visual margin at the bottom (if you sum
  96. // all bottom and top margins and account for legaleseItem) which brings
  97. // symmetry as well.
  98. marginTop: 5 * BoxModel.margin
  99. },
  100. /**
  101. * Room input style.
  102. */
  103. textInput: {
  104. backgroundColor: 'transparent',
  105. borderColor: ColorPalette.white,
  106. borderRadius: 8,
  107. borderWidth: 1,
  108. color: TEXT_COLOR,
  109. fontSize: 23,
  110. height: 50,
  111. padding: 4,
  112. textAlign: 'center'
  113. },
  114. /**
  115. * Application title style.
  116. */
  117. title: {
  118. color: TEXT_COLOR,
  119. fontSize: 25,
  120. marginBottom: 2 * BoxModel.margin,
  121. textAlign: 'center'
  122. },
  123. /**
  124. * The style of the top-level container of {@code WelcomePage}.
  125. */
  126. welcomePage: {
  127. backgroundColor: ColorPalette.blue
  128. }
  129. });