the voiceover fix broke the cube

This commit is contained in:
Rhiannon Morris 2024-09-26 02:21:00 +02:00
parent 25b5314f7e
commit 431e04c82b
2 changed files with 21 additions and 13 deletions

View file

@ -98,17 +98,25 @@ body {
transition: background 0.1s ease-in;
}
#cube > section[data-selected=true] {
#cube > :is(section[data-state=entering], #a) {
z-index: 1;
opacity: 0;
}
#cube > :is(section[data-state=active], #a) {
z-index: 1;
opacity: 1;
transition: opacity 0.1s ease-in;
}
#cube > section[data-selected=false] {
#cube > :is(section[data-state=leaving], #a) {
z-index: -1;
opacity: 0;
transition: opacity 0s 0.1s ease-in;
}
/* todo make sure this works ok with screen readers */
#cube > :is(section[data-state=hidden], #a) {
display: none;
}
}