Refine social link icon spacing/sizing per feedback
Sidebar: double the standard 3rem section gap above the icon row (6rem), horizontally centered instead of left-aligned. About-me page: new .social-links--large variant via a social_links_variant template var - icons at 5rem (was 1.25rem), centered, 3rem gap from the preceding text (standard section gap, distinct from the normal 1rem paragraph gap), wider inter-icon gap to match the larger size.
This commit is contained in:
+15
-1
@@ -389,9 +389,12 @@ ul.menuitems {
|
|||||||
.social-links {
|
.social-links {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 3rem 0 0 0;
|
/* At least double the standard 3rem inter-section gap (e.g. the gap
|
||||||
|
above "Tags:") to set the icon row apart from the sidebar nav. */
|
||||||
|
margin: 6rem 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.social-links li {
|
.social-links li {
|
||||||
@@ -417,6 +420,17 @@ ul.menuitems {
|
|||||||
height: 1.25rem;
|
height: 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* About-me page variant: bigger icons, distinct gap from the text above. */
|
||||||
|
.social-links--large {
|
||||||
|
margin-top: 3rem;
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-links--large svg {
|
||||||
|
width: 5rem;
|
||||||
|
height: 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.menuitems {
|
.menuitems {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{% if SOCIAL %}
|
{% if SOCIAL %}
|
||||||
<ul class="social-links">
|
<ul class="social-links{% if social_links_variant %} social-links--{{ social_links_variant }}{% endif %}">
|
||||||
{% for name, url, icon in SOCIAL %}
|
{% for name, url, icon in SOCIAL %}
|
||||||
<li><a href="{{ url }}" rel="me" aria-label="{{ name }}" title="{{ name }}">{% include "icons/" ~ icon ~ ".svg" %}</a></li>
|
<li><a href="{{ url }}" rel="me" aria-label="{{ name }}" title="{{ name }}">{% include "icons/" ~ icon ~ ".svg" %}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
{{ page.content }}
|
{{ page.content }}
|
||||||
|
|
||||||
{% if page.slug == 'about-me' %}
|
{% if page.slug == 'about-me' %}
|
||||||
|
{% set social_links_variant = 'large' %}
|
||||||
{% include "includes/social_links.html" %}
|
{% include "includes/social_links.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user