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

styles.js 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // @flow
  2. import { BoxModel, ColorPalette } from '../../styles';
  3. /**
  4. * The default color of the {@code Label} and {@code ExpandedLabel}.
  5. */
  6. export const DEFAULT_COLOR = '#808080';
  7. /**
  8. * Margin of the {@Label} - to be reused when rendering the
  9. * {@code ExpandedLabel}.
  10. */
  11. export const LABEL_MARGIN = 5;
  12. /**
  13. * Size of the {@Label} - to be reused when rendering the
  14. * {@code ExpandedLabel}.
  15. */
  16. export const LABEL_SIZE = 36;
  17. /**
  18. * The styles of the native base/label feature.
  19. */
  20. export default {
  21. expandedLabelArrow: {
  22. backgroundColor: ColorPalette.blue,
  23. height: 15,
  24. transform: [ { rotate: '45deg' }, { translateX: 10 } ],
  25. width: 15
  26. },
  27. expandedLabelContainer: {
  28. backgroundColor: ColorPalette.blue,
  29. borderColor: ColorPalette.blue,
  30. borderRadius: 6,
  31. marginHorizontal: BoxModel.margin,
  32. padding: BoxModel.padding
  33. },
  34. expandedLabelText: {
  35. color: ColorPalette.white
  36. },
  37. expandedLabelWrapper: {
  38. alignItems: 'flex-end',
  39. flexDirection: 'column'
  40. },
  41. /**
  42. * The outermost view.
  43. */
  44. indicatorContainer: {
  45. alignItems: 'center',
  46. backgroundColor: DEFAULT_COLOR,
  47. borderRadius: LABEL_SIZE / 2,
  48. borderWidth: 0,
  49. flex: 0,
  50. height: LABEL_SIZE,
  51. justifyContent: 'center',
  52. margin: LABEL_MARGIN,
  53. opacity: 0.6,
  54. width: LABEL_SIZE
  55. },
  56. indicatorIcon: {
  57. fontSize: 24
  58. },
  59. indicatorText: {
  60. color: ColorPalette.white,
  61. fontSize: 10
  62. },
  63. labelOff: {
  64. opacity: 0.3
  65. }
  66. };