Change icon-bar (☰) color in bootstrap

后端 未结 7 1043
渐次进展
渐次进展 2020-12-13 12:39

I want to change ☰ color.

HTML:

7条回答
  •  北海茫月
    2020-12-13 13:07

    I do not know if your still looking for the answer to this problem but today I happened the same problem and solved it. You need to specify in the HTML code,

    **

    or

    **

    You got that place in your CSS

    .navbar-default-toggle .navbar .icon-bar {
      background-color: # 0000ff;
    }
    

    and what I did was add above

    .navbar .navbar-toggle .icon-bar {
      background-color: # ff0000;
    }
    

    Because my html code is

    **

    and if you associate a file less / css

    search this section and also here placed the color you want to change, otherwise it will self-correct the css file to the state it was before

    // Toggle Navbar
    @ Navbar-default-toggle-hover-bg: #ffffd;
    **@ Navbar-default-toggle-icon-bar-bg: # 888;**
    @ Navbar-default-toggle-border-color: #ffffd;
    

    if your html code is like mine and is not navbar-default, add it as you did with the css.

    // Toggle Navbar
    @ Navbar-default-toggle-hover-bg: #ffffd;
    **@ Navbar-toggle-icon-bar-bg : #888;**
    @ Navbar-default-toggle-icon-bar-bg: # 888;
    @ Navbar-default-toggle-border-color: #ffffd;
    

    good luck

提交回复
热议问题