Skip to content

[NodeBB] First post customization

Solved Customisation
5 2 2.5k 1
  • wrote on last edited by
    #1

    Hi @phenomlab , how are you?

    I would like to separate the first post from the rest (NodeBB v1.18.6) … I see that you have a border and background customization enabled at the dark mode. How can I target the first post only?

    I just could not find the correct CSS change for the first post.

    I am trying to do something like this:

    
    .posts .timeline li[data-index="0"] {
        border-bottom: 1px solid #eee;
    }
    

    But, unfortunately it does not work 🙂 Any help is appreciated…

  • Hi @phenomlab , how are you?

    I would like to separate the first post from the rest (NodeBB v1.18.6) … I see that you have a border and background customization enabled at the dark mode. How can I target the first post only?

    I just could not find the correct CSS change for the first post.

    I am trying to do something like this:

    
    .posts .timeline li[data-index="0"] {
        border-bottom: 1px solid #eee;
    }
    

    But, unfortunately it does not work 🙂 Any help is appreciated…

    wrote on last edited by
    #2

    @crazycells hi. Hope you’re well. Does it work if you set !important after the class ?

  • @crazycells hi. Hope you’re well. Does it work if you set !important after the class ?

    wrote on last edited by
    #3

    @phenomlab said in [NodeBB] First post customization:

    @crazycells hi. Hope you’re well. Does it work if you set !important after the class ?

    Thanks for the suggestion. With the code above it did not work but I later found the correct codes:

    
    li[data-index="0"] .post-footer {
        border-bottom: 1px solid #eee;
    }
    
  • @phenomlab said in [NodeBB] First post customization:

    @crazycells hi. Hope you’re well. Does it work if you set !important after the class ?

    Thanks for the suggestion. With the code above it did not work but I later found the correct codes:

    
    li[data-index="0"] .post-footer {
        border-bottom: 1px solid #eee;
    }
    
    wrote on last edited by
    #4

    @crazycells good to hear ! I’ll mark this resolved.

  • phenomlab phenomlab has marked this topic as solved on
  • @crazycells good to hear ! I’ll mark this resolved.

    wrote on last edited by
    #5

    @phenomlab thanks 🙏


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