New design for server roles editor.

This commit is contained in:
Paul
2021-07-03 22:17:53 +01:00
parent c4bbd1e40a
commit f81f7768f8
9 changed files with 145 additions and 76 deletions

View File

@@ -61,6 +61,7 @@ export default styled.button<Props>`
&:hover {
filter: brightness(1.2);
background: var(--error);
}
&:disabled {

View File

@@ -31,6 +31,15 @@ const CheckboxBase = styled.label`
background: var(--background);
}
}
&[disabled] {
opacity: 0.5;
cursor: unset;
&:hover {
background: unset;
}
}
`;
const CheckboxContent = styled.span`
@@ -52,6 +61,7 @@ const Checkmark = styled.div<{ checked: boolean }>`
width: 24px;
height: 24px;
display: grid;
flex-shrink: 0;
border-radius: 4px;
place-items: center;
transition: 0.2s ease all;