You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1017 B
57 lines
1017 B
@font-face {
|
|
font-family: "game";
|
|
src: url("font.ttf") format("truetype");
|
|
}
|
|
.snake {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: url(./bg.jpg);
|
|
background-size: cover;
|
|
}
|
|
.snake > .buttons {
|
|
position: absolute;
|
|
width: 22.22222222222%;
|
|
height: 22.22222222222%;
|
|
right: 0.4%;
|
|
bottom: 0.97%;
|
|
opacity: 0.6;
|
|
background-image: url(./buttons.png);
|
|
background-size: cover;
|
|
}
|
|
.snake > .buttons:active {
|
|
opacity: 0.8;
|
|
}
|
|
.snake > .modal {
|
|
display: none;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
z-index: 1;
|
|
}
|
|
.snake > .modal.show {
|
|
display: block;
|
|
}
|
|
.snake > .modal::after {
|
|
content: "";
|
|
position: absolute;
|
|
width: 65.83333333333333%;
|
|
height: 41.94444444444444%;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
margin: auto;
|
|
background-image: url(./modal.png);
|
|
background-size: cover;
|
|
}
|
|
.snake > .score {
|
|
position: absolute;
|
|
font-family: game;
|
|
top: 3.5%;
|
|
left: 25%;
|
|
color: #fff;
|
|
}
|
|
|