2021-07-15 00:09:42 +02:00
|
|
|
.numberSelector {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr));
|
|
|
|
gap: 5px;
|
|
|
|
position: relative;
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.numberSelector .choiceWrapper {
|
|
|
|
position: relative;
|
2021-07-15 21:04:47 +02:00
|
|
|
border-radius: 10%;
|
|
|
|
overflow: hidden;
|
2021-07-15 00:09:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.numberSelector .choiceWrapper::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
padding-bottom: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.numberSelector .choice {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: var(--choice);
|
|
|
|
margin-right: 5px;
|
|
|
|
padding: .2rem;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
text-align: center;
|
|
|
|
color: var(--text);
|
|
|
|
font-weight: bold;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2022-01-03 13:30:41 +01:00
|
|
|
.numberSelector .choice:hover,
|
|
|
|
.numberSelector .choiceWrapper:focus-visible .choice {
|
2021-07-15 00:09:42 +02:00
|
|
|
background-color: var(--choice-hover);
|
|
|
|
}
|
|
|
|
|
2022-01-03 13:30:41 +01:00
|
|
|
.numberSelector .choiceWrapper:focus-visible {
|
|
|
|
border: 1px solid #fff;
|
|
|
|
}
|
|
|
|
|
2021-07-15 00:09:42 +02:00
|
|
|
.numberSelector .choice.selected {
|
2021-07-15 18:55:08 +02:00
|
|
|
color: var(--choice-active-text, var(--text));
|
|
|
|
background-color: var(--choice-active);
|
2021-07-15 00:09:42 +02:00
|
|
|
}
|
2021-07-15 21:04:47 +02:00
|
|
|
|