tweak download button styles
This commit is contained in:
parent
e9a15857c1
commit
2d84f2295b
1 changed files with 48 additions and 40 deletions
|
@ -120,10 +120,18 @@ function OutfitPreview({ outfitState }) {
|
||||||
</FullScreenCenter>
|
</FullScreenCenter>
|
||||||
</Delay>
|
</Delay>
|
||||||
)}
|
)}
|
||||||
<Tooltip label="Download" placement="left" showDelay={200}>
|
<Box
|
||||||
|
// Bottom-right in small screens, top-right on large screens
|
||||||
|
pos="absolute"
|
||||||
|
right="2"
|
||||||
|
bottom={{ base: "2", lg: "auto" }}
|
||||||
|
top={{ base: "auto", lg: "2" }}
|
||||||
|
>
|
||||||
|
<Tooltip label="Download" placement="left">
|
||||||
<IconButton
|
<IconButton
|
||||||
icon="download"
|
icon="download"
|
||||||
aria-label="Download"
|
aria-label="Download"
|
||||||
|
isRound
|
||||||
as="a"
|
as="a"
|
||||||
// eslint-disable-next-line no-script-url
|
// eslint-disable-next-line no-script-url
|
||||||
href={downloadImageUrl || "javascript:void 0"}
|
href={downloadImageUrl || "javascript:void 0"}
|
||||||
|
@ -139,27 +147,27 @@ function OutfitPreview({ outfitState }) {
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
variant="unstyled"
|
variant="unstyled"
|
||||||
|
backgroundColor="gray.600"
|
||||||
color="gray.50"
|
color="gray.50"
|
||||||
d="flex"
|
d="flex"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
justifyContent="center"
|
justifyContent="center"
|
||||||
opacity="0"
|
opacity="0"
|
||||||
transition="all 0.2s"
|
transition="all 0.2s"
|
||||||
_hover={{
|
|
||||||
backgroundColor: "gray.600",
|
|
||||||
}}
|
|
||||||
_focus={{
|
|
||||||
opacity: 1,
|
|
||||||
backgroundColor: "gray.600",
|
|
||||||
}}
|
|
||||||
_groupHover={{
|
_groupHover={{
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
}}
|
}}
|
||||||
pos="absolute"
|
_focus={{
|
||||||
right="1"
|
opacity: 1,
|
||||||
top="1"
|
backgroundColor: "gray.500",
|
||||||
|
}}
|
||||||
|
_hover={{
|
||||||
|
backgroundColor: "gray.500",
|
||||||
|
}}
|
||||||
|
outline="initial"
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
</Box>
|
||||||
</PseudoBox>
|
</PseudoBox>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue