Skip to content

Commit c2a41a1

Browse files
committed
website: update style.
1 parent 7f15c20 commit c2a41a1

3 files changed

Lines changed: 1028 additions & 282 deletions

File tree

template/styl/index.styl

Lines changed: 43 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ a.github-corner {
2424
z-index 99
2525
width 70px
2626
height 70px
27+
@media mq-mobile {
28+
width 46px
29+
height 46px
30+
}
2731
}
2832
}
2933
a {
@@ -40,12 +44,10 @@ a {
4044
width 517px
4145
margin 0 auto 0
4246
padding 0 10px
43-
.logo {
44-
text-align center
45-
padding-top 50px
46-
padding-bottom 50px
47+
.logo a {
48+
display flex
4749
}
48-
.box{
50+
.box {
4951
position relative
5052
}
5153
.search {
@@ -73,7 +75,7 @@ a {
7375
width 100%
7476
padding 5px
7577
border-radius 5px 5px 5px 5px
76-
li{
78+
li {
7779
line-height 23px
7880
span{
7981
padding 0 8px
@@ -122,9 +124,7 @@ a {
122124
}
123125
}
124126
.enter-input {
125-
width 1%
126127
white-space nowrap
127-
vertical-align middle
128128
button {
129129
margin 0
130130
left -1px
@@ -149,25 +149,25 @@ a {
149149
border-radius 0 5px 5px 0
150150
border-color $border-color
151151
color #333
152-
&:focus,&:active:focus{
152+
&:focus,&:active:focus {
153153
outline thin dotted
154154
outline 5px auto -webkit-focus-ring-color
155155
outline-offset -2px
156156
}
157-
&:active{
157+
&:active {
158158
color #333
159159
background-color #e6e6e6
160160
border-color #b4b4b4
161161
background-image none
162162
box-shadow inset 0 8px 32px -8px rgba(0,0,0,0.3)
163163
}
164-
&:focus{
164+
&:focus {
165165
color #333
166166
background-color #e6e6e6
167167
border-color #999
168168
text-decoration none
169169
}
170-
&:hover{
170+
&:hover {
171171
color #333
172172
background-color #e6e6e6
173173
border-color #b4b4b4
@@ -177,7 +177,7 @@ a {
177177
}
178178
}
179179

180-
.footer{
180+
.footer {
181181
text-align center
182182
padding-top 31px
183183
color #616161
@@ -190,7 +190,6 @@ a {
190190
}
191191
}
192192

193-
194193
.header.header_list {
195194
width auto
196195
position fixed
@@ -199,47 +198,41 @@ a {
199198
z-index 99
200199
}
201200

202-
.header_list{
201+
.header_list {
203202
padding 10px 10px 10px 13px
204203
border-bottom 1px solid #EEEEEE
205-
.logo{
206-
float left
207-
padding-top 3px
208-
padding-bottom 0
204+
.logo {
209205
padding-right 24px
210206
text-align left
211-
svg{
207+
svg {
212208
height 37px
213209
width 136px
214210
}
215211
}
216-
.search{
217-
max-width 517px
218-
}
219-
.footer{
212+
.footer {
220213
display none
221214
}
222215
}
223216

224-
.search_list{
217+
.search_list {
225218
padding 79px 27px
226-
a{
219+
a {
227220
font-size 16px
228-
strong{
221+
strong {
229222
font-weight bold
230223
}
231-
.kw{
224+
.kw {
232225
color #f00
233226
font-style inherit
234227
font-weight bold
235228
}
236-
&:hover{
237-
.kw{
229+
&:hover {
230+
.kw {
238231
color #333
239232
}
240233
}
241234
}
242-
li{
235+
li {
243236
padding 10px 0 10px 0
244237
list-style-type none
245238
p {
@@ -249,16 +242,15 @@ a {
249242
}
250243
}
251244

252-
.hotlist{
245+
.hotlist {
253246
padding 79px 27px
254-
a{
247+
a {
255248
font-size 16px
256-
strong{
249+
strong {
257250
font-weight bold
258251
}
259-
&:hover{ }
260252
}
261-
li{
253+
li {
262254
padding 5px 0 5px 0
263255
list-style-type none
264256
p{
@@ -270,12 +262,10 @@ a {
270262

271263
.header_list .header_inner {
272264
display: flex;
265+
align-items: center;
273266
.search {
274-
flex 1
275-
max-width inherit
276-
.enter-input button {
277-
top -2px
278-
}
267+
flex: 1;
268+
display: flex;
279269
}
280270
}
281271

@@ -288,29 +278,28 @@ a {
288278
.header{
289279
width inherit
290280
.search .enter-input {
291-
button{
292-
padding: 9px 14px;
281+
button {
282+
padding 9px 14px
293283
}
294284
}
295285
}
296-
.header_list{
297-
.logo svg{
286+
.header_list {
287+
padding: 10px 10px 10px 13px
288+
.logo {
289+
float inherit
290+
padding-right 10px
291+
text-align center
292+
}
293+
.logo svg {
298294
width 96px
299295
}
300296
.search {
301-
.query{
297+
.query {
302298
line-height 31px
303299
}
304300
}
305301
}
306-
.header_list .logo{
307-
float inherit
308-
padding-right 10px
309-
padding-top 8px
310-
padding-bottom 14px
311-
text-align center
312-
}
313302
.search_list, .hotlist {
314-
padding 129px 27px
303+
padding 78px 27px
315304
}
316305
}

0 commit comments

Comments
 (0)