Tagged: x
-
AuthorPosts
-
May 13, 2016 at 4:41 pm #990352
sallyshueyParticipantHi! When I use the icon short code, the icon has a wide pad around it. How can I decrease the size of this padding, or eliminate it altogether? It’s preventing my icons from aligning to the top of other objects in adjacent columns. There’s an example on my dev site. I’ll send access info in a following private post. Thanks.
May 13, 2016 at 4:44 pm #990356
sallyshueyParticipantThis reply has been marked as private.May 13, 2016 at 10:04 pm #990766
Prasant RaiModeratorHello There,
Thanks for writing in!
You can add this under Custom > CSS in the Customizer:
[data-x-icon], [class*="x-icon-"] { font-size: 350% !important }Let us know how it goes.
Thanks.
May 17, 2016 at 12:46 pm #995892
sallyshueyParticipantSadly, not well. Looks like the code overrode the icon size set in class — or icon feature list short code — in which odd things happened.
May 17, 2016 at 12:49 pm #995899
sallyshueyParticipantSorry! Hit submit too soon. 🙂 These screenshot files are named per what happened when I added your short code to the customizer. My goal, to be able to control the size of the icon and adjust the padding that seems baked into the icon short code. Ideas??
May 17, 2016 at 12:51 pm #995908
sallyshueyParticipantPerhaps I added it wrong? I went into customizer/custom/edit global css … pasted the code at the botton and backed out to click “save and publish”. That right or?? Thx! S.
May 17, 2016 at 2:17 pm #996018
JoaoModeratorHi There,
If your goal is to remove the space above and below the Icon you can change the code provided for this:
[data-x-icon], [class*="x-icon-"] { font-size: 350% !important; line-height: 0 !important; }You can control the size of the icons if you dont want them so big by decreasing the 350% value.
I Hope I have answered your question.
If you need further help, let us know.
Joao
May 26, 2016 at 2:05 pm #1011579
sallyshueyParticipantThat is my goal, and good to know about how to control the icon sizing. However, I added the code to Customizer/Custom/Edit Global CSS then saved, refreshed the page and no change. Am I adding it correctly? How to make it work? Thanks for the hand holding!
May 26, 2016 at 6:11 pm #1011922
JadeModeratorHi Sally,
I tried to check your site why the code is not working but the logins you have provided are not working anymore. Would you mind checking it so that we could check this further? Thank you.
May 27, 2016 at 1:49 pm #1013349
sallyshueyParticipantThis reply has been marked as private.May 27, 2016 at 9:23 pm #1013888
Rue NelModeratorHello Sally,
Thanks for providing the login credentials! I went ahead and edited the page to save your from trouble. By default, when you change the font size of the icon, it has a default line-height of approx. 1.7 and that will place the icon at the middle center which may create space around the icon. To be able to remove that, when adding an inline css
font-size: 100px;as an example, you also need to have aline-height: 100px;.
Hope this helps.
June 1, 2016 at 4:37 pm #1020867
sallyshueyParticipantThanks for that! It’s great to know how to edit the padding. They look super in desktop and laptop, but in mobile the icons get very tiny, though the size is still 100 or 200 px. Look at the section above in mobile view — the one that you redid — as an example, and this also affects every section with icons, mobilve view only. How to fix? Thx! S.
June 1, 2016 at 4:47 pm #1020874
sallyshueyParticipantOh, and the icons are blown out again in mobile view of icon features list, though they look fine in desktop. View this section in mobile for an example: http://openadopt.doreydevelopment.com/become-an-adoptive-parent/#section-15-reasons-to-choose-oafs/ How to make it right? Thx! S.
June 2, 2016 at 12:45 am #1021512
Paul RModeratorHi,
To fix it, you can add this under Custom > CSS in the Customizer.
@media (max-width: 767px) { .home #section-15-reasons .x-feature-box-graphic i { font-size: 60px !important; } .page-id-89 #section-connect-with-us .x-icon { font-size: 80px !important; } }Hope that helps.
June 6, 2016 at 5:19 pm #1028815
sallyshueyParticipantSweet! We’re almost there. The icon features lists now look great. However, stand alone icons in mobile view are still down sizing. For example, in these screenshots the icon font size is 200px and views fine in desktop but not so much in mobile — it’s too teeny and doesn’t have the appropriate padding. You have a fix for that? Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-990352 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
