-
Notifications
You must be signed in to change notification settings - Fork 67
/
TestSpecForm.styled.ts
119 lines (97 loc) 路 2.44 KB
/
TestSpecForm.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import {DeleteOutlined, ReadOutlined} from '@ant-design/icons';
import {Button, Select as AntSelect, Typography} from 'antd';
import styled from 'styled-components';
export const Select = styled(AntSelect)`
min-width: 88px;
> .ant-select-selector {
min-height: 100%;
}
`;
export const Check = styled.div`
display: grid;
grid-template-columns: repeat(3, 1fr) 14px;
gap: 8px 12px;
`;
export const AssertionsContainer = styled.div`
margin-bottom: 24px;
`;
export const Container = styled.div`
display: flex;
justify-content: space-between;
padding-bottom: 8px;
`;
export const FieldsContainer = styled.div`
display: grid;
width: 95%;
grid-template-columns: 1fr auto 1fr;
gap: 8px;
`;
export const ActionContainer = styled.div`
display: flex;
justify-content: center;
align-self: flex-start;
flex-basis: 5%;
`;
export const AddCheckButton = styled(Button).attrs({
type: 'link',
})`
padding: 0;
font-weight: 600;
`;
export const DeleteCheckIcon = styled(DeleteOutlined)`
color: ${({theme}) => theme.color.textSecondary};
cursor: pointer;
margin-top: 9px;
`;
export const AssertionForm = styled.div`
background-color: ${({theme}) => theme.color.white};
height: 100%;
overflow-y: auto;
padding: 24px;
position: relative;
`;
export const AssertionFormTitle = styled(Typography.Title).attrs({level: 2})``;
export const AssertionFormHeader = styled.div`
align-items: center;
display: flex;
justify-content: space-between;
margin-bottom: 16px;
`;
export const AssertionFromActions = styled.div`
display: flex;
justify-content: flex-end;
gap: 8px;
`;
export const FormSection = styled.div`
margin-bottom: 8px;
`;
export const FormSectionRow = styled.div`
margin-bottom: 8px;
`;
export const FormSectionRow1 = styled.div`
align-items: center;
display: flex;
gap: 12px;
`;
export const FormSectionHeaderSelector = styled.div`
align-items: center;
display: flex;
justify-content: space-between;
`;
export const FormSectionTitle = styled(Typography.Title).attrs({level: 3})<{$noMargin?: boolean}>`
&& {
margin-bottom: ${({$noMargin}) => ($noMargin ? '0' : '4px')};
}
`;
export const FormSectionText = styled(Typography.Text)`
color: ${({theme}) => theme.color.textSecondary};
`;
export const SuggestionsContainer = styled.div`
margin-bottom: 24px;
`;
export const SuggestionsButton = styled(Button)`
padding: 4px 8px;
`;
export const ReadIcon = styled(ReadOutlined)`
margin-top: 4px;
`;