您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

styles.js 1.9KB

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