styled login with hangar logo and colors

This commit is contained in:
jorge 2022-07-11 10:31:41 +02:00
parent c162658ab3
commit cf7ab1a699
2 changed files with 40 additions and 29 deletions

View File

@ -1,26 +1,37 @@
@charset "utf-8";
/*
Document : custom-login
Created on : date and time
Author : created by
Description: Purpose of the stylesheet follows.
Created on : 2022 07 11
Author : jorge - hangar.org
Description: style the wp login
*/
/*
TODO customize this sample style
Syntax recommendation http://www.w3.org/TR/REC-CSS2/
*/
html {background: #8699DD!important;}
body{border-top-style:solid;border-top-width:30px;}
body, #wpbody, .form-table .pre {color:#333333;}
body.login {border-top-color:#464646;}
h1 a{background:url("../images/logo.png") no-repeat scroll 0 0 transparent;display:block;padding-bottom:15px;text-indent:-9999px; width:226px; height:81px; margin: 0 auto}
#login {margin:8% auto;width:350px;}
form{background:none repeat scroll 0 0 #E5E5E5!important;}
.login #nav a {
color: #000 !important;
html {}
body{
background: none;
background-color: transparent;
background-image: url('../images/motiufons.gif');
background-repeat: repeat;
}
#nav {
font-size: 14px;
text-align: center;
text-shadow: none;
.login h1 a {
background-image: url('../images/hangar-logo-claim.svg');
background-repeat: no-repeat;
background-position: center;
background-size: contain;
height: 7rem;
width: auto;
}
.login form {
border: none;
box-shadow: none;
background-color: rgba(240,240,255,0.5);
}
.login .button-primary {
background: rgba(90,90,250,0.7);
border-color: rgba(200,200,250,0.7);
}
.login .button-primary:hover {
background: rgba(0,0,250,1);
border-color: rgba(90,90,250,1);
}

View File

@ -49,15 +49,15 @@ function custom_login() {
}
add_action('login_head', 'custom_login');
function change_wp_login_url() {
echo bloginfo('url');
}
add_filter('login_headerurl', 'change_wp_login_url');
//function change_wp_login_url() {
//echo bloginfo('url');
//}
//add_filter('login_headerurl', 'change_wp_login_url');
function change_wp_login_title() {
echo 'Powered by ' . get_option('blogname');
}
add_filter('login_headertitle', 'change_wp_login_title');
//function change_wp_login_title() {
//echo 'Powered by ' . get_option('blogname');
//}
//add_filter('login_headertitle', 'change_wp_login_title');
function remove_footer_admin () {
echo 'Custom text | Copyright © message';