-
Notifications
You must be signed in to change notification settings - Fork 67
/
Settings.styled.ts
60 lines (51 loc) 路 1.38 KB
/
Settings.styled.ts
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
import {Typography} from 'antd';
import styled from 'styled-components';
export const Container = styled.div`
background: ${({theme}) => theme.color.white};
border: ${({theme}) => `1px solid ${theme.color.borderLight}`};
border-radius: 2px;
display: flex;
flex-direction: column;
margin-bottom: 24px;
padding: 24px;
`;
export const FormContainer = styled.div`
margin: 16px 0;
`;
export const FooterContainer = styled.div`
display: flex;
justify-content: flex-end;
margin-top: 24px;
padding: 16px 22px 0;
border-top: 1px solid ${({theme}) => theme.color.borderLight};
`;
export const Description = styled(Typography.Paragraph)`
&& {
color: ${({theme}) => theme.color.textSecondary};
}
`;
export const LinterPluginsContainer = styled.div`
margin-top: 10px;
padding: 24px 24px 0;
border-top: 1px solid ${({theme}) => theme.color.borderLight};
`;
export const LinterPluginList = styled.ul`
&& {
list-style-type: disc;
}
`;
export const SwitchContainer = styled.div`
align-items: center;
display: flex;
gap: 8px;
`;
export const SwitchLabel = styled.label<{$disabled?: boolean}>`
color: ${({$disabled, theme}) => ($disabled ? theme.color.textLight : theme.color.text)};
cursor: ${({$disabled}) => ($disabled ? 'not-allowed' : 'pointer')};
margin-bottom: 24px;
`;
export const Title = styled(Typography.Title)`
&& {
margin-bottom: 16px;
}
`;