-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.less
71 lines (68 loc) · 1.37 KB
/
main.less
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
* {
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
box-sizing: border-box;
}
body, html {
height: 100%;
}
.wrapper {
height: 100%;
}
.page-outline {
position: relative;
height: 100%;
overflow: hidden;
.audio-box {
position: fixed;
top: .5rem;
right: .5rem;
z-index: 99;
width: .9rem;
height: .9rem;
background: url("./image/icon-music.svg") no-repeat;
background-size: contain;
animation: rotate-infinite 1.2s linear infinite;
@keyframes rotate-infinite {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(1turn);
}
}
}
.switch-btn {
position: fixed;
bottom: .8rem;
left: 0;
z-index: 99;
width: 100%;
text-align: center;
.icon-btn {
display: inline-block;
border-left: .2rem solid transparent;
border-right: .2rem solid transparent;
border-bottom: .3rem solid #fff;
animation-iteration-count: infinite;
}
}
section {
position: absolute;
z-index: 0;
display: none;
height: 100%;
width: 100%;
background: #999 url("./image/wrapper.jpg") no-repeat;
background-size: cover;
&.z-active {
z-index: 2;
}
&.z-current {
display: inline-block;
z-index: 1;
}
}
}