summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components/AppButtonStyles.tsx
blob: e8100ca82c6b724b6277ef7a7c5cef14f27d2ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import styled from 'styled-components';
import { colors } from '../../config.json';

export const StyledLabelContainer = styled.div((props: { textAdjustment: number }) => ({
  display: 'flex',
  flex: 1,
  paddingRight: `${props.textAdjustment > 0 ? props.textAdjustment : 0}px`,
  paddingLeft: `${props.textAdjustment < 0 ? Math.abs(props.textAdjustment) : 0}px`,
}));

export const StyledLabel = styled.span({
  fontFamily: 'DINPro',
  fontSize: '20px',
  fontWeight: 900,
  lineHeight: '26px',
  flex: 1,
  color: colors.white,
  textAlign: 'center',
});

export const StyledButton = styled.button({
  display: 'flex',
  cursor: 'default',
  borderRadius: 4,
  border: 'none',
  padding: 0,
  ':disabled': {
    opacity: 0.5,
  },
});

export const StyledButtonContent = styled.div({
  display: 'flex',
  flex: 1,
  flexDirection: 'row',
  alignItems: 'center',
  justifyContent: 'center',
  padding: 9,
});