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

styles.js 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // @flow
  2. import { BoxModel, ColorPalette, createStyleSheet } 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 createStyleSheet({
  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. indicatorText: {
  57. color: ColorPalette.white,
  58. fontSize: 12
  59. },
  60. labelOff: {
  61. opacity: 0.3
  62. }
  63. });