Skip to content

Instantly share code, notes, and snippets.

@ericorruption
Created February 20, 2016 19:34
Show Gist options
  • Save ericorruption/f1b31edfe713f54f0943 to your computer and use it in GitHub Desktop.
Save ericorruption/f1b31edfe713f54f0943 to your computer and use it in GitHub Desktop.
Quick custom WP admin
html {
}
a {
}
.wp-core-ui .button-primary {
}
.wrap {
// Page title action button
.add-new-h2,
.page-title-action {
&, &:active {
}
}
// Page title
h1 {
}
// Meta box title
h2 {
}
}
#wp-admin-bar-wp-logo,
#wpfooter {
display: none;
}
.login {
h1 a {
width: 263px;
height: 97px;
background: url(http://placehold.it/263x97);
margin-bottom: 40px;
}
form {
background: transparent;
}
.message {
}
#nav,
#backtoblog {
a {
}
}
}
#adminmenu
#adminmenuback,
#adminmenuwrap {
}
#adminmenu {
a,
.wp-submenu a {
}
.wp-submenu {
}
.wp-menu-separator {
}
// active opened menu header
li.wp-has-current-submenu a.wp-has-current-submenu {
}
// active opened submenu
.wp-has-current-submenu .wp-submenu {
}
// icon
div.wp-menu-image:before {
}
// submenu header hover / focus
li.menu-top:hover,
li.opensub > a.menu-top,
li > a.menu-top:focus {
}
}
// icon hover
#adminmenu li:hover div.wp-menu-image:before {
}
#wpadminbar {
// links
a.ab-item,
> #wp-toolbar span.ab-label {
}
// submenu
.menupop .ab-sub-wrapper {
}
// links hover/focus
.quicklinks .menupop.hover ul li a:hover,
&.nojs .quicklinks .menupop:hover ul li a:hover{
}
// icons
.ab-icon:before,
.ab-item:before {
}
// hover icons
li:hover {
.ab-icon:before,
.ab-item:before {
}
}
// focus icons
li .ab-item:focus:before,
li a:focus .ab-icon:before {
}
}
@import 'core';
@import 'login';
@import 'topbar';
@import 'sidebar';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment