DocSpace-buildtools/packages/components/calendar/styled-components/Title.js

22 lines
580 B
JavaScript
Raw Normal View History

import styled from "styled-components";
2023-02-07 09:22:12 +00:00
import Base from "../../themes/base";
export const Title = styled.h2`
2023-02-02 09:32:35 +00:00
font-family: "Open Sans", sans-serif, Arial;
font-weight: 700;
font-size: 21px;
line-height: 28px;
2023-02-07 09:22:12 +00:00
color: ${(props) => props.theme.calendar.titleColor};
border-bottom: 1px dashed transparent;
margin: 0;
2023-02-02 09:32:35 +00:00
display: inline-block;
:hover {
border-color: ${(props) =>
props.disabled ? "transparent" : props.theme.calendar.titleColor};
2023-02-02 09:32:35 +00:00
cursor: ${(props) => (props.disabled ? "auto" : "pointer")};
}
`;
2023-02-07 09:22:12 +00:00
Title.defaultProps = { theme: Base };