Skip to content

Commit

Permalink
Disable pointer events on hidden stages
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjrw committed Sep 12, 2024
1 parent 7103b65 commit 0ef3d37
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions source/scp-head/src/assertions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
display: initial;
visibility: visible;
opacity: 1;
pointer-events: initial;
}

// Hide all previous assertions (in this statement)
Expand All @@ -40,9 +41,14 @@
$prevs: append($prevs, unquote(".a_#{$j}"), comma);
}
#{$controller} + .article #{$channel} > .a_#{$assertion} ~ :is(#{$prevs}) {
display: none; // For non-.height-match
visibility: hidden;
opacity: 0; // For .height-match
// For non-.height-match
display: none;
// For .height-match
&,
& * {
visibility: hidden !important;
pointer-events: none !important;
}
}
}

Expand All @@ -51,6 +57,7 @@
display: initial;
visibility: visible;
opacity: 1;
pointer-events: initial;
}

// Hide assertions marked as empty
Expand All @@ -70,6 +77,7 @@
:where(.height-match > [class^="a_"]) {
visibility: hidden;
opacity: 0;
pointer-events: none;
}
}

Expand Down

0 comments on commit 0ef3d37

Please sign in to comment.