less z-index
This commit is contained in:
parent
875fc21cac
commit
cbf86e0bf5
2
app.js
2
app.js
@ -129,8 +129,8 @@ class MinoesTable {
|
||||
constructor(id) {
|
||||
this.table = document.getElementById(id)
|
||||
Array.from(this.table.getElementsByTagName("tr")).forEach((tr, row) => {
|
||||
tr.style.setProperty('--row', row)
|
||||
Array.from(tr.getElementsByTagName("td")).forEach((td, column) => {
|
||||
td.style.setProperty('--row', row)
|
||||
td.style.setProperty('--column', column)
|
||||
})
|
||||
})
|
||||
|
@ -12,6 +12,7 @@
|
||||
display: flex;
|
||||
position: relative;
|
||||
flex-direction: row;
|
||||
z-index: calc(1000 - var(--row));
|
||||
}
|
||||
|
||||
tr.matrix td:not(.mino) {
|
||||
@ -31,7 +32,6 @@ tr.matrix td:not(.mino) {
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
display: block;
|
||||
z-index: calc(1000 - var(--row));
|
||||
box-shadow: 0 -6px 0 var(--light-color);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user