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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import { StyleSheet } from 'react-native';
  2. import { BoxModel, ColorPalette, createStyleSheet } from '../../base/styles';
  3. /**
  4. * The default color of text on overlays.
  5. */
  6. const TEXT_COLOR = ColorPalette.white;
  7. /**
  8. * The React {@code Component} styles of {@code OverlayFrame}.
  9. */
  10. export const overlayFrame = createStyleSheet({
  11. /**
  12. * Style for a backdrop overlay covering the screen the the overlay is
  13. * rendered.
  14. */
  15. container: {
  16. ...StyleSheet.absoluteFillObject,
  17. backgroundColor: ColorPalette.red
  18. }
  19. });
  20. /**
  21. * The React {@code Component} styles of {@code PageReloadOverlay}.
  22. */
  23. export const pageReloadOverlay = createStyleSheet({
  24. /**
  25. * Style for the buttons on {@code PageReloadOverlay}.
  26. */
  27. button: {
  28. color: TEXT_COLOR,
  29. fontSize: 20,
  30. marginVertical: BoxModel.margin,
  31. textAlign: 'center'
  32. },
  33. /**
  34. * Style for the "box" surrounding the buttons at the bottom of the page.
  35. */
  36. buttonBox: {
  37. bottom: BoxModel.margin,
  38. left: 0,
  39. position: 'absolute',
  40. right: 0
  41. },
  42. /**
  43. * Style for the container of the {@code PageReloadOVerlay}.
  44. */
  45. container: {
  46. flex: 1,
  47. margin: BoxModel.margin * 2
  48. },
  49. /**
  50. * Style for the {@code LoadingIndicator}.
  51. */
  52. loadingIndicator: {
  53. ...StyleSheet.absoluteFillObject,
  54. alignItems: 'center',
  55. justifyContent: 'center'
  56. },
  57. /**
  58. * Style for the descriptive error message.
  59. */
  60. message: {
  61. color: TEXT_COLOR,
  62. fontSize: 16,
  63. marginTop: BoxModel.margin,
  64. textAlign: 'center'
  65. },
  66. /**
  67. * Style for the error title.
  68. */
  69. title: {
  70. color: TEXT_COLOR,
  71. fontSize: 24,
  72. textAlign: 'center'
  73. }
  74. });