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

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