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

styles.js 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // @flow
  2. import { ColorPalette } from '../../styles';
  3. import BaseTheme from '../../ui/components/BaseTheme';
  4. /**
  5. * The default color of the {@code Label} and {@code ExpandedLabel}.
  6. */
  7. export const DEFAULT_COLOR = '#36383C';
  8. /**
  9. * Margin of the {@Label} - to be reused when rendering the
  10. * {@code ExpandedLabel}.
  11. */
  12. export const LABEL_MARGIN = 8;
  13. /**
  14. * Size of the {@Label} - to be reused when rendering the
  15. * {@code ExpandedLabel}.
  16. */
  17. export const LABEL_SIZE = 28;
  18. /**
  19. * The styles of the native base/label feature.
  20. */
  21. export default {
  22. expandedLabelContainer: {
  23. position: 'absolute',
  24. left: 0,
  25. right: 0,
  26. top: 36,
  27. flexDirection: 'row',
  28. justifyContent: 'center',
  29. zIndex: 1
  30. },
  31. expandedLabelTextContainer: {
  32. borderRadius: 3,
  33. paddingHorizontal: LABEL_MARGIN,
  34. paddingVertical: LABEL_MARGIN / 2
  35. },
  36. expandedLabelText: {
  37. color: ColorPalette.white
  38. },
  39. /**
  40. * The outermost view.
  41. */
  42. labelContainer: {
  43. alignItems: 'space-between',
  44. backgroundColor: DEFAULT_COLOR,
  45. borderRadius: 3,
  46. flex: 0,
  47. height: LABEL_SIZE,
  48. justifyContent: 'center',
  49. marginLeft: LABEL_MARGIN,
  50. marginBottom: LABEL_MARGIN,
  51. paddingHorizontal: 8
  52. },
  53. labelText: {
  54. color: ColorPalette.white,
  55. ...BaseTheme.typography.labelBold
  56. },
  57. labelOff: {
  58. opacity: 0.3
  59. }
  60. };