-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
141 lines (109 loc) · 3.98 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Style Snippets</title>
<meta name="description" content="HTML/CSS code for snazzy buttons, media, navigation, and more.">
<meta name="author" content="Marc Woolliscroft">
<link href='//fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
<link href="//fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://rawgit.com/mowoolli/boilerplate/master/dist/css/main.css">
<script src="https://use.fontawesome.com/de6f51e460.js"></script>
</head>
<body>
<div class="large-container">
<h2>Buttons</h2>
<p>The flicker button:</p>
<style>
.button {
width: 20rem;
height: 4rem;
}
.button a {
width: 100%;
height: 100%;
}
#text-showing {
display: none;
}
#icon-showing {
display: inline-flex;
justify-content: center;
align-items: center;
color: black;
}
#element-id {
background-color: tomato;
}
#element-id:hover #icon-showing {
display: none;
}
#element-id:hover #text-showing {
display: inline-flex;
justify-content: center;
align-items: center;
}
#element-id:hover,
#element-id:hover a {
background-color: darkslategray;
color: beige;
text-decoration: none;
}
</style>
<div class="button" id="element-id" style="margin: 1rem">
<a href="#" id="icon-showing">
<i class="fa fa-envelope" aria-hidden="true"></i></a>
<a href="#" id="text-showing">Email</a></div>
<iframe width="100%" height="300" src="//jsfiddle.net/mowoolli/2a00k4p2/7/embedded/html,css,result/dark/" allowfullscreen="allowfullscreen" frameborder="0"></iframe></div>
<div class="large-container">
<h2>Media</h2>
<p>The media card:</p>
<style>
.media-card {
width: 35rem;
height: 40rem;
position: relative;
margin: 1rem 1rem 1rem 1rem;
text-align: center;
vertical-align: middle;
}
.media-card iframe {
width: 100%;
height: 30rem;
}
.media-card object {
width: 100%;
height: 30rem;
}
.media-card img {
width: 100%;
height: 30rem;
object-fit: cover;
}
.media-card a {
color: white;
}
.media-card:hover {
box-shadow: 0 0.4rem 0.8rem 0 rgba(0, 0, 0, 0.2), 0 0.6rem 2rem 0 rgba(0, 0, 0, 0.19);
}
.caption {
background-color: dodgerblue;
position: absolute;
bottom: 0;
height: 10rem;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
</style>
<div class="media-card"><img src="https://farm5.staticflickr.com/4651/26141752758_7bdababe08.jpg">
<a href="#">
<div class="caption">
<p>Link Caption</p>
</div>
</a>
</div>
<iframe width="100%" height="300" src="//jsfiddle.net/mowoolli/pfqkvfqc/15/embedded/html,css,result/dark/" allowfullscreen="allowfullscreen" allowpaymentrequest frameborder="0"></iframe> </div>
</body>
</html>