Skip to content

Commit 62e2eec

Browse files
committed
Fix mobile style.
1 parent 963070a commit 62e2eec

3 files changed

Lines changed: 36 additions & 9 deletions

File tree

_layouts/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<nav>
1717
<div class="container">
18-
<a href="/" class="logo"><img src="/assets/img/logo-160.png" />Yncoder</a>
18+
<a href="/" class="logo"><img src="/assets/img/logo-160.png" /><strong>Yncoder</strong></a>
1919
<ul>
2020
<li><a href="/about">关于</a></li>
2121
<li><a href="/bloggers">Bloggers</a></li>

assets/css/common.css

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ article blockquote{line-height:1.6em; margin:1em 0 1em 1.5em; border-left:2px so
129129

130130
@media (max-width: 640px) {
131131
.container{
132-
width: 90%;
133-
max-width: 90%;
132+
width: 96%;
133+
max-width: 96%;
134134
}
135135
}
136136

@@ -261,14 +261,41 @@ article blockquote{line-height:1.6em; margin:1em 0 1em 1.5em; border-left:2px so
261261
}
262262

263263
@media (max-width: 640px) {
264+
body>nav .container{
265+
width: 100%;
266+
max-width: 100%;
267+
}
264268
body>nav .logo *:not(img){
265269
display: none;
266270
}
267-
body>nav iframe{
268-
display: none;
271+
body>nav li{
272+
margin-left: 10px;
273+
}
274+
275+
.page-list aside{
276+
margin-bottom: 2%;
277+
}
278+
.page-list aside nav .btn-add{
279+
line-height: 32px;
280+
}
281+
282+
.page-list main{
283+
margin-top: 2%;
284+
}
285+
.page-list #label-list li{
286+
display: inline-block;
287+
margin-right: 10px;
288+
}
289+
.page-list #label-list a{
290+
padding: 5px;
291+
}
292+
293+
.page-list #issue-list li{
294+
min-height: 55px;
295+
padding-left: 55px;
269296
}
270-
.page-single article.container{
271-
width: 90%;
272-
max-width: 90%;
297+
.page-list #issue-list figure{
298+
width: 32px;
299+
height: 32px;
273300
}
274301
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
template: '<li class="{labelClasses} {statusClass}" style="border-left-color:{firstLabelColor}">' +
102102
'<figure><img src="{authorAvatarUrl}" /></figure>' +
103103
'<h4><a href="{link}">{title}</h4>' +
104-
'<p>{labelElements} <a class="author" href="{authorLink}" target="_blank">{authorName}</a><i>{comments} 条评论</i></p>',
104+
'<p>{labelElements} <a class="author" href="{authorLink}" target="_blank">{authorName}</a><i>{comments}</i></p>',
105105

106106
labelTemplate: '<a href="{url}" class="label" style="backbround-color: #{color}">{name}</a>',
107107

0 commit comments

Comments
 (0)