-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
126 lines (113 loc) · 2.66 KB
/
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
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
* {
margin: 0;
padding: 0;
user-select: none;
}
*,
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html,
body,
#wrap,
.page {
width: 100%;
height: 100%;
background-color: #494A5F;
color: #D5D6E2;
font-weight: 500;
font: 1.05em "Microsoft YaHei", "宋体", "Segoe UI", "Lucida Grande", Helvetica, Arial, sans-serif;
overflow: hidden;
}
#menu{
display: block;
position: fixed;
top: 0;
bottom: 0;
left: 0;
list-style: none;
margin: auto;
width: 6%;
height: 360px;
text-align: center;
z-index: 1;
}
#menu a.icon{
display: block;
padding: 20px;
color: #fff;
font-size: 32px;
text-decoration: none;
cursor: pointer;
-webkit-transition: all 0.5s ease-out !important;
-moz-transition: all 0.5s ease-out !important;
-o-transition: all 0.5s ease-out !important;
transition: all 0.5s ease-out !important;
}
#menu a.icon:hover,
#menu a.icon:focus,
#menu a.icon:active {
color: #74777b;
}
.page {
position: absolute;
left: 200%;
cursor: pointer;
text-align: center;
vertical-align: middle;
-webkit-transition: all 0.6s cubic-bezier(0.5, 0.2, 0.2, 1.1);
-moz-transition: all 0.6s cubic-bezier(0.5, 0.2, 0.2, 1.1);
-o-transition: all 0.6s cubic-bezier(0.5, 0.2, 0.2, 1.1);
transition: all 0.6s cubic-bezier(0.5, 0.2, 0.2, 1.1);
}
#p1 {
left: 0;
background-color: darkslateblue;
}
#p2 {
background: tomato;
}
#p3 {
background: #5AAC56;
}
#p4 {
background: deeppink;
}
#p5 {
background: #9b59b6;
}
div#t2:target div#p1,
div#t3:target div#p1,
div#t4:target div#p1,
div#t5:target div#p1{
background-color: #000;
}
div#t2:target div#p2,
div#t3:target div#p3,
div#t4:target div#p4,
div#t5:target div#p5{
-webkit-transform: translateX(-194%);
-moz-transform: translateX(-194%);
-o-transform: translateX(-194%);
transform: translateX(-194%);
-webkit-transition-delay: 0.2s !important;
-moz-transition-delay: 0.2s !important;
-o-transition-delay: 0.2s !important;
transition-delay: 0.2s !important;
}
div#t2:target #menu a.icon,
div#t3:target #menu a.icon,
div#t4:target #menu a.icon,
div#t5:target #menu a.icon{
-webkit-transform: scale(.8);
-moz-transform: scale(.8);
-o-transform: scale(.8);
transform:scale(.8);
-webkit-transition-delay: 0.25s !important;
-moz-transition-delay: 0.25s !important;
-o-transition-delay: 0.25s !important;
transition-delay: 0.25s !important;
}