Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. ...StyleSheet.absoluteFillObject,
  44. justifyContent: 'flex-end',
  45. padding: 2 * BoxModel.padding
  46. },
  47. /**
  48. * Wrapper for the message (without title).
  49. */
  50. notificationContent: {
  51. flexDirection: 'column',
  52. paddingVertical: 0.5 * BoxModel.padding
  53. },
  54. /**
  55. * The View containing the title.
  56. */
  57. notificationTitle: {
  58. paddingVertical: 0.5 * BoxModel.padding
  59. },
  60. /**
  61. * Background settings for different notification types.
  62. */
  63. notificationTypeError: {
  64. backgroundColor: ColorPalette.R400
  65. },
  66. notificationTypeInfo: {
  67. backgroundColor: ColorPalette.N500
  68. },
  69. notificationTypeNormal: {
  70. // NOTE: Mobile has black background when the large video doesn't render
  71. // a stream, so we avoid using black as the background of the normal
  72. // type notifications.
  73. backgroundColor: ColorPalette.N500
  74. },
  75. notificationTypeSuccess: {
  76. backgroundColor: ColorPalette.G400
  77. },
  78. notificationTypeWarning: {
  79. backgroundColor: ColorPalette.Y200
  80. },
  81. /**
  82. * Title text style.
  83. */
  84. titleText: {
  85. color: ColorPalette.white,
  86. fontWeight: 'bold'
  87. }
  88. });