Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

styles.js 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. // @flow
  2. import BaseTheme from '../../../base/ui/components/BaseTheme.native';
  3. const contentColumn = {
  4. flex: 1,
  5. flexDirection: 'column',
  6. marginLeft: BaseTheme.spacing[2]
  7. };
  8. const notification = {
  9. display: 'flex',
  10. backgroundColor: BaseTheme.palette.ui12,
  11. borderRadius: BaseTheme.shape.borderRadius,
  12. borderLeftColor: BaseTheme.palette.link01Active,
  13. borderLeftWidth: 4,
  14. flexDirection: 'row',
  15. maxHeight: 104,
  16. height: 'auto',
  17. marginBottom: BaseTheme.spacing[3],
  18. marginHorizontal: BaseTheme.spacing[2],
  19. maxWidth: 400,
  20. width: 'auto'
  21. };
  22. /**
  23. * The styles of the React {@code Components} of the feature notifications.
  24. */
  25. export default {
  26. /**
  27. * The content (left) column of the notification.
  28. */
  29. interactiveContentColumn: {
  30. ...contentColumn
  31. },
  32. contentColumn: {
  33. ...contentColumn,
  34. justifyContent: 'center'
  35. },
  36. /**
  37. * Test style of the notification.
  38. */
  39. contentContainer: {
  40. marginTop: BaseTheme.spacing[2]
  41. },
  42. contentText: {
  43. color: BaseTheme.palette.text04,
  44. marginLeft: BaseTheme.spacing[6],
  45. marginTop: BaseTheme.spacing[1]
  46. },
  47. contentTextTitle: {
  48. color: BaseTheme.palette.text04,
  49. marginLeft: BaseTheme.spacing[6],
  50. fontWeight: 'bold',
  51. marginTop: BaseTheme.spacing[1]
  52. },
  53. /**
  54. * Dismiss icon style.
  55. */
  56. dismissIcon: {
  57. color: BaseTheme.palette.icon04,
  58. fontSize: 20
  59. },
  60. notification: {
  61. ...notification
  62. },
  63. notificationWithDescription: {
  64. ...notification,
  65. paddingBottom: BaseTheme.spacing[2]
  66. },
  67. /**
  68. * Wrapper for the message.
  69. */
  70. notificationContent: {
  71. alignItems: 'center',
  72. flexDirection: 'row'
  73. },
  74. participantName: {
  75. color: BaseTheme.palette.text04,
  76. overflow: 'hidden'
  77. },
  78. iconContainer: {
  79. left: BaseTheme.spacing[1],
  80. position: 'absolute',
  81. top: BaseTheme.spacing[2]
  82. },
  83. btn: {
  84. marginLeft: BaseTheme.spacing[4]
  85. },
  86. btnContainer: {
  87. display: 'flex',
  88. flexDirection: 'row',
  89. marginLeft: BaseTheme.spacing[1]
  90. }
  91. };