-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcss3-wechat-logo.html
97 lines (97 loc) · 2.19 KB
/
css3-wechat-logo.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
95
96
97
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
<title>css3 wechat logo</title>
<style media="screen">
html, body {
height: 100%;
overflow: hidden;
}
body {
background: #2c3437;
margin-top: 200px;
}
.weixin-bg {
width: 300px;
height: 300px;
margin: 0 auto;
border-radius: 10px;
background-color: #08c406;
position: relative;
overflow: hidden;
}
.weixin-bg .inner {
width: 180px;
height: 150px;
border-radius: 50%;
background-color: #fff;
margin-top: 60px;
margin-left: 30px;
position: relative;
}
.weixin-bg .inner::after {
content: "";
border-width: 25px 10px;
border-style: solid;
border-color: #fff transparent transparent;
position: absolute;
top: 125px;
left: 10px;
transform: rotate(45deg);
}
.weixin-bg .inner::before {
content: "";
width: 20px;
height: 20px;
z-index: 3;
background-color: #08c406;
border-radius: 50%;
position: absolute;
top: 38px;
left: 40px;
box-shadow: 70px 0 #08c406, 70px 50px 0 -2px #08c406, 140px 50px 0 -2px #08c406;
}
.weixin-bg::before {
content: "";
width: 140px;
height: 120px;
z-index: 2;
border-radius: 50%;
background-color: #fff;
border: 2px solid #08c406;
position: absolute;
top: 120px;
right: 40px;
}
.weixin-bg::after {
content: "";
border-width: 17px 8px;
border-style: solid;
border-color: #fff transparent transparent;
position: absolute;
top: 226px;
right: 58px;
z-index: 4;
transform: rotate(-45deg);
}
p {
width: 100%;
text-align: center;
position: absolute;
bottom: 0;
color: #fff;
}
p a {
color: #fff;
}
</style>
</head>
<body>
<div class="weixin-bg">
<div class="inner"></div>
</div>
<p>上一个DEMO:<a href="index.html">纯css3 lsh logo</a></p>
</body>
</html>