-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
schema.ts
56 lines (50 loc) · 1.18 KB
/
schema.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
import styled from '../styled-components';
export const OneOfList = styled.ul`
margin: 0 0 3px 0;
padding: 0;
list-style: none;
display: inline-block;
`;
export const OneOfLabel = styled.span`
font-size: 0.9em;
margin-right: 10px;
color: ${props => props.theme.colors.primary.main};
font-family: Montserrat;
}
`;
export const OneOfButton = styled.li<{ active: boolean }>`
display: inline-block;
margin-right: 10px;
margin-bottom: 5px;
font-size: 0.8em;
cursor: pointer;
border: 1px solid ${props => props.theme.colors.primary.main};
padding: 2px 10px;
${props => {
if (props.active) {
return `
color: white;
background-color: ${props.theme.colors.primary.main};
`;
} else {
return `
color: ${props.theme.colors.primary.main};
background-color: white;
`;
}
}}
`;
export const ArrayOpenningLabel = styled.div`
font-size: 0.9em;
font-family: ${props => props.theme.typography.code.fontFamily};
&::after {
content: ' [';
}
`;
export const ArrayClosingLabel = styled.div`
font-size: 0.9em;
font-family: ${props => props.theme.typography.code.fontFamily};
&::after {
content: ']';
}
`;