Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
黛琳ghz
2048
提交
66b623dc
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看板
提交
66b623dc
编写于
3月 12, 2014
作者:
G
Gabriele Cirulli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add paypal donate button
上级
9f1c9744
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
96 addition
and
15 deletion
+96
-15
index.html
index.html
+10
-1
meta/icon_pp.svg
meta/icon_pp.svg
+11
-0
style/helpers.scss
style/helpers.scss
+7
-0
style/main.css
style/main.css
+37
-10
style/main.scss
style/main.scss
+31
-4
未找到文件。
index.html
浏览文件 @
66b623dc
...
...
@@ -80,12 +80,21 @@
<div
class=
"sharing"
>
<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>
<form
class=
"pp-donate"
action=
"https://www.paypal.com/cgi-bin/webscr"
method=
"post"
target=
"_blank"
>
<input
type=
"hidden"
name=
"cmd"
value=
"_s-xclick"
>
<input
type=
"hidden"
name=
"hosted_button_id"
value=
"W59BD72T97DVC"
>
<button
name=
"submit"
><img
src=
"meta/icon_PP.svg"
>
Donate
</button>
<img
alt=
""
border=
"0"
src=
"https://www.paypalobjects.com/en_US/i/scr/pixel.gif"
width=
"1"
height=
"1"
>
</form>
<span
class=
"btc-donate"
>
<a
href=
"bitcoin:1Ec6onfsQmoP9kkL3zkpB6c5sA4PVcXU2i"
>
<img
src=
"meta/icon_bitcoin.svg"
>
Donate
<img
src=
"meta/icon_bitcoin.svg"
>
Donate
BTC
</a>
<span
class=
"address"
><code>
1Ec6onfsQmoP9kkL3zkpB6c5sA4PVcXU2i
</code></span>
</span>
</div>
</div>
...
...
meta/icon_pp.svg
0 → 100644
浏览文件 @
66b623dc
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
width=
"20px"
height=
"20px"
viewBox=
"0 0 20 20"
enable-background=
"new 0 0 20 20"
xml:space=
"preserve"
>
<g>
<circle
fill=
"#FFFFFF"
cx=
"10"
cy=
"10"
r=
"10"
/>
</g>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
fill=
"#195A7F"
d=
"M12.3,4.8h-5L5,15h3l0.7-3.4h2.1c2,0,3.7-1.2,4.2-3.4
C15.5,5.9,13.8,4.8,12.3,4.8z M12.2,8.3c-0.2,0.8-0.9,1.4-1.7,1.4H9.1l0.6-2.8h1.4C11.9,6.9,12.4,7.5,12.2,8.3z"
/>
</svg>
style/helpers.scss
浏览文件 @
66b623dc
...
...
@@ -60,3 +60,10 @@
@content
;
}
}
// Appearance
@mixin
appearance
(
$args
...
)
{
-webkit-appearance
:
$args
;
-moz-appearance
:
$args
;
appearance
:
$args
;
}
style/main.css
浏览文件 @
66b623dc
...
...
@@ -459,7 +459,7 @@ hr {
.sharing
{
margin-top
:
20px
;
text-align
:
center
;
}
.sharing
>
iframe
,
.sharing
span
{
.sharing
>
iframe
,
.sharing
>
span
,
.sharing
>
form
{
display
:
inline-block
;
vertical-align
:
middle
;
}
...
...
@@ -653,7 +653,32 @@ hr {
line-height
:
30px
!important
;
margin-top
:
90px
!important
;
}
.game-message
.lower
{
margin-top
:
30px
!important
;
}
}
margin-top
:
30px
!important
;
}
.sharing
>
iframe
,
.sharing
>
span
,
.sharing
>
form
{
display
:
block
;
margin
:
0
auto
;
margin-bottom
:
20px
;
}
}
.pp-donate
button
{
-webkit-appearance
:
none
;
-moz-appearance
:
none
;
appearance
:
none
;
border
:
none
;
font
:
inherit
;
color
:
inherit
;
cursor
:
pointer
;
display
:
inline-block
;
background
:
#8f7a66
;
border-radius
:
3px
;
padding
:
0
20px
;
text-decoration
:
none
;
color
:
#f9f6f2
;
height
:
40px
;
line-height
:
42px
;
}
.pp-donate
button
img
{
vertical-align
:
-4px
;
margin-right
:
8px
;
}
.btc-donate
{
position
:
relative
;
margin-left
:
20px
;
...
...
@@ -711,11 +736,13 @@ hr {
top
:
-45px
;
pointer-events
:
auto
;
}
@media
screen
and
(
max-width
:
480px
)
{
.btc-donate
{
width
:
120px
;
}
.btc-donate
.address
{
margin-right
:
-85
px
;
margin-right
:
-150
px
;
width
:
300px
;
}
.btc-donate
.address
code
{
font-size
:
13px
;
}
.btc-donate
.address
:after
{
left
:
73
%
;
left
:
50
%
;
bottom
:
2px
;
}
}
style/main.scss
浏览文件 @
66b623dc
...
...
@@ -438,7 +438,7 @@ hr {
margin-top
:
20px
;
text-align
:
center
;
>
iframe
,
span
{
>
iframe
,
>
span
,
>
form
{
display
:
inline-block
;
vertical-align
:
middle
;
}
...
...
@@ -510,6 +510,31 @@ hr {
margin-top
:
30px
!
important
;
}
}
.sharing
{
>
iframe
,
>
span
,
>
form
{
display
:
block
;
margin
:
0
auto
;
margin-bottom
:
20px
;
}
}
}
// PP Donate button
.pp-donate
{
button
{
@include
appearance
(
none
);
border
:
none
;
font
:
inherit
;
color
:
inherit
;
cursor
:
pointer
;
@include
button
;
img
{
vertical-align
:
-4px
;
margin-right
:
8px
;
}
}
}
// Bitcoin donate button
...
...
@@ -583,8 +608,10 @@ hr {
// Styles for small screens
@include
smaller
(
480px
)
{
.address
{
margin-right
:
-85px
;
width
:
120px
;
.address
{
margin-right
:
-150px
;
// background: red;
width
:
300px
;
...
...
@@ -593,7 +620,7 @@ hr {
}
&
:after
{
left
:
73
%
;
left
:
50
%
;
bottom
:
2px
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录