您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

styles.js 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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.ui10,
  11. borderRadius: BaseTheme.shape.borderRadius,
  12. borderLeftColor: BaseTheme.palette.link01Active,
  13. borderLeftWidth: 4,
  14. flexDirection: 'row',
  15. maxHeight: 120,
  16. height: 'auto',
  17. marginBottom: BaseTheme.spacing[2],
  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. withToolbox: {
  92. bottom: 56,
  93. position: 'absolute',
  94. width: '100%'
  95. },
  96. withToolboxTileView: {
  97. bottom: 56,
  98. position: 'absolute',
  99. width: '100%'
  100. },
  101. withoutToolbox: {
  102. position: 'absolute',
  103. width: '100%'
  104. },
  105. withoutToolboxTileView: {
  106. bottom: 0,
  107. position: 'absolute',
  108. width: '100%'
  109. }
  110. };