-
Notifications
You must be signed in to change notification settings - Fork 67
/
TransactionRunResult.styled.ts
138 lines (117 loc) 路 2.98 KB
/
TransactionRunResult.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
import {CheckCircleFilled, CloseCircleFilled} from '@ant-design/icons';
import {Typography, Tag, Button} from 'antd';
import {Link} from 'react-router-dom';
import styled from 'styled-components';
export const Container = styled.div`
border: ${({theme}) => `1px solid ${theme.color.borderLight}`};
border-radius: 2px;
background: ${({theme}) => theme.color.background};
display: flex;
flex-direction: column;
padding: 7px 16px;
margin-bottom: 8px;
`;
export const Content = styled.div`
align-items: center;
display: grid;
grid-template-columns: auto 1fr auto auto;
gap: 16px;
height: 58px;
width: 100%;
`;
export const OutputsContainer = styled.div`
margin-left: 32px;
`;
export const OutputsButton = styled(Button)`
font-size: ${({theme}) => theme.size.sm};
font-weight: 600;
height: 20px;
padding: 0;
`;
export const OutputsContent = styled.div`
margin-top: 4px;
`;
export const Info = styled.div`
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
`;
export const ItemName = styled(Typography.Title).attrs({
level: 4,
})`
&& {
font-size: ${({theme}) => theme.size.sm};
}
`;
export const Title = styled(Typography.Title)`
&& {
font-size: ${({theme}) => theme.size.lg};
margin-bottom: 24px;
}
`;
export const IconSuccess = styled(CheckCircleFilled)`
color: ${({theme}) => theme.color.success};
`;
export const IconFail = styled(CloseCircleFilled)`
color: ${({theme}) => theme.color.error};
`;
export const TagContainer = styled.div`
display: grid;
grid-template-columns: fit-content(20%) fit-content(100%) fit-content(20%);
> span:nth-child(1) {
border-radius: 2px 0px 0px 2px;
}
> span:last-child {
border-radius: 0px 2px 2px 0px;
}
`;
export const TextTag = styled(Tag)<{$isLight?: boolean}>`
&& {
margin: 0;
border-radius: 0px;
border: none;
background: ${({theme, $isLight}) => ($isLight ? 'rgba(3, 24, 73, 0.05)' : theme.color.borderLight)};
}
`;
export const EntryPointTag = styled(TextTag)`
&& {
overflow: hidden;
text-overflow: ellipsis;
}
`;
export const ExecutionStepStatus = styled.div`
color: ${({theme}) => theme.color.textLight};
font-weight: 600;
`;
export const ExecutionStepRunLink = styled(Link)`
&& {
color: ${({theme}) => theme.color.textLight};
}
`;
export const ResultContainer = styled.div`
display: flex;
flex-direction: column;
gap: 24px;
`;
export const HeaderDetail = styled(Typography.Text)`
display: flex;
align-items: center;
color: ${({theme}) => theme.color.textSecondary};
font-size: ${({theme}) => theme.size.sm};
margin-right: 8px;
`;
export const HeaderDot = styled.span<{$passed: boolean}>`
background-color: ${({$passed, theme}) => ($passed ? theme.color.success : theme.color.error)};
border-radius: 50%;
display: inline-block;
height: 10px;
line-height: 0;
margin-right: 4px;
vertical-align: -0.1em;
width: 10px;
`;
export const AssertionResultContainer = styled.div`
display: flex;
align-items: center;
`;