Skip to content

Commit 50835b4

Browse files
committed
refactor: optimize meta font size
1 parent 575dc87 commit 50835b4

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

_includes/related-posts.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ <h3 class="mb-4" id="related-label">
7878
<article class="col">
7979
<a href="{{ post.url | relative_url }}" class="post-preview card h-100">
8080
<div class="card-body">
81-
{% include datetime.html date=post.date class="small" lang=include.lang %}
81+
{% include datetime.html date=post.date lang=include.lang %}
8282
<h4 class="pt-0 my-2">{{ post.title }}</h4>
83-
<div class="text-muted small">
83+
<div class="text-muted">
8484
<p>
8585
{% include no-linenos.html content=post.content %}
8686
{{ content | markdownify | strip_html | truncate: 200 | escape }}

_sass/addon/commons.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ footer {
136136
height: $footer-height;
137137
border-top: 1px solid var(--main-border-color);
138138

139-
@extend %text-meta;
139+
@extend %text-xs;
140140

141141
a {
142142
@extend %text-highlight;
@@ -379,7 +379,7 @@ main {
379379
}
380380

381381
.post-meta {
382-
@extend %text-meta;
382+
@extend %text-sm;
383383

384384
a {
385385
&:not([class]):hover {

_sass/addon/module.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,14 @@
127127
font-weight: 600;
128128
}
129129

130-
%text-meta {
130+
%text-sm {
131131
font-size: 0.85rem;
132132
}
133133

134+
%text-xs {
135+
font-size: 0.8rem;
136+
}
137+
134138
%sup-fn-target {
135139
&:target {
136140
background-color: var(--footnote-target-bg);

_sass/layout/post.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ h1 + .post-meta {
4040
}
4141

4242
.post-tail-wrapper {
43-
@extend %text-meta;
43+
@extend %text-sm;
4444

4545
margin-top: 6rem;
4646
border-bottom: 1px double var(--main-border-color);
@@ -57,7 +57,7 @@ h1 + .post-meta {
5757
}
5858

5959
span:last-child {
60-
@extend %text-meta;
60+
@extend %text-sm;
6161
}
6262
} /* .license-wrapper */
6363

@@ -297,6 +297,7 @@ h1 + .post-meta {
297297

298298
time {
299299
@extend %normal-font-style;
300+
@extend %text-xs;
300301

301302
color: var(--text-muted-color);
302303
}

0 commit comments

Comments
 (0)