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
  • CSS code customization for the link preview plugin

    Solved Customisation css nodebb
    6
    2
    3 Votes
    6 Posts
    3k Views
    phenomlab
    @kadir-ay-0 marking as resolved based on https://community.nodebb.org/topic/17109/manual-build-a-night-mode-for-harmony/5 Please do not raise requests in two places - here and the NodeBB forums. All this does is create unnecessary load for both parties.
  • Nodebb icon on google page

    Solved Customisation nodebb
    9
    1
    4 Votes
    9 Posts
    4k Views
    phenomlab
    @Panda It’s been raised multiple times, but only for the open source version, and not hosted.
  • Interesting Widget code, but can't fetch API

    Solved Customisation nodebb
    26
    2 Votes
    26 Posts
    11k Views
    phenomlab
    @Panda said in Interesting Widget code, but can’t fetch API: How did you drop that widget into the post there? I hadnt seen this BSgenerator anywhere on sudonix site, do you use it somewhere already? Yes, here https://sudonix.org/topic/414/corporate-bullshit-generator?_=1687774393044 It’s not a “post” or “topic” in the common sense. It is actually a page in it’s own right and leverages nodebb-plugin-custom-pages. This in turn creates a new “route” which behaves like a page, meaning it is then exposed for widgets. @Panda said in Interesting Widget code, but can’t fetch API: Also can you explain more what you mean by calling the code externally. In my API call example, how would I go about doing that? By this, I mean create all the required code in an external JS file that is reachable by the NodeBB instance - so, in “public” for example - or in my case /public/js. The widget then “calls” that file and because it runs outside of the scope of NodeBB, you just need to return the values to the widget. Hope this makes sense?
  • NodeBB v3 Vote Icon

    Solved Customisation icons vote icons
    9
    2 Votes
    9 Posts
    3k Views
    cagatay
    @phenomlab forget it, look likes good with your codes.
  • NodeBB: updating Admin details not working

    Solved Configure nodebb admin
    17
    3 Votes
    17 Posts
    5k Views
    phenomlab
    @mventures Ok. No issues
  • The best css to customize our logo?

    Solved Customisation css
    2
    1 Votes
    2 Posts
    3k Views
    phenomlab
    @Sala This should look better .sidenav .navbar-brand { padding-top: 0.5rem; padding-bottom: 0.5rem; } [image: e5cec20e-be36-4ee8-9129-fd11ad4656ac-image.png] You can increase the top and bottom padding by increasing the values above.
  • Detect if user is admin

    General nodebb javascript code
    2
    0 Votes
    2 Posts
    2k Views
    phenomlab
    @pwsincd I think you can use userData.isAdmin = isAdmin; if I’m not mistaken - see https://community.nodebb.org/topic/15128/how-to-hide-whitelist-user-field-only-to-owner-or-admin?_=1648802303112 for an example
  • Bug Navbar CSS

    Solved Customisation navbar css
    3
    1 Votes
    3 Posts
    2k Views
    DownPW
    Not better way. Thanks.