Skip to content

Commit 70e958a

Browse files
committed
Optimized the indentation of layout Category and Tag.
1 parent 7254379 commit 70e958a

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

_layouts/category.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% include date-format.html %}
99

1010
<div id="page-category">
11-
<h1>
11+
<h1 class="pl-lg-2">
1212
<i class="far fa-folder-open fa-fw text-muted"></i>
1313
{{ page.title }}
1414
<span class="lead text-muted pl-2">{{ site.categories[page.category] | size }}</span>

_layouts/tag.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% include date-format.html %}
99

1010
<div id="page-tag">
11-
<h1>
11+
<h1 class="pl-lg-2">
1212
<i class="fa fa-tag fa-fw text-muted"></i>
1313
{{ page.title }}
1414
<span class="lead text-muted pl-2">{{ site.tags[page.tag] | size }}</span>

assets/css/category-tag.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,17 @@
5555
}
5656

5757
@media all and (max-width: 576px) {
58+
59+
#page-category ul>li::before,
60+
#page-tag ul>li::before {
61+
margin: 0 .5rem;
62+
}
63+
5864
#page-tag ul>li>a,
5965
#page-category ul>li>a {
6066
white-space: nowrap;
6167
overflow: hidden;
6268
text-overflow: ellipsis;
6369
}
70+
6471
}

0 commit comments

Comments
 (0)