Skip to content

Instantly share code, notes, and snippets.

@christianwach
Last active November 23, 2016 19:08
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 christianwach/d6cb0553811b7f603eab to your computer and use it in GitHub Desktop.
Save christianwach/d6cb0553811b7f603eab to your computer and use it in GitHub Desktop.
CiviCRM admin menu style changes for WordPress
/*
--------------------------------------------------------------------------------
Basic CiviCRM admin menu overrides for WordPress
--------------------------------------------------------------------------------
*/
body #civicrm-menu
{
height: 32px;
}
body #civicrm-menu li.menumain
{
line-height: 1;
padding: 10px 10px;
}
html>body #root-menu-div div.outerbox
{
margin-top: 18px;
}
body #civicrm-menu,
body #root-menu-div ul,
#sort_name_navigation
{
font-size: 12px;
}
body #root-menu-div .menu-ul li
{
padding: 3px 20px 3px 2px;
}
body #root-menu-div .menu-ul li.menu-separator
{
padding-top: 0;
padding-bottom: 0;
}
body #civicrm-menu li#crm-qsearch
{
height: 30px;
}
body #civicrm-menu li#crm-qsearch > form
{
margin-top: 6px;
}
html>body #root-menu-div div.outerbox:first-child
{
margin-top: 0;
}
body #civicrm-menu li#crm-qsearch.activetarget
{
background-color: #000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment