Skip to content

CSS codes for fa-info icon

Solved Customisation
9 2 3.1k 1
  • wrote on last edited by
    #1

    Hi @phenomlab , how are you?

    I have an info icon because of the glossary plugin, however, the icon is not at the place where I want it to be… I made it smaller with this code, however, I also want to change its position, I think I prefer it further above, on the upper right corner of the word. Do you know which codes should I use?

    Screen Shot 2022-01-30 at 4.55.37 PM.png

    .glossary-wrapper {
        .fa-info {
            font-size: .500em;
        }
    }
    
  • Hi @phenomlab , how are you?

    I have an info icon because of the glossary plugin, however, the icon is not at the place where I want it to be… I made it smaller with this code, however, I also want to change its position, I think I prefer it further above, on the upper right corner of the word. Do you know which codes should I use?

    Screen Shot 2022-01-30 at 4.55.37 PM.png

    .glossary-wrapper {
        .fa-info {
            font-size: .500em;
        }
    }
    
    wrote on last edited by
    #2

    @crazycells hi. Can you supply your site url so I can have a look ? Either here or via PM if you’d prefer.

  • Hi @phenomlab , how are you?

    I have an info icon because of the glossary plugin, however, the icon is not at the place where I want it to be… I made it smaller with this code, however, I also want to change its position, I think I prefer it further above, on the upper right corner of the word. Do you know which codes should I use?

    Screen Shot 2022-01-30 at 4.55.37 PM.png

    .glossary-wrapper {
        .fa-info {
            font-size: .500em;
        }
    }
    
    wrote on last edited by
    #3

    @crazycells Something like this would probably do it. Sadly, it requires position: absolute and you will need to play around with this to get the desired effect you are looking for, but it does work

    .glossary-wrapper .fa-info {
        font-size: .5em;
        display: inline-block;
        position: absolute;
        margin-left: -5px;
    }
    

    0723b195-74da-4ed3-8b85-be8499ea1ff9-image.png

  • @crazycells Something like this would probably do it. Sadly, it requires position: absolute and you will need to play around with this to get the desired effect you are looking for, but it does work

    .glossary-wrapper .fa-info {
        font-size: .5em;
        display: inline-block;
        position: absolute;
        margin-left: -5px;
    }
    

    0723b195-74da-4ed3-8b85-be8499ea1ff9-image.png

    wrote on last edited by
    #4

    @phenomlab yes, thanks a lot. this works 👍

  • crazycells crazycells has marked this topic as solved on
  • wrote on last edited by
    #5

    hi @phenomlab , I have a follow up question about the glossary plugin… is there any way to target the underlying “…” I want them smaller and maybe will change the color… I could not identify the specific class to target…

    Screenshot 2024-03-22 at 17.25.10.png

  • hi @phenomlab , I have a follow up question about the glossary plugin… is there any way to target the underlying “…” I want them smaller and maybe will change the color… I could not identify the specific class to target…

    Screenshot 2024-03-22 at 17.25.10.png

    wrote on last edited by phenomlab
    #6

    @crazycells You can find that here

    .glossary-wrapper .glossary-word {
        text-decoration: underline;
        text-decoration-style: dotted;
    }
    

    Specifically, you want to either remove or change the text-decoration-style value 🙂

  • @crazycells You can find that here

    .glossary-wrapper .glossary-word {
        text-decoration: underline;
        text-decoration-style: dotted;
    }
    

    Specifically, you want to either remove or change the text-decoration-style value 🙂

    wrote on last edited by
    #7

    @phenomlab thank you very much 👍

  • @phenomlab thank you very much 👍

    wrote on last edited by
    #8

    @phenomlab it looks like I am going with wavy… at least it does not interfere with the visibility of the word…

    Screenshot 2024-03-23 at 14.17.22.png

    is there any way to target the wave line only, and not the word? I am trying to change the color of the wavy line, but the code changes the color of the word too…

  • wrote on last edited by
    #9

    I have just figured it out…

    it can be targeted with text-decoration-color:

    I was mistakenly using color


Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • Planned sunset of NTFY plugin

    Pinned Announcements push nodebb ntfy
    7
    1
    8 Votes
    7 Posts
    4k Views
    phenomlab
    I’ve noticed that I’m the only one subscribed to the push notifications on this site. If you were using NTFY previously, and have noticed that you’ve not had any alerts for a while, it’s because this feature has been disabled. You’ll now need to use the push notification to replace NTFY as mentioned in the first post.
  • 14 Votes
    17 Posts
    5k Views
    DownPW
    No problem dude ! I hope you have a good vacation. Enjoy your loved ones!
  • CSS codes to prevent votes to disappear

    Solved Customisation nodebb
    3
    1 Votes
    3 Posts
    1k Views
    crazycells
    @phenomlab yes, it is thanks a lot…
  • Quote design CSS

    Solved Customisation css quote
    15
    1
    4 Votes
    15 Posts
    6k Views
    phenomlab
    @DownPW yes, that does make sense actually. I forgot to mention the layout of Sudonix is custom so that would have an impact on the positioning. Good spot
  • tag icon in front of tags

    Solved Customisation css
    5
    3 Votes
    5 Posts
    2k Views
    crazycells
    @phenomlab said in tag icon in front of tags: @crazycells Are you using Font Awesome Free ? If so, try this span.tag:before { content: "\f02b"; font-family: "Font Awesome 5 Free"; margin-right: 5px; margin-left: 5px; font-weight: 900; } yeap, this worked thanks a lot.
  • [NODEBB] CSS Style Sheets SelectBox

    Locked Solved Customisation css
    112
    24 Votes
    112 Posts
    63k Views
    phenomlab
    @DownPW as discussed in PM Seems to have been solved with the new JS code that you added allowing the version CSS file change!! Cache problem therefore with the JS of the Switcher theme Based on this, I will close this thread and reference https://sudonix.com/topic/207/nodebb-help-for-my-custom-css/27
  • nodebb dropdown menu

    Solved Configure nodebb
    5
    1
    0 Votes
    5 Posts
    3k Views
    JAC
    @phenomlab said in nodebb dropdown menu: @kurulumu-net You set it like the below example taken from this site [image: aae36790-3257-4bb2-ad5a-0d744309876a-image.png] Which presents this [image: 77f47260-2941-4afe-9614-8e17dcfc8c19-image.png] Very interesting… I actually thought this wasn’t possible, as I remember it being asked in the NodeBB forum. Is this something new that’s been implemented? I’ll 100% be doing that when I’m on the laptop over the weekend.
  • CSS Help on my Flarum

    Solved Customisation
    5
    2
    2 Votes
    5 Posts
    3k Views
    phenomlab
    @mike-jones Yes, you’ll typically see this type of behaviour if there is another style that has higher priority in the sense that yours will be overridden. Using !important will override the higher preference, but should be used sparingly rather than everywhere.