Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created October 19, 2018 07:20
Show Gist options
  • Save yousufansa/b18a206c0e348cb8b580c29407004ac3 to your computer and use it in GitHub Desktop.
Save yousufansa/b18a206c0e348cb8b580c29407004ac3 to your computer and use it in GitHub Desktop.
Jobhunt - Primary Button Style For Header Menu Item
.site-header .desktop-only .primary-menu-item a {
border-radius: 4px;
padding-left: 18px;
padding-right: 18px;
}
.header-bg-default .stuck .header-menu .primary-menu-item a {
color: #fff;
}
.site-header .desktop-only .primary-menu-item a {
color: #fff;
background-color: #fb236a;
border-color: #fb236a;
}
.site-header .desktop-only .primary-menu-item a:hover {
color: #fff;
background-color: #555;
border-color: #555;
}
.site-header .desktop-only .primary-menu-item a:focus,
.site-header .desktop-only .primary-menu-item a.focus {
box-shadow: 0 0 0 0.2rem rgba(251, 35, 106, 0.5);
}
.site-header .desktop-only .primary-menu-item a:not(:disabled):not(.disabled):active,
.site-header .desktop-only .primary-menu-item a:not(:disabled):not(.disabled).active {
color: #fff;
background-color: #e7044f;
border-color: #da044a;
}
@yousufansa
Copy link
Author

Please add the following Class in your menu Item CSS Classes "primary-menu-item"
Ref:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment