grungnet/src/components/dice/DiceButtonCount.js
Mitchell McCaffrey 795f187782 Changed dice controls to be to the left of the tray instead of on top
Also fixed dice tray sizing for smaller screens
2020-08-05 15:10:56 +10:00

30 lines
564 B
JavaScript

import React from "react";
import { Box, Text } from "theme-ui";
function DiceButtonCount({ children }) {
return (
<Box
sx={{
position: "absolute",
top: "50%",
right: "90%",
transform: "translateY(-50%)",
height: "14px",
display: "flex",
alignItems: "center",
}}
>
<Text
variant="caption"
as="p"
color="text"
sx={{ fontSize: "10px", fontWeight: "bold" }}
>
{children}
</Text>
</Box>
);
}
export default DiceButtonCount;