HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.11k stars 2.89k forks source link

Contact widget: improve alignment of icons with labels #1008

Closed FramboisePi closed 5 years ago

FramboisePi commented 5 years ago

Hello, I noticed that the texts and the icons are not aligned in contact widget. widget-contact_alignment-issue

In my opinion it would be better if the images and texts were aligned.

widget-contact_alignment-alternative

I could improve this situation by overwriting academic.css and changing value top in .contact-widget and .fa-li classes but it is not really a good solution.

.contact-widget .fa-li {
    top: 0.14285714em; /* Default FA value. */
}

Does someone know how to do this?

gcushen commented 5 years ago

Contact icons are vertically top aligned. I believe you are proposing changing the alignment to be vertically centred?

Currently, I do not see any reason to change the alignment for all users of Academic. It can be tailored on individual basis by using CSS plugins - refer to the Academic docs.


Note that we have in Academic's style:

.contact-widget .fa-li {
  ...
  top: 0.14285714em; /* Default FA value. */
}

and also in Academicons style:

.ai-li, .fa-li {
  top: .14285714em;
  ...
}
FramboisePi commented 5 years ago

Thank you for your answer. Yes, I meant vertically centred.

It was just a suggestion because we thought it was nicer if the icons were aligned, especially when there is more than one line of text, but it's not difficult to change. Perhaps it could be mention in the documentation. I believe there are user who can not discover how to do this by themselves.

I didn't know .ai-li, .fa-li, thank you, I will try and see want we can do.