Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
黛琳ghz
2048
提交
9d50e7d7
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看板
提交
9d50e7d7
编写于
3月 11, 2014
作者:
G
Gabriele Cirulli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add bitcoin donate button
上级
39f229a9
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
120 addition
and
3 deletion
+120
-3
index.html
index.html
+3
-1
style/main.css
style/main.css
+53
-1
style/main.scss
style/main.scss
+64
-1
未找到文件。
index.html
浏览文件 @
9d50e7d7
...
...
@@ -76,7 +76,9 @@
<a
href=
"https://twitter.com/share"
class=
"twitter-share-button"
data-text=
"Check out 2048, a game where you join numbers to score high! #2048game"
data-via=
"gabrielecirulli"
>
Tweet
</a>
<script>
!
function
(
d
,
s
,
id
){
var
js
,
fjs
=
d
.
getElementsByTagName
(
s
)[
0
],
p
=
/^http:/
.
test
(
d
.
location
)?
'
http
'
:
'
https
'
;
if
(
!
d
.
getElementById
(
id
)){
js
=
d
.
createElement
(
s
);
js
.
id
=
id
;
js
.
src
=
p
+
'
://platform.twitter.com/widgets.js
'
;
fjs
.
parentNode
.
insertBefore
(
js
,
fjs
);}}(
document
,
'
script
'
,
'
twitter-wjs
'
);
</script>
<span
class=
"btc-donate"
>
<a
href=
"bitcoin:1Ec6onfsQmoP9kkL3zkpB6c5sA4PVcXU2i"
>
<img
src=
"meta/icon_bitcoin.png"
>
Donate
</a>
<span
class=
"address"
><code>
1Ec6onfsQmoP9kkL3zkpB6c5sA4PVcXU2i
</code></span>
</span>
</div>
...
...
style/main.css
浏览文件 @
9d50e7d7
...
...
@@ -642,4 +642,56 @@ hr {
.game-message
.lower
{
margin-top
:
30px
!important
;
}
}
.btc-donate
{
font-size
:
14px
;
}
position
:
relative
;
margin-left
:
20px
;
display
:
inline-block
;
background
:
#8f7a66
;
border-radius
:
3px
;
padding
:
0
20px
;
text-decoration
:
none
;
color
:
#f9f6f2
;
height
:
40px
;
line-height
:
42px
;
cursor
:
pointer
;
}
.btc-donate
img
{
vertical-align
:
-2px
;
margin-right
:
8px
;
}
.btc-donate
a
{
color
:
#f9f6f2
;
text-decoration
:
none
;
font-weight
:
normal
;
}
.btc-donate
.address
{
cursor
:
auto
;
position
:
absolute
;
width
:
340px
;
right
:
50%
;
margin-right
:
-170px
;
padding-bottom
:
7px
;
top
:
40px
;
opacity
:
0
;
-webkit-transition
:
200ms
ease
;
-moz-transition
:
200ms
ease
;
-webkit-transition-property
:
top
,
opacity
;
-moz-transition-property
:
top
,
opacity
;
}
.btc-donate
.address
:after
{
position
:
absolute
;
border-top
:
10px
solid
#bbada0
;
border-right
:
7px
solid
transparent
;
border-left
:
7px
solid
transparent
;
content
:
""
;
bottom
:
0px
;
left
:
50%
;
margin-left
:
-7px
;
}
.btc-donate
.address
code
{
background-color
:
#bbada0
;
padding
:
10px
15px
;
width
:
100%
;
border-radius
:
3px
;
line-height
:
1
;
font-weight
:
normal
;
font-size
:
15px
;
font-family
:
Consolas
,
"Liberation Mono"
,
Courier
,
monospace
;
text-align
:
center
;
}
.btc-donate
:hover
.address
,
.btc-donate
.address
:hover
.address
{
opacity
:
1
;
top
:
-45px
;
}
style/main.scss
浏览文件 @
9d50e7d7
...
...
@@ -493,5 +493,68 @@ hr {
// Bitcoin donate button
.btc-donate
{
font-size
:
14px
;
// font-size: 14px;
position
:
relative
;
margin-left
:
20px
;
@include
button
;
cursor
:
pointer
;
img
{
vertical-align
:
-2px
;
margin-right
:
8px
;
}
a
{
color
:
$bright-text-color
;
text-decoration
:
none
;
font-weight
:
normal
;
}
.address
{
// display: none;
cursor
:
auto
;
position
:
absolute
;
// background: red;
width
:
340px
;
right
:
50%
;
margin-right
:
-170px
;
padding-bottom
:
7px
;
top
:
40px
;
opacity
:
0
;
@include
transition
(
200ms
ease
);
@include
transition-property
(
top
,
opacity
);
&
:after
{
position
:
absolute
;
border-top
:
10px
solid
$game-container-background
;
border-right
:
7px
solid
transparent
;
border-left
:
7px
solid
transparent
;
content
:
""
;
bottom
:
0px
;
left
:
50%
;
margin-left
:
-7px
;
}
code
{
background-color
:
$game-container-background
;
padding
:
10px
15px
;
width
:
100%
;
border-radius
:
3px
;
line-height
:
1
;
font-weight
:
normal
;
font-size
:
15px
;
font-family
:
Consolas
,
"Liberation Mono"
,
Courier
,
monospace
;
text-align
:
center
;
}
}
&
:hover
,
.address
:hover
{
.address
{
opacity
:
1
;
top
:
-45px
;
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录