64 lines
1.6 KiB
SCSS
64 lines
1.6 KiB
SCSS
/**
|
|
* EDD Admin Menu CSS
|
|
*
|
|
* @package EDD
|
|
* @subpackage Admin CSS
|
|
* @copyright Copyright (c) 2015, Pippin Williamson
|
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
|
*/
|
|
|
|
@import "~@wordpress/base-styles/breakpoints";
|
|
@import "../variables/colors";
|
|
|
|
/* Submenu Styles
|
|
-------------------------------------------------------------- */
|
|
|
|
#menu-posts-download a[href^="edit.php?post_type=download"] {
|
|
&:hover,
|
|
&:focus {
|
|
box-shadow: inset 4px 0 0 0 currentColor;
|
|
transition: box-shadow .1s linear;
|
|
}
|
|
}
|
|
|
|
/* Secondary Separators */
|
|
#menu-posts-download li:not(:last-child) a[href^="post-new.php?post_type=download"]:after,
|
|
#menu-posts-download li:not(:last-child) a[href^="edit.php?post_type=download&page=edd-discount"]:after,
|
|
#menu-posts-download li:not(:last-child) a[href^="edit.php?post_type=download&page=edd-reports"]:after,
|
|
#menu-posts-download li:nth-last-child(2) a:after {
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
|
display: block;
|
|
float: left;
|
|
margin: 13px -15px 8px;
|
|
content: '';
|
|
width: calc(100% + 26px);
|
|
|
|
@media screen and (max-width: $break-medium) {
|
|
margin: 20px -20px 8px -20px;
|
|
width: calc(100% + 30px);
|
|
}
|
|
}
|
|
|
|
#adminmenu #menu-posts-download {
|
|
/* WordPress 5.7 fix for left-shadow on hover */
|
|
ul.wp-submenu-wrap li {
|
|
clear: both;
|
|
}
|
|
|
|
a.wp-has-current-submenu:after {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* Show Submenu Arrow */
|
|
ul#adminmenu #menu-posts-download ul.wp-submenu li.current a:before {
|
|
right: 0;
|
|
border: solid 8px transparent;
|
|
content: " ";
|
|
height: 0;
|
|
width: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
border-right-color: $wp-gray-0;
|
|
margin-top: 2px;
|
|
} |