react-fortune-roulette
Version:
A fork of react-roulette-game adapted for modern React versions and extended functionality
51 lines (43 loc) • 866 B
CSS
.roulette-container {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}
.roulette-box {
position: relative;
display: flex;
width: 100%;
padding-bottom: 100%;
}
.roulette-board,
.roulette-highlight-area,
.roulette-pointer {
position: absolute;
width: 100%;
padding-bottom: 100%;
background-position: center;
background-size: 100% 100%;
background-repeat: no-repeat;
top: 0;
left: 0;
}
.roulette-highlight-area {
opacity: 0;
pointer-events: none;
}
.roulette-actions {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 24px auto;
gap: 8px
}
.roulette-btn {
text-align: center;
}
.roulette-btn.disabled {
pointer-events: none;
opacity: 0.5;
}