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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. import { createStyleSheet } from '../../base/styles';
  2. const NOTIFICATION_SIZE = 55;
  3. /**
  4. * The styles of the React {@code Component}s of the feature meeting-list i.e.
  5. * {@code MeetingList}.
  6. */
  7. export default createStyleSheet({
  8. /**
  9. * The top level container of the notification.
  10. */
  11. notificationContainer: {
  12. alignSelf: 'flex-start',
  13. flexDirection: 'row',
  14. justifyContent: 'center',
  15. overflow: 'hidden',
  16. position: 'absolute'
  17. },
  18. /**
  19. * Additional style for the container when the notification is displayed
  20. * on the side (narrow view).
  21. */
  22. notificationContainerSide: {
  23. top: 100
  24. },
  25. /**
  26. * Additional style for the container when the notification is displayed
  27. * on the top (wide view).
  28. */
  29. notificationContainerTop: {
  30. justifyContent: 'center',
  31. left: 0,
  32. right: 0,
  33. top: 0
  34. },
  35. /**
  36. * The top level container of the notification.
  37. */
  38. notificationContent: {
  39. alignSelf: 'flex-start',
  40. flexDirection: 'row',
  41. height: NOTIFICATION_SIZE,
  42. justifyContent: 'center',
  43. paddingHorizontal: 10
  44. },
  45. /**
  46. * Color for upcoming meeting notification.
  47. */
  48. notificationContentNext: {
  49. backgroundColor: '#eeb231'
  50. },
  51. /**
  52. * Color for already ongoing meeting notifications.
  53. */
  54. notificationContentPast: {
  55. backgroundColor: 'red'
  56. },
  57. /**
  58. * Additional style for the content when the notification is displayed
  59. * on the side (narrow view).
  60. */
  61. notificationContentSide: {
  62. borderBottomRightRadius: NOTIFICATION_SIZE,
  63. borderTopRightRadius: NOTIFICATION_SIZE
  64. },
  65. /**
  66. * Additional style for the content when the notification is displayed
  67. * on the top (wide view).
  68. */
  69. notificationContentTop: {
  70. borderBottomLeftRadius: NOTIFICATION_SIZE / 2,
  71. borderBottomRightRadius: NOTIFICATION_SIZE / 2,
  72. paddingHorizontal: 20
  73. },
  74. /**
  75. * The icon of the notification.
  76. */
  77. notificationIcon: {
  78. color: 'white',
  79. fontSize: 25
  80. },
  81. /**
  82. * The container that contains the icon.
  83. */
  84. notificationIconContainer: {
  85. alignItems: 'center',
  86. flexDirection: 'row',
  87. height: NOTIFICATION_SIZE,
  88. justifyContent: 'center'
  89. },
  90. /**
  91. * A single line of text of the notification.
  92. */
  93. notificationText: {
  94. color: 'white',
  95. fontSize: 13
  96. },
  97. /**
  98. * The container for all the lines if the norification.
  99. */
  100. notificationTextContainer: {
  101. flexDirection: 'column',
  102. height: NOTIFICATION_SIZE,
  103. justifyContent: 'center'
  104. },
  105. /**
  106. * The touchable component.
  107. */
  108. touchableView: {
  109. flexDirection: 'row'
  110. }
  111. });