Change CSS value of search-result text ?



  • Hello to everyone. I am currently experiencing issues with modifying some vales in stylesheet.css file of NodeBB. The values I'm trying to modify are

    search-result-text{max-height:250px;overflow:hidden;position:relative}

    When I change the max-height to something like 900px, overflow:scroll and save the file - after reloading the NodeBB they roll-back to their defaults. What I'm doing wrong?

    Here's a screenshots of my "situation"

    0_1456102276747_default.PNG
    default settings

    0_1456102300507_howIwantToBe.PNG

    how I want to be ?


  • Community Rep

    The style and template files are regenerated every time NodeBB reloads. To change them permanently, you need to either edit the style.less of the theme you are using, or enter your custom css under the Appearance=>Custom HTML and CSS tab in the admin panel.

    I recommend using the Custom CSS option for small changes like this, it's easier and doesn't require a reload.



  • @yariplus said:

    The style and template files are regenerated every time NodeBB reloads. To change them permanently, you need to either edit the style.less of the theme you are using, or enter your custom css under the Appearance=>Custom HTML and CSS tab in the admin panel.

    I recommend using the Custom CSS option for small changes like this, it's easier and doesn't require a reload.

    Sadly, I wasn't able to find that option ? Where it should be?

    Is this the right file to edit? (I'm using the "persona" theme)

    /usr/share/nginx/html/nodebb/node_modules/nodebb-theme-persona/less/style.less

    #EDIT

    You can mark this as SOLVED !

    Edited the custom css worked !!! THANK YOU A LOT !


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.