Skip to content

Commit 46702b7

Browse files
committed
Make the resource link icons a size smaller.
We also add a little breathing room to the tag container, so that it doesn't encroach on the personal space of the icons.
1 parent 918e4d1 commit 46702b7

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

pydis_site/static/css/resources/resources.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ span.filter-box-tag[style*='display: block'] {
111111
user-select: none;
112112
}
113113

114+
/* Give the resource tags a bit of breathing room */
115+
.resource-tag-container {
116+
padding-left: 1.5rem;
117+
}
118+
114119
/* When hovering tags, brighten them a bit. */
115120
.resource-tag:hover,
116121
.filter-box-tag:hover {

pydis_site/templates/resources/resource_box.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@
1616
<div class="is-flex is-align-items-center">
1717
{# Add primary link #}
1818
{% if 'title_url' in resource %}
19-
<span class="icon is-size-4 is-medium" style="margin: 5px;">
19+
<span class="icon is-size-4" style="margin: 5px;">
2020
<a href="{{ resource.title_url }}">
21-
<i class="fas fa-external-link-alt fa-fw is-size-3 resource-icon is-hoverable is-primary"></i>
21+
<i class="fas fa-external-link-alt fa-fw is-size-4 resource-icon is-hoverable is-primary"></i>
2222
</a>
2323
</span>
2424
{% endif %}
2525

2626
{# Add all additional icon #}
2727
{% for icon in resource.urls %}
28-
<span class="icon is-size-4 is-medium" style="margin: 5px;">
28+
<span class="icon is-size-4" style="margin: 5px;">
2929
<a href="{{ icon.url }}">
30-
<i class="{{ icon.icon|as_icon }} fa-fw is-size-3 resource-icon is-hoverable is-{{ icon.color }}"></i>
30+
<i class="{{ icon.icon|as_icon }} fa-fw is-size-4 resource-icon is-hoverable is-{{ icon.color }}"></i>
3131
</a>
3232
</span>
3333
{% endfor %}
3434

3535
{# Tags #}
36-
<div class="is-flex ml-auto is-flex-wrap-wrap is-justify-content-end">
36+
<div class="resource-tag-container is-flex ml-auto is-flex-wrap-wrap is-justify-content-end">
3737
{% for tag in resource.tags.topics %}
3838
<span
3939
class="tag resource-tag is-primary is-light ml-2 mt-2"

0 commit comments

Comments
 (0)