You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

styles.js 1.3KB

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