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.ts 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import { ColorPalette } from '../../../styles/components/styles/ColorPalette';
  2. import BaseTheme from '../../../ui/components/BaseTheme.native';
  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. zIndex: 1
  29. },
  30. expandedLabelTextContainer: {
  31. borderRadius: 3,
  32. paddingHorizontal: LABEL_MARGIN,
  33. paddingVertical: LABEL_MARGIN / 2
  34. },
  35. expandedLabelText: {
  36. color: ColorPalette.white
  37. },
  38. /**
  39. * The outermost view.
  40. */
  41. labelContainer: {
  42. alignItems: 'space-between',
  43. backgroundColor: DEFAULT_COLOR,
  44. borderRadius: 3,
  45. flex: 0,
  46. height: LABEL_SIZE,
  47. justifyContent: 'center',
  48. marginLeft: LABEL_MARGIN,
  49. marginBottom: LABEL_MARGIN,
  50. paddingHorizontal: 8
  51. },
  52. labelText: {
  53. color: ColorPalette.white,
  54. ...BaseTheme.typography.labelBold
  55. },
  56. labelOff: {
  57. opacity: 0.3
  58. }
  59. };