forked from th720309/th720309.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
211 lines (209 loc) · 4.05 KB
/
index.css
File metadata and controls
211 lines (209 loc) · 4.05 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
*{
padding: 0;
margin: 0;
}
html{
width: 100%;
height: 100%;
}
body{
width: 100%;
height: 100%;
}
.container{
position: relative;
width: 100%;
height: 100%;
}
.cover-img{
position: absolute;
padding: 0;
margin: 0;
width: 100%;
height: 100%;
background: no-repeat fixed center center ;
background-size: cover;
opacity: 0.4;
}
.header{
position: fixed;
width: 100%;
top: 10px;
margin: 0 auto;
}
img.avator{
position: absolute;
width: 50px;
height: 50px;
border-radius: 50%;
float: left;
margin-left: 20px;
cursor: pointer;
}
img.avator:hover{
border: 1px solid #eee;
}
nav{
padding-top: 10px;
}
img.codeimg{
position: absolute;
top: 50px;
left: 43%;
width: 200px;
opacity: 0.6;
display: none;
}
.list{
width: 100%;
text-align: center;
height: 50px;
}
.list li{
display: inline-block;
}
.list li a{
padding: 0 10px;
margin: 16px 0;
color: #151515;
font: 400 12px/14px 'Montserrat', "Open Sans", "Helvetica Neue", "Helvetica", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", "WenQuanYi Micro Hei", Arial, sans-serif;
text-transform: uppercase;
letter-spacing: 1px;
text-shadow: none;
border-right: 1px solid #aaa;
text-decoration: none;
}
.list li i.fa{
font-size: 20px;
}
.fa-weixin:hover{
color: #51c332;
}
.fa-github:hover{
color: #4078c0;
}
.fa-home:hover{
color: #2fccba;
}
.fa-weibo:hover{
color: #c34331;
}
.list span{
font-family: "Georgia", "Open Sans", "Helvetica Neue", "Helvetica", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", "WenQuanYi Micro Hei", Arial, sans-serif;
font-style: italic;
margin-left: 4px;
margin-right: 3px;
text-transform: none;
position: relative;
top: 1px;
}
.section{
position: absolute;
top: 400px;
width: 500px;
left: 50%;
margin: 0 auto;
text-align: center;
transform: translateX(-50%);
}
.glad{
position: relative;
padding: 10px;
font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", "WenQuanYi Micro Hei", Arial, sans-serif;
font-size: 30px;
font-weight: 700;
line-height: 30px;
letter-spacing: 1px;
transition: color 1s ease;
opacity: 0.6;
}
.glad:hover{
opacity: 1;
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
transition: all 1s ease;
}
.glad:after{
content: '';
background-color: #151515;
width: 3px;
height: 3px;
right: 10%;
bottom: 0;
}
.glad:hover:after{
width: 80%;
margin: 0 auto;
position: absolute;
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
transition: all 1s ease;
}
#wrapper {
display: none;
position: absolute;
left: 0;
width: 320px;
text-align: center;
top: 50%;
left: 50%;
margin-left: -160px;
margin-top: -160px;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
#wrapper h1 {
font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
font-weight: 700;
font-size: 30px;
letter-spacing: 9px;
text-transform: uppercase;
margin: 12px 0;
left: 4px;
display: inline-block;
font-weight: bolder;
line-height: 3rem;
height: 3rem;
padding: 0 1rem;
-webkit-transition: padding 0.3s ease-out;
transition: padding 0.3s ease-out;
}
#wrapper h1:hover{
padding: 0 1.5rem;
background-color: #f03838;
color: #fff;
}
#wrapper h2 {
color: #999;
font-weight: normal;
font-size: 15px;
letter-spacing: .12em;
margin-bottom: 30px;
left: 3px;
}
#wrapper h1,#wrapper h2 {
position: relative;
}
#wrapper p {
font-size: 14px;
line-height: 2em;
margin: 0;
letter-spacing: 2px;
}
#wrapper a {
color: #999;
text-decoration: none;
transition: color .2s ease;
}
#wrapper a:hover {
color: #f33;
}
@media (max-width: 767px) {
#wrapper{
display: block;
}
.container{
display: none;
}
}