auto global game of life

This commit is contained in:
JurajKubrican
2025-08-04 16:28:42 +02:00
parent a393b03d98
commit b13c8c4f14
7 changed files with 147 additions and 68 deletions

View File

@@ -4,7 +4,45 @@
}
.boxes input{
margin: 0;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
width: 20px;
height: 20px;
background: transparent;
border: none;
position: relative;
cursor: pointer;
}
.boxes input[type="checkbox"]:checked {
background: transparent;
}
.boxes input[type="checkbox"]:checked::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 1px;
background: #4a7c59;
transform-origin: 0 0;
transform: rotate(45deg) scaleX(1.414);
}
.boxes input[type="checkbox"]:checked::after {
content: '';
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 1px;
background: #4a7c59;
transform-origin: 100% 0;
transform: rotate(-45deg) scaleX(1.414);
}
.boxes{
display: grid;
grid-template-columns: repeat(32, 1fr); /* 32 equal columns */