您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

styles.js 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. import {
  2. BoxModel,
  3. ColorPalette,
  4. createStyleSheet,
  5. fixAndroidViewClipping
  6. } from '../../base/styles';
  7. /**
  8. * The default color of text on the WelcomePage.
  9. */
  10. const TEXT_COLOR = ColorPalette.white;
  11. /**
  12. * The styles of WelcomePage.
  13. */
  14. export const styles = createStyleSheet({
  15. /**
  16. * Join button style.
  17. */
  18. button: {
  19. backgroundColor: ColorPalette.white,
  20. borderColor: ColorPalette.white,
  21. borderRadius: 8,
  22. borderWidth: 1,
  23. height: 45,
  24. justifyContent: 'center',
  25. marginBottom: BoxModel.margin,
  26. marginTop: BoxModel.margin
  27. },
  28. /**
  29. * Join button text style.
  30. */
  31. buttonText: {
  32. alignSelf: 'center',
  33. color: '#00ccff',
  34. fontSize: 18
  35. },
  36. /**
  37. * The style of the top-level container of WelcomePage.
  38. */
  39. container: fixAndroidViewClipping({
  40. alignSelf: 'stretch',
  41. backgroundColor: ColorPalette.blue,
  42. flex: 1
  43. }),
  44. /**
  45. * The style of the legal-related content such as (hyper)links to Privacy
  46. * Policy and Terms of Service displayed on the WelcomePage.
  47. */
  48. legaleseContainer: {
  49. alignItems: 'center',
  50. flex: 0,
  51. flexDirection: 'row',
  52. justifyContent: 'center'
  53. },
  54. /**
  55. * The style of a piece of legal-related content such as a (hyper)link to
  56. * Privacy Policy or Terms of Service displayed on the WelcomePage.
  57. */
  58. legaleseItem: {
  59. color: TEXT_COLOR,
  60. fontSize: 12,
  61. margin: BoxModel.margin
  62. },
  63. /**
  64. * The style of the View displayed over the local video. The latter is
  65. * thought of as the background (content) of WelcomePage. The former is
  66. * thought of as the foreground (content) of WelcomePage.
  67. */
  68. localVideoOverlay: {
  69. // Since (1) the top-level container of WelcomePage is not transparent
  70. // and, more importantly, (2) this View is displayed over the local
  71. // video, this View would better not have a background color.
  72. // Otherwise, Views within this View will inherit its background color
  73. // and Text, for example, will display non-transparent rectangles over
  74. // the local video.
  75. backgroundColor: 'transparent',
  76. bottom: 0,
  77. flex: 1,
  78. flexDirection: 'column',
  79. left: 0,
  80. position: 'absolute',
  81. right: 0,
  82. top: 0
  83. },
  84. /**
  85. * Container for room name input box and 'join' button.
  86. */
  87. roomContainer: {
  88. flex: 1,
  89. flexDirection: 'column',
  90. justifyContent: 'center',
  91. margin: 3 * BoxModel.margin
  92. },
  93. /**
  94. * Room input style.
  95. */
  96. textInput: {
  97. backgroundColor: 'transparent',
  98. borderColor: ColorPalette.white,
  99. borderRadius: 8,
  100. borderWidth: 1,
  101. color: TEXT_COLOR,
  102. fontSize: 23,
  103. height: 50,
  104. padding: 4,
  105. textAlign: 'center'
  106. },
  107. /**
  108. * Application title style.
  109. */
  110. title: {
  111. color: TEXT_COLOR,
  112. fontSize: 25,
  113. marginBottom: 2 * BoxModel.margin,
  114. textAlign: 'center'
  115. }
  116. });