Header Login Font Colour

Header Login Font Colour

Jonathan Borg -
回帖数:5

Dear All

Can anyone guide a newcomer like me as to which part of the styles_color.css file I should change to make  the username/logout   (at top right) show in white? The reason I am asking is because I managed to use a blue background graphic in the header,  so the default black font  for username/logout does not show very well.

Thanks in advance ,

Jonathan

 

 

回复Jonathan Borg

Re: Header Login Font Colour

Patrick Malley -
While my installation is quite modified, here is the CSS that I used to change the login form font color to white:


.block_login,
.block_login a {
font-color:#fff;
}

You shoud be able to simply add this code to your styles_color.css.
Hope this helps.
回复Jonathan Borg

Re: Header Login Font Colour

Joseph Rézeau -
Core developers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 Translators的头像

Hi Jonathan,

Patrick gave you a solution for the login block. Just in case what you want is to change the color of the div.logininfo (in the top right corner) rather than that of the block, add this to one of your theme's CSS files:

.logininfo,
.logininfo a {
  color:#FFFFFF;
}

You need the change the color of the text "You are logged in as" and the color of the link which holds the name of the logged-in user or, if text says "You are not logged in", the link which says "(Login)".

Hope that helps,

Joseph

附件 image-0000.jpg
回复Joseph Rézeau

Re: Header Login Font Colour

Jonathan Borg -

Thanks Joseph. You are absolutely correct. This is the login part I was referring too.  I tried it out and it works fine.

Thanks  once again for your help.

Jonathan

 

回复Jonathan Borg

Re: Header Login Font Colour

Patrick Malley -
Ah, that makes more sense. I have hacked my site so that my login block appears in my header, and the login bit you're referring to has been commented out (it only appears in my footer). Good thing Joseph is here! 微笑
附件 Picture_2.png