{"size": 1043, "ext": "js", "max_stars_repo_path": "src/components/side-menu/Button.js", "max_stars_repo_name": "ntgussoni/react-slate-medium-editor", "max_stars_repo_stars_event_min_datetime": "2019-07-10T10:21:02.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-03T21:14:52.000Z", "max_issues_repo_path": "src/components/side-menu/Button.js", "max_issues_repo_name": "ntgussoni/react-slate-medium-editor", "max_issues_repo_issues_event_min_datetime": "2019-04-16T22:05:16.000Z", "max_issues_repo_issues_event_max_datetime": "2021-02-02T18:40:46.000Z", "max_forks_repo_path": "src/components/side-menu/Button.js", "max_forks_repo_name": "ntgussoni/react-slate-medium-editor", "max_forks_repo_forks_event_min_datetime": "2020-12-22T13:06:37.000Z", "max_forks_repo_forks_event_max_datetime": "2021-02-17T06:55:16.000Z"}
{"max_stars_count": 8, "max_issues_count": 11, "max_forks_count": 2, "avg_line_length": 20.4509803922, "max_line_length": 56, "alphanum_fraction": 0.5973154362}
import styled, { css } from "styled-components";

export const Button = styled.span`
  cursor: pointer;
  height: 32px;
  width: 32px;
  background-color: #ffffff;
  box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.2);
  color: #000;
  background: white;
  border-radius: 50%;
  justify-content: center;

  ${props =>
    props.opened &&
    css`
      transform: scale(1) rotate(0deg);
      opacity: 1;
      transition-duration: ${props => props.delay}ms;
      transition-timing-function: ease-in;
    `}
  ${props =>
    !props.opened &&
    css`
      transform: scale(0) rotate(-45deg);
      opacity: 0;
      transition-duration: ${props => props.delay}ms;
      transition-timing-function: ease-in;
    `}

  &:hover {
    svg {
      color: #ccc;
    }
  }
`;

export const Icon = styled.span`
  vertical-align: text-bottom;
  display: flex;
  align-items: center;
  justify-content: center;

  svg {
    height: 14px;
    box-sizing: content-box;
    background-size: cover;
    color: ${props => (props.active ? "#ccc" : "#000")};
  }
`;
