Skip to content

[NODEBB] CSS Style Sheets SelectBox

Locked Solved Customisation
112 2 63.3k 1
  • @downpw Try this

    .bootbox .modal-dialog .modal-content {
        background: #fff;
    }
    

    d3e63ab5-5a08-4caa-a898-de93a5eefdfd-image.png

    wrote on last edited by
    #71

    @phenomlab
    That works Sir 🙂

    Super hero you are^^

  • @phenomlab
    That works Sir 🙂

    Super hero you are^^

    wrote on last edited by
    #72

    @downpw Great ! Can we get the wallpapers fixed now also ? Would be good to see everything working.

  • wrote on last edited by
    #73

    @phenomlab

    I have fix all files.
    You can test it if you want

  • @phenomlab

    I have fix all files.
    You can test it if you want

    wrote on last edited by
    #74

    @downpw doesn’t seem to be working ?

  • @downpw doesn’t seem to be working ?

    wrote on last edited by DownPW
    #75

    @phenomlab said in [NODEBB] CSS Style Sheets SelectBox:

    @downpw doesn’t seem to be working ?

    @phenomlab

    It seems to work on my mobile. Maybe your cache ?

  • @phenomlab said in [NODEBB] CSS Style Sheets SelectBox:

    @downpw doesn’t seem to be working ?

    @phenomlab

    It seems to work on my mobile. Maybe your cache ?

    wrote on last edited by phenomlab
    #76

    @downpw probably. Let me try again

    EDIT - All good in incognito session

  • wrote on last edited by
    #77

    @DownPW I think we’re done now, yes ?

  • wrote on last edited by DownPW
    #78

    Oh yeah @phenomlab

    The post can be marked Resolved. No problem…
    And I thanks you again for your hard work

    A question:

    I have customised the Theme Chooser menu for mobile.
    Moreover, if anyone is interested here is the code:

    @media all and (max-width: 1024px)
    {
    .dropdown-menu>li>a {
        display: block;
        padding: 3px 20px;
        clear: both;
        font-weight: 400;
        line-height: 1.42857143;
        color: #fff;
        white-space: nowrap;
        background: #3A3C41;
    }
    
    #theme.dropdown-menu {
        position: fixed;
        top: 140px;
        left: 15px;
        z-index: 1000;
        float: left;
        min-width: 160px;
        padding: 5px 0;
        margin: 2px 0 0;
        list-style: none;
        font-size: 14px;
        text-align: left;
        /* background-clip: padding-box; */
        background: #3A3C41;
        width: 30px;
        border: 1px solid white;
    }
    

    I want to change the color of these elements, when the button is selectionned (on mobile). Actually, there blue by default and I wanted to change for white or grey for :

    ceaee937-d1ea-4315-9a7e-fd2d346855d9-image.png

    And change the color of these icons :
    a2b8e252-921a-4424-a5ac-ddc6cf2b6cf2-image.png
    If you have an idea @phenomlab 🙂

  • Oh yeah @phenomlab

    The post can be marked Resolved. No problem…
    And I thanks you again for your hard work

    A question:

    I have customised the Theme Chooser menu for mobile.
    Moreover, if anyone is interested here is the code:

    @media all and (max-width: 1024px)
    {
    .dropdown-menu>li>a {
        display: block;
        padding: 3px 20px;
        clear: both;
        font-weight: 400;
        line-height: 1.42857143;
        color: #fff;
        white-space: nowrap;
        background: #3A3C41;
    }
    
    #theme.dropdown-menu {
        position: fixed;
        top: 140px;
        left: 15px;
        z-index: 1000;
        float: left;
        min-width: 160px;
        padding: 5px 0;
        margin: 2px 0 0;
        list-style: none;
        font-size: 14px;
        text-align: left;
        /* background-clip: padding-box; */
        background: #3A3C41;
        width: 30px;
        border: 1px solid white;
    }
    

    I want to change the color of these elements, when the button is selectionned (on mobile). Actually, there blue by default and I wanted to change for white or grey for :

    ceaee937-d1ea-4315-9a7e-fd2d346855d9-image.png

    And change the color of these icons :
    a2b8e252-921a-4424-a5ac-ddc6cf2b6cf2-image.png
    If you have an idea @phenomlab 🙂

    wrote on last edited by
    #79

    @downpw said in [NODEBB] CSS Style Sheets SelectBox:

    I want to change the color of these elements, when the button is selectionned (on mobile). Actually, there blue by default and I wanted to change for white or grey for :

    ceaee937-d1ea-4315-9a7e-fd2d346855d9-image.png

    Find 🙂

    @media all and (max-width: 1024px)
    {
    .btn-link:focus, .btn-link:hover {
        /*color: #23527c;*/
        color: lightgrey; /*Any color you want*/
        text-decoration: underline;
        background-color: transparent;
    }
    }
    

    I haven’t yet found for point shaped marker. I will search

  • wrote on last edited by DownPW
    #80

    @downpw said in [NODEBB] CSS Style Sheets SelectBox:

    I haven’t yet found for point shaped marker. I will search

    Hi @phenomlab

    I still haven’t found a way to remove the dot to the left of the Theme Switcher button on mobile (See Screenshot).

    https://sudonix.com/assets/uploads/files/1641509822802-ceaee937-d1ea-4315-9a7e-fd2d346855d9-image.png

    If you have an idea, I’m interested 🙂

    Cya

  • @downpw said in [NODEBB] CSS Style Sheets SelectBox:

    I haven’t yet found for point shaped marker. I will search

    Hi @phenomlab

    I still haven’t found a way to remove the dot to the left of the Theme Switcher button on mobile (See Screenshot).

    https://sudonix.com/assets/uploads/files/1641509822802-ceaee937-d1ea-4315-9a7e-fd2d346855d9-image.png

    If you have an idea, I’m interested 🙂

    Cya

    wrote on last edited by
    #81

    @downpw add list-style: none; to the class

  • @downpw add list-style: none; to the class

    wrote on last edited by DownPW
    #82

    Thanks @phenomlab 🙂

    Moreover, if anyone is interested here is the code:

    
    @media all and (max-width: 1024px)
    {
    .navbar-form {
        left: 20px;
        box-shadow: none;
        list-style: none;
    }
    }
    
  • wrote on last edited by DownPW
    #83

    @phenomlab

    I have another CSS problem for me @phenomlab

    I have set the icon of theme switcher on white with this code:

    .navbar-default .btn-link {
        color: #fff;
    }
    

    I have set the icon of theme switcher on black when I dropdwown on the menu with this code :

    .navbar-default .btn-link:focus, .navbar-default .btn-link:hover {
        color: black;
    }
    

    The problem I have:

    Example on aqua theme, I dropdown the menu for change a theme and I have selected a wrong theme: I select the one already used (aqua)

    At this moment, the icon becomes white again and I would like it to remain black.

    It’s possible to do that ?

    edff94ef-23ff-4704-896c-e5b26cdb4923-image.png

  • wrote on last edited by DownPW
    #84

    EDIT:

    Others things I have :

    If I Click on fa-faw icon, The icon is black (its’ good) on dropdown :
    ff849338-bb74-499b-8e2d-ad8d4e1d03b0-image.png

    But if I click on background (here aqua), the icon is white on dropdown :

    d38b3686-81b7-47d5-84ac-f688d27e9937-image.png

    Thanks in advance @phenomlab for your help. See the older post for seeing my code

  • wrote on last edited by
    #85

    Hi @phenomlab 🙂
    How are you ?
    I know you are a busy man.

    Can you look at my last 2 posts?

    I have 2 small issues to solve and I think this is fairly straightforward for you.

    I’m a little lost with the fa-faw

    Thanks in advance

  • @phenomlab

    I have another CSS problem for me @phenomlab

    I have set the icon of theme switcher on white with this code:

    .navbar-default .btn-link {
        color: #fff;
    }
    

    I have set the icon of theme switcher on black when I dropdwown on the menu with this code :

    .navbar-default .btn-link:focus, .navbar-default .btn-link:hover {
        color: black;
    }
    

    The problem I have:

    Example on aqua theme, I dropdown the menu for change a theme and I have selected a wrong theme: I select the one already used (aqua)

    At this moment, the icon becomes white again and I would like it to remain black.

    It’s possible to do that ?

    edff94ef-23ff-4704-896c-e5b26cdb4923-image.png

    wrote on last edited by
    #86

    @downpw You should be able to use this in each stylesheet (obviously, set the colour you actually want)

    [data-original-title="Theme Switcher"] i {
        color: #000;
    }
    
  • wrote on last edited by DownPW
    #87

    @phenomlab

    The code just change The color icon but not the color when I dropdown to the menu

    I prefer 2 colors :

    • One on the navbar
    • On on hover icon and dropdown
  • wrote on last edited by DownPW
    #88

    Ola @phenomlab

    If you want we can use team viewer for see that.

  • Ola @phenomlab

    If you want we can use team viewer for see that.

    wrote on last edited by
    #89

    @downpw you may need to do this with jQuery. Can you provide a mock-up of what you’re looking for ?

  • wrote on last edited by
    #90

    @phenomlab

    Ola @phenomlab

    If you want we can use team viewer for see that.

    If I don’t use your code, here the icon = KO (Not White like other) :
    6b46b834-68bf-4f37-b411-ff11162f645d-image.png

    Icon on Mouse Over and on Click = OK: aqua background, black icon
    bc5bd4e2-ae9b-4bbf-b372-8efc800a3ee4-image.png

    After click, when dropdown the menu = OK: aqua background, black icon

    77c309dc-ba04-40f1-b3b8-521c2f732fd6-image.png


    I I use your code with White color :

    [data-original-title="Theme Switcher"] i {
        color: #fff;
    }
    

    the icon is white like others = OK
    7b285991-3c10-41e7-b4f7-6b6c3859af45-image.png

    Icon on Mouse Over and on Click = OK: aqua background, black icon
    d2e632ba-4b28-45df-8253-96eaa653ddc1-image.png

    After click, when dropdown the menu = KO : the icon is white and not black 😞
    d8511eca-6c82-4456-b2c1-0fbe00cf15d1-image.png


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
  • How to style tool tip of nodebb-plugin-user-level

    Solved Customisation user level css
    4
    1
    5 Votes
    4 Posts
    3k Views
    phenomlab
    @DownPW thanks. I forgot about that.
  • Material View Support for Stock NodeBB

    Unsolved Let's Build It material view javascript css
    51
    4
    15 Votes
    51 Posts
    27k Views
    DownPW
    Oh yes, that’s what’s super cool, I learn something every day. Afterwards I start from so low in JS
  • hover link effect

    Solved Customisation css link hover
    18
    1
    6 Votes
    18 Posts
    7k Views
    phenomlab
    @DownPW Looking at the underlying code, class start is being added on hover by jQuery in this function document.querySelectorAll(".button-gradient, .button-transparent").forEach((button) => { const style = getComputedStyle(button); const lines = document.createElement("div"); lines.classList.add("lines"); const groupTop = document.createElement("div"); const groupBottom = document.createElement("div"); const svg = createSVG( button.offsetWidth, button.offsetHeight, parseInt(style.borderRadius, 10) ); groupTop.appendChild(svg); groupTop.appendChild(svg.cloneNode(true)); groupTop.appendChild(svg.cloneNode(true)); groupTop.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); lines.appendChild(groupTop); lines.appendChild(groupBottom); button.appendChild(lines); button.addEventListener("pointerenter", () => { button.classList.add("start"); }); svg.addEventListener("animationend", () => { button.classList.remove("start"); }); }); }) The CSS for start is below .button-gradient.start .lines svg, .button-transparent.start .lines svg { animation: stroke 0.3s linear; } And this is the corresponding keyframe @keyframes stroke { 30%, 55% { opacity: 1; } 100% { stroke-dashoffset: 5; opacity: 0; } } It’s using both CSS and SVG, so might not be a simple affair to replicate without the SVG files.
  • [NODEBB] Help for my custom CSS

    Solved Customisation nodebb css bugfix
    258
    49 Votes
    258 Posts
    168k Views
    cagatay
    mark hi, Refused to apply style from ‘https://efelsefe.com/assets/customfonts/FontAwesome-6-Pro/pro/css/v4-font-face.css’ because its MIME type (‘text/plain’) is not a supported stylesheet MIME type, and strict MIME checking is enabled. I keep getting this error.
  • Avatar on Topic Header

    Solved Customisation css avatar header
    9
    1
    0 Votes
    9 Posts
    3k Views
    JAC
    @jac said in Avatar on Topic Header: @downpw said in Avatar on Topic Header: Great Plugin I make it a bit cleaner via this CSS code: /*------------------------------------------------------------------*/ /*---------------- nodebb-plugin-browsing-users -----------------*/ /*------------------------------------------------------------------*/ /*Space between the avatar and the RSS icon */ .topic [component="topic/browsing-users"] { margin-bottom: -5px; padding-left: 10px; } /*Space between avatars*/ .pull-left { float: left!important; padding-right: 5px; } Do you have a screenshot of how this looks with the CSS change? Just added this change, thanks @DownPW
  • 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.
  • Customising NodeBB

    Locked Customisation nodebb
    3
    0 Votes
    3 Posts
    3k Views
    phenomlab
    Closing this thread as a duplicate of https://sudonix.com/topic/12/nodebb-customisation
  • NodeBB customisation

    Locked Customisation
    332
    27 Votes
    332 Posts
    274k Views
    phenomlab
    @jac Given your departure away from your previous project, I’m going to close this thread…