-
Notifications
You must be signed in to change notification settings - Fork 12
/
demo.css
61 lines (53 loc) · 1004 Bytes
/
demo.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
body{
margin: 0;
}
#mainpage{
position: absolute;
top: 0;
bottom: 0;
width: 100%;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
}
#mainpage_body{
min-height: 100%;
background-color: #fff;
-webkit-transform: translateZ(1px) translateY(-120px);
transform: translateZ(1px) translateY(-120px);
padding: 20px;
}
#mainpage_body p{
font-family: sans-serif;
line-height: 1.4;
}
#background{
height: 320px;
}
#background_image{
height: 100%;
display: block;
-webkit-transform: translateZ(0);
transform: translateZ(0);
-webkit-transform-origin: 50% 50%;
transform-origin: 50% 50%;
background-image: url('background.jpg');
background-repeat: no-repeat;
background-size: cover;
background-position: 50% 50%;
}
#front_box{
position: absolute;
top: 50px;
left: 0;
width: 100%;
text-align: center;
}
#front_box img{
width: 70px;
border: 4px solid #fff;
border-radius: 3px;
}
#front_box span{
color: #fff;
font-family: sans-serif;
}