From 0cc4d964e2523da3d2a084e8fc75a4c16bae442f Mon Sep 17 00:00:00 2001 From: liabru Date: Sun, 11 Feb 2024 19:30:03 +0000 Subject: [PATCH] fixed compare tool layer order in demo testbed --- demo/index.html | 1 + demo/src/index.ejs | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/demo/index.html b/demo/index.html index 7a417c50..c1f2e0b0 100644 --- a/demo/index.html +++ b/demo/index.html @@ -46,6 +46,7 @@ .matter-js-compare-build.matter-demo canvas { opacity: 0.5; background: transparent !important; + z-index: 25 !important; } diff --git a/demo/src/index.ejs b/demo/src/index.ejs index cb568ca4..ba3197c6 100644 --- a/demo/src/index.ejs +++ b/demo/src/index.ejs @@ -35,7 +35,6 @@ width: 100%; height: 100%; border: 0; - z-index: 1; pointer-events: none; } @@ -43,9 +42,15 @@ display: none; } + .matter-js.dev.matter-demo canvas { + background: transparent !important; + z-index: 20; + } + .matter-js-compare-build.matter-demo canvas { opacity: 0.5; background: transparent !important; + z-index: 15 !important; } @media only screen and (min-width: 1300px) { @@ -54,6 +59,11 @@ position: relative; z-index: 20; } + + .matter-js-compare-build.matter-demo canvas { + position: relative; + z-index: 15; + } }