appbaseio/reactivesearch

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

Summary

Maintainability
A
1 hr
Test Coverage
import styled, { css } from 'react-emotion';

import { queries } from './mediaQueries';
import theme from './theme';

const button = css`
    cursor: pointer;
    padding: 5px;
    margin: 5px;
    text-align: center;
    border-radius: 4px;
`;

export const ToggleButton = styled.div`
    ${button};
    color: white;
    border: 1px solid white;
    display: none;
    max-width: 200px;
    font-size: 1.3rem;
    align-self: center;
    padding: 10px;
    margin-top: 10px;

    &:hover {
        background: white;
        color: ${theme.colors.secondaryColor};
    }

    ${queries.xLarge`
        display: block;
    `};
`;

const Button = styled.div`
    ${button};
    background: ${theme.colors.lightGray};
    min-width: 70px;

    svg {
        margin-right: 4px;
    }

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

export default Button;