Created
September 5, 2012 16:58
-
-
Save georgestephanis/3639932 to your computer and use it in GitHub Desktop.
Login page mods for Dustin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'login_head', 'my_login_head' ); | |
function my_login_head(){ | |
?> | |
<style> | |
html,body.login {background:#222;} | |
.login h1 a {background-image:url(<?php echo get_stylesheet_directory_uri() ?>/img/logo.png);} | |
.login form {box-shadow:none;} | |
.login #nav, .login #backtoblog {text-shadow:none;} | |
.login #nav a, .login #backtoblog a {color:#fff !important;} | |
.login #nav a:hover, .login #backtoblog a:hover {color:#ddd !important;} | |
@media screen and (-webkit-min-device-pixel-ratio: 2), screen and (max--moz-device-pixel-ratio: 2) { | |
.login h1 a {background-image:url(<?php echo get_stylesheet_directory_uri() ?>/img/[email protected]);} | |
} | |
</style> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment