forked from carrot/share-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (82 loc) · 2.41 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
<head>
<title>Share Button Test</title>
<link href="dist/share-button.min.css" rel="stylesheet">
<style>
html {
width: 100%;
height: 100%;
overflow: hidden;
}
body {
-webkit-font-smoothing: antialiased;
width: 100%;
height: 100%;
overflow: hidden;
margin: 0;
padding: 0;
background: #4f3b5b;
background: -moz-radial-gradient(center, ellipse cover, #4f3b5b 0%, #231733 100%);
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #4f3b5b), color-stop(100%, #231733));
background: -webkit-radial-gradient(center, ellipse cover, #4f3b5b 0%, #231733 100%);
background: -o-radial-gradient(center, ellipse cover, #4f3b5b 0%, #231733 100%);
background: -ms-radial-gradient(center, ellipse cover, #4f3b5b 0%, #231733 100%);
background: radial-gradient(ellipse at center, #4f3b5b 0%, #231733 100%);
}
share-button {
position: absolute;
top: 50%;
left: 50%;
z-index: 2;
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.fork img {
opacity: .6;
-webkit-transition: all .5s ease;
transition: all .5s ease;
}
.fork img:hover {
opacity: 1;
}
pre {
display: block;
margin: auto;
position: absolute;
top: 57%;
left: 0;
bottom: 0;
right: 0;
color: #839496;
text-align: center;
font-family: 'Source Code Pro';
font-size: 13px;
text-shadow: 1px 1px 1px #333;
}
pre span.class {
color: #b58900;
}
pre span.string {
color: #2aa198;
}
pre span.new {
color: #859900;
}
</style>
<meta name='description' content='A simple, light, flexible, & good-looking share button'>
<meta property='og:image' content='http://carrot.is/img/fb-share.jpg'>
</head>
<body>
<a class='fork' href="https://github.com/carrot/share-button">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://www.sharebutton.co/images/fork-me.png" alt="Fork me on GitHub">
</a>
<share-button></share-button>
<pre><span class="new">new </span><span class="class">share-button</span>();</pre>
<script src='dist/share-button.js'></script>
<script>
var shareButton = new ShareButton();
</script>
</body>
</html>