summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components/CustomDnsSettingsStyles.tsx
blob: 55526681a7b22d8abf55c828aef92d55816edcf5 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import styled from 'styled-components';
import { colors } from '../../config.json';
import * as Cell from './cell';
import ImageView from './ImageView';

export const StyledCustomDnsSwitchContainer = styled(Cell.Container)({
  marginBottom: '1px',
});

export const StyledCustomDnsFooter = styled(Cell.Footer)({
  marginBottom: '2px',
});

export const StyledAddCustomDnsButton = styled(Cell.CellButton)({
  backgroundColor: colors.blue40,
});

export const StyledAddCustomDnsLabel = styled(Cell.Label)(
  {},
  (props: { paddingLeft?: number }) => ({
    fontFamily: 'Open Sans',
    fontWeight: 'normal',
    fontSize: '16px',
    paddingLeft: (props.paddingLeft ?? 32) + 'px',
    whiteSpace: 'pre-wrap',
    overflowWrap: 'break-word',
    width: '171px',
    marginRight: '25px',
  }),
);

export const StyledContainer = styled(Cell.Container)({
  display: 'flex',
  marginBottom: '1px',
  backgroundColor: colors.blue40,
});

export const StyledButton = styled.button({
  display: 'flex',
  alignItems: 'center',
  flex: 1,
  border: 'none',
  background: 'transparent',
  padding: 0,
  margin: 0,
});

export const StyledLabel = styled(Cell.Label)({
  fontFamily: 'Open Sans',
  fontWeight: 'normal',
  fontSize: '16px',
  paddingLeft: '32px',
  whiteSpace: 'pre-wrap',
  overflowWrap: 'break-word',
  width: '171px',
  marginRight: '25px',
});

export const StyledRemoveButton = styled.button({
  background: 'transparent',
  border: 'none',
  padding: 0,
});

export const StyledRemoveIcon = styled(ImageView)({
  [StyledRemoveButton + ':hover &']: {
    backgroundColor: colors.white80,
  },
});