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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import { ColorPalette, createStyleSheet } from '../../styles';
  2. /**
  3. * The React {@code Component} styles of {@code Dialog}.
  4. */
  5. export const dialog = createStyleSheet({
  6. /**
  7. * The style of the {@code Text} in a {@code Dialog} button.
  8. */
  9. buttonText: {
  10. color: ColorPalette.blue
  11. },
  12. /**
  13. * The style of the {@code Text} in a {@code Dialog} button which is
  14. * disabled.
  15. */
  16. disabledButtonText: {
  17. color: ColorPalette.darkGrey
  18. }
  19. });
  20. /**
  21. * The React {@code Component} styles of {@code BottomSheet}. These have
  22. * been implemented as per the Material Design guidelines:
  23. * {@link https://material.io/guidelines/components/bottom-sheets.html}.
  24. */
  25. export const bottomSheetStyles = createStyleSheet({
  26. /**
  27. * Style for a backdrop which dims the view in the background. This view
  28. * will also be clickable. The backgroundColor is applied to the overlay
  29. * view instead, so the modal animation doesn't affect the backdrop.
  30. */
  31. backdrop: {
  32. bottom: 0,
  33. left: 0,
  34. position: 'absolute',
  35. right: 0,
  36. top: 0
  37. },
  38. /**
  39. * Style for the container of the sheet.
  40. */
  41. container: {
  42. alignItems: 'flex-end',
  43. flex: 1,
  44. flexDirection: 'row',
  45. justifyContent: 'center'
  46. },
  47. /**
  48. * Style for an overlay on top of which the sheet will be displayed.
  49. */
  50. overlay: {
  51. backgroundColor: 'rgba(0, 0, 0, 0.8)',
  52. bottom: 0,
  53. left: 0,
  54. position: 'absolute',
  55. right: 0,
  56. top: 0
  57. },
  58. /**
  59. * Bottom sheet's base style.
  60. */
  61. sheet: {
  62. flex: 1,
  63. backgroundColor: ColorPalette.white,
  64. paddingHorizontal: 16,
  65. paddingVertical: 8
  66. }
  67. });