DocSpace-client/packages/components/calendar/styled-components/RoundButton.js
2023-08-18 15:52:13 +05:00

39 lines
1011 B
JavaScript

import styled from "styled-components";
export const RoundButton = styled.button`
width: ${(props) => (props.isMobile ? "32px" : "26px")};
height: ${(props) => (props.isMobile ? "32px" : "26px")};
box-sizing: border-box;
border-radius: 50%;
outline: 1px solid;
outline-color: ${(props) => props.theme.calendar.outlineColor};
border: none;
background-color: transparent;
position: relative;
transition: all ease-in-out 0.05s;
span {
border-color: ${(props) =>
props.disabled
? props.theme.calendar.disabledArrow
: props.theme.calendar.arrowColor};
}
:hover {
cursor: ${(props) => (props.disabled ? "auto" : "pointer")};
outline: ${(props) =>
props.disabled
? `1px solid ${props.theme.calendar.outlineColor}`
: `2px solid ${props.theme.calendar.accent}`};
span {
border-color: ${(props) =>
props.disabled
? props.theme.calendar.disabledArrow
: props.theme.calendar.accent};
}
}
`;