0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-01-21 17:14:38 -05:00

fixed compare tool layer order in demo testbed

This commit is contained in:
liabru 2024-02-11 19:30:03 +00:00
parent b3e28decc7
commit 0cc4d964e2
2 changed files with 12 additions and 1 deletions

View file

@ -46,6 +46,7 @@
.matter-js-compare-build.matter-demo canvas { .matter-js-compare-build.matter-demo canvas {
opacity: 0.5; opacity: 0.5;
background: transparent !important; background: transparent !important;
z-index: 25 !important;
} }
</style> </style>
</head> </head>

View file

@ -35,7 +35,6 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
border: 0; border: 0;
z-index: 1;
pointer-events: none; pointer-events: none;
} }
@ -43,9 +42,15 @@
display: none; display: none;
} }
.matter-js.dev.matter-demo canvas {
background: transparent !important;
z-index: 20;
}
.matter-js-compare-build.matter-demo canvas { .matter-js-compare-build.matter-demo canvas {
opacity: 0.5; opacity: 0.5;
background: transparent !important; background: transparent !important;
z-index: 15 !important;
} }
@media only screen and (min-width: 1300px) { @media only screen and (min-width: 1300px) {
@ -54,6 +59,11 @@
position: relative; position: relative;
z-index: 20; z-index: 20;
} }
.matter-js-compare-build.matter-demo canvas {
position: relative;
z-index: 15;
}
} }
</style> </style>
</head> </head>