2018-07-16 18:28:36 +03:00
|
|
|
import styled, { withProps } from '../styled-components';
|
2017-10-12 00:01:37 +03:00
|
|
|
|
|
|
|
export const OneOfList = styled.ul`
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
display: inline-block;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const OneOfLabel = styled.span`
|
|
|
|
font-size: 0.9em;
|
|
|
|
margin-right: 10px;
|
2018-07-19 13:05:53 +03:00
|
|
|
color: ${props => props.theme.colors.primary.main};
|
2017-10-12 00:01:37 +03:00
|
|
|
font-family: Montserrat;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const OneOfButton = withProps<{ active: boolean }>(styled.li)`
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 10px;
|
|
|
|
font-size: 0.8em;
|
|
|
|
cursor: pointer;
|
2018-07-19 13:05:53 +03:00
|
|
|
border: 1px solid ${props => props.theme.colors.primary.main};
|
2017-10-12 00:01:37 +03:00
|
|
|
padding: 2px 10px;
|
|
|
|
|
|
|
|
${props => {
|
|
|
|
if (props.active) {
|
|
|
|
return `
|
|
|
|
color: white;
|
2018-07-19 13:05:53 +03:00
|
|
|
background-color: ${props.theme.colors.primary.main};
|
2017-10-12 00:01:37 +03:00
|
|
|
`;
|
|
|
|
} else {
|
|
|
|
return `
|
2018-07-19 13:05:53 +03:00
|
|
|
color: ${props.theme.colors.primary.main};
|
2017-10-12 00:01:37 +03:00
|
|
|
background-color: white;
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const ArrayOpenningLabel = styled.div`
|
|
|
|
font-size: 0.9em;
|
2018-07-19 13:05:53 +03:00
|
|
|
font-family: ${props => props.theme.typography.code.fontFamily};
|
2017-10-12 00:01:37 +03:00
|
|
|
&::after {
|
|
|
|
content: ' [';
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const ArrayClosingLabel = styled.div`
|
|
|
|
font-size: 0.9em;
|
2018-07-19 13:05:53 +03:00
|
|
|
font-family: ${props => props.theme.typography.code.fontFamily};
|
2017-10-12 00:01:37 +03:00
|
|
|
&::after {
|
|
|
|
content: ']';
|
|
|
|
}
|
|
|
|
`;
|