{"size": 1164, "ext": "js", "max_stars_repo_path": "src/styles/StyledNightmode.js", "max_stars_repo_name": "pashamakhilkumarreddy/react-hooks-styled-components", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/styles/StyledNightmode.js", "max_issues_repo_name": "pashamakhilkumarreddy/react-hooks-styled-components", "max_issues_repo_issues_event_min_datetime": "2021-03-10T18:06:35.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T04:40:44.000Z", "max_forks_repo_path": "src/styles/StyledNightmode.js", "max_forks_repo_name": "pashamakhilkumarreddy/react-hooks-styled-components", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 16.8695652174, "max_line_length": 40, "alphanum_fraction": 0.589347079}
import styled from 'styled-components';

export default styled.div`
  font-weight: 800;
  font-size: 1.6rem;
  color: ${props => props.theme.color};
  padding: 0;
  margin: 1.25rem;

  .switch {
    position: relative;
    display: inline-block;
    width: 3.25rem;
    height: 1.5rem;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.4s;
    -webkit-transistion: 0.4s;
    transition: 0.4s;
  }

  .slider:before {
    position: absolute;
    content: '';
    height: 1rem;
    width: 1rem;
    left: 0.25rem;
    bottom: 0.25rem;
    background: #fff;
    transition: 0.4s;
    -webkit-transition: 0.4s;
  }

  input:checked + .slider {
    background: #3d5138;
  }

  input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
  }

  input:checked + .slider:before {
    -webkit-transform: translateX(1rem);
    -ms-transform: translateX(1rem);
    transform: translateX(1rem);
  }

  .slider.round {
    border-radius: 1.9rem;
  }

  .slider.round:before {
    border-radius: 50%;
  }
`;