slate/components/core/CircleButtonGray.js

34 lines
795 B
JavaScript
Raw Normal View History

2020-08-27 07:24:49 +03:00
import * as React from "react";
import * as Constants from "~/common/constants";
import { css } from "@emotion/react";
const STYLES_BUTTON = css`
background-color: ${Constants.system.gray};
color: ${Constants.system.pitchBlack};
display: inline-flex;
width: 36px;
height: 36px;
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;
box-shadow: 0 0 1px 4px rgba(0, 0, 0, 0.007);
2020-08-27 07:24:49 +03:00
:hover {
background-color: ${Constants.system.brand};
color: ${Constants.system.white};
}
`;
export const CircleButtonGray = (props) => {
2020-08-27 07:24:49 +03:00
return <span css={STYLES_BUTTON} {...props} />;
};
export default CircleButtonGray;