-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (58 loc) · 1.99 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
<html>
<head>
<title>CSS Background Overlay Example</title>
<link rel="stylesheet" href="overlay.css"/>
<style>
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
section {
height: 50vh;
width: 100%;
background-image: url('http://lorempixel.com/800/400');
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
}
section.overlay-black-50,
section.overlay-blue-30,
section.overlay-pink-30 {
color: white;
}
.new-image {
display: block;
background-color: dodgerblue;
border-radius: 6px;
padding: 20px;
margin: 20px 40px;
line-height: 20px;
text-align: center;
text-decoration: none;
color: white;
}
.new-image:hover {
background-color: darkblue;
}
</style>
</head>
<body>
<div><a class="new-image" href="javascript:history.go(0)">New Image</a></div>
<section>
<h2>Original background image.</h2>
</section>
<section class="overlay-black-50">
<h2>Make images more usable without complex image editing.</h2>
</section>
<section class="overlay-white-50">
<h2>Lighten images to make them fit into your theme.</h2>
</section>
<section class="overlay-blue-30">
<h2>Match your brand colours - use the SCSS mixin to overlay any colour.</h2>
</section>
<section class="overlay-pink-70">
<h2>Just include one CSS file: <a href="http://github.com/arirawr/background-overlay-scss">instructions here.</a></h2>
</section>
</body>
</html>