2021-02-05 11:10:15 +00:00
|
|
|
import styled from "styled-components";
|
2021-02-25 21:19:45 +00:00
|
|
|
import Base from "../themes/base";
|
2021-02-05 11:10:15 +00:00
|
|
|
|
|
|
|
const StyledTooltip = styled.div`
|
|
|
|
.__react_component_tooltip {
|
|
|
|
border-radius: ${(props) => props.theme.tooltip.borderRadius};
|
|
|
|
-moz-border-radius: ${(props) => props.theme.tooltip.borderRadius};
|
|
|
|
-webkit-border-radius: ${(props) => props.theme.tooltip.borderRadius};
|
|
|
|
box-shadow: ${(props) => props.theme.tooltip.boxShadow};
|
|
|
|
-moz-box-shadow: ${(props) => props.theme.tooltip.boxShadow};
|
|
|
|
-webkit-box-shadow: ${(props) => props.theme.tooltip.boxShadow};
|
|
|
|
opacity: ${(props) => props.theme.tooltip.opacity};
|
|
|
|
padding: ${(props) => props.theme.tooltip.padding};
|
|
|
|
pointer-events: ${(props) => props.theme.tooltip.pointerEvents};
|
|
|
|
max-width: ${(props) => props.theme.tooltip.maxWidth};
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
border: ${(props) => props.theme.tooltip.before.border};
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
border: ${(props) => props.theme.tooltip.after.border};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
StyledTooltip.defaultProps = {
|
|
|
|
theme: Base,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default StyledTooltip;
|