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

styles.js 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 SimpleBottomSheet}. 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 simpleBottomSheet = createStyleSheet({
  26. /**
  27. * Style for the container of the sheet.
  28. */
  29. container: {
  30. flex: 1,
  31. flexDirection: 'row'
  32. },
  33. /**
  34. * Style for a backdrop overlay covering the screen while the
  35. */
  36. overlay: {
  37. backgroundColor: 'rgba(0, 0, 0, 0.8)',
  38. bottom: 0,
  39. left: 0,
  40. position: 'absolute',
  41. right: 0,
  42. top: 0
  43. },
  44. /**
  45. * Base style for each row.
  46. */
  47. row: {
  48. alignItems: 'center',
  49. flexDirection: 'row',
  50. height: 48
  51. },
  52. /**
  53. * Style for the {@code Icon} element in a row.
  54. */
  55. rowIcon: {
  56. fontSize: 24
  57. },
  58. /**
  59. * Helper for adding some padding between the icon and text in a row.
  60. */
  61. rowPadding: {
  62. width: 32
  63. },
  64. /**
  65. * Style for a row which is marked as selected.
  66. */
  67. rowSelectedText: {
  68. color: ColorPalette.blue
  69. },
  70. /**
  71. * Style for the {@code Text} element in a row.
  72. */
  73. rowText: {
  74. fontSize: 16
  75. },
  76. /**
  77. * Wrapper for all rows, it adds a margin to the sheet container.
  78. */
  79. rowsWrapper: {
  80. marginHorizontal: 16,
  81. marginVertical: 8
  82. },
  83. /**
  84. * Bottom sheet's base style.
  85. */
  86. sheet: {
  87. alignSelf: 'flex-end',
  88. backgroundColor: ColorPalette.white,
  89. flex: 1
  90. }
  91. });