forked from abner/for-legacy-web
Rotate file upload icon instead of switching icon.
This commit is contained in:
1 parent
98e0edd331
commit
e8a111e6bc
2 files changed
+14
-8
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import styled, { css } from "styled-components";
|
||||
|
||||
interface Props {
|
||||
rotate?: string;
|
||||
type?: "default" | "circle";
|
||||
}
|
||||
|
||||
@@ -22,6 +23,10 @@ export default styled.div<Props>`
|
||||
color: ${normal};
|
||||
}
|
||||
|
||||
svg {
|
||||
transition: 0.2s ease transform;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
fill: ${hover};
|
||||
color: ${hover};
|
||||
@@ -43,4 +48,10 @@ export default styled.div<Props>`
|
||||
background-color: var(--primary-header);
|
||||
}
|
||||
`}
|
||||
|
||||
${(props) => props.rotate && css`
|
||||
svg {
|
||||
transform: rotateZ(${props.rotate});
|
||||
}
|
||||
` }
|
||||
`;
|
||||
Reference in new issue
Block a user