Zurb Foundation: Semi transparent top bar possible?

青春壹個敷衍的年華 提交于 2019-12-03 16:33:44

The background on the links on the right side of your screenshot are being set by the $topbar-dropdown-bg variable. You'll need to change that to none or transparent.

The other steps are:

  1. Set the background color variables to none.
  2. Set the $topbar-bg-color to a semi-transparent value, like rgba(#333,0.5).

Here's a demo. I've tried to comment all the variables I set the background to none.

try this.

.top-bar { background-color: transparent; }
.top-bar-section { background-color: transparent !important;  }
.top-bar-section li { background-color: transparent !important;  }
.top-bar-section li a { background-color: transparent !important;  }

I tried following code, and sounds fine to me. I added few lines to Juni Brosas codes.

header,div.contain-to-grid.sticky, nav.top-bar {
   
    background: none;}

    li.has-dropdown.a{background: none;}

.top-bar { background-color: transparent; }
.top-bar-section { background-color: transparent !important;  }
.top-bar-section li { background-color: transparent !important;  }
.top-bar-section li a { background-color: transparent !important;  }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!