-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathstyled.js
79 lines (67 loc) · 1.75 KB
/
styled.js
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
import React from 'react';
import styled from 'styled-components';
import { Div, Span } from 'ui/components/common/base';
import InputControl from 'ui/components/common/InputControl';
export const QuickEditResponseEditorStyle = {
border: 'none',
width: '100%',
height: '24px',
padding: '0 6px',
outline: '0',
'line-height': '24px',
'font-size': '13px'
};
export const QuickEditResponseEditorFocusStyle = {
'box-shadow': 'inset 0 0 0px 2px #b2caef'
};
export const QuickEditNotMockedMessage = styled(Div)`
padding: 0 6px;
line-height: 25px;
`;
export const QuickEditContainer = styled(Div)`
display: flex;
height: 25px;
border-top: ${(props) => props.theme.lightBorder};
width: calc(100% - 104px);
margin-left: 104px;
`;
export const QuickEditSection = styled(Div)`
display: flex;
align-items: center;
border-right: ${(props) => props.theme.lightBorder};
height: 100%;
`;
export const QuickEditMockSection = styled(Div)`
display: flex;
height: 100%;
align-items: center;
width: 100%;
`;
export const QuickEditResponseBodySection = styled(QuickEditSection)`
padding: 0;
margin-right: 4px;
flex: 1;
`;
export const RequestOptionContainer = styled(Div)`
padding: 2px 8px;
display: flex;
align-items: center;
cursor: pointer;
user-select: none;
&:hover {
background-color: ${(props) => props.theme.selectionBlue};
}
`;
export const RequestOptionSpacer = styled(Span)`
width: 27px;
`;
export const RequestOptionStatus = styled(Span)`
${(props) => props.children >= 400 ? 'color:' + props.theme.red : ''};
${(props) => props.isMocked ? 'color:' + props.theme.blue : ''};
`;
export const RequestOptionValueContainer = styled(Div)`
display: flex;
cursor: pointer;
align-items: center;
width: 450px;
`;