'; echo ' /* General Borders Options */ #adminmenu li.wp-menu-open {border-width:0px;} #adminmenu li.wp-menu-separator {margin:0; height:9px;} #adminmenu #collapse-menu {margin-top:0;} #adminmenu li.menu-top,#adminmenu li.wp-menu-separator,#adminmenu #collapse-menu {border-top-color:rgba(255,255,255,'.$lightopacity.'); border-top-style:solid; border-top-width:0;} #adminmenu li.menu-top,#wpadminbar,#adminmenu li.wp-menu-separator {border-bottom-color:rgba(0,0,0,'.$darkopacity.'); border-bottom-style:solid; border-bottom-width:0;} #adminmenu {border-top-color:rgba(0,0,0,'.$darkopacity.'); border-top-style:solid; border-top-width:0;} '; if ($options_main['bordertype'] == 'light') {echo ' /* Light Borders */ #adminmenu li.menu-top,#adminmenu li.wp-menu-separator,#adminmenu #collapse-menu {border-top-width:1px; border-top-style:solid;} ';} elseif ($options_main['bordertype'] == 'dark') {echo ' /* Dark Borders */ #adminmenu li.menu-top,#wpadminbar,#adminmenu li.wp-menu-separator {border-bottom-width:1px; border-bottom-style:solid;} #adminmenu {border-top-width:1px; border-top-style:solid;} ';} elseif ($options_main['bordertype'] == '3D') {echo ' /* 3D Borders */ #adminmenu li.menu-top,#adminmenu li.wp-menu-separator,#adminmenu #collapse-menu {border-top-width:1px; border-top-style:solid;} #adminmenu li.menu-top,#wpadminbar,#adminmenu li.wp-menu-separator {border-bottom-width:1px; border-bottom-style:solid;} #adminmenu {border-top-width:1px; border-top-style:solid;} ';} echo ' /* Breaking up the left-side border on activated plugins */ .widefat {border-spacing:0px 1px;} '; echo ' /* Restoring borders between rows in non-plugins tables */ .widefat th, .widefat td {border-bottom:1px solid rgb(225, 225, 225);} .widefat th, .widefat td {box-shadow:none !important;} .form-table td, .form-table th {border-bottom:solid 1px rgb(200,200,200);} '; if ($options_extra['showrowhovereffect'] == 'yes') {echo ' /* Creating a hover affect for rows */ #the-list tr:hover, #the-comment-list tr:hover {background-color:'.$options_extra['rowhovercolor'].';} ';} if ($options_extra['customcss']) {echo ' /* Custom CSS added by the site owner */ '.$options_extra['customcss'].' ';} if ($options_extra['restoreadminbarheight'] == 'yes') echo ' @media screen and (min-width: 783px) { html {padding-top:28px !important;} #wpadminbar {height:28px;} #wpadminbar .ab-item, #wpadminbar .ab-label {line-height:28px !important; height:28px !important;} #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {top:0px !important;} #wpadminbar #wp-admin-bar-my-sites > .ab-item:before, #wpadminbar #wp-admin-bar-site-name > .ab-item:before {top:0 !important;} #wpadminbar #wp-admin-bar-new-content .ab-icon:before {top:2px !important;} #wpadminbar #wp-admin-bar-comments .ab-icon:before {top:1px !important;} } '; } } add_action('admin_head', 'acb_add_admin_css'); if (!function_exists('acb_add_frontend_css')) { function acb_add_frontend_css($atts, $content = null){ $options_extra = get_option('acb_options_extra'); if ( is_user_logged_in() && $options_extra['restoreadminbarheight'] == 'yes' ) { echo ' '; } } } add_action('wp_head', 'acb_add_frontend_css'); function remove_default_height_bump() { $options_extra = get_option('acb_options_extra'); if ( is_user_logged_in() && $options_extra['restoreadminbarheight'] == 'yes' ) { remove_action('wp_head', '_admin_bar_bump_cb'); } } add_action('get_header', 'remove_default_height_bump');