Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

styles.js 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. import { ColorPalette, 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. * Button style of the open settings button.
  10. */
  11. noPermissionMessageButton: {
  12. backgroundColor: ColorPalette.blue,
  13. borderColor: ColorPalette.blue,
  14. borderRadius: 4,
  15. borderWidth: 1,
  16. height: 30,
  17. justifyContent: 'center',
  18. margin: 15,
  19. paddingHorizontal: 20
  20. },
  21. /**
  22. * Text style of the open settings button.
  23. */
  24. noPermissionMessageButtonText: {
  25. color: ColorPalette.white
  26. },
  27. /**
  28. * Text style of the no permission message.
  29. */
  30. noPermissionMessageText: {
  31. backgroundColor: 'transparent',
  32. color: 'rgba(255, 255, 255, 0.6)'
  33. },
  34. /**
  35. * Top level view of the no permission message.
  36. */
  37. noPermissionMessageView: {
  38. alignItems: 'center',
  39. flex: 1,
  40. flexDirection: 'column',
  41. justifyContent: 'center',
  42. padding: 20
  43. },
  44. /**
  45. * The top level container of the notification.
  46. */
  47. notificationContainer: {
  48. alignSelf: 'flex-start',
  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. /**
  118. * The container that contains the icon.
  119. */
  120. notificationIconContainer: {
  121. alignItems: 'center',
  122. flexDirection: 'row',
  123. height: NOTIFICATION_SIZE,
  124. justifyContent: 'center'
  125. },
  126. /**
  127. * A single line of text of the notification.
  128. */
  129. notificationText: {
  130. color: 'white',
  131. fontSize: 13
  132. },
  133. /**
  134. * The container for all the lines if the norification.
  135. */
  136. notificationTextContainer: {
  137. flexDirection: 'column',
  138. height: NOTIFICATION_SIZE,
  139. justifyContent: 'center'
  140. },
  141. /**
  142. * The touchable component.
  143. */
  144. touchableView: {
  145. flexDirection: 'row'
  146. }
  147. });