Skip to content

Instantly share code, notes, and snippets.

@bradpotter
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradpotter/184a4340eabe09e7e085 to your computer and use it in GitHub Desktop.
Save bradpotter/184a4340eabe09e7e085 to your computer and use it in GitHub Desktop.
CSS for Header Menu
/* Site Header Navigation
--------------------------------------------- */
.site-header .genesis-nav-menu a {
line-height: 1;
padding: 40px 22px 10px;
}
.site-header .sub-menu a {
padding: 16px 20px;
}
.site-header .sub-menu .sub-menu {
margin-top: -48px;
}
/*
Header Menu Dashicons
---------------------------------------------------------------------------------------------------- */
.site-header .genesis-nav-menu .menu-item:before {
display: block;
font-family: 'dashicons';
font-size: 28px;
font-style: normal;
font-weight: normal;
line-height: 0;
margin: 0;
position: relative;
text-align: center;
top: 16px;
vertical-align: top;
transition: color .1s ease-in 0;
-webkit-transition: color .1s ease-in 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.site-header .genesis-nav-menu .menu-item:before {
color: #333333;
}
.site-header .genesis-nav-menu .menu-item:hover:before {
color: #f15123;
}
.site-header .genesis-nav-menu .current-menu-item:before {
color: #f15123;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment