Move details styling into its own component.

This commit is contained in:
Paul
2021-07-04 09:52:34 +01:00
parent 9da3a4262d
commit a49d40e71d
4 changed files with 32 additions and 29 deletions

View File

@@ -0,0 +1,28 @@
import styled from "styled-components";
export default styled.details`
summary {
outline: none;
list-style: none;
transition: .2s opacity;
&::marker, &::-webkit-details-marker {
display: none;
}
svg {
flex-shrink: 0;
transition: .2s ease transform;
}
}
&:not([open]) {
summary {
opacity: .7;
}
summary svg {
transform: rotateZ(-90deg);
}
}
`;