1
1
mirror of https://github.com/primer/css.git synced 2024-11-28 04:43:05 +03:00
css/docs/NavItem.js

21 lines
464 B
JavaScript
Raw Normal View History

2019-04-03 08:59:01 +03:00
import {theme, Link} from '@primer/components'
import styled from 'styled-components'
const NavItem = styled(Link)`
color: ${theme.colors.blue[2]};
display: block;
padding: 0 ${theme.space[3]}px;
line-height: 30px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
max-width: 215px;
&:hover {
color: ${theme.colors.black};
background-color: ${theme.colors.blue[4]};
text-decoration: none;
}
`
export default NavItem