slate/components/core/CircleButtonGray.js

33 lines
738 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/core";
2020-08-27 07:24:49 +03:00
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: #d4d4d4;
2020-08-27 07:24:49 +03:00
}
`;
export const CircleButtonGray = (props) => {
2020-08-27 07:24:49 +03:00
return <span css={STYLES_BUTTON} {...props} />;
};
export default CircleButtonGray;