feat: add access control

This commit is contained in:
41666 2021-07-18 01:57:03 -04:00
parent 9c07ff0e54
commit 3f45153b66
47 changed files with 1084 additions and 164 deletions

View file

@ -0,0 +1,43 @@
import { palette } from '@roleypoly/design-system/atoms/colors';
import { transitions } from '@roleypoly/design-system/atoms/timings';
import styled, { css } from 'styled-components';
export const EditableRoleListStyled = styled.div`
display: flex;
flex-wrap: wrap;
& > div {
margin: 2.5px;
}
`;
export const AddRoleButton = styled.div<{ long?: boolean }>`
border: 2px solid ${palette.taupe500};
color: ${palette.taupe500};
border-radius: 24px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all ${transitions.actionable}s ease-in-out;
&:hover {
background-color: ${palette.taupe100};
transform: translateY(-2px);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
&:active {
transform: translateY(0);
box-shadow: none;
}
${(props) =>
props.long
? css`
padding: 0 14px;
`
: css`
width: 32px;
`};
`;