codepens/genuary-2022-day-8/dist/style.css

31 lines
781 B
CSS

* {
box-sizing: border-box;
}
html {
height: 100%;
}
body {
background-color: #74d0ec;
background-image: linear-gradient(#4548f7 2px, transparent 2px), linear-gradient(90deg, #4548f7 2px, transparent 2px), linear-gradient(#4548f7 1px, transparent 1px), linear-gradient(90deg, #4548f7 1px, #74d0ec 1px);
background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
overflow: hidden;
width: 100%;
height: 100%;
display: flex;
align-items: center;
}
canvas {
border: none;
padding: 0;
margin: 0;
outline: none;
box-shadow: 2px 20px 13px rgba(0, 0, 0, 0.75);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 60vh;
height: 60vh;
z-index: 0;
}