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.ts 2.6KB

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