summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components/AdvancedSettingsStyles.tsx
blob: b618db08441b5861e8954174ceb4f86192b18ba6 (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
70
71
72
import styled from 'styled-components';
import { colors } from '../../config.json';
import * as Cell from './cell';
import { Container } from './Layout';
import { NavigationScrollbars } from './NavigationBar';
import Selector from './cell/Selector';

export const StyledContainer = styled(Container)({
  backgroundColor: colors.darkBlue,
});

export const StyledInputFrame = styled(Cell.InputFrame)({
  flex: 0,
});

export const StyledSelectorContainer = styled.div({
  flex: 0,
});

export const StyledSelectorForFooter = (styled(Selector)({
  marginBottom: 0,
}) as unknown) as new <T>() => Selector<T>;

export const StyledTunnelProtocolContainer = styled(StyledSelectorContainer)({
  marginBottom: '20px',
});

export const StyledNavigationScrollbars = styled(NavigationScrollbars)({
  flex: 1,
});

export const StyledButtonCellGroup = styled.div({
  display: 'flex',
  flexDirection: 'column',
  flex: 1,
  marginBottom: '22px',
});

export const StyledNoWireguardKeyErrorContainer = styled(Cell.Footer)({
  paddingBottom: 0,
});

export const StyledNoWireguardKeyError = styled(Cell.FooterText)({
  fontWeight: 800,
  color: colors.red,
});

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

export const StyledCustomDnsFotter = 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',
  }),
);