2020-08-27 07:24:49 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import * as Constants from "~/common/constants";
|
|
|
|
|
2020-11-30 08:24:22 +03:00
|
|
|
import { css } from "@emotion/react";
|
2020-08-27 07:24:49 +03:00
|
|
|
|
|
|
|
const STYLES_BUTTON = css`
|
2020-12-11 05:59:17 +03:00
|
|
|
background-color: ${Constants.system.white};
|
2020-08-27 07:24:49 +03:00
|
|
|
color: ${Constants.system.pitchBlack};
|
|
|
|
display: inline-flex;
|
2020-12-18 05:59:41 +03:00
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
2020-09-05 04:40:23 +03:00
|
|
|
border-radius: 4px;
|
2020-08-27 07:24:49 +03:00
|
|
|
background-size: cover;
|
|
|
|
background-position: 50% 50%;
|
|
|
|
transition: 100ms ease all;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
flex-shrink: 0;
|
2020-12-18 05:59:41 +03:00
|
|
|
${"" /* box-shadow: 0 0 0 1px ${Constants.system.bgGray} inset; */}
|
2020-08-27 07:24:49 +03:00
|
|
|
|
|
|
|
:hover {
|
2020-12-11 05:59:17 +03:00
|
|
|
background-color: rgb(253, 253, 253);
|
2020-08-27 07:24:49 +03:00
|
|
|
}
|
2021-01-21 10:02:35 +03:00
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
}
|
2020-08-27 07:24:49 +03:00
|
|
|
`;
|
|
|
|
|
2020-08-30 23:31:09 +03:00
|
|
|
export const CircleButtonGray = (props) => {
|
2020-08-27 07:24:49 +03:00
|
|
|
return <span css={STYLES_BUTTON} {...props} />;
|
|
|
|
};
|
2020-08-30 23:31:09 +03:00
|
|
|
|
|
|
|
export default CircleButtonGray;
|