forked from ftlabs/fastclick
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path83.html
More file actions
71 lines (71 loc) · 1.78 KB
/
83.html
File metadata and controls
71 lines (71 loc) · 1.78 KB
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
<!doctype html>
<html>
<head>
<!-- Copied from: http://fastclick-issue83.aws.af.cm/ -->
<title>Fastclick test</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type='application/javascript' src='../lib/fastclick.js'></script>
<script>
window.addEventListener('load', function() {
new FastClick(document.body);
}, false);
</script>
<style>
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
font-size: 32px;
font-family: Helvetica, sans-serif;
}
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body {
padding: 1em;
}
div {
margin-top: 50%;
height: 900px;
}
.button {
width: 100%;
color: #fff;
text-align: center;
text-decoration: none;
font-weight: 600;
background: #ff3b46;
padding: 1em;
display: inline-block;
position: relative;
border: 0;
cursor: pointer;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
-webkit-box-shadow: 0 0.18em 0 #931517;
-moz-box-shadow: 0 0.18em 0 #931517;
box-shadow: 0 0.18em 0 #931517;
}
.button:hover,
.button:active {
color: #fff;
text-decoration: none;
background: #5091d2;
-webkit-box-shadow: 0 0.18em 0 #36628d;
-moz-box-shadow: 0 0.18em 0 #36628d;
box-shadow: 0 0.18em 0 #36628d;
}
</style>
</head>
<body>
<div>
<a class="button" href="https://github.com/ftlabs/fastclick">Test button</a>
</div>
</body>
</html>