2017-04-13 14:57:31 +03:00
|
|
|
|
|
|
|
|
body.hints:before,
|
|
|
|
|
body.hints:after {
|
|
|
|
|
display: block;
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 12.5%;
|
|
|
|
|
bottom: 12.5%;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
}
|
|
|
|
|
body.hints:before {
|
|
|
|
|
content: "";
|
|
|
|
|
width: 100%;
|
2017-04-23 15:37:43 +03:00
|
|
|
border-top: dotted 0.3vmin rgba(255, 0, 0, 0.5);
|
|
|
|
|
border-bottom: dotted 0.3vmin rgba(255, 0, 0, 0.5);
|
2017-04-13 14:57:31 +03:00
|
|
|
}
|
|
|
|
|
body.hints:after {
|
|
|
|
|
content: "↺↻";
|
|
|
|
|
width: 37vmin;
|
|
|
|
|
right: 50%;
|
|
|
|
|
left: auto;
|
|
|
|
|
overflow: visible;
|
2017-04-23 15:37:43 +03:00
|
|
|
border-right: dotted 0.3vmin rgba(255, 0, 0, 0.5);
|
2017-04-13 14:57:31 +03:00
|
|
|
|
|
|
|
|
color: rgba(255, 0, 0, 0.5);
|
|
|
|
|
font-size: 15vmin;
|
2017-04-23 15:37:43 +03:00
|
|
|
line-height: 70vh;
|
2017-04-13 14:57:31 +03:00
|
|
|
white-space: pre;
|
|
|
|
|
letter-spacing: 50vmin;
|
|
|
|
|
}
|
|
|
|
|
.hints .simplesnake {
|
2017-04-23 15:37:43 +03:00
|
|
|
opacity: 0.2;
|
2017-04-13 14:57:31 +03:00
|
|
|
}
|
2017-04-23 15:37:43 +03:00
|
|
|
.hints .title:before,
|
|
|
|
|
.hints .title:after {
|
2017-04-13 14:57:31 +03:00
|
|
|
position: absolute;
|
|
|
|
|
display: block;
|
|
|
|
|
text-align: center;
|
|
|
|
|
width: 100vw;
|
|
|
|
|
color: red;
|
|
|
|
|
font-size: 5vh;
|
|
|
|
|
line-height: 10vh;
|
|
|
|
|
z-index: 100;
|
2017-04-23 15:37:43 +03:00
|
|
|
opacity: 0.6;
|
2017-04-13 14:57:31 +03:00
|
|
|
}
|
2017-04-23 15:37:43 +03:00
|
|
|
.hints .title:before {
|
|
|
|
|
content: "New level";
|
2017-04-13 14:57:31 +03:00
|
|
|
}
|
2017-04-23 15:37:43 +03:00
|
|
|
.hints .title:after {
|
2017-04-13 14:57:31 +03:00
|
|
|
bottom: 0;
|
2017-04-23 15:37:43 +03:00
|
|
|
content: "Pause game";
|
2017-04-13 14:57:31 +03:00
|
|
|
}
|
2017-04-23 15:37:43 +03:00
|
|
|
.hints .title {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
.hints .title h1:after {
|
|
|
|
|
content: "Touch control hints...";
|
|
|
|
|
display: block;
|
|
|
|
|
position: relative;
|
|
|
|
|
font-size: 4vmin;
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
font-style: italic;
|
|
|
|
|
text-shadow: 3pt 3pt 10pt rgba(0,0,0,0.2);
|
2017-04-23 15:42:58 +03:00
|
|
|
opacity: 0.4;
|
2017-04-23 15:37:43 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
display: none;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
text-align: center;
|
|
|
|
|
z-index: 500;
|
|
|
|
|
color: rgba(255,0,0,0.7);
|
|
|
|
|
}
|
|
|
|
|
.title h1 {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: block;
|
|
|
|
|
top: 50%;
|
|
|
|
|
font-size: 10vmin;
|
|
|
|
|
margin-top: -22vmin;
|
|
|
|
|
font-weight: bolder;
|
|
|
|
|
text-shadow: 3pt 3pt 15pt rgba(0,0,0,0.2);
|
|
|
|
|
}
|
|
|
|
|
|
2017-04-13 14:57:31 +03:00
|
|
|
|
2017-04-16 00:19:51 +03:00
|
|
|
|
2017-04-13 14:57:31 +03:00
|
|
|
body {
|
2017-04-16 00:19:51 +03:00
|
|
|
background-color: rgb(253, 253, 253);
|
2017-04-13 14:57:31 +03:00
|
|
|
font-family: sans-serif;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.simplesnake .field {
|
|
|
|
|
position: relative;
|
|
|
|
|
left: 50%;
|
|
|
|
|
margin-left: -45vmin;
|
|
|
|
|
|
|
|
|
|
width: 90vmin;
|
|
|
|
|
height: 90vmin;
|
|
|
|
|
border: solid 1px silver;
|
|
|
|
|
}
|
|
|
|
|
|
2017-04-16 00:19:51 +03:00
|
|
|
/* show score... */
|
2017-04-15 16:53:13 +03:00
|
|
|
.simplesnake[score]:after {
|
|
|
|
|
position: absolute;
|
|
|
|
|
display: block;
|
|
|
|
|
text-align: center;
|
|
|
|
|
width: 100vw;
|
|
|
|
|
color: gray;
|
|
|
|
|
font-size: 2vh;
|
|
|
|
|
line-height: 3vh;
|
|
|
|
|
|
|
|
|
|
content: "Top score: " attr(snake) ": " attr(score) " " attr(state);
|
|
|
|
|
|
|
|
|
|
opacity: 0.9;
|
|
|
|
|
}
|
|
|
|
|
|
2017-04-16 00:19:51 +03:00
|
|
|
.simplesnake .wall {
|
|
|
|
|
background-color: silver;
|
|
|
|
|
}
|
|
|
|
|
.simplesnake .apple {
|
|
|
|
|
position: relative;
|
|
|
|
|
background-color: red;
|
|
|
|
|
}
|
|
|
|
|
|
2017-04-21 04:06:35 +03:00
|
|
|
body:not(.hints) .simplesnake.paused:before {
|
2017-04-20 23:46:09 +03:00
|
|
|
content: "Paused...";
|
|
|
|
|
position: absolute;
|
|
|
|
|
display: block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
top: 50%;
|
|
|
|
|
margin-top: -10vmin;
|
|
|
|
|
font-size: 10vmin;
|
|
|
|
|
font-weight: bolder;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: rgba(0, 0, 0, 0.2);
|
|
|
|
|
z-index: 100;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2017-04-16 00:19:51 +03:00
|
|
|
/*
|
|
|
|
|
.simplesnake .apple {
|
|
|
|
|
position: relative;
|
|
|
|
|
background-color: none;
|
|
|
|
|
}
|
|
|
|
|
.simplesnake .apple:before {
|
|
|
|
|
position: absolute;
|
|
|
|
|
display: block;
|
|
|
|
|
content: "";
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
background-color: red;
|
|
|
|
|
transform: rotate(45deg);
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
.simplesnake .apple {
|
|
|
|
|
position: relative;
|
|
|
|
|
background-color: none;
|
|
|
|
|
}
|
|
|
|
|
.simplesnake .apple:before {
|
|
|
|
|
display: block;
|
|
|
|
|
content: "";
|
|
|
|
|
width: 60%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
position: absolute;
|
|
|
|
|
background-color: red;
|
|
|
|
|
border-radius: 30%;
|
|
|
|
|
border-bottom-right-radius: 50%;
|
|
|
|
|
transform: rotate(-10deg);
|
|
|
|
|
}
|
|
|
|
|
.simplesnake .apple:after {
|
|
|
|
|
display: block;
|
|
|
|
|
content: "";
|
|
|
|
|
width: 60%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
position: absolute;
|
|
|
|
|
background-color: red;
|
|
|
|
|
border-radius: 30%;
|
|
|
|
|
border-bottom-left-radius: 50%;
|
|
|
|
|
transform: rotate(10deg);
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|