nw-woman

bootstrap wp custom menu hover color

Jan 25th, 2015
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. [ HTML snippet ]
  2. <nav class="navbar navbar-inverse ">
  3. <div class="container-fluid">
  4. <div class="navbar-header">
  5. <div id="myNavbar" class="navbar-collapse collapse">
  6. <ul id="menu-header-menu" class="nav navbar-nav navbar-right">
  7. <li id="menu-item-23" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-23 active">
  8. <a href="http://www.cfnaonline.dev" title="HOME">HOME</a>
  9. </li>
  10. <li id="menu-item-214" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-214 dropdown">
  11. -------------
  12. FROM FIREBUG
  13. [bootstrap.css 4.1 ]
  14. .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus {
  15. background-color: #080808;
  16. color: #fff;
  17. }
  18. [style.css ]
  19. .navbar-nav > .active > a, .nav.navbar-nav > .active > a:hover, .nav.navbar-nav > .active > a:focus {
  20. background-attachment: scroll;
  21. background-clip: border-box;
  22. background-image: none;
  23. background-origin: padding-box;
  24. background-position: 0 0;
  25. background-repeat: repeat;
  26. background-size: auto auto;
  27. }
  28. --------------
  29. my style.css
  30.  
  31. html {
  32. height: 100%;
  33. }
  34. body {
  35. padding-top: 60px;
  36. padding-bottom: 20px;
  37. }
  38. .home {
  39. background: #008744;
  40. padding-top: 110px;
  41. padding-bottom: 50px;
  42. }
  43. .navbar.navbar-inverse {
  44. background-color: #005329;
  45. border-color: transparent transparent #78909C;
  46. border-radius: 0;
  47. }
  48. .navbar-nav > .active > a, .nav.navbar-nav > .active > a:hover, .nav.navbar-nav > .active > a:focus {
  49. background: #00391D;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment