Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to edit the font size in social.html? #1100

Closed
xkcococo opened this issue Jan 11, 2023 · 2 comments
Closed

How to edit the font size in social.html? #1100

xkcococo opened this issue Jan 11, 2023 · 2 comments

Comments

@xkcococo
Copy link

xkcococo commented Jan 11, 2023

Acknowledge the following

  • [yes] I carefully read and followed the Getting Started guide.
  • [yes] I read through FAQ and searched through the past issues, none of which addressed my issue.
  • [yes] The issue I am raising is a potential bug in al-folio and not just a usage question.
    [For usage questions, please post in the Discussions instead of raising an issue.]
    A clear and concise description of what the bug is.

Thank you for this wonderful template!

I was wondering how to adjust the font size in social.html? It is too big for me. The file _base.scss can only adjust the icon size, so I treid to adjust the size by the codes font size=2px, but it does not work.

Thanks in advanced!
image

@xkcococo xkcococo added the bug label Jan 11, 2023
@xkcococo xkcococo changed the title How to add a new page to web? How to edit the font size in social.html? Jan 12, 2023
@george-gca
Copy link
Collaborator

george-gca commented Mar 13, 2023

This line is what you were looking for. It sets the font size for the social class. Probably it is best for your text though to be outside the

<div class="social">

part in about.html.

@jmrplens
Copy link
Contributor

The HTML code is in the file _layouts/about.html:

<!-- Social -->
          {%- if page.social %}
            <div class="social">
              <div class="contact-icons">
                {% include social.html %}
              </div>

              <div class="contact-note">
                {{ site.contact_note }}
              </div>

            </div>
          {%- endif %}

You can change the contact-icons font size with:

.social .contact-icons {
    font-size: 2rem;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants