woocommerce/assets/css/menu.less

74 lines
1.9 KiB
Plaintext

/* Menu */
#adminmenu {
#menu-posts-product div.wp-menu-image, #menu-posts-shop_order div.wp-menu-image, #menu-posts-shop_coupon div.wp-menu-image, #toplevel_page_woocommerce div.wp-menu-image {
background-image: url(../images/icons/menu_icons.png);
background-size: auto;
}
#menu-posts-product {
div.wp-menu-image {
background-position: -32px -32px;
}
&.wp-menu-open div.wp-menu-image, &:hover div.wp-menu-image {
background-position: -32px 0px;
}
img {
display: none;
}
}
#menu-posts-shop_order {
div.wp-menu-image {
background-position: -64px -32px;
}
&.wp-menu-open div.wp-menu-image, &:hover div.wp-menu-image {
background-position: -64px 0px;
}
img {
display: none;
}
}
#menu-posts-shop_coupon {
div.wp-menu-image {
background-position: -96px -32px;
}
&.wp-menu-open div.wp-menu-image, &:hover div.wp-menu-image {
background-position: -96px 0px;
}
img {
display: none;
}
}
#toplevel_page_woocommerce {
div.wp-menu-image {
background-position: 0px -32px;
}
&.wp-menu-open div.wp-menu-image, &:hover div.wp-menu-image {
background-position: 0px 0px;
}
img {
display: none;
}
}
}
/* Editor button */
span.mce_woocommerce_shortcodes_button {
background-image: url(../images/icons/wc_icon.png) !important;
background-repeat: no-repeat !important;
background-position: center !important;
}
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
#adminmenu {
#menu-posts-product div.wp-menu-image, #menu-posts-shop_order div.wp-menu-image, #menu-posts-shop_coupon div.wp-menu-image, #toplevel_page_woocommerce div.wp-menu-image {
background-image: url(../images/icons/menu_icons-x2.png);
background-size: 200px 64px;
}
}
span.mce_woocommerce_shortcodes_button {
background-image: url(../images/icons/wc_icon@2x.png) !important;
background-size: 18px 18px !important;
}
}