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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // @flow
  2. import { ColorPalette } from '../../../styles';
  3. const DEFAULT_SIZE = 65;
  4. /**
  5. * The styles of the feature base/participants.
  6. */
  7. export default {
  8. avatarContainer: (size: number = DEFAULT_SIZE) => {
  9. return {
  10. alignItems: 'center',
  11. borderRadius: size / 2,
  12. height: size,
  13. justifyContent: 'center',
  14. overflow: 'hidden',
  15. width: size
  16. };
  17. },
  18. avatarContent: (size: number = DEFAULT_SIZE) => {
  19. return {
  20. height: size,
  21. width: size
  22. };
  23. },
  24. initialsContainer: {
  25. alignItems: 'center',
  26. alignSelf: 'stretch',
  27. flex: 1,
  28. justifyContent: 'center'
  29. },
  30. initialsText: (size: number = DEFAULT_SIZE) => {
  31. return {
  32. color: 'rgba(255, 255, 255, 0.6)',
  33. fontSize: size * 0.45,
  34. fontWeight: '100'
  35. };
  36. },
  37. staticAvatar: {
  38. backgroundColor: ColorPalette.lightGrey,
  39. opacity: 0.4
  40. }
  41. };