Skip to content

Commit 16d4d7f

Browse files
Download_buttons
1 parent c6c8734 commit 16d4d7f

File tree

3 files changed

+99
-0
lines changed

3 files changed

+99
-0
lines changed

download_buttons/index.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Download_buttons</title>
7+
<link rel="stylesheet" href="styles.css">
8+
</head>
9+
<body>
10+
<ul>
11+
<li>
12+
<div class="download android">
13+
<i class="fa fa fa-android fa-3x"></i>
14+
<span class="df">Download from</span>
15+
<span class="dfn">Google Play</span>
16+
</div>
17+
</lI>
18+
<li>
19+
<div class="download apple">
20+
<i class="fa fa fa-apple fa-3x"></i>
21+
<span class="df">Download from</span>
22+
<span class="dfn">App Store</span>
23+
</div>
24+
</li>
25+
<li>
26+
<div class="download windows">
27+
<i class="fa fa fa-windows fa-3x"></i>
28+
<span class="df">Download from</span>
29+
<span class="dfn">Windows Store</span>
30+
</div>
31+
</li>
32+
</ul>
33+
</body>
34+
</html>

download_buttons/styles.css

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
@import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css");
2+
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
3+
* {
4+
font-family: 'Open Sans', 'sans-serif';
5+
}
6+
7+
html, body {
8+
overflow: hidden;
9+
}
10+
11+
ul {
12+
width: 100%;
13+
text-align: center;
14+
margin: 0;
15+
padding: 0;
16+
position: absolute;
17+
top: 50%;
18+
transform: translateY(-50%);
19+
}
20+
21+
li {
22+
display: inline-block;
23+
margin: 10px;
24+
}
25+
26+
.download {
27+
width: 200px;
28+
height: 75px;
29+
background: black;
30+
float: left;
31+
border-radius: 5px;
32+
position: relative;
33+
color: #fff;
34+
cursor: pointer;
35+
border: 1px solid #fff;
36+
}
37+
38+
.download > .fa {
39+
color: #fff;
40+
position: absolute;
41+
top: 50%;
42+
left: 15px;
43+
transform: translateY(-50%);
44+
}
45+
46+
.df,
47+
.dfn {
48+
position: absolute;
49+
left: 70px;
50+
}
51+
52+
.df {
53+
top: 20px;
54+
font-size: .68em;
55+
}
56+
57+
.dfn {
58+
top: 33px;
59+
font-size: 1.08em;
60+
}
61+
62+
.download:hover {
63+
-webkit-filter: invert(100%);
64+
filter: invert(100%);
65+
}

images/Download_buttons.png

14.3 KB
Loading

0 commit comments

Comments
 (0)