fix button widget button styles

This commit is contained in:
nflnkr 2024-05-20 16:04:30 +03:00
parent 8f1caa9b07
commit 4f86cbe2d1
2 changed files with 7 additions and 8 deletions

@ -78,14 +78,13 @@ export default function OpenQuizButton({
sx={[ sx={[
{ {
overflow: "hidden", overflow: "hidden",
py: "23px",
px: "40px",
fontSize: "20px",
color: buttonTextColor, color: buttonTextColor,
backgroundColor: buttonBackgroundColor, backgroundColor: buttonBackgroundColor,
}, boxShadow: withShadow ? "2px 5px 20px 2px rgba(25, 6, 50, 0.4), 0 2px 10px 0 rgba(35, 17, 58, 0.1)" : "none",
withShadow && { borderRadius: rounded ? "30px" : 0,
boxShadow: "0px 0px 8px 0px rgba(0, 0, 0, 0.7)",
},
!rounded && {
borderRadius: 0,
}, },
Boolean(fixedSide) && { Boolean(fixedSide) && {
position: "fixed", position: "fixed",

@ -13,9 +13,9 @@ export default function RunningStripe({ sx = [] }: Props) {
sx={[ sx={[
{ {
position: "absolute", position: "absolute",
height: "30px", height: "70px",
width: "140px", width: "140px",
backgroundColor: "rgba(255 255 255 / 0.6)", background: "linear-gradient(0deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%)",
animation: "runningStripe linear 3s infinite", animation: "runningStripe linear 3s infinite",
transform: "rotate(-60deg)", transform: "rotate(-60deg)",
"@keyframes runningStripe": { "@keyframes runningStripe": {