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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. // @flow
  2. import { BoxModel, createStyleSheet, ColorPalette } from '../../base/styles';
  3. /**
  4. * The styles of the React {@code Components} of the feature notifications.
  5. */
  6. export default createStyleSheet({
  7. /**
  8. * The content (left) column of the notification.
  9. */
  10. contentColumn: {
  11. flex: 1,
  12. flexDirection: 'column',
  13. padding: BoxModel.padding
  14. },
  15. /**
  16. * Test style of the notification.
  17. */
  18. contentText: {
  19. color: ColorPalette.white
  20. },
  21. /**
  22. * Dismiss icon style.
  23. */
  24. dismissIcon: {
  25. alignSelf: 'center',
  26. color: ColorPalette.white,
  27. fontSize: 16,
  28. padding: 1.5 * BoxModel.padding
  29. },
  30. /**
  31. * Outermost view of a single notification.
  32. */
  33. notification: {
  34. borderRadius: 5,
  35. flexDirection: 'row',
  36. marginTop: 0.5 * BoxModel.margin
  37. },
  38. /**
  39. * Outermost container of a list of notifications.
  40. */
  41. notificationContainer: {
  42. flexGrow: 0,
  43. justifyContent: 'flex-end',
  44. padding: 2 * BoxModel.padding,
  45. paddingBottom: 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. });