Separating contextual-links CSS, out of the CSS of menus and other associated markup
All contextual links are wrapped in a div.contextual, whereas navigational menu items are usually wrapped in a li.menu-item.