Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
黛琳ghz
2048
提交
560859fc
2048
项目概览
黛琳ghz
/
2048
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
2048
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
560859fc
编写于
3月 22, 2014
作者:
G
Gabriele Cirulli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
restyle new game button to put it on the right side of the introduction
上级
4ad15d4c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
86 addition
and
42 deletion
+86
-42
index.html
index.html
+6
-2
style/helpers.scss
style/helpers.scss
+9
-0
style/main.css
style/main.css
+35
-27
style/main.scss
style/main.scss
+36
-13
未找到文件。
index.html
浏览文件 @
560859fc
...
...
@@ -22,8 +22,12 @@
<div
class=
"best-container"
>
0
</div>
</div>
</div>
<p
class=
"game-intro"
>
Join the numbers and get the
<strong>
2048 tile!
</strong></p>
<a
class=
"restart-button"
>
New Game
</a>
<div
class=
"above-game"
>
<p
class=
"game-intro"
>
Join the numbers and get the
<strong>
2048 tile!
</strong></p>
<a
class=
"restart-button"
>
New Game
</a>
</div>
<div
class=
"game-container"
>
<div
class=
"game-message"
>
<p></p>
...
...
style/helpers.scss
浏览文件 @
560859fc
...
...
@@ -70,3 +70,12 @@
@content
;
}
}
// Clearfix
@mixin
clearfix
{
&
:after
{
content
:
""
;
display
:
block
;
clear
:
both
;
}
}
style/main.css
浏览文件 @
560859fc
...
...
@@ -30,7 +30,6 @@ h1.title {
100
%
{
top
:
-50px
;
opacity
:
0
;
}
}
@-moz-keyframes
move-up
{
0
%
{
top
:
25px
;
...
...
@@ -39,7 +38,6 @@ h1.title {
100
%
{
top
:
-50px
;
opacity
:
0
;
}
}
@keyframes
move-up
{
0
%
{
top
:
25px
;
...
...
@@ -48,7 +46,6 @@ h1.title {
100
%
{
top
:
-50px
;
opacity
:
0
;
}
}
.scores-container
{
float
:
right
;
text-align
:
right
;
}
...
...
@@ -128,36 +125,20 @@ hr {
100
%
{
opacity
:
1
;
}
}
@-moz-keyframes
fade-in
{
0
%
{
opacity
:
0
;
}
100
%
{
opacity
:
1
;
}
}
@keyframes
fade-in
{
0
%
{
opacity
:
0
;
}
100
%
{
opacity
:
1
;
}
}
.restart-button
{
display
:
inline-block
;
background
:
#8f7a66
;
border-radius
:
3px
;
padding
:
0
20px
;
text-decoration
:
none
;
color
:
#f9f6f2
;
height
:
40px
;
line-height
:
42px
;
display
:
block
;
width
:
100px
;
margin
:
10px
auto
10px
auto
;
text-align
:
center
;
}
.game-container
{
margin-top
:
40px
;
position
:
relative
;
padding
:
15px
;
cursor
:
default
;
...
...
@@ -406,7 +387,6 @@ hr {
-webkit-transform
:
scale
(
1
);
-moz-transform
:
scale
(
1
);
transform
:
scale
(
1
);
}
}
@-moz-keyframes
appear
{
0
%
{
opacity
:
0
;
...
...
@@ -419,7 +399,6 @@ hr {
-webkit-transform
:
scale
(
1
);
-moz-transform
:
scale
(
1
);
transform
:
scale
(
1
);
}
}
@keyframes
appear
{
0
%
{
opacity
:
0
;
...
...
@@ -432,7 +411,6 @@ hr {
-webkit-transform
:
scale
(
1
);
-moz-transform
:
scale
(
1
);
transform
:
scale
(
1
);
}
}
.tile-new
.tile-inner
{
-webkit-animation
:
appear
200ms
ease
100ms
;
-moz-animation
:
appear
200ms
ease
100ms
;
...
...
@@ -456,7 +434,6 @@ hr {
-webkit-transform
:
scale
(
1
);
-moz-transform
:
scale
(
1
);
transform
:
scale
(
1
);
}
}
@-moz-keyframes
pop
{
0
%
{
-webkit-transform
:
scale
(
0
);
...
...
@@ -472,7 +449,6 @@ hr {
-webkit-transform
:
scale
(
1
);
-moz-transform
:
scale
(
1
);
transform
:
scale
(
1
);
}
}
@keyframes
pop
{
0
%
{
-webkit-transform
:
scale
(
0
);
...
...
@@ -488,7 +464,6 @@ hr {
-webkit-transform
:
scale
(
1
);
-moz-transform
:
scale
(
1
);
transform
:
scale
(
1
);
}
}
.tile-merged
.tile-inner
{
z-index
:
20
;
-webkit-animation
:
pop
200ms
ease
100ms
;
...
...
@@ -498,8 +473,27 @@ hr {
-moz-animation-fill-mode
:
backwards
;
animation-fill-mode
:
backwards
;
}
.above-game
:after
{
content
:
""
;
display
:
block
;
clear
:
both
;
}
.game-intro
{
margin-bottom
:
0
;
}
float
:
left
;
line-height
:
42px
;
}
.restart-button
{
display
:
inline-block
;
background
:
#8f7a66
;
border-radius
:
3px
;
padding
:
0
20px
;
text-decoration
:
none
;
color
:
#f9f6f2
;
height
:
40px
;
line-height
:
42px
;
display
:
block
;
text-align
:
center
;
float
:
right
;
}
.game-explanation
{
margin-top
:
50px
;
}
...
...
@@ -528,7 +522,21 @@ hr {
.heading
{
margin-bottom
:
10px
;
}
.game-intro
{
width
:
55%
;
display
:
block
;
box-sizing
:
border-box
;
line-height
:
1.65
;
}
.restart-button
{
width
:
42%
;
padding
:
0
;
display
:
block
;
box-sizing
:
border-box
;
margin-top
:
2px
;
}
.game-container
{
margin-top
:
40px
;
position
:
relative
;
padding
:
10px
;
cursor
:
default
;
...
...
style/main.scss
浏览文件 @
560859fc
...
...
@@ -34,10 +34,8 @@ body {
margin
:
80px
0
;
}
.heading
:after
{
content
:
""
;
display
:
block
;
clear
:
both
;
.heading
{
@include
clearfix
;
}
h1
.title
{
...
...
@@ -168,17 +166,10 @@ hr {
line-height
:
42px
;
}
.restart-button
{
@include
button
;
display
:
block
;
width
:
100px
;
margin
:
10px
auto
10px
auto
;
text-align
:
center
;
}
// Game field mixin used to render CSS at different width
@mixin
game-field
{
.game-container
{
margin-top
:
40px
;
position
:
relative
;
padding
:
$grid-spacing
;
...
...
@@ -454,8 +445,24 @@ hr {
@include
animation-fill-mode
(
backwards
);
}
.above-game
{
@include
clearfix
;
// margin-bottom: 10px;
}
.game-intro
{
margin-bottom
:
0
;
float
:
left
;
line-height
:
42px
;
// margin-bottom: 0;
}
.restart-button
{
@include
button
;
display
:
block
;
// width: 100px;
// margin: 10px auto 10px auto;
text-align
:
center
;
float
:
right
;
}
.game-explanation
{
...
...
@@ -499,6 +506,22 @@ hr {
margin-bottom
:
10px
;
}
// Show intro and restart button side by side
.game-intro
{
width
:
55%
;
display
:
block
;
box-sizing
:
border-box
;
line-height
:
1
.65
;
}
.restart-button
{
width
:
42%
;
padding
:
0
;
display
:
block
;
box-sizing
:
border-box
;
margin-top
:
2px
;
}
// Render the game field at the right width
@include
game-field
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录