-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
62 lines (62 loc) · 884 Bytes
/
style.css
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
body
{
margin: 0;
padding: 0;
}
.zoom
{
width: 100%;
height: 1000px;
position: relative;
overflow: hidden;
background: url(image/bg.jpg);
background-size: cover;
}
.zoom:before
{
content: '';
position: absolute;
bottom: 0;
width: 100%;
height: 200px;
z-index: 1000;
background: linear-gradient(transparent, #fff);
}
.zoom #layer1
{
position: absolute;
left: 40%;
width: 100%;
transform: translateX(-50%);
z-index: 10;
}
.zoom #layer2
{
position: absolute;
right: 0;
width: 100%;
z-index: 9;
}
.zoom #text
{
position: absolute;
right: 0;
width: 100%;
transform: translateY(50%);
}
.content
{
padding: 100px;
box-sizing: border-box;
font-family: consolas;
}
.content h2
{
margin: 0;
padding: 0;
font-size: 4em;
}
.content p
{
font-size: 1.2em;
}