the voiceover fix broke the cube
This commit is contained in:
parent
25b5314f7e
commit
431e04c82b
2 changed files with 21 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue