-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathStyledWrapper.js
More file actions
113 lines (97 loc) · 2.61 KB
/
StyledWrapper.js
File metadata and controls
113 lines (97 loc) · 2.61 KB
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
import styled from 'styled-components';
const StyledWrapper = styled.div`
display: flex;
flex-direction: column;
/* This is a hack to force Codemirror to use all available space */
> div {
position: relative;
}
div.CodeMirror {
position: absolute;
top: 0;
bottom: 0;
height: 100%;
width: 100%;
}
.react-pdf__Page {
margin-top: 10px;
background-color: transparent !important;
}
.react-pdf__Page__textContent {
border: 1px solid darkgrey;
box-shadow: 5px 5px 5px 1px #ccc;
border-radius: 0px;
margin: 0 auto;
}
.react-pdf__Page__canvas {
margin: 0 auto;
}
div[role='tablist'] {
.active {
color: ${(props) => props.theme.colors.text.yellow};
}
}
.muted {
color: ${(props) => props.theme.colors.text.muted};
}
.error {
color: ${(props) => props.theme.colors.text.danger};
}
.response-filter {
position: absolute;
bottom: 0;
width: 100%;
input {
border: solid 1px ${(props) => props.theme.border.border2};
border-radius: ${(props) => props.theme.border.radius.sm};
background-color: ${(props) => props.theme.background.base};
&:focus {
outline: none;
}
}
.jq-error {
position: absolute;
bottom: 100%;
right: 0;
margin-bottom: 4px;
padding: 2px 8px;
font-size: 11px;
color: ${(props) => props.theme.colors.text.danger};
background-color: ${(props) => props.theme.background.base};
border: solid 1px ${(props) => props.theme.colors.text.danger};
border-radius: ${(props) => props.theme.border.radius.sm};
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.filter-type-toggle {
flex-shrink: 0;
.toggle-btn {
font-size: 11px;
padding: 2px 8px;
border: solid 1px ${(props) => props.theme.border.border2};
background-color: ${(props) => props.theme.background.mantle};
color: ${(props) => props.theme.colors.text.muted};
cursor: pointer;
white-space: nowrap;
&:first-child {
border-radius: 4px 0 0 4px;
}
&:last-child {
border-radius: 0 4px 4px 0;
margin-left: -1px;
}
&.active {
background-color: ${(props) => props.theme.background.base};
color: ${(props) => props.theme.colors.text.yellow};
border-color: ${(props) => props.theme.colors.text.yellow};
font-weight: 600;
position: relative;
z-index: 1;
}
}
}
}
`;
export default StyledWrapper;