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"; @charset "utf-8";
/* /*
Document : custom-login Document : custom-login
Created on : date and time Created on : 2022 07 11
Author : created by Author : jorge - hangar.org
Description: Purpose of the stylesheet follows. Description: style the wp login
*/ */
/*
TODO customize this sample style
Syntax recommendation http://www.w3.org/TR/REC-CSS2/ html {}
*/ body{
html {background: #8699DD!important;} background: none;
body{border-top-style:solid;border-top-width:30px;} background-color: transparent;
body, #wpbody, .form-table .pre {color:#333333;} background-image: url('../images/motiufons.gif');
body.login {border-top-color:#464646;} background-repeat: repeat;
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;
} }
#nav { .login h1 a {
font-size: 14px; background-image: url('../images/hangar-logo-claim.svg');
text-align: center; background-repeat: no-repeat;
text-shadow: none; 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'); add_action('login_head', 'custom_login');
function change_wp_login_url() { //function change_wp_login_url() {
echo bloginfo('url'); //echo bloginfo('url');
} //}
add_filter('login_headerurl', 'change_wp_login_url'); //add_filter('login_headerurl', 'change_wp_login_url');
function change_wp_login_title() { //function change_wp_login_title() {
echo 'Powered by ' . get_option('blogname'); //echo 'Powered by ' . get_option('blogname');
} //}
add_filter('login_headertitle', 'change_wp_login_title'); //add_filter('login_headertitle', 'change_wp_login_title');
function remove_footer_admin () { function remove_footer_admin () {
echo 'Custom text | Copyright © message'; echo 'Custom text | Copyright © message';