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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. // @flow
  2. import { StyleSheet } from 'react-native';
  3. import { BoxModel, createStyleSheet, ColorPalette } from '../../base/styles';
  4. /**
  5. * The styles of the React {@code Components} of the feature notifications.
  6. */
  7. export default createStyleSheet({
  8. /**
  9. * The content (left) column of the notification.
  10. */
  11. contentColumn: {
  12. flex: 1,
  13. flexDirection: 'column',
  14. padding: BoxModel.padding
  15. },
  16. /**
  17. * Test style of the notification.
  18. */
  19. contentText: {
  20. color: ColorPalette.white
  21. },
  22. /**
  23. * Dismiss icon style.
  24. */
  25. dismissIcon: {
  26. alignSelf: 'center',
  27. color: ColorPalette.white,
  28. fontSize: 16,
  29. padding: 1.5 * BoxModel.padding
  30. },
  31. /**
  32. * Outermost view of a single notification.
  33. */
  34. notification: {
  35. borderRadius: 5,
  36. flexDirection: 'row',
  37. marginTop: 0.5 * BoxModel.margin
  38. },
  39. /**
  40. * Outermost container of a list of notifications.
  41. */
  42. notificationContainer: {
  43. alignItems: 'flex-start',
  44. bottom: 0,
  45. left: 0,
  46. padding: 2 * BoxModel.padding,
  47. position: 'absolute',
  48. right: 0
  49. },
  50. /**
  51. * Wrapper for the message (without title).
  52. */
  53. notificationContent: {
  54. flexDirection: 'column',
  55. paddingVertical: 0.5 * BoxModel.padding
  56. },
  57. /**
  58. * A full screen overlay to help to position the container.
  59. */
  60. notificationOverlay: {
  61. ...StyleSheet.absoluteFillObject
  62. },
  63. /**
  64. * The View containing the title.
  65. */
  66. notificationTitle: {
  67. paddingVertical: 0.5 * BoxModel.padding
  68. },
  69. /**
  70. * Background settings for different notification types.
  71. */
  72. notificationTypeError: {
  73. backgroundColor: ColorPalette.R400
  74. },
  75. notificationTypeInfo: {
  76. backgroundColor: ColorPalette.N500
  77. },
  78. notificationTypeNormal: {
  79. // NOTE: Mobile has black background when the large video doesn't render
  80. // a stream, so we avoid using black as the background of the normal
  81. // type notifications.
  82. backgroundColor: ColorPalette.N500
  83. },
  84. notificationTypeSuccess: {
  85. backgroundColor: ColorPalette.G400
  86. },
  87. notificationTypeWarning: {
  88. backgroundColor: ColorPalette.Y200
  89. },
  90. /**
  91. * Title text style.
  92. */
  93. titleText: {
  94. color: ColorPalette.white,
  95. fontWeight: 'bold'
  96. }
  97. });