Skip to content

Commit

Permalink
fix(typography): font size of superscript number in categories and ta…
Browse files Browse the repository at this point in the history
…gs page
  • Loading branch information
talha131 committed Feb 1, 2020
1 parent 6cc11b8 commit d0a7162
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
8 changes: 0 additions & 8 deletions static/css/elegant.css
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,6 @@ table.highlighttable tbody > tr:nth-child(odd) > td {
padding: 3px 6px;
text-decoration: none;
}
.list-of-tags a span {
font-size: 0.8em;
vertical-align: super;
}
.tags-in-article li {
float: none;
line-height: 28px;
Expand Down Expand Up @@ -244,10 +240,6 @@ p#post-share-links {
text-align: right;
}
/* Categories */
.category-title-inside-accordion span {
font-size: 0.7em;
vertical-align: super;
}
a.category-title-inside-accordion {
text-decoration: none;
}
Expand Down
4 changes: 4 additions & 0 deletions static/css/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,7 @@ div.recent-posts-posted {
font-family: var(--sansFontFamily);
font-size: 0.8rem;
}
span.superscript {
font-size: 0.67rem;
vertical-align: super;
}
2 changes: 1 addition & 1 deletion templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h4>Tags</h4>
{% for tag in article.tags|sort %}
<li><a href="{{ SITEURL }}/{{ TAGS_URL }}#{{ tag.slug }}-ref">{{ tag }}
{% for aTag, tagged_articles in tags if aTag == tag %}
<span>{{ tagged_articles|count }}</span>
<span class="superscript">{{ tagged_articles|count }}</span>
{% endfor %}</a></li>
{% endfor %}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion templates/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h1><a href="{{ SITEURL }}/{{ CATEGORIES_URL }}">All Categories</a></h1>
<div class="accordion-heading">
<a class="accordion-toggle category-title-inside-accordion collapsed" data-toggle="collapse" data-parent="#accordion2" href="#{{ category.slug }}-ref">
{% set num = articles|count %}
{{ category }}<span>{{ num }}</span>
{{ category }}<span class="superscript">{{ num }}</span>
</a>
</div>
<div id="{{ category.slug }}-ref" class="accordion-body collapse">
Expand Down
2 changes: 1 addition & 1 deletion templates/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1><a href="{{ SITEURL }}/{{ TAGS_URL }}">All Tags</a></h1>
{% for tag, articles in tags|sort %}
<li>
{% set num = articles|count %}
<a href="#{{ tag.slug }}-ref">{{ tag }}<span>{{ num }}</span></a>
<a href="#{{ tag.slug }}-ref">{{ tag }}<span class="superscript">{{ num }}</span></a>
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit d0a7162

Please sign in to comment.