提交 fd2927c3 编写于 作者: G Gabriele Cirulli

add game explanation, remove test tiles

上级 43aaf123
......@@ -9,6 +9,7 @@
<body>
<div class="container">
<h1>2048</h1>
<p class="game-intro">Join the numbers and get to the <strong>2048 tile!</strong></p>
<div class="game-container">
<div class="grid-container">
......@@ -42,38 +43,25 @@
<div class="tile tile-2 tile-position-1-1">
2
</div>
<div class="tile tile-4 tile-position-2-1">
4
</div>
<div class="tile tile-8 tile-position-3-1">
8
</div>
<div class="tile tile-16 tile-position-4-1">
16
</div>
<div class="tile tile-32 tile-position-1-2">
32
</div>
<div class="tile tile-64 tile-position-2-2">
64
</div>
<div class="tile tile-128 tile-position-3-2">
128
</div>
<div class="tile tile-256 tile-position-4-2">
256
</div>
<div class="tile tile-512 tile-position-1-3">
512
</div>
<div class="tile tile-1024 tile-position-2-3">
1024
</div>
<div class="tile tile-2048 tile-position-3-3">
2048
</div>
<div class="tile tile-4 tile-position-2-3">
4
</div>
<div class="tile tile-512 tile-position-3-2">
512
</div>
<div class="tile tile-2048 tile-position-4-4">
2048
</div>
</div>
</div>
<p class="game-explanation">
<strong class="important">How to play:</strong> Use your <strong>arrow keys</strong> to move the tiles. When two tiles with the same number touch, they <strong>merge into one!</strong>
</p>
<hr>
<p>
Created by <a href="http://gabrielecirulli.com" target="_blank">Gabriele Cirulli.</a> Based on <a href="https://itunes.apple.com/us/app/1024!/id823499224" target="_blank">1024 by Veewo Studio.</a>
</p>
</div>
</body>
</html>
......@@ -4,7 +4,8 @@ html, body {
padding: 0;
background: #faf8ef;
color: #776e65;
font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif; }
font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
font-size: 18px; }
body {
margin: 80px 0; }
......@@ -14,12 +15,31 @@ h1 {
font-weight: bold;
margin: 0; }
p {
margin-top: 0;
margin-bottom: 10px;
line-height: 1.65; }
a {
color: #776e65;
font-weight: bold;
text-decoration: underline; }
strong.important {
text-transform: uppercase; }
hr {
border: none;
border-bottom: 1px solid #d8d4d0;
margin-top: 20px;
margin-bottom: 30px; }
.container {
width: 500px;
margin: 0 auto; }
.game-container {
margin-top: 50px;
margin-top: 40px;
position: relative;
padding: 15px;
cursor: default;
......@@ -184,3 +204,9 @@ h1 {
background: #edc22e;
box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.55556), inset 0 0 0 1px rgba(255, 255, 255, 0.33333);
font-size: 35px; }
.game-intro {
margin-bottom: 0; }
.game-explanation {
margin-top: 50px; }
......@@ -21,6 +21,7 @@ html, body {
background: #faf8ef;
color: $text-color;
font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
font-size: 18px;
}
body {
......@@ -33,13 +34,38 @@ h1 {
margin: 0;
}
p {
margin-top: 0;
margin-bottom: 10px;
line-height: 1.65;
}
a {
color: $text-color;
font-weight: bold;
text-decoration: underline;
}
strong {
&.important {
text-transform: uppercase;
}
}
hr {
border: none;
border-bottom: 1px solid lighten($text-color, 40%);
margin-top: 20px;
margin-bottom: 30px;
}
.container {
width: $field-width;
margin: 0 auto;
}
.game-container {
margin-top: 50px;
margin-top: 40px;
position: relative;
padding: $grid-spacing;
......@@ -179,4 +205,10 @@ h1 {
}
}
.game-intro {
margin-bottom: 0;
}
.game-explanation {
margin-top: 50px;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册