forked from lvwzhen/apple-icon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspotlight.html
92 lines (89 loc) · 2.36 KB
/
spotlight.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Spotlight</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="favicon.ico" />
<style>
@font-face {
font-weight:200;
font-style:normal;
font-family:'HelveticaNeue';
src:url("fonts/HelveticaNeue-UltraLight.otf");
}
body {
background:url(images/spotlight-bg.png) no-repeat;
/*background-size*/
-webkit-background-size:
/*@@prefixmycss->No equivalent*/
;
-moz-background-size:cover;
-o-background-size:
/*@@prefixmycss->No equivalent*/
;
background-size:cover;
text-align:center;
-webkit-font-smoothing:antialiased;
font-smoothing:antialiased;
font-family:'HelveticaNeue', sans-serif;
}
h1 {
text-align: center;
color:#919191;
font-weight:200;
font-size:100px;
}
.spotlight {
width: 120px;
height: 120px;
position:relative;
margin:10% auto;
border-radius: 50%;
background: linear-gradient(to bottom, #00c6fe 5%, #0081ff 100%);
position: relative;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.spotlight span:after, .spotlight span:before {
content:'';
position: absolute;
}
.spotlight span {
display: block;
border: 0;
}
.spotlight span:before {
width: 55px;
height: 55px;
border: 4px solid #fff;
background: transparent;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
top: 20px;
left: 20px;
}
.spotlight span:after {
width: 35px;
height: 5px;
background: #fff;
right: 20px;
bottom: 30px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
</style>
<script src="http://cdn.staticfile.org/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body>
<div class="spotlight">
<span></span>
</div>
<h1>Spotlight</h1>
</body>
</html>