53 lines
910 B
CSS
53 lines
910 B
CSS
.decoration {
|
|
position: absolute;
|
|
z-index: -1;
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
height: 100vh;
|
|
overflow: clip;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.wireframe {
|
|
position: absolute;
|
|
bottom: calc(22% - 512px);
|
|
left: calc(50% - 512px);
|
|
display: grid;
|
|
width: 1024px;
|
|
height: 1024px;
|
|
animation-duration: 10s;
|
|
animation-iteration-count: infinite;
|
|
animation-name: isometric-rotate;
|
|
animation-timing-function: linear;
|
|
grid-template-columns: repeat(8, 128px);
|
|
}
|
|
|
|
.cell {
|
|
border-right: 2px solid var(--sun);
|
|
border-bottom: 2px solid var(--sun);
|
|
}
|
|
|
|
.cell:nth-child(8n) {
|
|
border-right: none;
|
|
}
|
|
|
|
.cell:nth-child(n + 57) {
|
|
border-bottom: none;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.decoration {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@keyframes isometric-rotate {
|
|
0% {
|
|
transform: rotateX(70deg) rotateY(0deg) rotateZ(-45deg);
|
|
}
|
|
100% {
|
|
transform: rotateX(70deg) rotateY(0deg) rotateZ(-405deg);
|
|
}
|
|
}
|