joyent-portal/packages/ui-toolkit/src/section-list/item.js
Sérgio Ramos 882cb68ec2 feat(ui-toolkit): a more reusable ui-toolkit
- remove dependencies on redux-form, react-router-dom, and react-redux.
 - work with every font, and don't bundle fonts
 - don't bundle editor
2017-12-15 15:23:38 +00:00

30 lines
635 B
JavaScript

import styled from 'styled-components';
import remcalc from 'remcalc';
import is from 'styled-is';
import BaseAnchor from '../anchor';
import Baseline from '../baseline';
export default Baseline(styled.li`
display: inline-block;
font-size: ${remcalc(15)};
line-height: 1.6;
margin-right: ${remcalc(23)};
`);
export const Anchor = Baseline(styled(BaseAnchor)`
color: ${props => props.theme.secondary};
text-decoration: none;
cursor: pointer;
&.active {
color: ${props => props.theme.primary};
cursor: default;
}
${is('active')`
color: ${props => props.theme.primary};
cursor: default;
`};
`);