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 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. import { createStyleSheet } from '../../base/styles';
  2. const AVATAR_OPACITY = 0.4;
  3. const AVATAR_SIZE = 65;
  4. const NOTIFICATION_SIZE = 55;
  5. const OVERLAY_FONT_COLOR = 'rgba(255, 255, 255, 0.6)';
  6. export const UNDERLAY_COLOR = 'rgba(255, 255, 255, 0.2)';
  7. /**
  8. * The styles of the React {@code Component}s of the feature recent-list i.e.
  9. * {@code RecentList}.
  10. */
  11. export default createStyleSheet({
  12. /**
  13. * The style of the actual avatar.
  14. * Recent-list copy!
  15. */
  16. avatar: {
  17. alignItems: 'center',
  18. backgroundColor: `rgba(23, 160, 219, ${AVATAR_OPACITY})`,
  19. borderRadius: AVATAR_SIZE,
  20. height: AVATAR_SIZE,
  21. justifyContent: 'center',
  22. width: AVATAR_SIZE
  23. },
  24. /**
  25. * The style of the avatar container that makes the avatar rounded.
  26. * Recent-list copy!
  27. */
  28. avatarContainer: {
  29. alignItems: 'center',
  30. flexDirection: 'row',
  31. justifyContent: 'space-around',
  32. padding: 5
  33. },
  34. /**
  35. * Simple {@code Text} content of the avatar (the actual initials).
  36. * Recent-list copy!
  37. */
  38. avatarContent: {
  39. backgroundColor: 'rgba(0, 0, 0, 0)',
  40. color: OVERLAY_FONT_COLOR,
  41. fontSize: 32,
  42. fontWeight: '100',
  43. textAlign: 'center'
  44. },
  45. /**
  46. * Style for the actual notification content.
  47. */
  48. notificationContainer: {
  49. flexDirection: 'row',
  50. justifyContent: 'center',
  51. overflow: 'hidden',
  52. position: 'absolute'
  53. },
  54. /**
  55. * Additional style for the container when the notification is displayed
  56. * on the side (narrow view).
  57. */
  58. notificationContainerSide: {
  59. top: 100
  60. },
  61. /**
  62. * Additional style for the container when the notification is displayed
  63. * on the top (wide view).
  64. */
  65. notificationContainerTop: {
  66. justifyContent: 'center',
  67. left: 0,
  68. right: 0,
  69. top: 0
  70. },
  71. /**
  72. * The top level container of the notification.
  73. */
  74. notificationContent: {
  75. alignSelf: 'flex-start',
  76. flexDirection: 'row',
  77. height: NOTIFICATION_SIZE,
  78. justifyContent: 'center',
  79. paddingHorizontal: 10
  80. },
  81. /**
  82. * Color for upcoming meeting notification.
  83. */
  84. notificationContentNext: {
  85. backgroundColor: '#eeb231'
  86. },
  87. /**
  88. * Color for already ongoing meeting notifications.
  89. */
  90. notificationContentPast: {
  91. backgroundColor: 'red'
  92. },
  93. /**
  94. * Additional style for the content when the notification is displayed
  95. * on the side (narrow view).
  96. */
  97. notificationContentSide: {
  98. borderBottomRightRadius: NOTIFICATION_SIZE,
  99. borderTopRightRadius: NOTIFICATION_SIZE
  100. },
  101. /**
  102. * Additional style for the content when the notification is displayed
  103. * on the top (wide view).
  104. */
  105. notificationContentTop: {
  106. borderBottomLeftRadius: NOTIFICATION_SIZE / 2,
  107. borderBottomRightRadius: NOTIFICATION_SIZE / 2,
  108. paddingHorizontal: 20
  109. },
  110. /**
  111. * The icon of the notification.
  112. */
  113. notificationIcon: {
  114. color: 'white',
  115. fontSize: 25
  116. },
  117. notificationIconContainer: {
  118. alignItems: 'center',
  119. flexDirection: 'row',
  120. height: NOTIFICATION_SIZE,
  121. justifyContent: 'center'
  122. },
  123. notificationText: {
  124. color: 'white',
  125. fontSize: 13
  126. },
  127. notificationTextContainer: {
  128. flexDirection: 'column',
  129. height: NOTIFICATION_SIZE,
  130. justifyContent: 'center'
  131. },
  132. /**
  133. * The top level container style of the list.
  134. */
  135. container: {
  136. flex: 1
  137. },
  138. /**
  139. * Shows the container disabled.
  140. */
  141. containerDisabled: {
  142. opacity: 0.2
  143. },
  144. list: {
  145. flex: 1,
  146. flexDirection: 'column'
  147. },
  148. listItem: {
  149. alignItems: 'center',
  150. flex: 1,
  151. flexDirection: 'row',
  152. paddingVertical: 5
  153. },
  154. listItemDetails: {
  155. flex: 1,
  156. flexDirection: 'column',
  157. overflow: 'hidden',
  158. paddingHorizontal: 5
  159. },
  160. listItemText: {
  161. color: OVERLAY_FONT_COLOR,
  162. fontSize: 16
  163. },
  164. listItemTitle: {
  165. fontWeight: 'bold',
  166. fontSize: 18
  167. },
  168. listSection: {
  169. alignItems: 'center',
  170. backgroundColor: 'rgba(255, 255, 255, 0.2)',
  171. flex: 1,
  172. flexDirection: 'row',
  173. padding: 5
  174. },
  175. listSectionText: {
  176. color: OVERLAY_FONT_COLOR,
  177. fontSize: 14,
  178. fontWeight: 'normal'
  179. },
  180. touchableView: {
  181. flexDirection: 'row'
  182. }
  183. });