This commit is contained in:
2021-04-27 18:24:01 +02:00
parent 616eeabab3
commit 33b099cd08
35 changed files with 1756 additions and 91 deletions

View File

@@ -0,0 +1,35 @@
import styled from 'styled-components';
export const Button = styled.button`
padding: 1rem;
width: 100%;
display: block;
background-color: transparent;
border: 2px solid ${({theme, disabled}) => !disabled ? theme.colors.primary : theme.colors.lightGray};
color: ${({theme, disabled}) => !disabled ? theme.colors.primary : theme.colors.lightGray};
font-size: 1rem;
border-radius: 1rem;
cursor: pointer;
&:hover {
background-color: ${({ theme }) => theme.colors.secondary};
}
&.small {
width: inherit;
display: inline;
}
&.primary {
color: ${({theme}) => theme.colors.white};
background-color: ${({theme, disabled}) => !disabled ? theme.colors.primary : theme.colors.lightGray};
&:hover {
background-color: ${({ theme }) => theme.colors.secondary};
color: ${({theme}) => theme.colors.primary};
}
}
&.thin {
padding: 1px;
display: block;
}
`;