appbaseio/reactivesearch

View on GitHub
site/demos/gitxplore-dark/src/styles/Topic.js

Summary

Maintainability
A
0 mins
Test Coverage
import styled from 'react-emotion';

import theme from './theme';

const Topic = styled.div`
    background: ${({ active }) => (active ? theme.colors.primaryColor : theme.colors.secondaryColor)};
    margin: 3px;
    padding: 4px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    color: ${({ active }) => (active ? '#424242' : theme.colors.textColor)};

    &:hover {
        background: ${theme.colors.primaryColor};
    }
`;

export default Topic;