Skip to content

Commit ccb3276

Browse files
committed
Optimized pin icon size.
1 parent c686eab commit ccb3276

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

_layouts/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<div class="d-flex justify-content-between pr-xl-2">
5353
<h1><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h1>
5454
{% if post.pin %}
55-
<i class="fas fa-thumbtack fa-fw text-muted fa-sm mt-1 mt-xl-2" data-toggle="tooltip" data-placement="left"
55+
<i class="fas fa-thumbtack fa-fw text-muted mt-1 ml-2 mt-xl-2" data-toggle="tooltip" data-placement="left"
5656
title="Pinned"></i>
5757
{% endif %}
5858
</div>

assets/css/home.scss

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@
2020
h1 {
2121
font-size: 1.4rem;
2222
margin: 0;
23-
}
24-
25-
i.far { /* fontawesome icons */
26-
font-size: 86%;
23+
~i { // pinned icon
24+
font-size: .86rem;
25+
}
2726
}
2827

2928
.post-meta {
30-
i:not(:first-child) { // post-meta icons on the homepage
31-
margin-left: 1.5rem;
29+
i {
30+
font-size: .73rem;
31+
&:not(:first-child) { // post-meta icons on the homepage
32+
margin-left: 1.5rem;
33+
}
3234
}
3335
}
3436

0 commit comments

Comments
 (0)