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`
|
2021-08-04 01:31:49 +03:00
|
|
|
background-color: ${Constants.semantic.bgGrayLight};
|
2021-07-07 22:58:14 +03:00
|
|
|
color: ${Constants.system.black};
|
2020-08-27 07:24:49 +03:00
|
|
|
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;
|
2021-07-07 22:18:11 +03:00
|
|
|
${"" /* box-shadow: 0 0 0 1px ${Constants.semantic.bgLight} inset; */}
|
2020-08-27 07:24:49 +03:00
|
|
|
|
|
|
|
:hover {
|
2021-08-04 01:31:49 +03:00
|
|
|
background-color: ${Constants.system.grayLight4};
|
2020-08-27 07:24:49 +03:00
|
|
|
}
|
2021-01-21 10:02:35 +03:00
|
|
|
|
2021-07-07 23:50:57 +03:00
|
|
|
${"" /* @media (max-width: ${Constants.sizes.mobile}px) {
|
2021-01-21 10:02:35 +03:00
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
2021-07-07 23:50:57 +03:00
|
|
|
} */}
|
2020-08-27 07:24:49 +03:00
|
|
|
`;
|
|
|
|
|
2021-03-07 23:53:54 +03:00
|
|
|
export const SquareButtonGray = (props) => {
|
2020-08-27 07:24:49 +03:00
|
|
|
return <span css={STYLES_BUTTON} {...props} />;
|
|
|
|
};
|
2020-08-30 23:31:09 +03:00
|
|
|
|
2021-03-07 23:53:54 +03:00
|
|
|
export default SquareButtonGray;
|