51 lines
2.1 KiB
CSS
51 lines
2.1 KiB
CSS
/* Vendor Sales Report Menu - Hide icon/pseudo-element reliably
|
|
Some Magento admin menu item class names vary depending on how the
|
|
menu id is normalized (module and item id). Targetting the generated
|
|
class used by this module may not always match, which causes a
|
|
leftover glyph/box to appear. Use the menu link href as a reliable
|
|
selector and include broader admin menu selectors so the icon is
|
|
removed even if the class name differs. */
|
|
|
|
/* Target by href that contains the admin route for this module */
|
|
#menu a[href*="vendorsalesreport/report/index"]::before,
|
|
.admin__menu a[href*="vendorsalesreport/report/index"]::before,
|
|
/* Fallback: any menu item with vendorsalesreport in its class name */
|
|
.admin__menu [class*="vendorsalesreport"] > a::before,
|
|
.admin__menu [class*="vendorsalesreport"] > a:before {
|
|
content: none !important;
|
|
display: none !important;
|
|
width: 0 !important;
|
|
height: 0 !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
/* Historic selector kept for backward compatibility */
|
|
.item-vendorsalesreport > a:before { display: none !important; }
|
|
|
|
/* Extra aggressive override: clear any pseudo-element glyphs (icon font)
|
|
This targets both ::before and ::after on links and fallback class
|
|
patterns and forces empty content, zero size, transparent color and
|
|
hidden visibility so icon fonts can't render a glyph/box. */
|
|
.admin__menu a[href*="vendorsalesreport/report/index"]::before,
|
|
.admin__menu a[href*="vendorsalesreport/report/index"]::after,
|
|
.admin__menu [class*="vendorsalesreport"] > a::before,
|
|
.admin__menu [class*="vendorsalesreport"] > a::after,
|
|
.admin__menu [class*="vendorsalesreport"] > a:before,
|
|
.admin__menu [class*="vendorsalesreport"] > a:after {
|
|
content: "" !important;
|
|
font-family: initial !important;
|
|
font-size: 0 !important;
|
|
line-height: 0 !important;
|
|
color: transparent !important;
|
|
text-indent: 0 !important;
|
|
background: none !important;
|
|
display: inline-block !important;
|
|
width: 0 !important;
|
|
height: 0 !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
overflow: hidden !important;
|
|
visibility: hidden !important;
|
|
}
|