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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. import { createStyleSheet } from '../../base/styles';
  2. const AVATAR_OPACITY = 0.4;
  3. const AVATAR_SIZE = 65;
  4. const OVERLAY_FONT_COLOR = 'rgba(255, 255, 255, 0.6)';
  5. export const UNDERLAY_COLOR = 'rgba(255, 255, 255, 0.2)';
  6. /**
  7. * The styles of the React {@code Component}s of the feature recent-list i.e.
  8. * {@code RecentList}.
  9. */
  10. export default createStyleSheet({
  11. /**
  12. * The style of the actual avatar.
  13. * Recent-list copy!
  14. */
  15. avatar: {
  16. alignItems: 'center',
  17. backgroundColor: `rgba(23, 160, 219, ${AVATAR_OPACITY})`,
  18. borderRadius: AVATAR_SIZE,
  19. height: AVATAR_SIZE,
  20. justifyContent: 'center',
  21. width: AVATAR_SIZE
  22. },
  23. /**
  24. * The style of the avatar container that makes the avatar rounded.
  25. * Recent-list copy!
  26. */
  27. avatarContainer: {
  28. alignItems: 'center',
  29. flexDirection: 'row',
  30. justifyContent: 'space-around',
  31. padding: 5
  32. },
  33. /**
  34. * Simple {@code Text} content of the avatar (the actual initials).
  35. * Recent-list copy!
  36. */
  37. avatarContent: {
  38. backgroundColor: 'rgba(0, 0, 0, 0)',
  39. color: OVERLAY_FONT_COLOR,
  40. fontSize: 32,
  41. fontWeight: '100',
  42. textAlign: 'center'
  43. },
  44. /**
  45. * The top level container style of the list.
  46. */
  47. container: {
  48. flex: 1
  49. },
  50. /**
  51. * Shows the container disabled.
  52. */
  53. containerDisabled: {
  54. opacity: 0.2
  55. },
  56. list: {
  57. flex: 1,
  58. flexDirection: 'column'
  59. },
  60. listItem: {
  61. alignItems: 'center',
  62. flex: 1,
  63. flexDirection: 'row',
  64. paddingVertical: 5
  65. },
  66. listItemDetails: {
  67. flex: 1,
  68. flexDirection: 'column',
  69. overflow: 'hidden',
  70. paddingHorizontal: 5
  71. },
  72. listItemText: {
  73. color: OVERLAY_FONT_COLOR,
  74. fontSize: 16
  75. },
  76. listItemTitle: {
  77. fontWeight: 'bold',
  78. fontSize: 18
  79. },
  80. listSection: {
  81. alignItems: 'center',
  82. backgroundColor: 'rgba(255, 255, 255, 0.2)',
  83. flex: 1,
  84. flexDirection: 'row',
  85. padding: 5
  86. },
  87. listSectionText: {
  88. color: OVERLAY_FONT_COLOR,
  89. fontSize: 14,
  90. fontWeight: 'normal'
  91. }
  92. });